diff --git a/VERSION b/VERSION index 1d5e9e0bad105584234c61dfafdc163fc6bdcbc9..5ebba4f08adf9a2c65bd6a54d3ed17792d5fe285 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.5.3 \ No newline at end of file +1.5.5 \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/Application.ts b/arkoala-arkts/arkui/src/Application.ts index a60c065a043bdfbab3baf7906dae109210191f56..b211551553345f905c4e5fb757d40e5402901283 100644 --- a/arkoala-arkts/arkui/src/Application.ts +++ b/arkoala-arkts/arkui/src/Application.ts @@ -16,7 +16,7 @@ import { ComputableState, IncrementalNode, GlobalStateManager, StateManager, StateContext, memoEntry, MutableState, createAnimationTimer, callScheduledCallbacks } from "@koalaui/runtime" import { int32, int64 } from "@koalaui/common" import { pointer, nullptr, KPointer, InteropNativeModule, registerNativeModuleLibraryName } from "@koalaui/interop" -import { PeerNode } from "./generated/PeerNode" +import { PeerNode } from "./PeerNode" import { ArkUINativeModule } from "#components" import { EventEmulator } from "./generated/ArkEventEmulatorMaterialized" import { UserView, UserViewBuilder } from "./UserView" @@ -306,7 +306,7 @@ export class Application { } // TODO: make [emitEvent] suitable to get string argument - emitEvent(type: int32, target: int32, arg0: int32, arg1: int32) { + emitEvent(type: int32, target: int32, arg0: int32, arg1: int32): string { const node = PeerNode.findPeerByNativeId(target) if (node != undefined) { try { @@ -332,6 +332,7 @@ export class Application { InteropNativeModule._NativeLog("emitEvent error: " + errorInfo(error as Object)) } } + return "0" } static createApplication(appUrl: string, params: string, useNativeLog: boolean): Application { diff --git a/arkoala-arkts/arkui/src/ArkComponentRoot.ts b/arkoala-arkts/arkui/src/ArkComponentRoot.ts index 3af4b9281d6db658754ccb58b8aae58456e3c46b..373f0178b6a2ae1fc628e1452a156f62829955ad 100644 --- a/arkoala-arkts/arkui/src/ArkComponentRoot.ts +++ b/arkoala-arkts/arkui/src/ArkComponentRoot.ts @@ -14,7 +14,7 @@ */ import { NodeAttach, rememberDisposable, rememberMutableState, scheduleCallback } from "@koalaui/runtime" -import { PeerNode } from "./generated/PeerNode"; +import { PeerNode } from "./PeerNode"; import { ArkComponentRootPeer } from "./generated/peers/ArkStaticComponentsPeer"; import { ArkCustomComponent } from "./ArkCustomComponent" @@ -43,12 +43,10 @@ export function ArkComponentRoot( }) } ) - console.log("Going to attach") NodeAttach( () => ArkComponentRootPeer.create(), (node: PeerNode) => { content() - console.log("TODO: ArkComponentRoot routing") // const state = CurrentRouterTransitionState() // if (state) { // RunEffect(state.visibility, visibility => { diff --git a/arkoala-arkts/arkui/src/ArkStructBase.ts b/arkoala-arkts/arkui/src/ArkStructBase.ts index 5c40d5e86a2d8b6032d5d44ef07202c6fcdc0db7..ce99fe7eecafb59ad6c3849021116b0502d38530 100644 --- a/arkoala-arkts/arkui/src/ArkStructBase.ts +++ b/arkoala-arkts/arkui/src/ArkStructBase.ts @@ -18,7 +18,6 @@ export abstract class ArkStructBase extends ArkCustomComponentImpl arg1?: () => void, arg2?: T_Options ): void { - console.log("_instantiate()") const receiver = remember(() => { const instance = factory(); instance.__initializeStruct(arg1, arg2); @@ -43,8 +42,6 @@ export abstract class ArkStructBase extends ArkCustomComponentImpl content?: () => void, initializers?: T_Options ): void { - console.log("_buildWrapper()") - ArkComponentRoot(this, () => { this.__updateStruct(initializers) this.__build(attributes, content, initializers) diff --git a/arkoala-arkts/arkui/src/generated/ComponentBase.ts b/arkoala-arkts/arkui/src/ComponentBase.ts similarity index 100% rename from arkoala-arkts/arkui/src/generated/ComponentBase.ts rename to arkoala-arkts/arkui/src/ComponentBase.ts diff --git a/arkoala-arkts/arkui/src/LazyForEach.ts b/arkoala-arkts/arkui/src/LazyForEach.ts index 3acd403c246fe99c54bfa7fec5cc40f6acc568a9..a198e825b5660fac62972a5105fe4268270d5f1f 100644 --- a/arkoala-arkts/arkui/src/LazyForEach.ts +++ b/arkoala-arkts/arkui/src/LazyForEach.ts @@ -13,10 +13,10 @@ * limitations under the License. */ -import { __context, contextNode, memoEntry2, remember, rememberMutableState, scheduleCallback } from "@koalaui/runtime" -import { hashCodeFromString, int32 } from "@koalaui/common" +import { __context, __id, contextNode, DataNode, IncrementalNode, memoEntry2, remember, rememberMutableState, scheduleCallback } from "@koalaui/runtime" +import { hashCodeFromString, int32, KoalaCallsiteKey } from "@koalaui/common" import { nullptr, pointer } from "@koalaui/interop"; -import { PeerNode } from "./generated/PeerNode"; +import { LazyForEachType, PeerNode, PeerNodeType } from "./PeerNode"; import { LazyForEachOps } from "./generated/ArkLazyForEachOpsMaterialized" // TODO: proper import [DataChangeListener] from lazy_for_each.d.ts @@ -107,6 +107,44 @@ class VisibleRange { this.markDown = more return true } + + get activeCount(): int32 { + return this.indexDown >= 0 ? this.indexDown - this.indexUp + 1 : 0 + } +} + +class LazyForEachIdentifier { + constructor(id: KoalaCallsiteKey, totalCnt: int32, activeCnt: int32) { + this.id = id + this.totalCnt = totalCnt + this.activeCnt = activeCnt + } + readonly id: KoalaCallsiteKey + readonly totalCnt: int32 + readonly activeCnt: int32 +} + +/** + * @param id unique identifier of LazyForEach + * @returns item offset of LazyForEach in parent's children + */ +/** @memo */ +function getOffset(parent: PeerNode, id: KoalaCallsiteKey): int32 { + let offset = 0 + for (let child = parent.firstChild; child; child = child!.nextSibling) { + // corresponding DataNode is attached after the generated items + let info = DataNode.extract(LazyForEachType, child!!) + if (info?.id === id) { + offset -= info!.activeCnt + console.log(`offset = ${offset}`) + return offset + } else if (info) { + offset += info!.totalCnt - info!.activeCnt // active nodes are already counted + } else if (child!.isKind(PeerNodeType)) { + ++offset + } + } + return offset // DataNode not found, maybe throw error? } /** @memo */ @@ -121,7 +159,10 @@ export function LazyForEach(dataSource: IDataSource, console.log(`LazyForEach current=${current.value} version=${version.value} mark=${mark.value}`) let parent = contextNode() - const visibleRange = new VisibleRange(parent, current.value, current.value) + + const currentLocal = current.value >= 0 ? Math.max(current.value - getOffset(parent, __id()), 0) as int32 : -1; // translated to local index + console.log(`currentLocal = ${currentLocal}`) + const visibleRange = new VisibleRange(parent, currentLocal, currentLocal) remember(() => { LazyForEachManager.OnRangeUpdate(visibleRange.parent, dataSource.totalCount() as int32, (currentIndex: int32, currentMark: pointer, end: int32) => { console.log(`LazyForEach[${parent}]: current updated to ${currentIndex} ${currentMark} end=${end}`) @@ -161,4 +202,8 @@ export function LazyForEach(dataSource: IDataSource, LazyForEachManager.SetInsertMark(parent, moreUp ? visibleRange.markUp : visibleRange.markDown, moreUp) } parent.setInsertMark(nullptr, false) + + // create DataNode to provide count information to parent + const identifier = new LazyForEachIdentifier(__id(), dataSource.totalCount() as int32, visibleRange.activeCount) + DataNode.attach(LazyForEachType, identifier) } diff --git a/arkoala-arkts/arkui/src/generated/NativePeerNode.ts b/arkoala-arkts/arkui/src/NativePeerNode.ts similarity index 100% rename from arkoala-arkts/arkui/src/generated/NativePeerNode.ts rename to arkoala-arkts/arkui/src/NativePeerNode.ts diff --git a/arkoala-arkts/arkui/src/generated/PeerNode.ts b/arkoala-arkts/arkui/src/PeerNode.ts similarity index 96% rename from arkoala-arkts/arkui/src/generated/PeerNode.ts rename to arkoala-arkts/arkui/src/PeerNode.ts index 7a30ef6f0d1257a1ed39804312d5ceab4e299b34..69384bc7db0188fdc941a9aeaa53b6249a0b2a24 100644 --- a/arkoala-arkts/arkui/src/generated/PeerNode.ts +++ b/arkoala-arkts/arkui/src/PeerNode.ts @@ -2,9 +2,10 @@ import { int32 } from "@koalaui/common" import { IncrementalNode } from "@koalaui/runtime" import { NativePeerNode } from "./NativePeerNode" import { nullptr, pointer } from "@koalaui/interop" -import { ArkRootPeer } from "./peers/ArkStaticComponentsPeer" +import { ArkRootPeer } from "./generated/peers/ArkStaticComponentsPeer" export const PeerNodeType = 11 +export const LazyForEachType = 13 const InitialID = 999 export class PeerNode extends IncrementalNode { diff --git a/arkoala-arkts/arkui/src/UserView.ts b/arkoala-arkts/arkui/src/UserView.ts index 83df11f8eff37cad66862bcc9bd58a0de9ef39a6..7ccc1a4707239da0258133f9b47d2f49bc0a765b 100644 --- a/arkoala-arkts/arkui/src/UserView.ts +++ b/arkoala-arkts/arkui/src/UserView.ts @@ -12,7 +12,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { InteropNativeModule, KUint8ArrayPtr } from "@koalaui/interop" +import { InteropNativeModule } from "@koalaui/interop" import { int32, int8Array } from "@koalaui/common" diff --git a/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts index 68352d5ceb1a1d021b9ca12737f2cf631fd00821..c11eaec84db10d0a23dcc640464c6333a36f37fc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAbilityComponent.ts @@ -19,15 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAbilityComponentPeer } from "./peers/ArkAbilityComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { AbilityComponentAttribute } from "./ArkAbilityComponentInterfaces" -import { Callback_Void, Literal_Want_want } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Literal_Want_want } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Want } from "./ArkArkuiExternalInterfaces" +import { AbilityComponentAttribute } from "./ArkAbilityComponentInterfaces" /** @memo:stable */ export class ArkAbilityComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkAbilityComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts index fc9f52eb4647436987dbf2a7dcef8a0c0b426d1a..6c1ef6cdfd9afba478becfcad2c7c10c5fa65362 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAbilityComponentInterfaces.ts @@ -19,9 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Literal_Want_want, Callback_Void } from "./SyntheticDeclarations" +import { Literal_Want_want, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" import { Want } from "./ArkArkuiExternalInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type AbilityComponentInterface = (value: Literal_Want_want) => AbilityComponentAttribute; export interface AbilityComponentAttribute extends CommonMethod { onConnect: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts index 53977fb7bb0b17c3f9b2a22aece20a6df82bf8f7..f6fc05ac4a7ce79964bbd37b04022a5766852199 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { AccessibilityHoverType } from "./ArkEnumsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface AccessibilityHoverEvent { type: AccessibilityHoverType @@ -82,13 +82,13 @@ export class AccessibilityHoverEventInternal extends BaseEventInternal implement set windowY(windowY: number) { this.setWindowY(windowY) } - static ctor(): KPointer { + static ctor_accessibilityhoverevent(): KPointer { const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = AccessibilityHoverEventInternal.ctor() + const ctorPtr : KPointer = AccessibilityHoverEventInternal.ctor_accessibilityhoverevent() this.peer = new Finalizable(ctorPtr, AccessibilityHoverEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts index 9ac404174536749e4281e95a6e87b61de21b3865..ee8806eb47849149a2600155ae96f1f72b523876 100644 --- a/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkActionSheetMaterialized.ts @@ -18,19 +18,25 @@ import { ActionSheetOptions } from "./ArkActionSheetInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ActionSheetInternal { + public static fromPtr(ptr: KPointer): ActionSheet { + const obj : ActionSheet = new ActionSheet() + obj.peer = new Finalizable(ptr, ActionSheet.getFinalizer()) + return obj + } +} export class ActionSheet implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_actionsheet(): KPointer { const retval = ArkUIGeneratedNativeModule._ActionSheet_ctor() return retval } @@ -38,7 +44,7 @@ export class ActionSheet implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = ActionSheet.ctor() + const ctorPtr : KPointer = ActionSheet.ctor_actionsheet() this.peer = new Finalizable(ctorPtr, ActionSheet.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +62,3 @@ export class ActionSheet implements MaterializedBase { return retval } } -export class ActionSheetInternal { - public static fromPtr(ptr: KPointer): ActionSheet { - const obj : ActionSheet = new ActionSheet() - obj.peer = new Finalizable(ptr, ActionSheet.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts index e64cd1df3fa7e626ebdf32ad1e6deddda495e621..25c62f2607eb188f5aa703b5f26fd760806aea1c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlertDialogMaterialized.ts @@ -18,19 +18,25 @@ import { AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions } from "./ArkAlertDialogInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class AlertDialogInternal { + public static fromPtr(ptr: KPointer): AlertDialog { + const obj : AlertDialog = new AlertDialog() + obj.peer = new Finalizable(ptr, AlertDialog.getFinalizer()) + return obj + } +} export class AlertDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_alertdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._AlertDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class AlertDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = AlertDialog.ctor() + const ctorPtr : KPointer = AlertDialog.ctor_alertdialog() this.peer = new Finalizable(ctorPtr, AlertDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -72,10 +78,3 @@ export class AlertDialog implements MaterializedBase { return retval } } -export class AlertDialogInternal { - public static fromPtr(ptr: KPointer): AlertDialog { - const obj : AlertDialog = new AlertDialog() - obj.peer = new Finalizable(ptr, AlertDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts index 538f150e34b6c93d055a6314ca59c411bcc5eeab..9b6349a0caa5e390639cef6974486e6beed6e007 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexer.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAlphabetIndexerPeer } from "./peers/ArkAlphabetIndexerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, BlurStyle } from "./ArkCommonInterfaces" -import { AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./ArkAlphabetIndexerInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { ResourceColor, Font, Position, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerAttribute, AlphabetIndexerOptions } from "./ArkAlphabetIndexerInterfaces" /** @memo:stable */ export class ArkAlphabetIndexerComponent extends ArkCommonMethodComponent { getPeer(): ArkAlphabetIndexerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts index d1fd7fb4efd76d2bab56d3ba613e5db788f88ab2..c28baf8944ef648d2c4e94634d21c53cf68865d7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, BlurStyle } from "./ArkCommonInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { ResourceColor, Font, Position, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum IndexerAlign { LEFT = 0, Left = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts index 79734c88ffa7530a813f0d7549c2ede80c7b93d3..878cb77df7e14acede8aff8b399277c2b2cd283d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimationExtenderMaterialized.ts @@ -19,19 +19,25 @@ import { AnimateParam, TranslateOptions } from "./ArkCommonInterfaces" import { DoubleAnimationParam } from "./ArkAnimationExtenderInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class AnimationExtenderInternal { + public static fromPtr(ptr: KPointer): AnimationExtender { + const obj : AnimationExtender = new AnimationExtender() + obj.peer = new Finalizable(ptr, AnimationExtender.getFinalizer()) + return obj + } +} export class AnimationExtender implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_animationextender(): KPointer { const retval = ArkUIGeneratedNativeModule._AnimationExtender_ctor() return retval } @@ -39,7 +45,7 @@ export class AnimationExtender implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = AnimationExtender.ctor() + const ctorPtr : KPointer = AnimationExtender.ctor_animationextender() this.peer = new Finalizable(ctorPtr, AnimationExtender.getFinalizer()) } static getFinalizer(): KPointer { @@ -100,10 +106,3 @@ export class AnimationExtender implements MaterializedBase { thisSerializer.release() } } -export class AnimationExtenderInternal { - public static fromPtr(ptr: KPointer): AnimationExtender { - const obj : AnimationExtender = new AnimationExtender() - obj.peer = new Finalizable(ptr, AnimationExtender.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts index 0ecf58d9b200603811593df65f11f380a2e6992c..811b59858546e012ce503212944dfc54f70d5db0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimator.ts @@ -19,16 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAnimatorPeer } from "./peers/ArkAnimatorPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { AnimatorAttribute } from "./ArkAnimatorInterfaces" -import { AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { SpringMotion } from "./ArkSpringMotionMaterialized" -import { Callback_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { AnimatorAttribute } from "./ArkAnimatorInterfaces" /** @memo:stable */ export class ArkAnimatorComponent extends ArkCommonMethodComponent { getPeer(): ArkAnimatorPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts index 4bc0842d0fccb4181d1df58f1aabd7be2efe0a33..3043620bbd4dfb47654c7b454ad75f143d967b88 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAnimatorInterfaces.ts @@ -19,10 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, Curve, FillMode, PlayMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { SpringMotion } from "./ArkSpringMotionMaterialized" -import { Callback_Void, Callback_Number_Void } from "./SyntheticDeclarations" export type AnimatorInterface = (value: string) => AnimatorAttribute; export interface AnimatorAttribute extends CommonMethod { state: AnimationStatus; diff --git a/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts index cad049b502c380863508c9de27bee6c09b216752..d50d22479621af08917de336ab11f1bbdb6322b8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class AppearSymbolEffectInternal { + public static fromPtr(ptr: KPointer): AppearSymbolEffect { + const obj : AppearSymbolEffect = new AppearSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, AppearSymbolEffect.getFinalizer()) + return obj + } +} export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +43,7 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_appearsymboleffect(scope?: EffectScope): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -51,7 +57,7 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr : KPointer = AppearSymbolEffect.ctor(scope) + const ctorPtr : KPointer = AppearSymbolEffect.ctor_appearsymboleffect(scope) this.peer = new Finalizable(ctorPtr, AppearSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._AppearSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) } } -export class AppearSymbolEffectInternal { - public static fromPtr(ptr: KPointer): AppearSymbolEffect { - const obj : AppearSymbolEffect = new AppearSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, AppearSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts index b03958918145c3c83ba93e6ad653edfaf7f1b752..38be97d80187e5ec0b321626d0d51929b549bdba 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts @@ -18,13 +18,19 @@ import { TextBackgroundStyle } from "./ArkSpanInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class BackgroundColorStyleInternal { + public static fromPtr(ptr: KPointer): BackgroundColorStyle { + const obj : BackgroundColorStyle = new BackgroundColorStyle(undefined) + obj.peer = new Finalizable(ptr, BackgroundColorStyle.getFinalizer()) + return obj + } +} export class BackgroundColorStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class BackgroundColorStyle implements MaterializedBase { get textBackgroundStyle(): TextBackgroundStyle { throw new Error("Not implemented") } - static ctor(textBackgroundStyle: TextBackgroundStyle): KPointer { + static ctor_backgroundcolorstyle(textBackgroundStyle: TextBackgroundStyle): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeTextBackgroundStyle(textBackgroundStyle) const retval = ArkUIGeneratedNativeModule._BackgroundColorStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -41,9 +47,9 @@ export class BackgroundColorStyle implements MaterializedBase { return retval } constructor(textBackgroundStyle?: TextBackgroundStyle) { - if (((textBackgroundStyle) !== (undefined))) + if ((textBackgroundStyle) !== (undefined)) { - const ctorPtr : KPointer = BackgroundColorStyle.ctor(textBackgroundStyle) + const ctorPtr : KPointer = BackgroundColorStyle.ctor_backgroundcolorstyle(textBackgroundStyle) this.peer = new Finalizable(ctorPtr, BackgroundColorStyle.getFinalizer()) } } @@ -51,10 +57,3 @@ export class BackgroundColorStyle implements MaterializedBase { return ArkUIGeneratedNativeModule._BackgroundColorStyle_getFinalizer() } } -export class BackgroundColorStyleInternal { - public static fromPtr(ptr: KPointer): BackgroundColorStyle { - const obj : BackgroundColorStyle = new BackgroundColorStyle(undefined) - obj.peer = new Finalizable(ptr, BackgroundColorStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkBadge.ts b/arkoala-arkts/arkui/src/generated/ArkBadge.ts index bcae313ed596ed60a83121f2e2cb77ed7a027a11..15cb7dbd78b71d3292f60f97ac0eddcaece180c0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBadge.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBadge.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBadgePeer } from "./peers/ArkBadgePeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { BadgeAttribute, BadgeParamWithNumber, BadgeParamWithString } from "./ArkBadgeInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { BadgeParamWithNumber, BadgeAttribute, BadgeParamWithString } from "./ArkBadgeInterfaces" /** @memo:stable */ export class ArkBadgeComponent extends ArkCommonMethodComponent { getPeer(): ArkBadgePeer { @@ -34,12 +55,12 @@ export class ArkBadgeComponent extends ArkCommonMethodComponent { public setBadgeOptions(value: BadgeParamWithNumber | BadgeParamWithString): this { if (this.checkPriority("setBadgeOptions")) { const value_type = runtimeType(value) - if ((TypeChecker.isBadgeParamWithNumber(value, false, false))) { + if (TypeChecker.isBadgeParamWithNumber(value, false, false)) { const value_casted = value as (BadgeParamWithNumber) this.getPeer()?.setBadgeOptions0Attribute(value_casted) return this } - if ((TypeChecker.isBadgeParamWithString(value, false))) { + if (TypeChecker.isBadgeParamWithString(value, false)) { const value_casted = value as (BadgeParamWithString) this.getPeer()?.setBadgeOptions1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts index 5d22f1b9bd6d27b4ce4aff0e14efd5be686ec01a..1718e6a0386de32ed82a484531c04afef2e47055 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBadgeInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, Length, Position } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { ResourceColor, Length, Position, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { FontWeight, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum BadgePosition { RIGHT_TOP = 0, RightTop = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts index 0c93faed72e2e7bde5d5c369c24a254d348830e4..fdecee5b3eea470288266d293daaf0be3d6f055a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaseEventMaterialized.ts @@ -18,12 +18,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface BaseEvent { target: EventTarget @@ -106,12 +105,12 @@ export class BaseEventInternal implements MaterializedBase,BaseEvent { const deviceId_NonNull = (deviceId as number) this.setDeviceId(deviceId_NonNull) } - static ctor(): KPointer { + static ctor_baseevent(): KPointer { const retval = ArkUIGeneratedNativeModule._BaseEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = BaseEventInternal.ctor() + const ctorPtr : KPointer = BaseEventInternal.ctor_baseevent() this.peer = new Finalizable(ctorPtr, BaseEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts index 33dc02f00067dd8df30519ad8b42585c495cc7b4..eadb8b36fb37cf68757344d9bc175b3efb32a024 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaseGestureEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface BaseGestureEvent { fingerList: Array @@ -40,23 +40,30 @@ export class BaseGestureEventInternal extends BaseEventInternal implements Mater set fingerList(fingerList: Array) { this.setFingerList(fingerList) } - static ctor(): KPointer { + static ctor_basegestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = BaseGestureEventInternal.ctor() + const ctorPtr : KPointer = BaseGestureEventInternal.ctor_basegestureevent() this.peer = new Finalizable(ctorPtr, BaseGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._BaseGestureEvent_getFinalizer() } + private getFingerList(): Array { + return this.getFingerList_serialize() + } private setFingerList(fingerList: Array): void { const fingerList_casted = fingerList as (Array) this.setFingerList_serialize(fingerList_casted) return } + private getFingerList_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_getFingerList(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setFingerList_serialize(fingerList: Array): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(fingerList.length as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts index b277873cdef42ad1bc1de7032c787fb1df043833..17052d47cbee72829db641951236d8a097c55ecc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class BaselineOffsetStyleInternal { + public static fromPtr(ptr: KPointer): BaselineOffsetStyle { + const obj : BaselineOffsetStyle = new BaselineOffsetStyle(undefined) + obj.peer = new Finalizable(ptr, BaselineOffsetStyle.getFinalizer()) + return obj + } +} export class BaselineOffsetStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class BaselineOffsetStyle implements MaterializedBase { get baselineOffset(): number { return this.getBaselineOffset() } - static ctor(value: LengthMetrics): KPointer { + static ctor_baselineoffsetstyle(value: LengthMetrics): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(value) const retval = ArkUIGeneratedNativeModule._BaselineOffsetStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -41,9 +47,9 @@ export class BaselineOffsetStyle implements MaterializedBase { return retval } constructor(value?: LengthMetrics) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = BaselineOffsetStyle.ctor(value) + const ctorPtr : KPointer = BaselineOffsetStyle.ctor_baselineoffsetstyle(value) this.peer = new Finalizable(ctorPtr, BaselineOffsetStyle.getFinalizer()) } } @@ -58,10 +64,3 @@ export class BaselineOffsetStyle implements MaterializedBase { return retval } } -export class BaselineOffsetStyleInternal { - public static fromPtr(ptr: KPointer): BaselineOffsetStyle { - const obj : BaselineOffsetStyle = new BaselineOffsetStyle(undefined) - obj.peer = new Finalizable(ptr, BaselineOffsetStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkBlank.ts b/arkoala-arkts/arkui/src/generated/ArkBlank.ts index 81cda3540c53ed6150b6e654f58b56f6ae7936ba..cd8cc8be4fb5132f4856639ed7b393ee3850ccf2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBlank.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBlank.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBlankPeer } from "./peers/ArkBlankPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { BlankAttribute } from "./ArkBlankInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkBlankComponent extends ArkCommonMethodComponent { getPeer(): ArkBlankPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts index a553a5093aaa6b01cbbff4613c2f1ff0e42f4275..ef54a21e788b10185d19257f786dd032d868763b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBlankInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type BlankInterface = (min?: number | string) => BlankAttribute; export interface BlankAttribute extends CommonMethod { color: ResourceColor; diff --git a/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts index 23a2ed49a8a011f939aedfd7a4e41bf4db36399e..8ca99c39fc2e9fa20d91a999406d9ad2a322de1e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class BounceSymbolEffectInternal { + public static fromPtr(ptr: KPointer): BounceSymbolEffect { + const obj : BounceSymbolEffect = new BounceSymbolEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, BounceSymbolEffect.getFinalizer()) + return obj + } +} export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -44,7 +50,7 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { const direction_NonNull = (direction as EffectDirection) this.setDirection(direction_NonNull) } - static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + static ctor_bouncesymboleffect(scope?: EffectScope, direction?: EffectDirection): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -65,7 +71,7 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope, direction?: EffectDirection) { - const ctorPtr : KPointer = BounceSymbolEffect.ctor(scope, direction) + const ctorPtr : KPointer = BounceSymbolEffect.ctor_bouncesymboleffect(scope, direction) this.peer = new Finalizable(ctorPtr, BounceSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -102,10 +108,3 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._BounceSymbolEffect_setDirection(this.peer!.ptr, (direction.valueOf() as int32)) } } -export class BounceSymbolEffectInternal { - public static fromPtr(ptr: KPointer): BounceSymbolEffect { - const obj : BounceSymbolEffect = new BounceSymbolEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, BounceSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkButton.ts b/arkoala-arkts/arkui/src/generated/ArkButton.ts index 78dc847238689a16a3b0820be6fd41b8656457d3..72930d126d1b7004a8d6bad8fab6a0334388be96 100644 --- a/arkoala-arkts/arkui/src/generated/ArkButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkButton.ts @@ -19,15 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkButtonPeer } from "./peers/ArkButtonPeer" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { ButtonAttribute, ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonOptions } from "./ArkButtonInterfaces" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonAttribute, ButtonOptions } from "./ArkButtonInterfaces" /** @memo:stable */ export class ArkButtonComponent extends ArkCommonMethodComponent { getPeer(): ArkButtonPeer { @@ -38,16 +56,16 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { if (this.checkPriority("setButtonOptions")) { const label_type = runtimeType(label) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == label_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.UNDEFINED == label_type) && (RuntimeType.UNDEFINED == options_type)) { this.getPeer()?.setButtonOptions0Attribute() return this } - if ((TypeChecker.isButtonOptions(label, false, false, false, false, false)) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((TypeChecker.isButtonOptions(label, false, false, false, false, false)) && (RuntimeType.UNDEFINED == options_type)) { const options_casted = label as (ButtonOptions) this.getPeer()?.setButtonOptions1Attribute(options_casted) return this } - if (((((RuntimeType.STRING == label_type))) || (((RuntimeType.OBJECT == label_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.STRING == label_type) || (RuntimeType.OBJECT == label_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const label_casted = label as (ResourceStr) const options_casted = options as (ButtonOptions | undefined) this.getPeer()?.setButtonOptions2Attribute(label_casted, options_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts index ffb36b82b9cc3c2c5cebc51b40e44f86db475325..99b999ce21f38295b639a794683eb1218f7e89de 100644 --- a/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkButtonInterfaces.ts @@ -19,10 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { ResourceStr, Font, ResourceColor, Length } from "./ArkUnitsInterfaces" -import { TextOverflow, TextHeightAdaptivePolicy, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { ResourceStr, Font, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { TextOverflow, TextHeightAdaptivePolicy, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, FontStyle } from "./ArkEnumsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ButtonType { CAPSULE = 0, Capsule = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendar.ts b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts index 2349affe221525ea7a331b2e3965d06fd8b97d06..d1ae7360e8261206dc7032196b1492f904bf5a92 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendar.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCalendarPeer } from "./peers/ArkCalendarPeer" import { UseEventsProperties } from "./use_properties" diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts index 6f56f43adc8cbfaa451b23c5f053b7e46c5dac78..7a44ce9154b1388a416008ca20da9453871cc8e1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarControllerMaterialized.ts @@ -18,24 +18,30 @@ import { Literal_Number_day_month_year } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CalendarControllerInternal { + public static fromPtr(ptr: KPointer): CalendarController { + const obj : CalendarController = new CalendarController() + obj.peer = new Finalizable(ptr, CalendarController.getFinalizer()) + return obj + } +} export class CalendarController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_calendarcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._CalendarController_ctor() return retval } constructor() { - const ctorPtr : KPointer = CalendarController.ctor() + const ctorPtr : KPointer = CalendarController.ctor_calendarcontroller() this.peer = new Finalizable(ctorPtr, CalendarController.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,10 +71,3 @@ export class CalendarController implements MaterializedBase { return retval } } -export class CalendarControllerInternal { - public static fromPtr(ptr: KPointer): CalendarController { - const obj : CalendarController = new CalendarController() - obj.peer = new Finalizable(ptr, CalendarController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts index de783d7ec1693d0565c003f35b2e49c4b9dfdda7..cab7e2e1fe7c4cbf2588e75e955eb6a56f4ce09d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPicker.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCalendarPickerPeer } from "./peers/ArkCalendarPickerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PickerTextStyle } from "./ArkCommonInterfaces" -import { CalendarPickerAttribute, CalendarAlign, CalendarOptions } from "./ArkCalendarPickerInterfaces" -import { Callback_Date_Void } from "./SyntheticDeclarations" -import { Offset } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions } from "./ArkCalendarPickerInterfaces" /** @memo:stable */ export class ArkCalendarPickerComponent extends ArkCommonMethodComponent { getPeer(): ArkCalendarPickerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts index 70f501a1a76defd24f0dbee4f4edbbc418628f74..1cb0a0f2867dc813a6513d9f0ef8e22c496347ed 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts @@ -18,19 +18,25 @@ import { CalendarDialogOptions } from "./ArkCalendarPickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CalendarPickerDialogInternal { + public static fromPtr(ptr: KPointer): CalendarPickerDialog { + const obj : CalendarPickerDialog = new CalendarPickerDialog() + obj.peer = new Finalizable(ptr, CalendarPickerDialog.getFinalizer()) + return obj + } +} export class CalendarPickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_calendarpickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._CalendarPickerDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class CalendarPickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = CalendarPickerDialog.ctor() + const ctorPtr : KPointer = CalendarPickerDialog.ctor_calendarpickerdialog() this.peer = new Finalizable(ctorPtr, CalendarPickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class CalendarPickerDialog implements MaterializedBase { thisSerializer.release() } } -export class CalendarPickerDialogInternal { - public static fromPtr(ptr: KPointer): CalendarPickerDialog { - const obj : CalendarPickerDialog = new CalendarPickerDialog() - obj.peer = new Finalizable(ptr, CalendarPickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts index 2ce075885003a62d0ba0b08ba225b2a935b5b18f..7d6acca4b2ebeaa310d6e7a64ad7985560c511a2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCalendarPickerInterfaces.ts @@ -20,9 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod, PickerTextStyle, BlurStyle, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./ArkCommonInterfaces" -import { Callback_Date_Void } from "./SyntheticDeclarations" -import { Offset, VoidCallback, ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum CalendarAlign { START = 0, CENTER = 1, diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts index eb36d283768ec11db00a3e1634a08819cd4c2a2d..67f58a1a19123dc4d74fe728de89bdde41f959c9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvas.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvas.ts @@ -19,16 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCanvasPeer } from "./peers/ArkCanvasPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { CanvasAttribute } from "./ArkCanvasInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" +import { CanvasAttribute } from "./ArkCanvasInterfaces" import { ImageAIOptions } from "./ArkImageCommonInterfaces" /** @memo:stable */ export class ArkCanvasComponent extends ArkCommonMethodComponent { @@ -40,13 +60,13 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { if (this.checkPriority("setCanvasOptions")) { const context_type = runtimeType(context) const imageAIOptions_type = runtimeType(imageAIOptions) - if (((((RuntimeType.OBJECT) == (context_type)) && (TypeChecker.isCanvasRenderingContext2D(context, false, false, false))) || (((RuntimeType.OBJECT) == (context_type)) && (TypeChecker.isDrawingRenderingContext(context, false, false)))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (context_type)) && (TypeChecker.isCanvasRenderingContext2D(context, false, false, false))) || (((RuntimeType.OBJECT) == (context_type)) && (TypeChecker.isDrawingRenderingContext(context, false, false)))) && (RuntimeType.OBJECT == imageAIOptions_type)) { const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext) const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) this.getPeer()?.setCanvasOptions1Attribute(context_casted, imageAIOptions_casted) return this } - if ((((RuntimeType.OBJECT == context_type)) || ((RuntimeType.OBJECT == context_type)) || ((RuntimeType.UNDEFINED == context_type))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((RuntimeType.OBJECT == context_type) || (RuntimeType.OBJECT == context_type) || (RuntimeType.UNDEFINED == context_type)) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext | undefined) this.getPeer()?.setCanvasOptions0Attribute(context_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts index 786d0b06b4c2acb6990fd39d73f14babf566a386..8458f479632a94c8db8ce21c52c0fccbe73aa42f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasGradientMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CanvasGradientInternal { + public static fromPtr(ptr: KPointer): CanvasGradient { + const obj : CanvasGradient = new CanvasGradient() + obj.peer = new Finalizable(ptr, CanvasGradient.getFinalizer()) + return obj + } +} export class CanvasGradient implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvasgradient(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasGradient_ctor() return retval } constructor() { - const ctorPtr : KPointer = CanvasGradient.ctor() + const ctorPtr : KPointer = CanvasGradient.ctor_canvasgradient() this.peer = new Finalizable(ctorPtr, CanvasGradient.getFinalizer()) } static getFinalizer(): KPointer { @@ -50,10 +56,3 @@ export class CanvasGradient implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasGradient_addColorStop(this.peer!.ptr, offset, color) } } -export class CanvasGradientInternal { - public static fromPtr(ptr: KPointer): CanvasGradient { - const obj : CanvasGradient = new CanvasGradient() - obj.peer = new Finalizable(ptr, CanvasGradient.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts index 0201ba956a99326c2b38a0a1ca653fc390e6bbc3..7c19741100feb31a3a2b67d2382b5b095200e9db 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasInterfaces.ts @@ -22,8 +22,28 @@ import { NodeAttach, remember } from "@koalaui/runtime" import { CanvasRenderingContext2D } from "./ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./ArkDrawingRenderingContextMaterialized" import { ImageAIOptions } from "./ArkImageCommonInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type CanvasFillRule = string; export type CanvasLineCap = string; export type CanvasLineJoin = string; diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts index 7c0260f97c6f2a29de36115bda332d253b3ba0e4..f01c1760e086b4229a1e48073fda4916e62739f1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasPathMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CanvasPathInternal { + public static fromPtr(ptr: KPointer): CanvasPath { + const obj : CanvasPath = new CanvasPath() + obj.peer = new Finalizable(ptr, CanvasPath.getFinalizer()) + return obj + } +} export class CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvaspath(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasPath_ctor() return retval } constructor() { - const ctorPtr : KPointer = CanvasPath.ctor() + const ctorPtr : KPointer = CanvasPath.ctor_canvaspath() this.peer = new Finalizable(ctorPtr, CanvasPath.getFinalizer()) } static getFinalizer(): KPointer { @@ -159,10 +165,3 @@ export class CanvasPath implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasPath_rect(this.peer!.ptr, x, y, w, h) } } -export class CanvasPathInternal { - public static fromPtr(ptr: KPointer): CanvasPath { - const obj : CanvasPath = new CanvasPath() - obj.peer = new Finalizable(ptr, CanvasPath.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts index 87e3a24bfddd8e376c4814f502bf5a841451d462..1aa9db9d59c99e761ab2c24422cc84a694c80735 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasPatternMaterialized.ts @@ -18,12 +18,11 @@ import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface CanvasPattern { setTransform(transform: Matrix2D): void @@ -33,12 +32,12 @@ export class CanvasPatternInternal implements MaterializedBase,CanvasPattern { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvaspattern(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasPattern_ctor() return retval } constructor() { - const ctorPtr : KPointer = CanvasPatternInternal.ctor() + const ctorPtr : KPointer = CanvasPatternInternal.ctor_canvaspattern() this.peer = new Finalizable(ctorPtr, CanvasPatternInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts index 44c5b72f97b9a7aa25711de7ad4a946739ee60f2..b655b3171f108b2be525f76e285de9cd43e703fb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRendererMaterialized.ts @@ -26,13 +26,19 @@ import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CanvasRendererInternal { + public static fromPtr(ptr: KPointer): CanvasRenderer { + const obj : CanvasRenderer = new CanvasRenderer() + obj.peer = new Finalizable(ptr, CanvasRenderer.getFinalizer()) + return obj + } +} export class CanvasRenderer extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -158,13 +164,13 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { set textBaseline(textBaseline: CanvasTextBaseline) { this.setTextBaseline(textBaseline) } - static ctor(): KPointer { + static ctor_canvasrenderer(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = CanvasRenderer.ctor() + const ctorPtr : KPointer = CanvasRenderer.ctor_canvasrenderer() this.peer = new Finalizable(ctorPtr, CanvasRenderer.getFinalizer()) } static getFinalizer(): KPointer { @@ -180,14 +186,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const dy_type = runtimeType(dy) const dw_type = runtimeType(dw) const dh_type = runtimeType(dh) - if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (((RuntimeType.UNDEFINED == sw_type))) && (((RuntimeType.UNDEFINED == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (RuntimeType.UNDEFINED == sw_type) && (RuntimeType.UNDEFINED == sh_type) && (RuntimeType.UNDEFINED == dx_type) && (RuntimeType.UNDEFINED == dy_type) && (RuntimeType.UNDEFINED == dw_type) && (RuntimeType.UNDEFINED == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const dx_casted = sx as (number) const dy_casted = sy as (number) this.drawImage0_serialize(image_casted, dx_casted, dy_casted) return } - if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type) && (RuntimeType.UNDEFINED == dx_type) && (RuntimeType.UNDEFINED == dy_type) && (RuntimeType.UNDEFINED == dw_type) && (RuntimeType.UNDEFINED == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const dx_casted = sx as (number) const dy_casted = sy as (number) @@ -196,7 +202,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this.drawImage1_serialize(image_casted, dx_casted, dy_casted, dw_casted, dh_casted) return } - if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.NUMBER == dx_type))) && (((RuntimeType.NUMBER == dy_type))) && (((RuntimeType.NUMBER == dw_type))) && (((RuntimeType.NUMBER == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isImageBitmap(image, false, false))) || (((RuntimeType.OBJECT) == (image_type)) && (TypeChecker.isPixelMap(image, false, false)))) && (RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type) && (RuntimeType.NUMBER == dx_type) && (RuntimeType.NUMBER == dy_type) && (RuntimeType.NUMBER == dw_type) && (RuntimeType.NUMBER == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const sx_casted = sx as (number) const sy_casted = sy as (number) @@ -218,12 +224,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public clip(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { const path_type = runtimeType(path) const fillRule_type = runtimeType(fillRule) - if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if (((RuntimeType.STRING == path_type) || (RuntimeType.UNDEFINED == path_type)) && (RuntimeType.UNDEFINED == fillRule_type)) { const fillRule_casted = path as (CanvasFillRule | undefined) this.clip0_serialize(fillRule_casted) return } - if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((RuntimeType.OBJECT == path_type) && ((RuntimeType.STRING == fillRule_type) || (RuntimeType.UNDEFINED == fillRule_type))) { const path_casted = path as (Path2D) const fillRule_casted = fillRule as (CanvasFillRule | undefined) this.clip1_serialize(path_casted, fillRule_casted) @@ -234,12 +240,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public fill(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { const path_type = runtimeType(path) const fillRule_type = runtimeType(fillRule) - if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if (((RuntimeType.STRING == path_type) || (RuntimeType.UNDEFINED == path_type)) && (RuntimeType.UNDEFINED == fillRule_type)) { const fillRule_casted = path as (CanvasFillRule | undefined) this.fill0_serialize(fillRule_casted) return } - if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((RuntimeType.OBJECT == path_type) && ((RuntimeType.STRING == fillRule_type) || (RuntimeType.UNDEFINED == fillRule_type))) { const path_casted = path as (Path2D) const fillRule_casted = fillRule as (CanvasFillRule | undefined) this.fill1_serialize(path_casted, fillRule_casted) @@ -249,11 +255,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } public stroke(path?: Path2D): void { const path_type = runtimeType(path) - if ((((RuntimeType.UNDEFINED == path_type)))) { + if (RuntimeType.UNDEFINED == path_type) { this.stroke0_serialize() return } - if ((((RuntimeType.OBJECT == path_type)))) { + if (RuntimeType.OBJECT == path_type) { const path_casted = path as (Path2D) this.stroke1_serialize(path_casted) return @@ -290,11 +296,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public createImageData(sw: ImageData | number, sh?: number): ImageData { const sw_type = runtimeType(sw) const sh_type = runtimeType(sh) - if ((((RuntimeType.OBJECT == sw_type))) && (((RuntimeType.UNDEFINED == sh_type)))) { + if ((RuntimeType.OBJECT == sw_type) && (RuntimeType.UNDEFINED == sh_type)) { const imagedata_casted = sw as (ImageData) return this.createImageData1_serialize(imagedata_casted) } - if ((((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type)))) { + if ((RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type)) { const sw_casted = sw as (number) const sh_casted = sh as (number) return this.createImageData0_serialize(sw_casted, sh_casted) @@ -323,14 +329,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const dirtyY_type = runtimeType(dirtyY) const dirtyWidth_type = runtimeType(dirtyWidth) const dirtyHeight_type = runtimeType(dirtyHeight) - if (((((RuntimeType.NUMBER == dx_type))) || (((RuntimeType.STRING == dx_type)))) && ((((RuntimeType.NUMBER == dy_type))) || (((RuntimeType.STRING == dy_type)))) && (((RuntimeType.UNDEFINED == dirtyX_type))) && (((RuntimeType.UNDEFINED == dirtyY_type))) && (((RuntimeType.UNDEFINED == dirtyWidth_type))) && (((RuntimeType.UNDEFINED == dirtyHeight_type)))) { + if (((RuntimeType.NUMBER == dx_type) || (RuntimeType.STRING == dx_type)) && ((RuntimeType.NUMBER == dy_type) || (RuntimeType.STRING == dy_type)) && (RuntimeType.UNDEFINED == dirtyX_type) && (RuntimeType.UNDEFINED == dirtyY_type) && (RuntimeType.UNDEFINED == dirtyWidth_type) && (RuntimeType.UNDEFINED == dirtyHeight_type)) { const imagedata_casted = imagedata as (ImageData) const dx_casted = dx as (number | string) const dy_casted = dy as (number | string) this.putImageData0_serialize(imagedata_casted, dx_casted, dy_casted) return } - if (((((RuntimeType.NUMBER == dx_type))) || (((RuntimeType.STRING == dx_type)))) && ((((RuntimeType.NUMBER == dy_type))) || (((RuntimeType.STRING == dy_type)))) && (((RuntimeType.NUMBER == dirtyX_type)) || ((RuntimeType.STRING == dirtyX_type))) && (((RuntimeType.NUMBER == dirtyY_type)) || ((RuntimeType.STRING == dirtyY_type))) && (((RuntimeType.NUMBER == dirtyWidth_type)) || ((RuntimeType.STRING == dirtyWidth_type))) && (((RuntimeType.NUMBER == dirtyHeight_type)) || ((RuntimeType.STRING == dirtyHeight_type)))) { + if (((RuntimeType.NUMBER == dx_type) || (RuntimeType.STRING == dx_type)) && ((RuntimeType.NUMBER == dy_type) || (RuntimeType.STRING == dy_type)) && ((RuntimeType.NUMBER == dirtyX_type) || (RuntimeType.STRING == dirtyX_type)) && ((RuntimeType.NUMBER == dirtyY_type) || (RuntimeType.STRING == dirtyY_type)) && ((RuntimeType.NUMBER == dirtyWidth_type) || (RuntimeType.STRING == dirtyWidth_type)) && ((RuntimeType.NUMBER == dirtyHeight_type) || (RuntimeType.STRING == dirtyHeight_type))) { const imagedata_casted = imagedata as (ImageData) const dx_casted = dx as (number | string) const dy_casted = dy as (number | string) @@ -428,12 +434,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const d_type = runtimeType(d) const e_type = runtimeType(e) const f_type = runtimeType(f) - if ((((RuntimeType.OBJECT == a_type)) || ((RuntimeType.UNDEFINED == a_type))) && (((RuntimeType.UNDEFINED == b_type))) && (((RuntimeType.UNDEFINED == c_type))) && (((RuntimeType.UNDEFINED == d_type))) && (((RuntimeType.UNDEFINED == e_type))) && (((RuntimeType.UNDEFINED == f_type)))) { + if (((RuntimeType.OBJECT == a_type) || (RuntimeType.UNDEFINED == a_type)) && (RuntimeType.UNDEFINED == b_type) && (RuntimeType.UNDEFINED == c_type) && (RuntimeType.UNDEFINED == d_type) && (RuntimeType.UNDEFINED == e_type) && (RuntimeType.UNDEFINED == f_type)) { const transform_casted = a as (Matrix2D | undefined) this.setTransform1_serialize(transform_casted) return } - if ((((RuntimeType.NUMBER == a_type))) && (((RuntimeType.NUMBER == b_type))) && (((RuntimeType.NUMBER == c_type))) && (((RuntimeType.NUMBER == d_type))) && (((RuntimeType.NUMBER == e_type))) && (((RuntimeType.NUMBER == f_type)))) { + if ((RuntimeType.NUMBER == a_type) && (RuntimeType.NUMBER == b_type) && (RuntimeType.NUMBER == c_type) && (RuntimeType.NUMBER == d_type) && (RuntimeType.NUMBER == e_type) && (RuntimeType.NUMBER == f_type)) { const a_casted = a as (number) const b_casted = b as (number) const c_casted = c as (number) @@ -800,24 +806,24 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { thisSerializer.writeImageData(imagedata) let dx_type : int32 = RuntimeType.UNDEFINED dx_type = runtimeType(dx) - if (((RuntimeType.NUMBER == dx_type))) { + if (RuntimeType.NUMBER == dx_type) { thisSerializer.writeInt8(0 as int32) const dx_0 = dx as number thisSerializer.writeNumber(dx_0) } - else if (((RuntimeType.STRING == dx_type))) { + else if (RuntimeType.STRING == dx_type) { thisSerializer.writeInt8(1 as int32) const dx_1 = dx as string thisSerializer.writeString(dx_1) } let dy_type : int32 = RuntimeType.UNDEFINED dy_type = runtimeType(dy) - if (((RuntimeType.NUMBER == dy_type))) { + if (RuntimeType.NUMBER == dy_type) { thisSerializer.writeInt8(0 as int32) const dy_0 = dy as number thisSerializer.writeNumber(dy_0) } - else if (((RuntimeType.STRING == dy_type))) { + else if (RuntimeType.STRING == dy_type) { thisSerializer.writeInt8(1 as int32) const dy_1 = dy as string thisSerializer.writeString(dy_1) @@ -830,72 +836,72 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { thisSerializer.writeImageData(imagedata) let dx_type : int32 = RuntimeType.UNDEFINED dx_type = runtimeType(dx) - if (((RuntimeType.NUMBER == dx_type))) { + if (RuntimeType.NUMBER == dx_type) { thisSerializer.writeInt8(0 as int32) const dx_0 = dx as number thisSerializer.writeNumber(dx_0) } - else if (((RuntimeType.STRING == dx_type))) { + else if (RuntimeType.STRING == dx_type) { thisSerializer.writeInt8(1 as int32) const dx_1 = dx as string thisSerializer.writeString(dx_1) } let dy_type : int32 = RuntimeType.UNDEFINED dy_type = runtimeType(dy) - if (((RuntimeType.NUMBER == dy_type))) { + if (RuntimeType.NUMBER == dy_type) { thisSerializer.writeInt8(0 as int32) const dy_0 = dy as number thisSerializer.writeNumber(dy_0) } - else if (((RuntimeType.STRING == dy_type))) { + else if (RuntimeType.STRING == dy_type) { thisSerializer.writeInt8(1 as int32) const dy_1 = dy as string thisSerializer.writeString(dy_1) } let dirtyX_type : int32 = RuntimeType.UNDEFINED dirtyX_type = runtimeType(dirtyX) - if (((RuntimeType.NUMBER == dirtyX_type))) { + if (RuntimeType.NUMBER == dirtyX_type) { thisSerializer.writeInt8(0 as int32) const dirtyX_0 = dirtyX as number thisSerializer.writeNumber(dirtyX_0) } - else if (((RuntimeType.STRING == dirtyX_type))) { + else if (RuntimeType.STRING == dirtyX_type) { thisSerializer.writeInt8(1 as int32) const dirtyX_1 = dirtyX as string thisSerializer.writeString(dirtyX_1) } let dirtyY_type : int32 = RuntimeType.UNDEFINED dirtyY_type = runtimeType(dirtyY) - if (((RuntimeType.NUMBER == dirtyY_type))) { + if (RuntimeType.NUMBER == dirtyY_type) { thisSerializer.writeInt8(0 as int32) const dirtyY_0 = dirtyY as number thisSerializer.writeNumber(dirtyY_0) } - else if (((RuntimeType.STRING == dirtyY_type))) { + else if (RuntimeType.STRING == dirtyY_type) { thisSerializer.writeInt8(1 as int32) const dirtyY_1 = dirtyY as string thisSerializer.writeString(dirtyY_1) } let dirtyWidth_type : int32 = RuntimeType.UNDEFINED dirtyWidth_type = runtimeType(dirtyWidth) - if (((RuntimeType.NUMBER == dirtyWidth_type))) { + if (RuntimeType.NUMBER == dirtyWidth_type) { thisSerializer.writeInt8(0 as int32) const dirtyWidth_0 = dirtyWidth as number thisSerializer.writeNumber(dirtyWidth_0) } - else if (((RuntimeType.STRING == dirtyWidth_type))) { + else if (RuntimeType.STRING == dirtyWidth_type) { thisSerializer.writeInt8(1 as int32) const dirtyWidth_1 = dirtyWidth as string thisSerializer.writeString(dirtyWidth_1) } let dirtyHeight_type : int32 = RuntimeType.UNDEFINED dirtyHeight_type = runtimeType(dirtyHeight) - if (((RuntimeType.NUMBER == dirtyHeight_type))) { + if (RuntimeType.NUMBER == dirtyHeight_type) { thisSerializer.writeInt8(0 as int32) const dirtyHeight_0 = dirtyHeight as number thisSerializer.writeNumber(dirtyHeight_0) } - else if (((RuntimeType.STRING == dirtyHeight_type))) { + else if (RuntimeType.STRING == dirtyHeight_type) { thisSerializer.writeInt8(1 as int32) const dirtyHeight_1 = dirtyHeight as string thisSerializer.writeString(dirtyHeight_1) @@ -946,7 +952,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } private measureText_serialize(text: string): TextMetrics { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_measureText(this.peer!.ptr, text) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readTextMetrics() } private strokeText_serialize(text: string, x: number, y: number, maxWidth?: number): void { const thisSerializer : Serializer = Serializer.hold() @@ -1039,12 +1045,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let fillStyle_type : int32 = RuntimeType.UNDEFINED fillStyle_type = runtimeType(fillStyle) - if (((RuntimeType.STRING == fillStyle_type))) { + if (RuntimeType.STRING == fillStyle_type) { thisSerializer.writeInt8(0 as int32) const fillStyle_0 = fillStyle as string thisSerializer.writeString(fillStyle_0) } - else if (((RuntimeType.NUMBER == fillStyle_type))) { + else if (RuntimeType.NUMBER == fillStyle_type) { thisSerializer.writeInt8(1 as int32) const fillStyle_1 = fillStyle as number thisSerializer.writeNumber(fillStyle_1) @@ -1054,7 +1060,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const fillStyle_2 = fillStyle as CanvasGradient thisSerializer.writeCanvasGradient(fillStyle_2) } - else if (((RuntimeType.OBJECT == fillStyle_type))) { + else if (RuntimeType.OBJECT == fillStyle_type) { thisSerializer.writeInt8(3 as int32) const fillStyle_3 = fillStyle as CanvasPattern thisSerializer.writeCanvasPattern(fillStyle_3) @@ -1066,12 +1072,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let strokeStyle_type : int32 = RuntimeType.UNDEFINED strokeStyle_type = runtimeType(strokeStyle) - if (((RuntimeType.STRING == strokeStyle_type))) { + if (RuntimeType.STRING == strokeStyle_type) { thisSerializer.writeInt8(0 as int32) const strokeStyle_0 = strokeStyle as string thisSerializer.writeString(strokeStyle_0) } - else if (((RuntimeType.NUMBER == strokeStyle_type))) { + else if (RuntimeType.NUMBER == strokeStyle_type) { thisSerializer.writeInt8(1 as int32) const strokeStyle_1 = strokeStyle as number thisSerializer.writeNumber(strokeStyle_1) @@ -1081,7 +1087,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const strokeStyle_2 = strokeStyle as CanvasGradient thisSerializer.writeCanvasGradient(strokeStyle_2) } - else if (((RuntimeType.OBJECT == strokeStyle_type))) { + else if (RuntimeType.OBJECT == strokeStyle_type) { thisSerializer.writeInt8(3 as int32) const strokeStyle_3 = strokeStyle as CanvasPattern thisSerializer.writeCanvasPattern(strokeStyle_3) @@ -1202,10 +1208,3 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasRenderer_setTextBaseline(this.peer!.ptr, textBaseline) } } -export class CanvasRendererInternal { - public static fromPtr(ptr: KPointer): CanvasRenderer { - const obj : CanvasRenderer = new CanvasRenderer() - obj.peer = new Finalizable(ptr, CanvasRenderer.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index efbd855c9b675689df81a5a0c0a13b8145220e59..f0ac3d5aeb4d1a6665a37308eb8a617d42e3fa26 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -17,19 +17,34 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./ArkCanvasInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { FrameNode, FrameNodeInternal } from "./ArkFrameNodeMaterialized" import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CanvasRenderingContext2DInternal { + public static fromPtr(ptr: KPointer): CanvasRenderingContext2D { + const obj : CanvasRenderingContext2D = new CanvasRenderingContext2D(undefined) + obj.peer = new Finalizable(ptr, CanvasRenderingContext2D.getFinalizer()) + return obj + } +} export class CanvasRenderingContext2D extends CanvasRenderer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -44,7 +59,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material get canvas(): FrameNode { throw new Error("Not implemented") } - static ctor(settings?: RenderingContextSettings): KPointer { + static ctor_canvasrenderingcontext2d(settings?: RenderingContextSettings): KPointer { const thisSerializer : Serializer = Serializer.hold() let settings_type : int32 = RuntimeType.UNDEFINED settings_type = runtimeType(settings) @@ -59,15 +74,15 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material } constructor(settings?: RenderingContextSettings) { super() - const ctorPtr : KPointer = CanvasRenderingContext2D.ctor(settings) + const ctorPtr : KPointer = CanvasRenderingContext2D.ctor_canvasrenderingcontext2d(settings) this.peer = new Finalizable(ctorPtr, CanvasRenderingContext2D.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasRenderingContext2D_getFinalizer() } - public toDataURL(type?: string, quality?: number): string { + public toDataURL(type?: string, quality?: float32): string { const type_casted = type as (string | undefined) - const quality_casted = quality as (number | undefined) + const quality_casted = quality as (float32 | undefined) return this.toDataURL_serialize(type_casted, quality_casted) } public startImageAnalyzer(config: ImageAnalyzerConfig): Promise { @@ -110,7 +125,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material off(type: string, callback_: (() => void)): void { throw new Error("TBD") } - private toDataURL_serialize(type?: string, quality?: number): string { + private toDataURL_serialize(type?: string, quality?: float32): string { const thisSerializer : Serializer = Serializer.hold() let type_type : int32 = RuntimeType.UNDEFINED type_type = runtimeType(type) @@ -124,7 +139,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material thisSerializer.writeInt8(quality_type as int32) if ((RuntimeType.UNDEFINED) != (quality_type)) { const quality_value = quality! - thisSerializer.writeNumber(quality_value) + thisSerializer.writeFloat32(quality_value) } const retval = ArkUIGeneratedNativeModule._CanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -186,10 +201,3 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material return retval } } -export class CanvasRenderingContext2DInternal { - public static fromPtr(ptr: KPointer): CanvasRenderingContext2D { - const obj : CanvasRenderingContext2D = new CanvasRenderingContext2D(undefined) - obj.peer = new Finalizable(ptr, CanvasRenderingContext2D.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts index 3b29cb38539a68896db8d359b5ddcc6c0d976a56..35aa47b0163681cadbdaa92720f6a73bfdd5e4b0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckbox.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxPeer } from "./peers/ArkCheckboxPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { CheckboxAttribute, OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions } from "./ArkCheckboxInterfaces" -import { ResourceColor, MarkStyle } from "./ArkUnitsInterfaces" -import { CheckBoxShape } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions, CheckboxAttribute } from "./ArkCheckboxInterfaces" /** @memo:stable */ export class ArkCheckboxComponent extends ArkCommonMethodComponent { getPeer(): ArkCheckboxPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts index bec9759592b521dd5aa3a8dccc12d6d5f930199e..78cca84d6b3ecc1831aa70d9a3ce000e6a668679 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxInterfaces.ts @@ -19,10 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CustomBuilder, CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" -import { ResourceColor, MarkStyle } from "./ArkUnitsInterfaces" -import { CheckBoxShape } from "./ArkEnumsInterfaces" +import { CustomBuilder, CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Callback_Boolean_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface CheckboxOptions { name?: string; group?: string; diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts index 16449792519629f28dac335e2cab1901fae45534..e01a14571de8bbbb9b8a637d5ffe164558a0f1b7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroup.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxGroupPeer } from "./peers/ArkCheckboxgroupPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, CheckboxGroupOptions } from "./ArkCheckboxgroupInterfaces" -import { ResourceColor, MarkStyle } from "./ArkUnitsInterfaces" -import { CheckBoxShape } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnCheckboxGroupChangeCallback, CheckboxGroupOptions, CheckboxGroupAttribute } from "./ArkCheckboxgroupInterfaces" /** @memo:stable */ export class ArkCheckboxGroupComponent extends ArkCommonMethodComponent { getPeer(): ArkCheckboxGroupPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts index 88c4a5192b9c2df152edfb895436ad732fd85beb..4020f5ebd4fddedac8fbde8851e62940da193819 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCheckboxgroupInterfaces.ts @@ -19,10 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor, MarkStyle } from "./ArkUnitsInterfaces" -import { CheckBoxShape } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum SelectStatus { ALL = 0, All = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts index bd5c468a61fb946711dfa24333d3069f08290202..194f8423c6825a633e0c28892027571ee0f4bf91 100644 --- a/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts @@ -17,13 +17,19 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ChildrenMainSizeInternal { + public static fromPtr(ptr: KPointer): ChildrenMainSize { + const obj : ChildrenMainSize = new ChildrenMainSize(undefined) + obj.peer = new Finalizable(ptr, ChildrenMainSize.getFinalizer()) + return obj + } +} export class ChildrenMainSize implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -35,14 +41,14 @@ export class ChildrenMainSize implements MaterializedBase { set childDefaultSize(childDefaultSize: number) { this.setChildDefaultSize(childDefaultSize) } - static ctor(childDefaultSize: number): KPointer { + static ctor_childrenmainsize(childDefaultSize: number): KPointer { const retval = ArkUIGeneratedNativeModule._ChildrenMainSize_ctor(childDefaultSize) return retval } constructor(childDefaultSize?: number) { - if (((childDefaultSize) !== (undefined))) + if ((childDefaultSize) !== (undefined)) { - const ctorPtr : KPointer = ChildrenMainSize.ctor(childDefaultSize) + const ctorPtr : KPointer = ChildrenMainSize.ctor_childrenmainsize(childDefaultSize) this.peer = new Finalizable(ctorPtr, ChildrenMainSize.getFinalizer()) } } @@ -104,10 +110,3 @@ export class ChildrenMainSize implements MaterializedBase { ArkUIGeneratedNativeModule._ChildrenMainSize_setChildDefaultSize(this.peer!.ptr, childDefaultSize) } } -export class ChildrenMainSizeInternal { - public static fromPtr(ptr: KPointer): ChildrenMainSize { - const obj : ChildrenMainSize = new ChildrenMainSize(undefined) - obj.peer = new Finalizable(ptr, ChildrenMainSize.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCircle.ts b/arkoala-arkts/arkui/src/generated/ArkCircle.ts index 50a3e0a46e4f68298b2e3502628eba262f76718f..62b14679290f2e2cb6435be475bcecbb4994ec30 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCircle.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCircle.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkCirclePeer } from "./peers/ArkCirclePeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { CircleAttribute, CircleOptions } from "./ArkCircleInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { CircleOptions, CircleAttribute } from "./ArkCircleInterfaces" /** @memo:stable */ export class ArkCircleComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkCirclePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts index b58350891ddc1cc6a440da0d4386c626fd8d97e3..079753172af79832964878af7d6e1cecd0a8d833 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCircleInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface CircleOptions { width?: string | number; height?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts index 7d215e899ef6992cacd15eeab61ee3805959219b..0483f4e0d98b7a535df76fcd8478760726e35631 100644 --- a/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkClickEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface ClickEvent { displayX: number @@ -96,13 +96,13 @@ export class ClickEventInternal extends BaseEventInternal implements Materialize set preventDefault(preventDefault: (() => void)) { this.setPreventDefault(preventDefault) } - static ctor(): KPointer { + static ctor_clickevent(): KPointer { const retval = ArkUIGeneratedNativeModule._ClickEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = ClickEventInternal.ctor() + const ctorPtr : KPointer = ClickEventInternal.ctor_clickevent() this.peer = new Finalizable(ctorPtr, ClickEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts index 5f325ce81b26aa4b65f968705a4a45466938b504..475d568d0dbda0c30b7f41738f1b14ee4bc5c73e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ClientAuthenticationHandlerInternal { + public static fromPtr(ptr: KPointer): ClientAuthenticationHandler { + const obj : ClientAuthenticationHandler = new ClientAuthenticationHandler() + obj.peer = new Finalizable(ptr, ClientAuthenticationHandler.getFinalizer()) + return obj + } +} export class ClientAuthenticationHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_clientauthenticationhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ClientAuthenticationHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = ClientAuthenticationHandler.ctor() + const ctorPtr : KPointer = ClientAuthenticationHandler.ctor_clientauthenticationhandler() this.peer = new Finalizable(ctorPtr, ClientAuthenticationHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -43,12 +49,12 @@ export class ClientAuthenticationHandler implements MaterializedBase { public confirm(priKeyFile: string, certChainFile?: string): void { const priKeyFile_type = runtimeType(priKeyFile) const certChainFile_type = runtimeType(certChainFile) - if ((((RuntimeType.UNDEFINED == certChainFile_type)))) { + if (RuntimeType.UNDEFINED == certChainFile_type) { const authUri_casted = priKeyFile as (string) this.confirm1_serialize(authUri_casted) return } - if ((((RuntimeType.STRING == certChainFile_type)))) { + if (RuntimeType.STRING == certChainFile_type) { const priKeyFile_casted = priKeyFile as (string) const certChainFile_casted = certChainFile as (string) this.confirm0_serialize(priKeyFile_casted, certChainFile_casted) @@ -77,10 +83,3 @@ export class ClientAuthenticationHandler implements MaterializedBase { ArkUIGeneratedNativeModule._ClientAuthenticationHandler_ignore(this.peer!.ptr) } } -export class ClientAuthenticationHandlerInternal { - public static fromPtr(ptr: KPointer): ClientAuthenticationHandler { - const obj : ClientAuthenticationHandler = new ClientAuthenticationHandler() - obj.peer = new Finalizable(ptr, ClientAuthenticationHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts index 04dcbd8d80ba5a9c522cfabdf25d0014b3afa912..c25f4a5776b912e36690570b5da7deae298f65be 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColorFilterMaterialized.ts @@ -17,19 +17,25 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ColorFilterInternal { + public static fromPtr(ptr: KPointer): ColorFilter { + const obj : ColorFilter = new ColorFilter(undefined) + obj.peer = new Finalizable(ptr, ColorFilter.getFinalizer()) + return obj + } +} export class ColorFilter implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: Array): KPointer { + static ctor_colorfilter(value: Array): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(value.length as int32) for (let i = 0; i < value.length; i++) { @@ -41,9 +47,9 @@ export class ColorFilter implements MaterializedBase { return retval } constructor(value?: Array) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = ColorFilter.ctor(value) + const ctorPtr : KPointer = ColorFilter.ctor_colorfilter(value) this.peer = new Finalizable(ctorPtr, ColorFilter.getFinalizer()) } } @@ -51,10 +57,3 @@ export class ColorFilter implements MaterializedBase { return ArkUIGeneratedNativeModule._ColorFilter_getFinalizer() } } -export class ColorFilterInternal { - public static fromPtr(ptr: KPointer): ColorFilter { - const obj : ColorFilter = new ColorFilter(undefined) - obj.peer = new Finalizable(ptr, ColorFilter.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkColumn.ts b/arkoala-arkts/arkui/src/generated/ArkColumn.ts index 2a4b23551eeb69889c3f9d8e061153ae54995701..9da1c512342f4a11c4083c53ec389152c8050e4b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumn.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumn.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnPeer } from "./peers/ArkColumnPeer" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { ColumnAttribute, ColumnOptions } from "./ArkColumnInterfaces" -import { HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ColumnOptions, ColumnAttribute } from "./ArkColumnInterfaces" /** @memo:stable */ export class ArkColumnComponent extends ArkCommonMethodComponent { getPeer(): ArkColumnPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts index a857a62fb3f8d3a9a054f28fbe1838194638b8ad..9d2959b228c2c6e0757b1769fda904b5573e4d89 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumnInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface ColumnOptions { space?: string | number; } diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts index 878b1d633224f0227bae4102f74a777fb40a5869..d271375bbd8e68a65ec1c8b9f5c0a3a0dc590569 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumnSplit.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnSplitPeer } from "./peers/ArkColumnSplitPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ColumnSplitAttribute, ColumnSplitDividerStyle } from "./ArkColumnSplitInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ColumnSplitDividerStyle, ColumnSplitAttribute } from "./ArkColumnSplitInterfaces" /** @memo:stable */ export class ArkColumnSplitComponent extends ArkCommonMethodComponent { getPeer(): ArkColumnSplitPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts index 42b5759d54f5dc9c9693c705667e8549ca9a2451..90eff891bd57dc6e94ae17551f25d71e8a65b6cb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkColumnSplitInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Dimension } from "./ArkUnitsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { Dimension, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type ColumnSplitInterface = () => ColumnSplitAttribute; export interface ColumnSplitDividerStyle { startMargin?: Dimension; diff --git a/arkoala-arkts/arkui/src/generated/ArkCommon.ts b/arkoala-arkts/arkui/src/generated/ArkCommon.ts index 82cb77118e0e03803fb45c6ed0bb40063f987b1a..d6a8052b102af11fe2e82d8db42a89a38f0fb007 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommon.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodPeer, ArkCommonShapeMethodPeer, ArkCommonPeer, ArkScrollableCommonMethodPeer } from "./peers/ArkCommonPeer" import { UseEventsProperties } from "./use_properties" @@ -407,12 +407,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("onClick")) { const event_type = runtimeType(event) const distanceThreshold_type = runtimeType(distanceThreshold) - if ((((RuntimeType.UNDEFINED == distanceThreshold_type)))) { + if (RuntimeType.UNDEFINED == distanceThreshold_type) { const value_casted = event as (((event: ClickEvent) => void)) this.getPeer()?.onClick0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER == distanceThreshold_type)))) { + if (RuntimeType.NUMBER == distanceThreshold_type) { const event_casted = event as (((event: ClickEvent) => void)) const distanceThreshold_casted = distanceThreshold as (number) this.getPeer()?.onClick1Attribute(event_casted, distanceThreshold_casted) @@ -571,12 +571,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("transition")) { const effect_type = runtimeType(effect) const onFinish_type = runtimeType(onFinish) - if (((TypeChecker.isTransitionOptions(effect, false, false, false, false, false)) || (((RuntimeType.OBJECT) == (effect_type)) && (TypeChecker.isTransitionEffect(effect)))) && (((RuntimeType.UNDEFINED == onFinish_type)))) { + if (((TypeChecker.isTransitionOptions(effect, false, false, false, false, false)) || (((RuntimeType.OBJECT) == (effect_type)) && (TypeChecker.isTransitionEffect(effect)))) && (RuntimeType.UNDEFINED == onFinish_type)) { const value_casted = effect as (TransitionOptions | TransitionEffect) this.getPeer()?.transition0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (effect_type)) && (TypeChecker.isTransitionEffect(effect))) && (((RuntimeType.FUNCTION == onFinish_type)) || ((RuntimeType.UNDEFINED == onFinish_type)))) { + if ((((RuntimeType.OBJECT) == (effect_type)) && (TypeChecker.isTransitionEffect(effect))) && ((RuntimeType.FUNCTION == onFinish_type) || (RuntimeType.UNDEFINED == onFinish_type))) { const effect_casted = effect as (TransitionEffect) const onFinish_casted = onFinish as (TransitionFinishCallback | undefined) this.getPeer()?.transition1Attribute(effect_casted, onFinish_casted) @@ -681,12 +681,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("useEffect")) { const useEffect_type = runtimeType(useEffect) const effectType_type = runtimeType(effectType) - if ((((RuntimeType.UNDEFINED == effectType_type)))) { + if (RuntimeType.UNDEFINED == effectType_type) { const value_casted = useEffect as (boolean) this.getPeer()?.useEffect0Attribute(value_casted) return this } - if ((((TypeChecker.isEffectType(effectType))))) { + if (TypeChecker.isEffectType(effectType)) { const useEffect_casted = useEffect as (boolean) const effectType_casted = effectType as (EffectType) this.getPeer()?.useEffect1Attribute(useEffect_casted, effectType_casted) @@ -943,12 +943,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public alignRules(value: AlignRuleOption | LocalizedAlignRuleOptions): this { if (this.checkPriority("alignRules")) { const value_type = runtimeType(value) - if ((TypeChecker.isAlignRuleOption(value, false, false, true, true, true, true, true))) { + if (TypeChecker.isAlignRuleOption(value, false, false, true, true, true, true, true)) { const value_casted = value as (AlignRuleOption) this.getPeer()?.alignRules0Attribute(value_casted) return this } - if ((TypeChecker.isLocalizedAlignRuleOptions(value, false, false, true, true, true, true, true))) { + if (TypeChecker.isLocalizedAlignRuleOptions(value, false, false, true, true, true, true, true)) { const value_casted = value as (LocalizedAlignRuleOptions) this.getPeer()?.alignRules1Attribute(value_casted) return this @@ -1114,12 +1114,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public clip(value?: boolean): this { if (this.checkPriority("clip")) { const value_type = runtimeType(value) - if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.BOOLEAN == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (boolean | undefined) this.getPeer()?.clip0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.BOOLEAN == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (boolean | undefined) this.getPeer()?.clip1Attribute(value_casted) return this @@ -1141,12 +1141,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public mask(value?: ProgressMask): this { if (this.checkPriority("mask")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask1Attribute(value_casted) return this @@ -1187,12 +1187,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("geometryTransition")) { const id_type = runtimeType(id) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { const value_casted = id as (string) this.getPeer()?.geometryTransition0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type)) { const id_casted = id as (string) const options_casted = options as (GeometryTransitionOptions | undefined) this.getPeer()?.geometryTransition1Attribute(id_casted, options_casted) @@ -1252,12 +1252,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("accessibilityGroup")) { const isGroup_type = runtimeType(isGroup) const accessibilityOptions_type = runtimeType(accessibilityOptions) - if ((((RuntimeType.UNDEFINED == accessibilityOptions_type)))) { + if (RuntimeType.UNDEFINED == accessibilityOptions_type) { const value_casted = isGroup as (boolean) this.getPeer()?.accessibilityGroup0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == accessibilityOptions_type)))) { + if (RuntimeType.OBJECT == accessibilityOptions_type) { const isGroup_casted = isGroup as (boolean) const accessibilityOptions_casted = accessibilityOptions as (AccessibilityOptions) this.getPeer()?.accessibilityGroup1Attribute(isGroup_casted, accessibilityOptions_casted) @@ -1271,12 +1271,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public accessibilityText(value: string | Resource): this { if (this.checkPriority("accessibilityText")) { const value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type)))) { + if (RuntimeType.STRING == value_type) { const value_casted = value as (string) this.getPeer()?.accessibilityText0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Resource) this.getPeer()?.accessibilityText1Attribute(value_casted) return this @@ -1298,12 +1298,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public accessibilityDescription(value: string | Resource): this { if (this.checkPriority("accessibilityDescription")) { const value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type)))) { + if (RuntimeType.STRING == value_type) { const value_casted = value as (string) this.getPeer()?.accessibilityDescription0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Resource) this.getPeer()?.accessibilityDescription1Attribute(value_casted) return this @@ -1407,12 +1407,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("onGestureRecognizerJudgeBegin")) { const callback__type = runtimeType(callback_) const exposeInnerGesture_type = runtimeType(exposeInnerGesture) - if ((((RuntimeType.UNDEFINED == exposeInnerGesture_type)))) { + if (RuntimeType.UNDEFINED == exposeInnerGesture_type) { const value_casted = callback_ as (GestureRecognizerJudgeBeginCallback) this.getPeer()?.onGestureRecognizerJudgeBegin0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == exposeInnerGesture_type)))) { + if (RuntimeType.BOOLEAN == exposeInnerGesture_type) { const callback__casted = callback_ as (GestureRecognizerJudgeBeginCallback) const exposeInnerGesture_casted = exposeInnerGesture as (boolean) this.getPeer()?.onGestureRecognizerJudgeBegin1Attribute(callback__casted, exposeInnerGesture_casted) @@ -1524,13 +1524,13 @@ export class ArkCommonMethodComponent extends ComponentBase { const id_type = runtimeType(id) const isGroup_type = runtimeType(isGroup) const arrowStepOut_type = runtimeType(arrowStepOut) - if ((((RuntimeType.BOOLEAN == isGroup_type)) || ((RuntimeType.UNDEFINED == isGroup_type))) && (((RuntimeType.UNDEFINED == arrowStepOut_type)))) { + if (((RuntimeType.BOOLEAN == isGroup_type) || (RuntimeType.UNDEFINED == isGroup_type)) && (RuntimeType.UNDEFINED == arrowStepOut_type)) { const id_casted = id as (string) const isGroup_casted = isGroup as (boolean | undefined) this.getPeer()?.focusScopeId0Attribute(id_casted, isGroup_casted) return this } - if ((((RuntimeType.BOOLEAN == isGroup_type)) || ((RuntimeType.UNDEFINED == isGroup_type))) && (((RuntimeType.BOOLEAN == arrowStepOut_type)) || ((RuntimeType.UNDEFINED == arrowStepOut_type)))) { + if (((RuntimeType.BOOLEAN == isGroup_type) || (RuntimeType.UNDEFINED == isGroup_type)) && ((RuntimeType.BOOLEAN == arrowStepOut_type) || (RuntimeType.UNDEFINED == arrowStepOut_type))) { const id_casted = id as (string) const isGroup_casted = isGroup as (boolean | undefined) const arrowStepOut_casted = arrowStepOut as (boolean | undefined) @@ -1695,13 +1695,13 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_type = runtimeType(isShow) const content_type = runtimeType(content) const options_type = runtimeType(options) - if ((((RuntimeType.OBJECT == isShow_type)) || ((RuntimeType.FUNCTION == isShow_type))) && (((RuntimeType.OBJECT == content_type)) || ((RuntimeType.UNDEFINED == content_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.OBJECT == isShow_type) || (RuntimeType.FUNCTION == isShow_type)) && ((RuntimeType.OBJECT == content_type) || (RuntimeType.UNDEFINED == content_type)) && (RuntimeType.UNDEFINED == options_type)) { const content_casted = isShow as (Array | CustomBuilder) const options_casted = content as (MenuOptions | undefined) this.getPeer()?.bindMenu0Attribute(content_casted, options_casted) return this } - if ((((RuntimeType.BOOLEAN == isShow_type))) && ((((RuntimeType.OBJECT == content_type))) || (((RuntimeType.FUNCTION == content_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.BOOLEAN == isShow_type) && ((RuntimeType.OBJECT == content_type) || (RuntimeType.FUNCTION == content_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const isShow_casted = isShow as (boolean) const content_casted = content as (Array | CustomBuilder) const options_casted = options as (MenuOptions | undefined) @@ -1718,14 +1718,14 @@ export class ArkCommonMethodComponent extends ComponentBase { const content_type = runtimeType(content) const responseType_type = runtimeType(responseType) const options_type = runtimeType(options) - if ((((RuntimeType.FUNCTION == content_type))) && (((TypeChecker.isResponseType(responseType)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.FUNCTION == content_type) && (TypeChecker.isResponseType(responseType)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const content_casted = content as (CustomBuilder) const responseType_casted = responseType as (ResponseType) const options_casted = options as (ContextMenuOptions | undefined) this.getPeer()?.bindContextMenu0Attribute(content_casted, responseType_casted, options_casted) return this } - if ((((RuntimeType.BOOLEAN == content_type))) && (((RuntimeType.FUNCTION == responseType_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.BOOLEAN == content_type) && (RuntimeType.FUNCTION == responseType_type) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const isShown_casted = content as (boolean) const content_casted = responseType as (CustomBuilder) const options_casted = options as (ContextMenuOptions | undefined) @@ -1742,14 +1742,14 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_type = runtimeType(isShow) const builder_type = runtimeType(builder) const type_type = runtimeType(type) - if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.OBJECT == type_type)) || ((RuntimeType.OBJECT == type_type)))) { + if (((RuntimeType.BOOLEAN == isShow_type) || (RuntimeType.UNDEFINED == isShow_type)) && ((RuntimeType.OBJECT == type_type) || (RuntimeType.OBJECT == type_type))) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const type_casted = type as (ModalTransition | undefined) this.getPeer()?.bindContentCover0Attribute(isShow_casted, builder_casted, type_casted) return this } - if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.OBJECT == type_type)) || ((RuntimeType.UNDEFINED == type_type)))) { + if (((RuntimeType.BOOLEAN == isShow_type) || (RuntimeType.UNDEFINED == isShow_type)) && ((RuntimeType.OBJECT == type_type) || (RuntimeType.UNDEFINED == type_type))) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const options_casted = type as (ContentCoverOptions | undefined) diff --git a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts index 7a22bdc90eb43de84d831df3f53fbe4890d30b27..752a2d716911d982d0cdb4847e1d6a49dacac498 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCommonInterfaces.ts @@ -21,12 +21,12 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { TextDecorationType, TextDecorationStyle, Curve, PlayMode, SharedTransitionEffectType, HorizontalAlign, VerticalAlign, TransitionType, FontWeight, FontStyle, Color, ColoringStrategy, TouchType, BorderStyle, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, HitTestMode, ImageSize, Alignment, HoverEffect, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType } from "./ArkEnumsInterfaces" import { ResourceColor, Length, Bias, Area, Font, BorderRadiuses, EdgeWidths, LocalizedEdgeWidths, SizeOptions, ResourceStr, Dimension, EdgeColors, LocalizedEdgeColors, EdgeStyles, Position, LocalizedBorderRadiuses, Margin, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, EdgeWidth } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { ICurve } from "./ArkICurveMaterialized" import { Callback_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_Number_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_DismissPopupAction_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { GestureRecognizer } from "./ArkGestureRecognizerMaterialized" import { GestureJudgeResult, GestureInfo, GestureType, GestureMask, GestureHandler, GesturePriority } from "./ArkGestureInterfaces" @@ -63,9 +63,11 @@ export interface ProvideOptions { } export interface AnimatableArithmetic { } +declare function getContext(arg0: Object): Context export interface Context { _ContextStub: string; } +declare function postCardAction(arg0: Object, arg1: Object): void export interface Configuration { colorMode: string; fontScale: number; @@ -81,6 +83,8 @@ export interface ExpectedFrameRateRange { max: number; expected: number; } +declare function dollar_r(arg0: string, arg1: Array): Resource +declare function dollar_rawfile(arg0: string): Resource export enum FinishCallbackType { REMOVED = 0, LOGICALLY = 1 @@ -232,6 +236,14 @@ export interface DragItemInfo { builder?: CustomBuilder; extraInfo?: string; } +declare function animateTo(arg0: AnimateParam, arg1: (() => void)): void +declare function animateToImmediately(arg0: AnimateParam, arg1: (() => void)): void +declare function vp2px(arg0: number): number +declare function px2vp(arg0: number): number +declare function fp2px(arg0: number): number +declare function px2fp(arg0: number): number +declare function lpx2px(arg0: number): number +declare function px2lpx(arg0: number): number export interface EventTarget { area: Area; } diff --git a/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts index 46aabb87fc941e1ba7bdeaa0777d8e086b2e3612..46a72e45fc3b6599d4c145de4144c0f6a225c2f0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts +++ b/arkoala-arkts/arkui/src/generated/ArkComponent3d.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkComponent3DPeer } from "./peers/ArkComponent3dPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Component3DAttribute, SceneOptions } from "./ArkComponent3dInterfaces" -import { ResourceStr, Dimension } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkComponent3DComponent extends ArkCommonMethodComponent { getPeer(): ArkComponent3DPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts index ed35bfcaa9dfd5ae5ee820a0dd513e0ad99c44e9..263fbc8994988b5c351a499346043c4b1dcdd1c3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkComponent3dInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, Dimension } from "./ArkUnitsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface Scene { _SceneStub: string; } diff --git a/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts index eec7f6d43d5be8403d923222d789048223065946..1cddcec89802ac4686f4fed90a4045f681271d88 100644 --- a/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkConsoleMessageMaterialized.ts @@ -18,26 +18,32 @@ import { MessageLevel } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ConsoleMessageInternal { + public static fromPtr(ptr: KPointer): ConsoleMessage { + const obj : ConsoleMessage = new ConsoleMessage(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ConsoleMessage.getFinalizer()) + return obj + } +} export class ConsoleMessage implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { + static ctor_consolemessage(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { const retval = ArkUIGeneratedNativeModule._ConsoleMessage_ctor(message, sourceId, lineNumber, (messageLevel.valueOf() as int32)) return retval } constructor(message?: string, sourceId?: string, lineNumber?: number, messageLevel?: MessageLevel) { if (((message) !== (undefined)) && ((sourceId) !== (undefined)) && ((lineNumber) !== (undefined)) && ((messageLevel) !== (undefined))) { - const ctorPtr : KPointer = ConsoleMessage.ctor(message, sourceId, lineNumber, messageLevel) + const ctorPtr : KPointer = ConsoleMessage.ctor_consolemessage(message, sourceId, lineNumber, messageLevel) this.peer = new Finalizable(ctorPtr, ConsoleMessage.getFinalizer()) } } @@ -73,10 +79,3 @@ export class ConsoleMessage implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ConsoleMessageInternal { - public static fromPtr(ptr: KPointer): ConsoleMessage { - const obj : ConsoleMessage = new ConsoleMessage(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ConsoleMessage.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts index 686686bf5eafe0f9e6da3dbfb6a467d612a8b0a7..b535e7ac492bcbeb71ecc41bd2e764c99fdf2421 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContainerSpan.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkContainerSpanPeer } from "./peers/ArkContainerSpanPeer" import { TextBackgroundStyle } from "./ArkSpanInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts index 6d57b59725f94aa61d38a4bcd1ac5c529d8f1712..7de6a981e184299cc51fd9e133daa89fd25157f4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkContextMenuMaterialized.ts @@ -17,19 +17,25 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ContextMenuInternal { + public static fromPtr(ptr: KPointer): ContextMenu { + const obj : ContextMenu = new ContextMenu() + obj.peer = new Finalizable(ptr, ContextMenu.getFinalizer()) + return obj + } +} export class ContextMenu implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_contextmenu(): KPointer { const retval = ArkUIGeneratedNativeModule._ContextMenu_ctor() return retval } @@ -37,7 +43,7 @@ export class ContextMenu implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = ContextMenu.ctor() + const ctorPtr : KPointer = ContextMenu.ctor_contextmenu() this.peer = new Finalizable(ctorPtr, ContextMenu.getFinalizer()) } static getFinalizer(): KPointer { @@ -51,10 +57,3 @@ export class ContextMenu implements MaterializedBase { return retval } } -export class ContextMenuInternal { - public static fromPtr(ptr: KPointer): ContextMenu { - const obj : ContextMenu = new ContextMenu() - obj.peer = new Finalizable(ptr, ContextMenu.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts index e761e8c4a3b1610ef45ec6a88f6acd195cea9aa4..b1d2f9480dfdc1ed9d19022d41e573517bd6e61b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkControllerHandlerMaterialized.ts @@ -18,24 +18,30 @@ import { WebviewController, WebviewControllerInternal } from "./ArkWebviewControllerMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ControllerHandlerInternal { + public static fromPtr(ptr: KPointer): ControllerHandler { + const obj : ControllerHandler = new ControllerHandler() + obj.peer = new Finalizable(ptr, ControllerHandler.getFinalizer()) + return obj + } +} export class ControllerHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_controllerhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ControllerHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = ControllerHandler.ctor() + const ctorPtr : KPointer = ControllerHandler.ctor_controllerhandler() this.peer = new Finalizable(ctorPtr, ControllerHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,10 +59,3 @@ export class ControllerHandler implements MaterializedBase { thisSerializer.release() } } -export class ControllerHandlerInternal { - public static fromPtr(ptr: KPointer): ControllerHandler { - const obj : ControllerHandler = new ControllerHandler() - obj.peer = new Finalizable(ptr, ControllerHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCounter.ts b/arkoala-arkts/arkui/src/generated/ArkCounter.ts index ec93cb82385b9d33ae145d53dfa427bfecd42beb..ce7348c911db2e8c5487308b51ddbeea2f8025bf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCounter.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCounter.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCounterPeer } from "./peers/ArkCounterPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { CounterAttribute } from "./ArkCounterInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkCounterComponent extends ArkCommonMethodComponent { getPeer(): ArkCounterPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts index 37f1e0d3523b9a80fe13193dce4084d0f93f99e8..8e28a2f5d6abd93b2f937f3d33ec2ef2403d9889 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCounterInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type CounterInterface = () => CounterAttribute; export interface CounterAttribute extends CommonMethod { onInc: VoidCallback; diff --git a/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts b/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts new file mode 100644 index 0000000000000000000000000000000000000000..79b8920bc84ea4c9e208b531b41d044f39782fc0 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCursorControlNamespace.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { PointerStyle } from "./ArkArkuiCustomInterfaces" +export namespace cursorControl { + export class GlobalScope_cursorControl_common { + public static setCursor(value: PointerStyle): void { + const value_casted = value as (PointerStyle) + GlobalScope_cursorControl_common.setCursor_serialize(value_casted) + return + } + public static restoreDefault(): void { + GlobalScope_cursorControl_common.restoreDefault_serialize() + return + } + private static setCursor_serialize(value: PointerStyle): void { + ArkUIGeneratedNativeModule._GlobalScope_cursorControl_common_setCursor((value.valueOf() as int32)) + } + private static restoreDefault_serialize(): void { + ArkUIGeneratedNativeModule._GlobalScope_cursorControl_common_restoreDefault() + } + } +} +export namespace cursorControl { + export function setCursor(value: PointerStyle): void { + GlobalScope_cursorControl_common.setCursor(value) + } + export function restoreDefault(): void { + GlobalScope_cursorControl_common.restoreDefault() + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomBuilderInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkCustomBuilderInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..1d25b804f26a793e3ba03894afc188fe4cfba55d --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkCustomBuilderInterfaces.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export type CustomNodeBuilder = (parentNode: KPointer) => KPointer; diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts index e578dd70cdc7205365fc37aecd951a0aa32d419b..86165f8515dae5d4984da7a57c37fe46f9718951 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts @@ -18,19 +18,25 @@ import { CustomDialogControllerOptions } from "./ArkCustomDialogControllerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CustomDialogControllerInternal { + public static fromPtr(ptr: KPointer): CustomDialogController { + const obj : CustomDialogController = new CustomDialogController(undefined) + obj.peer = new Finalizable(ptr, CustomDialogController.getFinalizer()) + return obj + } +} export class CustomDialogController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: CustomDialogControllerOptions): KPointer { + static ctor_customdialogcontroller(value: CustomDialogControllerOptions): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeCustomDialogControllerOptions(value) const retval = ArkUIGeneratedNativeModule._CustomDialogController_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -38,9 +44,9 @@ export class CustomDialogController implements MaterializedBase { return retval } constructor(value?: CustomDialogControllerOptions) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = CustomDialogController.ctor(value) + const ctorPtr : KPointer = CustomDialogController.ctor_customdialogcontroller(value) this.peer = new Finalizable(ctorPtr, CustomDialogController.getFinalizer()) } } @@ -62,10 +68,3 @@ export class CustomDialogController implements MaterializedBase { return retval } } -export class CustomDialogControllerInternal { - public static fromPtr(ptr: KPointer): CustomDialogController { - const obj : CustomDialogController = new CustomDialogController(undefined) - obj.peer = new Finalizable(ptr, CustomDialogController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts index 6b5146ad7ecb5df10e64142f88840c1c3afc7959..c98371086fa0f2f25d668ee09c6c5a333862c387 100644 --- a/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkCustomSpanMaterialized.ts @@ -19,24 +19,30 @@ import { CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" import { DrawContext } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class CustomSpanInternal { + public static fromPtr(ptr: KPointer): CustomSpan { + const obj : CustomSpan = new CustomSpan() + obj.peer = new Finalizable(ptr, CustomSpan.getFinalizer()) + return obj + } +} export class CustomSpan implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_customspan(): KPointer { const retval = ArkUIGeneratedNativeModule._CustomSpan_ctor() return retval } constructor() { - const ctorPtr : KPointer = CustomSpan.ctor() + const ctorPtr : KPointer = CustomSpan.ctor_customspan() this.peer = new Finalizable(ctorPtr, CustomSpan.getFinalizer()) } static getFinalizer(): KPointer { @@ -61,7 +67,7 @@ export class CustomSpan implements MaterializedBase { thisSerializer.writeCustomSpanMeasureInfo(measureInfo) const retval = ArkUIGeneratedNativeModule._CustomSpan_onMeasure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readCustomSpanMetrics() } private onDraw_serialize(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { const thisSerializer : Serializer = Serializer.hold() @@ -74,10 +80,3 @@ export class CustomSpan implements MaterializedBase { ArkUIGeneratedNativeModule._CustomSpan_invalidate(this.peer!.ptr) } } -export class CustomSpanInternal { - public static fromPtr(ptr: KPointer): CustomSpan { - const obj : CustomSpan = new CustomSpan() - obj.peer = new Finalizable(ptr, CustomSpan.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts index de3a63874e0d5f9f634e9a28befc8befe31dcfe8..82a27f51cb4b2ceabeba2441cdb433828ab28196 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataPanel.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDataPanelPeer } from "./peers/ArkDataPanelPeer" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions } from "./ArkDataPanelInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelAttribute } from "./ArkDataPanelInterfaces" /** @memo:stable */ export class ArkDataPanelComponent extends ArkCommonMethodComponent { getPeer(): ArkDataPanelPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts index d68028ed54ce3df200713fc11ec4f078eeb8aa58..7ac654ac955e8231bbe423435abb310b0a250dcd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataPanelInterfaces.ts @@ -19,9 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { MultiShadowOptions, CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { MultiShadowOptions, CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum DataPanelType { LINE = 0, Line = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts index b8268eb9561d8a0102b515eef3738d6c35387945..02a6baf7e8d4011d485b3f44fb012382f49b6182 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DataResubmissionHandlerInternal { + public static fromPtr(ptr: KPointer): DataResubmissionHandler { + const obj : DataResubmissionHandler = new DataResubmissionHandler() + obj.peer = new Finalizable(ptr, DataResubmissionHandler.getFinalizer()) + return obj + } +} export class DataResubmissionHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_dataresubmissionhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._DataResubmissionHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = DataResubmissionHandler.ctor() + const ctorPtr : KPointer = DataResubmissionHandler.ctor_dataresubmissionhandler() this.peer = new Finalizable(ctorPtr, DataResubmissionHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class DataResubmissionHandler implements MaterializedBase { ArkUIGeneratedNativeModule._DataResubmissionHandler_cancel(this.peer!.ptr) } } -export class DataResubmissionHandlerInternal { - public static fromPtr(ptr: KPointer): DataResubmissionHandler { - const obj : DataResubmissionHandler = new DataResubmissionHandler() - obj.peer = new Finalizable(ptr, DataResubmissionHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts index 69b30f3cf5d782e84a4c66c278ce53917ddac3b3..6a738fb6ce3f52a6d8487c848f23cb5ba9801ae6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePicker.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDatePickerPeer } from "./peers/ArkDatePickerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PickerTextStyle } from "./ArkCommonInterfaces" -import { DatePickerAttribute, DatePickerResult, DatePickerOptions } from "./ArkDatePickerInterfaces" -import { Callback_DatePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DatePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./ArkDatePickerInterfaces" /** @memo:stable */ export class ArkDatePickerComponent extends ArkCommonMethodComponent { getPeer(): ArkDatePickerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts index 358fc4eb619da68108a176de54c1b248d61e2815..92aab7081173831f322708cbf432da46f4280574 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePickerDialogMaterialized.ts @@ -18,19 +18,25 @@ import { DatePickerDialogOptions } from "./ArkDatePickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DatePickerDialogInternal { + public static fromPtr(ptr: KPointer): DatePickerDialog { + const obj : DatePickerDialog = new DatePickerDialog() + obj.peer = new Finalizable(ptr, DatePickerDialog.getFinalizer()) + return obj + } +} export class DatePickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_datepickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._DatePickerDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class DatePickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = DatePickerDialog.ctor() + const ctorPtr : KPointer = DatePickerDialog.ctor_datepickerdialog() this.peer = new Finalizable(ctorPtr, DatePickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class DatePickerDialog implements MaterializedBase { return retval } } -export class DatePickerDialogInternal { - public static fromPtr(ptr: KPointer): DatePickerDialog { - const obj : DatePickerDialog = new DatePickerDialog() - obj.peer = new Finalizable(ptr, DatePickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts index 12fcd2dd203dd0253bed5da724506a2f1f54328e..9ff226141d41159b37d2922c3f3a6bb07d3e60b1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDatePickerInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./ArkCommonInterfaces" -import { Callback_DatePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" -import { ResourceColor, Offset, VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DatePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DialogAlignment } from "./ArkAlertDialogInterfaces" import { DateTimeOptions } from "./ArkTimePickerInterfaces" export interface DatePickerResult { diff --git a/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts index 90f3e855023c8c80f36875f88e1c1caebf9e775c..7d7e89c8ed1641fefca4df1cd3dbd5e5ed78894b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDecorationStyleMaterialized.ts @@ -21,13 +21,19 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DecorationStyleInternal { + public static fromPtr(ptr: KPointer): DecorationStyle { + const obj : DecorationStyle = new DecorationStyle(undefined) + obj.peer = new Finalizable(ptr, DecorationStyle.getFinalizer()) + return obj + } +} export class DecorationStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -42,7 +48,7 @@ export class DecorationStyle implements MaterializedBase { get style(): TextDecorationStyle | undefined { return this.getStyle() } - static ctor(value: DecorationStyleInterface): KPointer { + static ctor_decorationstyle(value: DecorationStyleInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeDecorationStyleInterface(value) const retval = ArkUIGeneratedNativeModule._DecorationStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -50,9 +56,9 @@ export class DecorationStyle implements MaterializedBase { return retval } constructor(value?: DecorationStyleInterface) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = DecorationStyle.ctor(value) + const ctorPtr : KPointer = DecorationStyle.ctor_decorationstyle(value) this.peer = new Finalizable(ctorPtr, DecorationStyle.getFinalizer()) } } @@ -74,10 +80,3 @@ export class DecorationStyle implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class DecorationStyleInternal { - public static fromPtr(ptr: KPointer): DecorationStyle { - const obj : DecorationStyle = new DecorationStyle(undefined) - obj.peer = new Finalizable(ptr, DecorationStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts b/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts index 1e918765536e13bc3881c22e9ff4246574ce370c..073a337f064e4afb78e13d01dab0fa8e5701e97f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDigitIndicatorBuilder.ts @@ -1,6 +1,6 @@ import { KBoolean, KStringPtr } from "@koalaui/interop" import { Indicator } from "./ArkIndicatorBuilder" -import { ResourceColor, Font, Length } from "./ArkUnitsInterfaces" +import { Length, ResourceColor, Font } from "./ArkUnitsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" export class DigitIndicator { diff --git a/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts index b2a78b8ce8cb2b13abbe2ab97558db7ebf35de04..8cbcc1306bec8a23a2a478af0d36c823ecf1ac61 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DisappearSymbolEffectInternal { + public static fromPtr(ptr: KPointer): DisappearSymbolEffect { + const obj : DisappearSymbolEffect = new DisappearSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, DisappearSymbolEffect.getFinalizer()) + return obj + } +} export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +43,7 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_disappearsymboleffect(scope?: EffectScope): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -51,7 +57,7 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr : KPointer = DisappearSymbolEffect.ctor(scope) + const ctorPtr : KPointer = DisappearSymbolEffect.ctor_disappearsymboleffect(scope) this.peer = new Finalizable(ctorPtr, DisappearSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._DisappearSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) } } -export class DisappearSymbolEffectInternal { - public static fromPtr(ptr: KPointer): DisappearSymbolEffect { - const obj : DisappearSymbolEffect = new DisappearSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, DisappearSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDivider.ts b/arkoala-arkts/arkui/src/generated/ArkDivider.ts index dc283d6d26a31d9fbf9575a6ec699925a5e0e37f..66cabe2e5599cf37e3f4bcd69f32f3d31bc0fcea 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDivider.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDivider.ts @@ -19,14 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDividerPeer } from "./peers/ArkDividerPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DividerAttribute } from "./ArkDividerInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { LineCapStyle } from "./ArkEnumsInterfaces" /** @memo:stable */ export class ArkDividerComponent extends ArkCommonMethodComponent { getPeer(): ArkDividerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts index e562573736fc1711fc743d23ececfbd585bce8ad..b51270f80e409488b7c9d4f42d95857c733abc21 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDividerInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { LineCapStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type DividerInterface = () => DividerAttribute; export interface DividerAttribute extends CommonMethod { vertical: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts index eecb46d6181989e68c617f38e10c7fa687296d50..35ffc72a3f43b35240f2331d89d3a80d340b96af 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDragEventMaterialized.ts @@ -19,12 +19,11 @@ import { DragBehavior, Summary, DragResult, Rectangle } from "./ArkCommonInterfaces" import { UnifiedData, UnifiedDataInternal } from "./ArkUnifiedDataMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface DragEvent { dragBehavior: DragBehavior @@ -63,12 +62,12 @@ export class DragEventInternal implements MaterializedBase,DragEvent { set useCustomDropAnimation(useCustomDropAnimation: boolean) { this.setUseCustomDropAnimation(useCustomDropAnimation) } - static ctor(): KPointer { + static ctor_dragevent(): KPointer { const retval = ArkUIGeneratedNativeModule._DragEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = DragEventInternal.ctor() + const ctorPtr : KPointer = DragEventInternal.ctor_dragevent() this.peer = new Finalizable(ctorPtr, DragEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -179,7 +178,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getSummary_serialize(): Summary { const retval = ArkUIGeneratedNativeModule._DragEvent_getSummary(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readSummary() } private setResult_serialize(dragResult: DragResult): void { ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, (dragResult.valueOf() as int32)) @@ -190,7 +189,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getPreviewRect_serialize(): Rectangle { const retval = ArkUIGeneratedNativeModule._DragEvent_getPreviewRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRectangle() } private getVelocityX_serialize(): number { const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityX(this.peer!.ptr) diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts index 8edf5d3879b7175f643b75fb76a1e538903d89c2..5b4ceb3a86f59ce26c6a5a928aff14ecf077f362 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawModifierMaterialized.ts @@ -18,24 +18,30 @@ import { DrawContext } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DrawModifierInternal { + public static fromPtr(ptr: KPointer): DrawModifier { + const obj : DrawModifier = new DrawModifier() + obj.peer = new Finalizable(ptr, DrawModifier.getFinalizer()) + return obj + } +} export class DrawModifier implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_drawmodifier(): KPointer { const retval = ArkUIGeneratedNativeModule._DrawModifier_ctor() return retval } constructor() { - const ctorPtr : KPointer = DrawModifier.ctor() + const ctorPtr : KPointer = DrawModifier.ctor_drawmodifier() this.peer = new Finalizable(ctorPtr, DrawModifier.getFinalizer()) } static getFinalizer(): KPointer { @@ -82,10 +88,3 @@ export class DrawModifier implements MaterializedBase { ArkUIGeneratedNativeModule._DrawModifier_invalidate(this.peer!.ptr) } } -export class DrawModifierInternal { - public static fromPtr(ptr: KPointer): DrawModifier { - const obj : DrawModifier = new DrawModifier() - obj.peer = new Finalizable(ptr, DrawModifier.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts index ef12425fa120fa55390106e3fa9f5ba3d8474cc1..9f22ef047485d00696e1d92e6660ec7667f29d1e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawingCanvasMaterialized.ts @@ -18,19 +18,25 @@ import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DrawingCanvasInternal { + public static fromPtr(ptr: KPointer): DrawingCanvas { + const obj : DrawingCanvas = new DrawingCanvas(undefined) + obj.peer = new Finalizable(ptr, DrawingCanvas.getFinalizer()) + return obj + } +} export class DrawingCanvas implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(pixelmap: PixelMap): KPointer { + static ctor_drawingcanvas(pixelmap: PixelMap): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writePixelMap(pixelmap) const retval = ArkUIGeneratedNativeModule._DrawingCanvas_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -38,9 +44,9 @@ export class DrawingCanvas implements MaterializedBase { return retval } constructor(pixelmap?: PixelMap) { - if (((pixelmap) !== (undefined))) + if ((pixelmap) !== (undefined)) { - const ctorPtr : KPointer = DrawingCanvas.ctor(pixelmap) + const ctorPtr : KPointer = DrawingCanvas.ctor_drawingcanvas(pixelmap) this.peer = new Finalizable(ctorPtr, DrawingCanvas.getFinalizer()) } } @@ -59,10 +65,3 @@ export class DrawingCanvas implements MaterializedBase { ArkUIGeneratedNativeModule._DrawingCanvas_drawRect(this.peer!.ptr, left, top, right, bottom) } } -export class DrawingCanvasInternal { - public static fromPtr(ptr: KPointer): DrawingCanvas { - const obj : DrawingCanvas = new DrawingCanvas(undefined) - obj.peer = new Finalizable(ptr, DrawingCanvas.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts index c12f2fd48dde9713fabb4753a1605be6de5e149a..538b6c6a6af99692341b6caf9ac830e259c6fa54 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts @@ -20,13 +20,19 @@ import { Size } from "./ArkCanvasInterfaces" import { DrawingCanvas, DrawingCanvasInternal } from "./ArkDrawingCanvasMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DrawingRenderingContextInternal { + public static fromPtr(ptr: KPointer): DrawingRenderingContext { + const obj : DrawingRenderingContext = new DrawingRenderingContext(undefined) + obj.peer = new Finalizable(ptr, DrawingRenderingContext.getFinalizer()) + return obj + } +} export class DrawingRenderingContext implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +44,7 @@ export class DrawingRenderingContext implements MaterializedBase { get canvas(): DrawingCanvas { throw new Error("Not implemented") } - static ctor(unit?: LengthMetricsUnit): KPointer { + static ctor_drawingrenderingcontext(unit?: LengthMetricsUnit): KPointer { const thisSerializer : Serializer = Serializer.hold() let unit_type : int32 = RuntimeType.UNDEFINED unit_type = runtimeType(unit) @@ -52,7 +58,7 @@ export class DrawingRenderingContext implements MaterializedBase { return retval } constructor(unit?: LengthMetricsUnit) { - const ctorPtr : KPointer = DrawingRenderingContext.ctor(unit) + const ctorPtr : KPointer = DrawingRenderingContext.ctor_drawingrenderingcontext(unit) this.peer = new Finalizable(ctorPtr, DrawingRenderingContext.getFinalizer()) } static getFinalizer(): KPointer { @@ -66,10 +72,3 @@ export class DrawingRenderingContext implements MaterializedBase { ArkUIGeneratedNativeModule._DrawingRenderingContext_invalidate(this.peer!.ptr) } } -export class DrawingRenderingContextInternal { - public static fromPtr(ptr: KPointer): DrawingRenderingContext { - const obj : DrawingRenderingContext = new DrawingRenderingContext(undefined) - obj.peer = new Finalizable(ptr, DrawingRenderingContext.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts index fc67175412534791cded6d8281d408c67e9b1ffe..b184d7921bae53b3939aad8ccaa05f4af3076c17 100644 --- a/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkDynamicNodeMaterialized.ts @@ -18,24 +18,30 @@ import { OnMoveHandler } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class DynamicNodeInternal { + public static fromPtr(ptr: KPointer): DynamicNode { + const obj : DynamicNode = new DynamicNode() + obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) + return obj + } +} export class DynamicNode implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_dynamicnode(): KPointer { const retval = ArkUIGeneratedNativeModule._DynamicNode_ctor() return retval } constructor() { - const ctorPtr : KPointer = DynamicNode.ctor() + const ctorPtr : KPointer = DynamicNode.ctor_dynamicnode() this.peer = new Finalizable(ctorPtr, DynamicNode.getFinalizer()) } static getFinalizer(): KPointer { @@ -59,10 +65,3 @@ export class DynamicNode implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class DynamicNodeInternal { - public static fromPtr(ptr: KPointer): DynamicNode { - const obj : DynamicNode = new DynamicNode() - obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts index 6f65849b3ac83c199d656b14aaad23f5e181c974..01f0524d2b2fec67a6e3c442afe7efa649ce8a68 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts @@ -18,12 +18,11 @@ import { TextMenuItem, TextRange } from "./ArkTextCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface EditMenuOptions { onCreateMenu(menuItems: Array): Array @@ -34,12 +33,12 @@ export class EditMenuOptionsInternal implements MaterializedBase,EditMenuOptions public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_editmenuoptions(): KPointer { const retval = ArkUIGeneratedNativeModule._EditMenuOptions_ctor() return retval } constructor() { - const ctorPtr : KPointer = EditMenuOptionsInternal.ctor() + const ctorPtr : KPointer = EditMenuOptionsInternal.ctor_editmenuoptions() this.peer = new Finalizable(ctorPtr, EditMenuOptionsInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts index 1f2f53d8943d496c2b1040f9077f4b8fc65b63d1..700cd4ab5f1f63a8020a2f3ba4f5c06857eeaaed 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEffectComponent.ts @@ -19,11 +19,32 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEffectComponentPeer } from "./peers/ArkEffectComponentPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { EffectComponentAttribute } from "./ArkEffectComponentInterfaces" /** @memo:stable */ export class ArkEffectComponentComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts index 95b6b483d49b7bf6e5f07f62590172b60149d4e1..6a53fbb1bddc62d5914333ba8435dd55f65172b4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEffectComponentInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type EffectComponentInterface = () => EffectComponentAttribute; export interface EffectComponentAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkEllipse.ts b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts index 251c01dbb1960263d9ef2d504ed88b8f2b12e273..a1ef7f80db1b9701f5027af34d513dfe805367de 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEllipse.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEllipse.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkEllipsePeer } from "./peers/ArkEllipsePeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { EllipseAttribute, EllipseOptions } from "./ArkEllipseInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { EllipseOptions, EllipseAttribute } from "./ArkEllipseInterfaces" /** @memo:stable */ export class ArkEllipseComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkEllipsePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts index 5eade750ce537553d997b925787d8ad57439f6d6..b073a6a8d2bc4db6cca38742b4de43292b05a585 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEllipseInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface EllipseOptions { width?: string | number; height?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts index fe284ccf450ce12e64299a320c4eda089e4f03fe..5584851a8894ea621732cbccb10ec621a24b8cbf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponent.ts @@ -19,17 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEmbeddedComponentPeer } from "./peers/ArkEmbeddedComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { EmbeddedComponentAttribute, TerminationInfo } from "./ArkEmbeddedComponentInterfaces" -import { Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EmbeddedType } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TerminationInfo, EmbeddedComponentAttribute } from "./ArkEmbeddedComponentInterfaces" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" import { Want } from "./ArkArkuiExternalInterfaces" -import { EmbeddedType } from "./ArkEnumsInterfaces" /** @memo:stable */ export class ArkEmbeddedComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkEmbeddedComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts index 4c70aaf806ca7364b26917e17531c518220c2086..41aa74e6753dd8729d327ca97ee311f373f8ba47 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts @@ -20,9 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Want } from "./ArkArkuiExternalInterfaces" -import { EmbeddedType } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { EmbeddedType, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" export type EmbeddedComponentInterface = (loader: Want, type: EmbeddedType) => EmbeddedComponentAttribute; export interface TerminationInfo { diff --git a/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts index 04169d4ba61f28a560a3a2b2b3c23c535884c422..b88d6735b2969a5aec17b76421196eed5678c366 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventEmulatorMaterialized.ts @@ -18,19 +18,25 @@ import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class EventEmulatorInternal { + public static fromPtr(ptr: KPointer): EventEmulator { + const obj : EventEmulator = new EventEmulator() + obj.peer = new Finalizable(ptr, EventEmulator.getFinalizer()) + return obj + } +} export class EventEmulator implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventemulator(): KPointer { const retval = ArkUIGeneratedNativeModule._EventEmulator_ctor() return retval } @@ -38,7 +44,7 @@ export class EventEmulator implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = EventEmulator.ctor() + const ctorPtr : KPointer = EventEmulator.ctor_eventemulator() this.peer = new Finalizable(ctorPtr, EventEmulator.getFinalizer()) } static getFinalizer(): KPointer { @@ -66,10 +72,3 @@ export class EventEmulator implements MaterializedBase { ArkUIGeneratedNativeModule._EventEmulator_emitTextInputEvent(node, text) } } -export class EventEmulatorInternal { - public static fromPtr(ptr: KPointer): EventEmulator { - const obj : EventEmulator = new EventEmulator() - obj.peer = new Finalizable(ptr, EventEmulator.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts index 7df3a441d7009ae3627a7dec2749d109c0c2e196..e9adc75e403ed4a67f96dfe7b06b29ef6eff2683 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventResultMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class EventResultInternal { + public static fromPtr(ptr: KPointer): EventResult { + const obj : EventResult = new EventResult() + obj.peer = new Finalizable(ptr, EventResult.getFinalizer()) + return obj + } +} export class EventResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventresult(): KPointer { const retval = ArkUIGeneratedNativeModule._EventResult_ctor() return retval } constructor() { - const ctorPtr : KPointer = EventResult.ctor() + const ctorPtr : KPointer = EventResult.ctor_eventresult() this.peer = new Finalizable(ctorPtr, EventResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -49,10 +55,3 @@ export class EventResult implements MaterializedBase { ArkUIGeneratedNativeModule._EventResult_setGestureEventResult(this.peer!.ptr, result ? 1 : 0) } } -export class EventResultInternal { - public static fromPtr(ptr: KPointer): EventResult { - const obj : EventResult = new EventResult() - obj.peer = new Finalizable(ptr, EventResult.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts index 6d36d78ff752403c5560edb3988db00c2c473e97..7572da447c6f825022fccb06d5740e163dbcc7e5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkEventTargetInfoMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class EventTargetInfoInternal { + public static fromPtr(ptr: KPointer): EventTargetInfo { + const obj : EventTargetInfo = new EventTargetInfo() + obj.peer = new Finalizable(ptr, EventTargetInfo.getFinalizer()) + return obj + } +} export class EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventtargetinfo(): KPointer { const retval = ArkUIGeneratedNativeModule._EventTargetInfo_ctor() return retval } constructor() { - const ctorPtr : KPointer = EventTargetInfo.ctor() + const ctorPtr : KPointer = EventTargetInfo.ctor_eventtargetinfo() this.peer = new Finalizable(ctorPtr, EventTargetInfo.getFinalizer()) } static getFinalizer(): KPointer { @@ -48,10 +54,3 @@ export class EventTargetInfo implements MaterializedBase { return retval } } -export class EventTargetInfoInternal { - public static fromPtr(ptr: KPointer): EventTargetInfo { - const obj : EventTargetInfo = new EventTargetInfo() - obj.peer = new Finalizable(ptr, EventTargetInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts index d74707bdd3f66297b962f12f5ca4f8a7c07b0737..563c07dfa1e0b4a7527db54d0e6a38c35b7e91e4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorParamMaterialized.ts @@ -18,24 +18,30 @@ import { FileSelectorMode } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FileSelectorParamInternal { + public static fromPtr(ptr: KPointer): FileSelectorParam { + const obj : FileSelectorParam = new FileSelectorParam() + obj.peer = new Finalizable(ptr, FileSelectorParam.getFinalizer()) + return obj + } +} export class FileSelectorParam implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fileselectorparam(): KPointer { const retval = ArkUIGeneratedNativeModule._FileSelectorParam_ctor() return retval } constructor() { - const ctorPtr : KPointer = FileSelectorParam.ctor() + const ctorPtr : KPointer = FileSelectorParam.ctor_fileselectorparam() this.peer = new Finalizable(ctorPtr, FileSelectorParam.getFinalizer()) } static getFinalizer(): KPointer { @@ -70,10 +76,3 @@ export class FileSelectorParam implements MaterializedBase { return retval } } -export class FileSelectorParamInternal { - public static fromPtr(ptr: KPointer): FileSelectorParam { - const obj : FileSelectorParam = new FileSelectorParam() - obj.peer = new Finalizable(ptr, FileSelectorParam.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts index c175d67d0aea7a0a1a328f3f6d9a8fa5833ad915..26f359b2ffe9a653b10b0bd96a61bc523820f2e4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFileSelectorResultMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FileSelectorResultInternal { + public static fromPtr(ptr: KPointer): FileSelectorResult { + const obj : FileSelectorResult = new FileSelectorResult() + obj.peer = new Finalizable(ptr, FileSelectorResult.getFinalizer()) + return obj + } +} export class FileSelectorResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fileselectorresult(): KPointer { const retval = ArkUIGeneratedNativeModule._FileSelectorResult_ctor() return retval } constructor() { - const ctorPtr : KPointer = FileSelectorResult.ctor() + const ctorPtr : KPointer = FileSelectorResult.ctor_fileselectorresult() this.peer = new Finalizable(ctorPtr, FileSelectorResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +62,3 @@ export class FileSelectorResult implements MaterializedBase { thisSerializer.release() } } -export class FileSelectorResultInternal { - public static fromPtr(ptr: KPointer): FileSelectorResult { - const obj : FileSelectorResult = new FileSelectorResult() - obj.peer = new Finalizable(ptr, FileSelectorResult.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkFlex.ts b/arkoala-arkts/arkui/src/generated/ArkFlex.ts index f2a24bad596b63c92e42e6412cfad1e300d98085..2df7e87769a42b3f9ae4bff85897ab770bd0e46c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlex.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlex.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlexPeer } from "./peers/ArkFlexPeer" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { FlexAttribute, FlexOptions } from "./ArkFlexInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { FlexOptions, FlexAttribute } from "./ArkFlexInterfaces" /** @memo:stable */ export class ArkFlexComponent extends ArkCommonMethodComponent { getPeer(): ArkFlexPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts index 978269db15864a0bb2df43abd39a79715cec2076..1b2e6b3b300785ef8bb3226c100f734767357942 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlexInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { FlexDirection, FlexWrap, FlexAlign, ItemAlign } from "./ArkEnumsInterfaces" +import { FlexDirection, FlexWrap, FlexAlign, ItemAlign, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface FlexOptions { direction?: FlexDirection; wrap?: FlexWrap; diff --git a/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts index 0d6ce4a72851e0f4c6bb4bbf44d9fb53c0e88401..8e1ccaeeb342c076a28bbcd1e5c699ce581f8a2c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlowItem.ts @@ -19,11 +19,32 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlowItemPeer } from "./peers/ArkFlowItemPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { FlowItemAttribute } from "./ArkFlowItemInterfaces" /** @memo:stable */ export class ArkFlowItemComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts index 9054b2acbaedac6bfa73d6407773358206750912..9c12ba11018d01bdc5458c588b77b518b49c60b5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFlowItemInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type FlowItemInterface = () => FlowItemAttribute; export interface FlowItemAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkFocusControlNamespace.ts b/arkoala-arkts/arkui/src/generated/ArkFocusControlNamespace.ts new file mode 100644 index 0000000000000000000000000000000000000000..45982f180a8872734d7c529c2a08437a70e8f934 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkFocusControlNamespace.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export namespace focusControl { + export class GlobalScope_focusControl_common { + public static requestFocus(value: string): boolean { + const value_casted = value as (string) + return GlobalScope_focusControl_common.requestFocus_serialize(value_casted) + } + private static requestFocus_serialize(value: string): boolean { + const retval = ArkUIGeneratedNativeModule._GlobalScope_focusControl_common_requestFocus(value) + return retval + } + } +} +export namespace focusControl { + export function requestFocus(value: string): boolean { + return GlobalScope_focusControl_common.requestFocus(value) + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts index 3d1cab28a9c5134bef2224db057698197e9d9ec7..5163a3ff96f9e8cdc3395715fc86551d8f032a6e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFolderStack.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFolderStackPeer } from "./peers/ArkFolderStackPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { FolderStackAttribute, OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions } from "./ArkFolderStackInterfaces" -import { Alignment } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions, FolderStackAttribute } from "./ArkFolderStackInterfaces" /** @memo:stable */ export class ArkFolderStackComponent extends ArkCommonMethodComponent { getPeer(): ArkFolderStackPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts index d2a1bfe6b8db1f9c2eb75294930da0e39e5d7d8a..e56a15665e0acb1c6e9064e00ba23e4c9e7d16ec 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFolderStackInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { FoldStatus, Alignment, AppRotation } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { FoldStatus, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AppRotation } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface WindowStatusType { _WindowStatusTypeStub: string; } diff --git a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts index 88703eb927b693c2838a5d06d36dd6d83e8e0f39..6d376bfc8c68768945e5f6c2d8ff59a21ff5d980 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormComponent.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormComponentPeer } from "./peers/ArkFormComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { FormComponentAttribute, FormDimension, FormCallbackInfo, FormInfo } from "./ArkFormComponentInterfaces" -import { SizeOptions } from "./ArkUnitsInterfaces" -import { Visibility } from "./ArkEnumsInterfaces" -import { Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { FormDimension, FormCallbackInfo, FormInfo, FormComponentAttribute } from "./ArkFormComponentInterfaces" /** @memo:stable */ export class ArkFormComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkFormComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts index f21e9af6394c13a0bc601e416ccdcd1f3db7a2e4..62c9a15981006bea1322d0156a78ea92fe5b2f72 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormComponentInterfaces.ts @@ -20,10 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Want } from "./ArkArkuiExternalInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SizeOptions } from "./ArkUnitsInterfaces" -import { Visibility } from "./ArkEnumsInterfaces" -import { Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum FormDimension { DIMENSION_1_2 = 0, Dimension_1_2 = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkFormLink.ts b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts index 3e12da4928f8a3c73e4db9f03b1e19c4c55ae3d0..370c7f924de2c5a255c3fccd70c2ab03c6e197c4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormLink.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormLink.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormLinkPeer } from "./peers/ArkFormLinkPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { FormLinkAttribute, FormLinkOptions } from "./ArkFormLinkInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { FormLinkOptions, FormLinkAttribute } from "./ArkFormLinkInterfaces" /** @memo:stable */ export class ArkFormLinkComponent extends ArkCommonMethodComponent { getPeer(): ArkFormLinkPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts index 3b6e3f1bd55ff151be774f7a4a5d99bcd6bff113..76251790b44412f93553650e97ae1701231779e2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFormLinkInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface FormLinkOptions { action: string; moduleName?: string; diff --git a/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts index db81f25e4e29457dc868f29e7587ae5bb4b5ae86..5593a044d105bee75accd7ddd4f18d36c0cf46b2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFrameNodeMaterialized.ts @@ -19,19 +19,25 @@ import { UIContext } from "./ArkCommonInterfaces" import { Position } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FrameNodeInternal { + public static fromPtr(ptr: KPointer): FrameNode { + const obj : FrameNode = new FrameNode(undefined) + obj.peer = new Finalizable(ptr, FrameNode.getFinalizer()) + return obj + } +} export class FrameNode implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(uiContext: UIContext): KPointer { + static ctor_framenode(uiContext: UIContext): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeUIContext(uiContext) const retval = ArkUIGeneratedNativeModule._FrameNode_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -39,9 +45,9 @@ export class FrameNode implements MaterializedBase { return retval } constructor(uiContext?: UIContext) { - if (((uiContext) !== (undefined))) + if ((uiContext) !== (undefined)) { - const ctorPtr : KPointer = FrameNode.ctor(uiContext) + const ctorPtr : KPointer = FrameNode.ctor_framenode(uiContext) this.peer = new Finalizable(ctorPtr, FrameNode.getFinalizer()) } } @@ -164,13 +170,6 @@ export class FrameNode implements MaterializedBase { } private getPositionToWindowWithTransform_serialize(): Position { const retval = ArkUIGeneratedNativeModule._FrameNode_getPositionToWindowWithTransform(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } -} -export class FrameNodeInternal { - public static fromPtr(ptr: KPointer): FrameNode { - const obj : FrameNode = new FrameNode(undefined) - obj.peer = new Finalizable(ptr, FrameNode.getFinalizer()) - return obj + return new Deserializer(retval, retval.length).readPosition() } } diff --git a/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts index db1c43c8dd00d20ac6be2ee9a8efb1d5abe21cfa..4de149bab12655da5282b3731f9cb07716f5c606 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFrictionMotionMaterialized.ts @@ -17,26 +17,32 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FrictionMotionInternal { + public static fromPtr(ptr: KPointer): FrictionMotion { + const obj : FrictionMotion = new FrictionMotion(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, FrictionMotion.getFinalizer()) + return obj + } +} export class FrictionMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(friction: number, position: number, velocity: number): KPointer { + static ctor_frictionmotion(friction: number, position: number, velocity: number): KPointer { const retval = ArkUIGeneratedNativeModule._FrictionMotion_ctor(friction, position, velocity) return retval } constructor(friction?: number, position?: number, velocity?: number) { if (((friction) !== (undefined)) && ((position) !== (undefined)) && ((velocity) !== (undefined))) { - const ctorPtr : KPointer = FrictionMotion.ctor(friction, position, velocity) + const ctorPtr : KPointer = FrictionMotion.ctor_frictionmotion(friction, position, velocity) this.peer = new Finalizable(ctorPtr, FrictionMotion.getFinalizer()) } } @@ -44,10 +50,3 @@ export class FrictionMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._FrictionMotion_getFinalizer() } } -export class FrictionMotionInternal { - public static fromPtr(ptr: KPointer): FrictionMotion { - const obj : FrictionMotion = new FrictionMotion(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, FrictionMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts index 9c82890476ee7d948e4d18eef81d7b484e1627e9..04803eb7d5438d88cf5106fdd4d8583fa2d028fa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class FullScreenExitHandlerInternal { + public static fromPtr(ptr: KPointer): FullScreenExitHandler { + const obj : FullScreenExitHandler = new FullScreenExitHandler() + obj.peer = new Finalizable(ptr, FullScreenExitHandler.getFinalizer()) + return obj + } +} export class FullScreenExitHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fullscreenexithandler(): KPointer { const retval = ArkUIGeneratedNativeModule._FullScreenExitHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = FullScreenExitHandler.ctor() + const ctorPtr : KPointer = FullScreenExitHandler.ctor_fullscreenexithandler() this.peer = new Finalizable(ctorPtr, FullScreenExitHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -48,10 +54,3 @@ export class FullScreenExitHandler implements MaterializedBase { ArkUIGeneratedNativeModule._FullScreenExitHandler_exitFullScreen(this.peer!.ptr) } } -export class FullScreenExitHandlerInternal { - public static fromPtr(ptr: KPointer): FullScreenExitHandler { - const obj : FullScreenExitHandler = new FullScreenExitHandler() - obj.peer = new Finalizable(ptr, FullScreenExitHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGauge.ts b/arkoala-arkts/arkui/src/generated/ArkGauge.ts index 9cf6af95d327d9cd6a8d348f13579e4cf3bf617c..0375758ad5ccc9c4d344c6bc08d16a6337379654 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGauge.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGauge.ts @@ -19,16 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGaugePeer } from "./peers/ArkGaugePeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, CustomBuilder, ContentModifier } from "./ArkCommonInterfaces" -import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions } from "./ArkGaugeInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" -import { Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" +import { GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./ArkGaugeInterfaces" /** @memo:stable */ export class ArkGaugeComponent extends ArkCommonMethodComponent { getPeer(): ArkGaugePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts index 3fa9695a6da87cb5f90c7cb438dd26742a15dc39..ce61077d8bc0a6020ba9c9e3493669b89abf5a62 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGaugeInterfaces.ts @@ -19,10 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { MultiShadowOptions, CommonConfiguration, CommonMethod, CustomBuilder, ContentModifier } from "./ArkCommonInterfaces" -import { ResourceStr, Dimension, ResourceColor, Length } from "./ArkUnitsInterfaces" +import { MultiShadowOptions, CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ResourceStr, Dimension, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" -import { Tuple_Union_ResourceColor_LinearGradient_Number } from "./SyntheticDeclarations" export interface GaugeOptions { value: number; min?: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts index d2a8cd42d0c6afee82eb18f7be6a5ce21ab4bbfa..126c82d4c99dcde9e15be2088dc84cebb79a9002 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface GestureEvent { repeat: boolean @@ -117,13 +117,13 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali set velocity(velocity: number) { this.setVelocity(velocity) } - static ctor(): KPointer { + static ctor_gestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = GestureEventInternal.ctor() + const ctorPtr : KPointer = GestureEventInternal.ctor_gestureevent() this.peer = new Finalizable(ctorPtr, GestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -137,6 +137,9 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali this.setRepeat_serialize(repeat_casted) return } + private getFingerList(): Array { + return this.getFingerList_serialize() + } private setFingerList(fingerList: Array): void { const fingerList_casted = fingerList as (Array) this.setFingerList_serialize(fingerList_casted) @@ -229,6 +232,10 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali private setRepeat_serialize(repeat: boolean): void { ArkUIGeneratedNativeModule._GestureEvent_setRepeat(this.peer!.ptr, repeat ? 1 : 0) } + private getFingerList_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._GestureEvent_getFingerList(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setFingerList_serialize(fingerList: Array): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(fingerList.length as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts index 6218d5abc8109214d5be791a42e7a481a24e2261..14130fa3de80a0cd198a412b7d481f2a4dd42723 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureModifierMaterialized.ts @@ -18,12 +18,11 @@ import { UIGestureEvent } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface GestureModifier { applyGesture(event: UIGestureEvent): void @@ -33,12 +32,12 @@ export class GestureModifierInternal implements MaterializedBase,GestureModifier public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_gesturemodifier(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureModifier_ctor() return retval } constructor() { - const ctorPtr : KPointer = GestureModifierInternal.ctor() + const ctorPtr : KPointer = GestureModifierInternal.ctor_gesturemodifier() this.peer = new Finalizable(ctorPtr, GestureModifierInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts index 0c7ee4457be1014f3be6f6141024c466fdb553ac..0d45fffb7d701b15b374c69f0a49e88fa064af80 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureRecognizerMaterialized.ts @@ -20,24 +20,30 @@ import { GestureControl_GestureType } from "./ArkGestureControlNamespace" import { GestureRecognizerState } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class GestureRecognizerInternal { + public static fromPtr(ptr: KPointer): GestureRecognizer { + const obj : GestureRecognizer = new GestureRecognizer() + obj.peer = new Finalizable(ptr, GestureRecognizer.getFinalizer()) + return obj + } +} export class GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_gesturerecognizer(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureRecognizer_ctor() return retval } constructor() { - const ctorPtr : KPointer = GestureRecognizer.ctor() + const ctorPtr : KPointer = GestureRecognizer.ctor_gesturerecognizer() this.peer = new Finalizable(ctorPtr, GestureRecognizer.getFinalizer()) } static getFinalizer(): KPointer { @@ -101,10 +107,3 @@ export class GestureRecognizer implements MaterializedBase { return retval } } -export class GestureRecognizerInternal { - public static fromPtr(ptr: KPointer): GestureRecognizer { - const obj : GestureRecognizer = new GestureRecognizer() - obj.peer = new Finalizable(ptr, GestureRecognizer.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts index 0f2f82c49ca9246a5eb73820fa82952f4b8b193c..533d16702bda83d0d565f793070451d223e9c624 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGestureStyleMaterialized.ts @@ -18,19 +18,25 @@ import { GestureStyleInterface } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class GestureStyleInternal { + public static fromPtr(ptr: KPointer): GestureStyle { + const obj : GestureStyle = new GestureStyle(undefined) + obj.peer = new Finalizable(ptr, GestureStyle.getFinalizer()) + return obj + } +} export class GestureStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value?: GestureStyleInterface): KPointer { + static ctor_gesturestyle(value?: GestureStyleInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -44,17 +50,10 @@ export class GestureStyle implements MaterializedBase { return retval } constructor(value?: GestureStyleInterface) { - const ctorPtr : KPointer = GestureStyle.ctor(value) + const ctorPtr : KPointer = GestureStyle.ctor_gesturestyle(value) this.peer = new Finalizable(ctorPtr, GestureStyle.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GestureStyle_getFinalizer() } } -export class GestureStyleInternal { - public static fromPtr(ptr: KPointer): GestureStyle { - const obj : GestureStyle = new GestureStyle(undefined) - obj.peer = new Finalizable(ptr, GestureStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts deleted file mode 100644 index 0c82e0a8ea3f0ca25f5cce1726c3114c02c31c9a..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeCommonMaterialized.ts +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { Context, AnimateParam } from "./ArkCommonInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" -import { PointerStyle } from "./ArkArkuiCustomInterfaces" -import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" -import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" -import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" -import { CallbackTransformer } from "./peers/CallbackTransformer" -export class GlobalScope_common { - public static getContext(component?: Object): Context { - const component_casted = component as (Object | undefined) - return GlobalScope_common.getContext_serialize(component_casted) - } - public static postCardAction(component: Object, action: Object): void { - const component_casted = component as (Object) - const action_casted = action as (Object) - GlobalScope_common.postCardAction_serialize(component_casted, action_casted) - return - } - public static dollar_r(value: string, params: Array): Resource { - const value_casted = value as (string) - const params_casted = params as (Array) - return GlobalScope_common.dollar_r_serialize(value_casted, params_casted) - } - public static dollar_rawfile(value: string): Resource { - const value_casted = value as (string) - return GlobalScope_common.dollar_rawfile_serialize(value_casted) - } - public static animateTo(value: AnimateParam, event: (() => void)): void { - const value_casted = value as (AnimateParam) - const event_casted = event as ((() => void)) - GlobalScope_common.animateTo_serialize(value_casted, event_casted) - return - } - public static animateToImmediately(value: AnimateParam, event: (() => void)): void { - const value_casted = value as (AnimateParam) - const event_casted = event as ((() => void)) - GlobalScope_common.animateToImmediately_serialize(value_casted, event_casted) - return - } - public static vp2px(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.vp2px_serialize(value_casted) - } - public static px2vp(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.px2vp_serialize(value_casted) - } - public static fp2px(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.fp2px_serialize(value_casted) - } - public static px2fp(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.px2fp_serialize(value_casted) - } - public static lpx2px(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.lpx2px_serialize(value_casted) - } - public static px2lpx(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.px2lpx_serialize(value_casted) - } - public static requestFocus(value: string): boolean { - const value_casted = value as (string) - return GlobalScope_common.requestFocus_serialize(value_casted) - } - public static setCursor(value: PointerStyle): void { - const value_casted = value as (PointerStyle) - GlobalScope_common.setCursor_serialize(value_casted) - return - } - public static restoreDefault(): void { - GlobalScope_common.restoreDefault_serialize() - return - } - private static getContext_serialize(component?: Object): Context { - const thisSerializer : Serializer = Serializer.hold() - let component_type : int32 = RuntimeType.UNDEFINED - component_type = runtimeType(component) - thisSerializer.writeInt8(component_type as int32) - if ((RuntimeType.UNDEFINED) != (component_type)) { - const component_value = component! - thisSerializer.writeCustomObject("Object", component_value) - } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_getContext(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - throw new Error("Object deserialization is not implemented.") - } - private static postCardAction_serialize(component: Object, action: Object): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeCustomObject("Object", component) - thisSerializer.writeCustomObject("Object", action) - ArkUIGeneratedNativeModule._GlobalScope_common_postCardAction(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static dollar_r_serialize(value: string, params: Array): Resource { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeInt32(params.length as int32) - for (let i = 0; i < params.length; i++) { - const params_element : object = params[i] - thisSerializer.writeCustomObject("Any", params_element) - } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - throw new Error("Object deserialization is not implemented.") - } - private static dollar_rawfile_serialize(value: string): Resource { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_rawfile(value) - throw new Error("Object deserialization is not implemented.") - } - private static animateTo_serialize(value: AnimateParam, event: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeAnimateParam(value) - thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateTo(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static animateToImmediately_serialize(value: AnimateParam, event: (() => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.writeAnimateParam(value) - thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static vp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_vp2px(value) - return retval - } - private static px2vp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2vp(value) - return retval - } - private static fp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_fp2px(value) - return retval - } - private static px2fp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2fp(value) - return retval - } - private static lpx2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_lpx2px(value) - return retval - } - private static px2lpx_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2lpx(value) - return retval - } - private static requestFocus_serialize(value: string): boolean { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_requestFocus(value) - return retval - } - private static setCursor_serialize(value: PointerStyle): void { - ArkUIGeneratedNativeModule._GlobalScope_common_setCursor((value.valueOf() as int32)) - } - private static restoreDefault_serialize(): void { - ArkUIGeneratedNativeModule._GlobalScope_common_restoreDefault() - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts index 657dd6ebcf5e183c50e5444de0c40116d10e1dae..5097366a20c1c99bc59bbc9b3b34f309567a2c9a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts @@ -20,19 +20,25 @@ import { AsyncCallback_image_PixelMap_Void } from "./SyntheticDeclarations" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { SnapshotOptions } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class GlobalScope_ohos_arkui_componentSnapshotInternal { + public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_componentSnapshot { + const obj : GlobalScope_ohos_arkui_componentSnapshot = new GlobalScope_ohos_arkui_componentSnapshot() + obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) + return obj + } +} export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_globalscope_ohos_arkui_componentsnapshot(): KPointer { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_componentSnapshot_ctor() return retval } @@ -40,7 +46,7 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = GlobalScope_ohos_arkui_componentSnapshot.ctor() + const ctorPtr : KPointer = GlobalScope_ohos_arkui_componentSnapshot.ctor_globalscope_ohos_arkui_componentsnapshot() this.peer = new Finalizable(ctorPtr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) } static getFinalizer(): KPointer { @@ -67,10 +73,3 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas thisSerializer.release() } } -export class GlobalScope_ohos_arkui_componentSnapshotInternal { - public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_componentSnapshot { - const obj : GlobalScope_ohos_arkui_componentSnapshot = new GlobalScope_ohos_arkui_componentSnapshot() - obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts index 64a2e2c24a6227aa9bffb6c2b5b659b145826f8a..68bcd9ab55c90cbfead8daeb98366152074c3856 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts @@ -18,19 +18,25 @@ import { PerfMonitorActionType, PerfMonitorSourceType } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class GlobalScope_ohos_arkui_performanceMonitorInternal { + public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_performanceMonitor { + const obj : GlobalScope_ohos_arkui_performanceMonitor = new GlobalScope_ohos_arkui_performanceMonitor() + obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) + return obj + } +} export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_globalscope_ohos_arkui_performancemonitor(): KPointer { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_ctor() return retval } @@ -38,7 +44,7 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = GlobalScope_ohos_arkui_performanceMonitor.ctor() + const ctorPtr : KPointer = GlobalScope_ohos_arkui_performanceMonitor.ctor_globalscope_ohos_arkui_performancemonitor() this.peer = new Finalizable(ctorPtr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) } static getFinalizer(): KPointer { @@ -82,10 +88,3 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime((actionType.valueOf() as int32), (sourceType.valueOf() as int32), time) } } -export class GlobalScope_ohos_arkui_performanceMonitorInternal { - public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_performanceMonitor { - const obj : GlobalScope_ohos_arkui_performanceMonitor = new GlobalScope_ohos_arkui_performanceMonitor() - obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkGrid.ts b/arkoala-arkts/arkui/src/generated/ArkGrid.ts index bbdeedf913a497194beff160f865e119fd0b858c..618b733d1e5d9d80d6fabad14e7c406f9426bde9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGrid.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGrid.ts @@ -19,17 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkGridPeer } from "./peers/ArkGridPeer" import { UseEventsProperties } from "./use_properties" -import { ScrollableCommonMethod, ItemDragInfo, CustomBuilder, NestedScrollOptions, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./ArkGridInterfaces" -import { Length } from "./ArkUnitsInterfaces" -import { Color, BarState, EdgeEffect } from "./ArkEnumsInterfaces" -import { Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" +import { ComputedBarAttribute, GridDirection, GridItemAlignment, GridAttribute, GridLayoutOptions } from "./ArkGridInterfaces" import { ScrollState } from "./ArkListInterfaces" import { Scroller } from "./ArkScrollerMaterialized" /** @memo:stable */ @@ -133,12 +151,12 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkGridCol.ts b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts index 4ab569d074391c65a5d1efd613b116eaf36da54c..a2f8a2ba0fe83581ca7e0c204a4f9b2e2cf2932f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridCol.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridCol.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridColPeer } from "./peers/ArkGridColPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { GridColAttribute, GridColColumnOption, GridColOptions } from "./ArkGridColInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GridColColumnOption, GridColOptions, GridColAttribute } from "./ArkGridColInterfaces" /** @memo:stable */ export class ArkGridColComponent extends ArkCommonMethodComponent { getPeer(): ArkGridColPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts index cf0a1c5556530be9540a9e9277b96588af833f03..c12492db3ede7b271aeaafabba0ee5f881f64375 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridColInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface GridColColumnOption { xs?: number; sm?: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts b/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts index 2b9e743b149795e48f67fa1e59c57fdb982a50de..318003c845b9790ead7e0c6ba41673faab4043c6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridContainer.ts @@ -19,11 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkColumnComponent } from "./ArkColumn" import { ArkGridContainerPeer } from "./peers/ArkGridContainerPeer" import { ColumnAttribute } from "./ArkColumnInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { GridContainerOptions, GridContainerAttribute } from "./ArkGridContainerInterfaces" /** @memo:stable */ export class ArkGridContainerComponent extends ArkColumnComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkGridContainerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridContainerInterfaces.ts index 63ad6ead9d05fbd0a88bc175b23e5bfba662d7ad..78e2c6f06be5c9cbb27f061a1d4f1e0da5b4fb69 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridContainerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridContainerInterfaces.ts @@ -20,6 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ColumnAttribute } from "./ArkColumnInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum SizeType { AUTO = 0, Auto = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts index 0bb162b04ebdbc1de1c12fde3ab96aa55dc134e7..430d9bba3955f7b43d0da5ad109dc08b02beaea5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridInterfaces.ts @@ -19,12 +19,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Tuple_Number_Number, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { Tuple_Number_Number, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" import { Scroller } from "./ArkScrollerMaterialized" -import { ScrollableCommonMethod, ItemDragInfo, CustomBuilder, NestedScrollOptions, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { Length } from "./ArkUnitsInterfaces" -import { Color, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" import { ScrollState } from "./ArkListInterfaces" export interface GridLayoutOptions { regularSize: [ number, number ]; diff --git a/arkoala-arkts/arkui/src/generated/ArkGridItem.ts b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts index 605b9b530837781d99e705eb09f92cf61cbf628e..c0a720cb9c9676338b16e22553fa0c61287760ab 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridItem.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridItemPeer } from "./peers/ArkGridItemPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { GridItemAttribute, GridItemOptions } from "./ArkGridItemInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GridItemOptions, GridItemAttribute } from "./ArkGridItemInterfaces" /** @memo:stable */ export class ArkGridItemComponent extends ArkCommonMethodComponent { getPeer(): ArkGridItemPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts index 51f5741161b4f7a12fd8fcc43094ef36a0709f7d..88a86e3152d1869ea815206b68b1d7841c9a6a38 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridItemInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum GridItemStyle { NONE = 0, PLAIN = 1 diff --git a/arkoala-arkts/arkui/src/generated/ArkGridRow.ts b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts index 78d26006f2ca12708b35eabe209b5f5c8890cf4d..f5e3a92a703b9af9bab0069d800a5fd753fd0fe0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridRow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridRow.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridRowPeer } from "./peers/ArkGridRowPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { GridRowAttribute, GridRowOptions } from "./ArkGridRowInterfaces" -import { Callback_String_Void } from "./SyntheticDeclarations" -import { ItemAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GridRowOptions, GridRowAttribute } from "./ArkGridRowInterfaces" /** @memo:stable */ export class ArkGridRowComponent extends ArkCommonMethodComponent { getPeer(): ArkGridRowPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts index 84c28169fa741357e030267c421c16da40dc131a..3bdd5f42e06ef8a74ccc831f8ebcb27053ec37d8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkGridRowInterfaces.ts @@ -19,10 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Length } from "./ArkUnitsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_String_Void } from "./SyntheticDeclarations" -import { ItemAlign } from "./ArkEnumsInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface GridRowSizeOption { xs?: Length; sm?: Length; diff --git a/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts index 6c90c2b20200a0a6158d872ee1fd2c8434dedb94..6b37bd597288c4b4ef710c6ef2c5e1c75b28daa6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectFillStyle } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class HierarchicalSymbolEffectInternal { + public static fromPtr(ptr: KPointer): HierarchicalSymbolEffect { + const obj : HierarchicalSymbolEffect = new HierarchicalSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, HierarchicalSymbolEffect.getFinalizer()) + return obj + } +} export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +43,7 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { const fillStyle_NonNull = (fillStyle as EffectFillStyle) this.setFillStyle(fillStyle_NonNull) } - static ctor(fillStyle?: EffectFillStyle): KPointer { + static ctor_hierarchicalsymboleffect(fillStyle?: EffectFillStyle): KPointer { const thisSerializer : Serializer = Serializer.hold() let fillStyle_type : int32 = RuntimeType.UNDEFINED fillStyle_type = runtimeType(fillStyle) @@ -51,7 +57,7 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(fillStyle?: EffectFillStyle) { - const ctorPtr : KPointer = HierarchicalSymbolEffect.ctor(fillStyle) + const ctorPtr : KPointer = HierarchicalSymbolEffect.ctor_hierarchicalsymboleffect(fillStyle) this.peer = new Finalizable(ctorPtr, HierarchicalSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_setFillStyle(this.peer!.ptr, (fillStyle.valueOf() as int32)) } } -export class HierarchicalSymbolEffectInternal { - public static fromPtr(ptr: KPointer): HierarchicalSymbolEffect { - const obj : HierarchicalSymbolEffect = new HierarchicalSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, HierarchicalSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts index a8e47ac22c0611b254f5c03eafb62b4b028f9200..13767129df9c99444273d6cfa12a1d5b6e11122c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHoverEventMaterialized.ts @@ -17,14 +17,14 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface HoverEvent { stopPropagation: (() => void) @@ -40,13 +40,13 @@ export class HoverEventInternal extends BaseEventInternal implements Materialize set stopPropagation(stopPropagation: (() => void)) { this.setStopPropagation(stopPropagation) } - static ctor(): KPointer { + static ctor_hoverevent(): KPointer { const retval = ArkUIGeneratedNativeModule._HoverEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = HoverEventInternal.ctor() + const ctorPtr : KPointer = HoverEventInternal.ctor_hoverevent() this.peer = new Finalizable(ctorPtr, HoverEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts index c79016df95f17d61d4a20306782d1c7c9f58dfd0..6a4a0063d9bea2765c49590236f7e1c90ebf67bb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class HttpAuthHandlerInternal { + public static fromPtr(ptr: KPointer): HttpAuthHandler { + const obj : HttpAuthHandler = new HttpAuthHandler() + obj.peer = new Finalizable(ptr, HttpAuthHandler.getFinalizer()) + return obj + } +} export class HttpAuthHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_httpauthhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._HttpAuthHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = HttpAuthHandler.ctor() + const ctorPtr : KPointer = HttpAuthHandler.ctor_httpauthhandler() this.peer = new Finalizable(ctorPtr, HttpAuthHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -64,10 +70,3 @@ export class HttpAuthHandler implements MaterializedBase { return retval } } -export class HttpAuthHandlerInternal { - public static fromPtr(ptr: KPointer): HttpAuthHandler { - const obj : HttpAuthHandler = new HttpAuthHandler() - obj.peer = new Finalizable(ptr, HttpAuthHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts index c0d2ca49c12e01bc01db164dd4b7784c1b3684e1..ca14903ac54041acd782274a8a167e05add993ac 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHyperlink.ts @@ -19,14 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkHyperlinkPeer } from "./peers/ArkHyperlinkPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { HyperlinkAttribute } from "./ArkHyperlinkInterfaces" -import { Color } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { HyperlinkAttribute } from "./ArkHyperlinkInterfaces" /** @memo:stable */ export class ArkHyperlinkComponent extends ArkCommonMethodComponent { getPeer(): ArkHyperlinkPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts index e25dc9e486fb428755836ee96b4cf1b2f6f0eb09..55002ae1a8ad83ae70b408b79ba23478c8e38e29 100644 --- a/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkHyperlinkInterfaces.ts @@ -20,8 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Color } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type HyperlinkInterface = (address: string | Resource, content?: string | Resource) => HyperlinkAttribute; export interface HyperlinkAttribute extends CommonMethod { color: Color | number | string | Resource; diff --git a/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts index 291f2a77baeca05610ac035edcf0f768c3e4dc52..519e7dbccc824d96169cb4d67de18351588c939e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkICurveMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface ICurve { interpolate(fraction: number): number @@ -32,12 +31,12 @@ export class ICurveInternal implements MaterializedBase,ICurve { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_icurve(): KPointer { const retval = ArkUIGeneratedNativeModule._ICurve_ctor() return retval } constructor() { - const ctorPtr : KPointer = ICurveInternal.ctor() + const ctorPtr : KPointer = ICurveInternal.ctor_icurve() this.peer = new Finalizable(ctorPtr, ICurveInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkImage.ts b/arkoala-arkts/arkui/src/generated/ArkImage.ts index ba04bbf6595872b6566e82ca348ba03d9ec1d3ba..84774528b7226d40a3ae053271311123a44779d3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImage.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImage.ts @@ -19,19 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImagePeer } from "./peers/ArkImagePeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResizableOptions, ResolutionQuality, DrawableDescriptor, ImageContent } from "./ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor, ImageAttribute, ImageContent } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceColor, ResourceStr } from "./ArkUnitsInterfaces" -import { ImageFit, ImageRepeat, CopyOptions } from "./ArkEnumsInterfaces" import { ColorFilter } from "./ArkColorFilterMaterialized" -import { Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Void } from "./SyntheticDeclarations" import { ImageAnalyzerConfig, ImageAIOptions } from "./ArkImageCommonInterfaces" /** @memo:stable */ export class ArkImageComponent extends ArkCommonMethodComponent { @@ -43,18 +58,18 @@ export class ArkImageComponent extends ArkCommonMethodComponent { if (this.checkPriority("setImageOptions")) { const src_type = runtimeType(src) const imageAIOptions_type = runtimeType(imageAIOptions) - if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (TypeChecker.isDrawableDescriptor(src, false))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (TypeChecker.isDrawableDescriptor(src, false))) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) this.getPeer()?.setImageOptions0Attribute(src_casted) return this } - if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (TypeChecker.isDrawableDescriptor(src, false))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (TypeChecker.isDrawableDescriptor(src, false))) && (RuntimeType.OBJECT == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) this.getPeer()?.setImageOptions2Attribute(src_casted, imageAIOptions_casted) return this } - if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (TypeChecker.isDrawableDescriptor(src, false)) || (((TypeChecker.isImageContent(src))))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && (TypeChecker.isPixelMap(src, false, false))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (TypeChecker.isDrawableDescriptor(src, false)) || (TypeChecker.isImageContent(src))) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor | ImageContent) this.getPeer()?.setImageOptions1Attribute(src_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts index 9ba90ec57d82dd96cf0ce05c25e3a65838022e82..370b5a232783e8e70fdfca4eb0d87f4c10b7a53b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts @@ -18,24 +18,30 @@ import { ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageAnalyzerControllerInternal { + public static fromPtr(ptr: KPointer): ImageAnalyzerController { + const obj : ImageAnalyzerController = new ImageAnalyzerController() + obj.peer = new Finalizable(ptr, ImageAnalyzerController.getFinalizer()) + return obj + } +} export class ImageAnalyzerController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_imageanalyzercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._ImageAnalyzerController_ctor() return retval } constructor() { - const ctorPtr : KPointer = ImageAnalyzerController.ctor() + const ctorPtr : KPointer = ImageAnalyzerController.ctor_imageanalyzercontroller() this.peer = new Finalizable(ctorPtr, ImageAnalyzerController.getFinalizer()) } static getFinalizer(): KPointer { @@ -49,10 +55,3 @@ export class ImageAnalyzerController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ImageAnalyzerControllerInternal { - public static fromPtr(ptr: KPointer): ImageAnalyzerController { - const obj : ImageAnalyzerController = new ImageAnalyzerController() - obj.peer = new Finalizable(ptr, ImageAnalyzerController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts index 800537920fa3aa9b8d54f84f9e0a78004aabdc62..c0f349b62dd85d4760a5fd842d66d58a4f0bf772 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnimator.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImageAnimatorPeer } from "./peers/ArkImageAnimatorPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ImageAnimatorAttribute, ImageFrameInfo } from "./ArkImageAnimatorInterfaces" -import { AnimationStatus, FillMode } from "./ArkEnumsInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, FillMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ImageFrameInfo, ImageAnimatorAttribute } from "./ArkImageAnimatorInterfaces" /** @memo:stable */ export class ArkImageAnimatorComponent extends ArkCommonMethodComponent { getPeer(): ArkImageAnimatorPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts index 47e957c9ea4fbb616e37661422b597a10c41bac1..fe43664d532e99aaf3f2f86e1215647255a0dcd5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAnimatorInterfaces.ts @@ -21,9 +21,26 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" -import { AnimationStatus, FillMode } from "./ArkEnumsInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, FillMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" export type ImageAnimatorInterface = () => ImageAnimatorAttribute; export interface ImageFrameInfo { src: string | Resource | PixelMap; diff --git a/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts index f9c80cb609c0c5359bf9cc99e072d606a4e9ac31..f90359538750782fbeb6b65962e2a1713c5f9036 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageAttachmentMaterialized.ts @@ -21,13 +21,19 @@ import { SizeOptions } from "./ArkUnitsInterfaces" import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { ImageAttachmentLayoutStyle, ImageAttachmentInterface } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageAttachmentInternal { + public static fromPtr(ptr: KPointer): ImageAttachment { + const obj : ImageAttachment = new ImageAttachment(undefined) + obj.peer = new Finalizable(ptr, ImageAttachment.getFinalizer()) + return obj + } +} export class ImageAttachment implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -48,7 +54,7 @@ export class ImageAttachment implements MaterializedBase { get layoutStyle(): ImageAttachmentLayoutStyle | undefined { throw new Error("Not implemented") } - static ctor(value: ImageAttachmentInterface): KPointer { + static ctor_imageattachment(value: ImageAttachmentInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeImageAttachmentInterface(value) const retval = ArkUIGeneratedNativeModule._ImageAttachment_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -56,9 +62,9 @@ export class ImageAttachment implements MaterializedBase { return retval } constructor(value?: ImageAttachmentInterface) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = ImageAttachment.ctor(value) + const ctorPtr : KPointer = ImageAttachment.ctor_imageattachment(value) this.peer = new Finalizable(ctorPtr, ImageAttachment.getFinalizer()) } } @@ -80,10 +86,3 @@ export class ImageAttachment implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ImageAttachmentInternal { - public static fromPtr(ptr: KPointer): ImageAttachment { - const obj : ImageAttachment = new ImageAttachment(undefined) - obj.peer = new Finalizable(ptr, ImageAttachment.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts index a841afa7c0f95c81ee8edc1ad9269b14e654d174..d9ebdcf7b9ee79205aea060ec82862ce9d06c139 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageBitmapMaterialized.ts @@ -19,13 +19,19 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageBitmapInternal { + public static fromPtr(ptr: KPointer): ImageBitmap { + const obj : ImageBitmap = new ImageBitmap(undefined) + obj.peer = new Finalizable(ptr, ImageBitmap.getFinalizer()) + return obj + } +} export class ImageBitmap implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,14 +43,14 @@ export class ImageBitmap implements MaterializedBase { get width(): number { return this.getWidth() } - static ctor(src: string): KPointer { + static ctor_imagebitmap(src: string): KPointer { const retval = ArkUIGeneratedNativeModule._ImageBitmap_ctor(src) return retval } constructor(src?: string) { - if (((src) !== (undefined))) + if ((src) !== (undefined)) { - const ctorPtr : KPointer = ImageBitmap.ctor(src) + const ctorPtr : KPointer = ImageBitmap.ctor_imagebitmap(src) this.peer = new Finalizable(ctorPtr, ImageBitmap.getFinalizer()) } } @@ -73,10 +79,3 @@ export class ImageBitmap implements MaterializedBase { return retval } } -export class ImageBitmapInternal { - public static fromPtr(ptr: KPointer): ImageBitmap { - const obj : ImageBitmap = new ImageBitmap(undefined) - obj.peer = new Finalizable(ptr, ImageBitmap.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts index 6813a9b88dbccb7b018637173ddab2deb005ae79..b291c8a3f27b7220e992c087360d80fc14748aca 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageDataMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ImageDataInternal { + public static fromPtr(ptr: KPointer): ImageData { + const obj : ImageData = new ImageData(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ImageData.getFinalizer()) + return obj + } +} export class ImageData implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -39,7 +45,7 @@ export class ImageData implements MaterializedBase { get width(): number { return this.getWidth() } - static ctor(width: number, height: number, data?: NativeBuffer): KPointer { + static ctor_imagedata(width: number, height: number, data?: NativeBuffer): KPointer { const thisSerializer : Serializer = Serializer.hold() let data_type : int32 = RuntimeType.UNDEFINED data_type = runtimeType(data) @@ -55,7 +61,7 @@ export class ImageData implements MaterializedBase { constructor(width?: number, height?: number, data?: NativeBuffer) { if (((width) !== (undefined)) && ((height) !== (undefined)) && ((data) !== (undefined))) { - const ctorPtr : KPointer = ImageData.ctor(width, height, data) + const ctorPtr : KPointer = ImageData.ctor_imagedata(width, height, data) this.peer = new Finalizable(ctorPtr, ImageData.getFinalizer()) } } @@ -77,10 +83,3 @@ export class ImageData implements MaterializedBase { return retval } } -export class ImageDataInternal { - public static fromPtr(ptr: KPointer): ImageData { - const obj : ImageData = new ImageData(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ImageData.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts index 2cb64442a532f8d2e698dc68fb6e994248ed5b9e..3c588f46f1a3bf86afd19bee239a7081b0723f27 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageInterfaces.ts @@ -20,13 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceStr, ResourceColor, EdgeWidths } from "./ArkUnitsInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" import { ImageAIOptions, ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { ImageFit, ImageRepeat, CopyOptions } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { ColorFilter } from "./ArkColorFilterMaterialized" -import { Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Void } from "./SyntheticDeclarations" export interface DrawableDescriptor { _DrawableDescriptorStub: string; } diff --git a/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts index c2a248d1fdefce9076ba099b0ad994134e821504..e131a2e64c5bd6b8f51c5500b98a7cdbce201a3d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageSpan.ts @@ -19,18 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkBaseSpanComponent } from "./ArkSpan" import { ArkImageSpanPeer } from "./peers/ArkImageSpanPeer" import { UseEventsProperties } from "./use_properties" -import { BaseSpan } from "./ArkSpanInterfaces" -import { ImageSpanAttribute, ImageCompleteCallback } from "./ArkImageSpanInterfaces" -import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" -import { ColorFilter } from "./ArkColorFilterMaterialized" -import { DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" +import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceStr } from "./ArkUnitsInterfaces" +import { ColorFilter } from "./ArkColorFilterMaterialized" +import { ImageCompleteCallback, ImageSpanAttribute } from "./ArkImageSpanInterfaces" /** @memo:stable */ export class ArkImageSpanComponent extends ArkBaseSpanComponent { getPeer(): ArkImageSpanPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts index e51a7774e32754fc5c7bda037774889628653bc2..538febfefa261d745f72d776339c2eadb3b27ff3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkImageSpanInterfaces.ts @@ -19,12 +19,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr } from "./ArkUnitsInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" -import { BaseSpan } from "./ArkSpanInterfaces" -import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { BaseSpan, TextBackgroundStyle } from "./ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { ColorFilter } from "./ArkColorFilterMaterialized" -import { DrawingColorFilter, ImageErrorCallback } from "./ArkImageInterfaces" export type ImageSpanInterface = (value: ResourceStr | PixelMap) => ImageSpanAttribute; export interface ImageSpanAttribute extends BaseSpan { verticalAlign: ImageSpanAlignment; diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts index 1bae20eb448cfbd841f6d3d75b167f4969142861..f8c641cac143e2a4ec984a815319e0bd40a7a830 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class IndicatorComponentControllerInternal { + public static fromPtr(ptr: KPointer): IndicatorComponentController { + const obj : IndicatorComponentController = new IndicatorComponentController() + obj.peer = new Finalizable(ptr, IndicatorComponentController.getFinalizer()) + return obj + } +} export class IndicatorComponentController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_indicatorcomponentcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._IndicatorComponentController_ctor() return retval } constructor() { - const ctorPtr : KPointer = IndicatorComponentController.ctor() + const ctorPtr : KPointer = IndicatorComponentController.ctor_indicatorcomponentcontroller() this.peer = new Finalizable(ctorPtr, IndicatorComponentController.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class IndicatorComponentController implements MaterializedBase { thisSerializer.release() } } -export class IndicatorComponentControllerInternal { - public static fromPtr(ptr: KPointer): IndicatorComponentController { - const obj : IndicatorComponentController = new IndicatorComponentController() - obj.peer = new Finalizable(ptr, IndicatorComponentController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts index 706f3e6187427a4232d6e927db408dc71f41490e..6e2c89f0becf9e08b67d396c953e7f7fdd5a9c91 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponent.ts @@ -19,17 +19,37 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkIndicatorComponentPeer } from "./peers/ArkIndicatorcomponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { IndicatorComponentAttribute } from "./ArkIndicatorcomponentInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" import { DigitIndicator } from "./ArkDigitIndicatorBuilder" -import { Callback_Number_Void } from "./SyntheticDeclarations" import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" +import { IndicatorComponentAttribute } from "./ArkIndicatorcomponentInterfaces" /** @memo:stable */ export class ArkIndicatorComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkIndicatorComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts index 9b14c1350893aa0d7a335387a185c8cf68911427..89cdc5daf794f058b5966d3234f42340fe0e30f7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts @@ -20,10 +20,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" import { DigitIndicator } from "./ArkDigitIndicatorBuilder" -import { Callback_Number_Void } from "./SyntheticDeclarations" export type IndicatorComponentInterface = (controller?: IndicatorComponentController) => IndicatorComponentAttribute; export interface IndicatorComponentAttribute extends CommonMethod { initialIndex: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..df70cea9b121920dcc85030d0d1249c15fd68dcc --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkInspectorInterfaces.ts @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +declare function getInspectorNodes(): Object +declare function getInspectorNodeById(arg0: number): Object +declare function setAppBgColor(arg0: string): void diff --git a/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts index 426f43fe91e8f77da59f2908aab903e78abf6619..1271886e907d2b1ba71e2a40b6f5c27d26592de3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkIsolatedComponentInterfaces.ts @@ -20,7 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Want } from "./ArkArkuiExternalInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface ErrorCallback { _ErrorCallbackStub: string; } diff --git a/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts index bad3ca31d75276c4fb5713c30c5c49f358ecc47d..ec6de910c7a3efc88f90efabcc9cb556e98cd5f6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkJsGeolocationMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class JsGeolocationInternal { + public static fromPtr(ptr: KPointer): JsGeolocation { + const obj : JsGeolocation = new JsGeolocation() + obj.peer = new Finalizable(ptr, JsGeolocation.getFinalizer()) + return obj + } +} export class JsGeolocation implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_jsgeolocation(): KPointer { const retval = ArkUIGeneratedNativeModule._JsGeolocation_ctor() return retval } constructor() { - const ctorPtr : KPointer = JsGeolocation.ctor() + const ctorPtr : KPointer = JsGeolocation.ctor_jsgeolocation() this.peer = new Finalizable(ctorPtr, JsGeolocation.getFinalizer()) } static getFinalizer(): KPointer { @@ -51,10 +57,3 @@ export class JsGeolocation implements MaterializedBase { ArkUIGeneratedNativeModule._JsGeolocation_invoke(this.peer!.ptr, origin, allow ? 1 : 0, retain ? 1 : 0) } } -export class JsGeolocationInternal { - public static fromPtr(ptr: KPointer): JsGeolocation { - const obj : JsGeolocation = new JsGeolocation() - obj.peer = new Finalizable(ptr, JsGeolocation.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts index 5e1a9f69b11429f4e8ed0777a3467fea75a0f0c7..0d5379cf7cfadeae6e5999786ad7bc44d1285e75 100644 --- a/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkJsResultMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class JsResultInternal { + public static fromPtr(ptr: KPointer): JsResult { + const obj : JsResult = new JsResult() + obj.peer = new Finalizable(ptr, JsResult.getFinalizer()) + return obj + } +} export class JsResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_jsresult(): KPointer { const retval = ArkUIGeneratedNativeModule._JsResult_ctor() return retval } constructor() { - const ctorPtr : KPointer = JsResult.ctor() + const ctorPtr : KPointer = JsResult.ctor_jsresult() this.peer = new Finalizable(ctorPtr, JsResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -63,10 +69,3 @@ export class JsResult implements MaterializedBase { ArkUIGeneratedNativeModule._JsResult_handlePromptConfirm(this.peer!.ptr, result) } } -export class JsResultInternal { - public static fromPtr(ptr: KPointer): JsResult { - const obj : JsResult = new JsResult() - obj.peer = new Finalizable(ptr, JsResult.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts index 0b055cfa2a097e8afc10b5d3e226b50fba2af065..f24dfa8ced7812966a85a5597a6eeb1defd7085e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkKeyEventMaterialized.ts @@ -20,12 +20,11 @@ import { KeyType, KeySource } from "./ArkEnumsInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { IntentionCode } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface KeyEvent { type: KeyType @@ -106,12 +105,12 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { const unicode_NonNull = (unicode as number) this.setUnicode(unicode_NonNull) } - static ctor(): KPointer { + static ctor_keyevent(): KPointer { const retval = ArkUIGeneratedNativeModule._KeyEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = KeyEventInternal.ctor() + const ctorPtr : KPointer = KeyEventInternal.ctor_keyevent() this.peer = new Finalizable(ctorPtr, KeyEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts index 07fd63e5d48ace50dd8cb733fcc9cb13eefc6acf..310e4f07e8c01fdf787e425470ec5fc4eba4c259 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLayoutManagerMaterialized.ts @@ -19,12 +19,11 @@ import { PositionWithAffinity, LineMetrics, TextRange, TextBox } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface LayoutManager { getLineCount(): number @@ -37,12 +36,12 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_layoutmanager(): KPointer { const retval = ArkUIGeneratedNativeModule._LayoutManager_ctor() return retval } constructor() { - const ctorPtr : KPointer = LayoutManagerInternal.ctor() + const ctorPtr : KPointer = LayoutManagerInternal.ctor_layoutmanager() this.peer = new Finalizable(ctorPtr, LayoutManagerInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -72,11 +71,11 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { } private getGlyphPositionAtCoordinate_serialize(x: number, y: number): PositionWithAffinity { const retval = ArkUIGeneratedNativeModule._LayoutManager_getGlyphPositionAtCoordinate(this.peer!.ptr, x, y) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readPositionWithAffinity() } private getLineMetrics_serialize(lineNumber: number): LineMetrics { const retval = ArkUIGeneratedNativeModule._LayoutManager_getLineMetrics(this.peer!.ptr, lineNumber) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readLineMetrics() } private getRectsForRange_serialize(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { const thisSerializer : Serializer = Serializer.hold() diff --git a/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts index ad0a742f99576658a750282e35fd92d0ab971603..8599197ea89129f20200d5b9715ad9e4d385417b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts @@ -18,19 +18,25 @@ import { Callback_RangeUpdate } from "./ArkArkuiCustomInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LazyForEachOpsInternal { + public static fromPtr(ptr: KPointer): LazyForEachOps { + const obj : LazyForEachOps = new LazyForEachOps() + obj.peer = new Finalizable(ptr, LazyForEachOps.getFinalizer()) + return obj + } +} export class LazyForEachOps implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_lazyforeachops(): KPointer { const retval = ArkUIGeneratedNativeModule._LazyForEachOps_ctor() return retval } @@ -38,7 +44,7 @@ export class LazyForEachOps implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = LazyForEachOps.ctor() + const ctorPtr : KPointer = LazyForEachOps.ctor_lazyforeachops() this.peer = new Finalizable(ctorPtr, LazyForEachOps.getFinalizer()) } static getFinalizer(): KPointer { @@ -85,10 +91,3 @@ export class LazyForEachOps implements MaterializedBase { ArkUIGeneratedNativeModule._LazyForEachOps_Prepare(node) } } -export class LazyForEachOpsInternal { - public static fromPtr(ptr: KPointer): LazyForEachOps { - const obj : LazyForEachOps = new LazyForEachOps() - obj.peer = new Finalizable(ptr, LazyForEachOps.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts index 5d2579f6cff1b6bbbd4720e5428250e5f8e60bb8..3f7a9f3c8664ab07e900f8618b0e4ca354baad85 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLengthMetricsMaterialized.ts @@ -19,13 +19,19 @@ import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LengthMetricsInternal { + public static fromPtr(ptr: KPointer): LengthMetrics { + const obj : LengthMetrics = new LengthMetrics() + obj.peer = new Finalizable(ptr, LengthMetrics.getFinalizer()) + return obj + } +} export class LengthMetrics implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -43,7 +49,7 @@ export class LengthMetrics implements MaterializedBase { set value(value: number) { this.setValue(value) } - static ctor(): KPointer { + static ctor_lengthmetrics(): KPointer { const retval = ArkUIGeneratedNativeModule._LengthMetrics_ctor() return retval } @@ -51,7 +57,7 @@ export class LengthMetrics implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = LengthMetrics.ctor() + const ctorPtr : KPointer = LengthMetrics.ctor_lengthmetrics() this.peer = new Finalizable(ctorPtr, LengthMetrics.getFinalizer()) } static getFinalizer(): KPointer { @@ -109,10 +115,3 @@ export class LengthMetrics implements MaterializedBase { ArkUIGeneratedNativeModule._LengthMetrics_setValue(this.peer!.ptr, value) } } -export class LengthMetricsInternal { - public static fromPtr(ptr: KPointer): LengthMetrics { - const obj : LengthMetrics = new LengthMetrics() - obj.peer = new Finalizable(ptr, LengthMetrics.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts index 8208b6b7c754226fb7e9b6d148f6d6c1aca74333..314ea78fa5dd09f3e8300941f6f48e9bbdab7a90 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LetterSpacingStyleInternal { + public static fromPtr(ptr: KPointer): LetterSpacingStyle { + const obj : LetterSpacingStyle = new LetterSpacingStyle(undefined) + obj.peer = new Finalizable(ptr, LetterSpacingStyle.getFinalizer()) + return obj + } +} export class LetterSpacingStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class LetterSpacingStyle implements MaterializedBase { get letterSpacing(): number { return this.getLetterSpacing() } - static ctor(value: LengthMetrics): KPointer { + static ctor_letterspacingstyle(value: LengthMetrics): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(value) const retval = ArkUIGeneratedNativeModule._LetterSpacingStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -41,9 +47,9 @@ export class LetterSpacingStyle implements MaterializedBase { return retval } constructor(value?: LengthMetrics) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = LetterSpacingStyle.ctor(value) + const ctorPtr : KPointer = LetterSpacingStyle.ctor_letterspacingstyle(value) this.peer = new Finalizable(ctorPtr, LetterSpacingStyle.getFinalizer()) } } @@ -58,10 +64,3 @@ export class LetterSpacingStyle implements MaterializedBase { return retval } } -export class LetterSpacingStyleInternal { - public static fromPtr(ptr: KPointer): LetterSpacingStyle { - const obj : LetterSpacingStyle = new LetterSpacingStyle(undefined) - obj.peer = new Finalizable(ptr, LetterSpacingStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLine.ts b/arkoala-arkts/arkui/src/generated/ArkLine.ts index 90acaa160e555d5f1e907835693b272cb12967fb..a19d5becfe6007c0d8767fa57d5deb014201389d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLine.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLine.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkLinePeer } from "./peers/ArkLinePeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { LineAttribute, LineOptions } from "./ArkLineInterfaces" -import { Length } from "./ArkUnitsInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { LineOptions, LineAttribute } from "./ArkLineInterfaces" /** @memo:stable */ export class ArkLineComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkLinePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts index afe1b2a6f34811806151a3d055c4dbce94bab791..bd3d6a21b230b9071fb9a1ea3f73f4d511c5975b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLineHeightStyleMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LineHeightStyleInternal { + public static fromPtr(ptr: KPointer): LineHeightStyle { + const obj : LineHeightStyle = new LineHeightStyle(undefined) + obj.peer = new Finalizable(ptr, LineHeightStyle.getFinalizer()) + return obj + } +} export class LineHeightStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class LineHeightStyle implements MaterializedBase { get lineHeight(): number { return this.getLineHeight() } - static ctor(lineHeight: LengthMetrics): KPointer { + static ctor_lineheightstyle(lineHeight: LengthMetrics): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(lineHeight) const retval = ArkUIGeneratedNativeModule._LineHeightStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -41,9 +47,9 @@ export class LineHeightStyle implements MaterializedBase { return retval } constructor(lineHeight?: LengthMetrics) { - if (((lineHeight) !== (undefined))) + if ((lineHeight) !== (undefined)) { - const ctorPtr : KPointer = LineHeightStyle.ctor(lineHeight) + const ctorPtr : KPointer = LineHeightStyle.ctor_lineheightstyle(lineHeight) this.peer = new Finalizable(ctorPtr, LineHeightStyle.getFinalizer()) } } @@ -58,10 +64,3 @@ export class LineHeightStyle implements MaterializedBase { return retval } } -export class LineHeightStyleInternal { - public static fromPtr(ptr: KPointer): LineHeightStyle { - const obj : LineHeightStyle = new LineHeightStyle(undefined) - obj.peer = new Finalizable(ptr, LineHeightStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts index 908b2009d189bc846191f23ff0544685241f5337..ab76df3d181127b5968a9963393fb8fdc35116c3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLineInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { Length } from "./ArkUnitsInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface LineOptions { width?: string | number; height?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts index d9ee08eb50f583f9b9b31a45b7c78bfd0b76e3ff..e32c2a2cff4fda521d98063e9e278e8393d2f070 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearGradientMaterialized.ts @@ -18,19 +18,25 @@ import { ColorStop } from "./ArkDataPanelInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LinearGradientInternal { + public static fromPtr(ptr: KPointer): LinearGradient { + const obj : LinearGradient = new LinearGradient(undefined) + obj.peer = new Finalizable(ptr, LinearGradient.getFinalizer()) + return obj + } +} export class LinearGradient implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(colorStops: Array): KPointer { + static ctor_lineargradient(colorStops: Array): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(colorStops.length as int32) for (let i = 0; i < colorStops.length; i++) { @@ -42,9 +48,9 @@ export class LinearGradient implements MaterializedBase { return retval } constructor(colorStops?: Array) { - if (((colorStops) !== (undefined))) + if ((colorStops) !== (undefined)) { - const ctorPtr : KPointer = LinearGradient.ctor(colorStops) + const ctorPtr : KPointer = LinearGradient.ctor_lineargradient(colorStops) this.peer = new Finalizable(ctorPtr, LinearGradient.getFinalizer()) } } @@ -52,10 +58,3 @@ export class LinearGradient implements MaterializedBase { return ArkUIGeneratedNativeModule._LinearGradient_getFinalizer() } } -export class LinearGradientInternal { - public static fromPtr(ptr: KPointer): LinearGradient { - const obj : LinearGradient = new LinearGradient(undefined) - obj.peer = new Finalizable(ptr, LinearGradient.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts index 61a4ae87fa7bbe439409d9582e7336b4b06d315a..7d714416a06e41ba7b5d698dde28882c34c2e86e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts @@ -18,24 +18,30 @@ import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class LinearIndicatorControllerInternal { + public static fromPtr(ptr: KPointer): LinearIndicatorController { + const obj : LinearIndicatorController = new LinearIndicatorController() + obj.peer = new Finalizable(ptr, LinearIndicatorController.getFinalizer()) + return obj + } +} export class LinearIndicatorController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_linearindicatorcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._LinearIndicatorController_ctor() return retval } constructor() { - const ctorPtr : KPointer = LinearIndicatorController.ctor() + const ctorPtr : KPointer = LinearIndicatorController.ctor_linearindicatorcontroller() this.peer = new Finalizable(ctorPtr, LinearIndicatorController.getFinalizer()) } static getFinalizer(): KPointer { @@ -82,10 +88,3 @@ export class LinearIndicatorController implements MaterializedBase { ArkUIGeneratedNativeModule._LinearIndicatorController_stop(this.peer!.ptr) } } -export class LinearIndicatorControllerInternal { - public static fromPtr(ptr: KPointer): LinearIndicatorController { - const obj : LinearIndicatorController = new LinearIndicatorController() - obj.peer = new Finalizable(ptr, LinearIndicatorController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts index 89bced58c17c5f930e63de8b7b23283f6fe17b8b..ead33fafbaa72077f7b02ddaf66804c3c997c3f6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearindicator.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLinearIndicatorPeer } from "./peers/ArkLinearindicatorPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { LinearIndicatorAttribute, LinearIndicatorStyle, OnLinearIndicatorChangeCallback } from "./ArkLinearindicatorInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { LinearIndicatorStyle, OnLinearIndicatorChangeCallback, LinearIndicatorAttribute } from "./ArkLinearindicatorInterfaces" import { LinearIndicatorController } from "./ArkLinearIndicatorControllerMaterialized" /** @memo:stable */ export class ArkLinearIndicatorComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts index e7a3c792d4e3c1f5f4e7d82a7720da0df6778260..fee9ee7e0f2c1c7cb31c56167f12c94dc4c0465d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLinearindicatorInterfaces.ts @@ -20,9 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { ColorMetrics } from "./ArkUnitsInterfaces" +import { ColorMetrics, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { LinearIndicatorController } from "./ArkLinearIndicatorControllerMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface LinearIndicatorStartOptions { interval?: number; duration?: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkList.ts b/arkoala-arkts/arkui/src/generated/ArkList.ts index 262d4052594d38d94721d2d74391de4c07942eea..a3a7302ee0dd6db8a5bf3fbde58e9a430ca4b74b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkList.ts +++ b/arkoala-arkts/arkui/src/generated/ArkList.ts @@ -19,18 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkListPeer } from "./peers/ArkListPeer" import { UseEventsProperties } from "./use_properties" -import { ScrollableCommonMethod, NestedScrollOptions, ItemDragInfo, CustomBuilder, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { ListAttribute, ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ScrollState, ListOptions } from "./ArkListInterfaces" -import { Axis, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, LengthConstrain } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" +import { ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ScrollState, ListAttribute, ListOptions } from "./ArkListInterfaces" import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" -import { Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" -import { LengthConstrain, Dimension } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkListComponent extends ArkScrollableCommonMethodComponent { getPeer(): ArkListPeer { @@ -122,12 +140,12 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts index 765a96295851cf560e7d866b3d519e0898c14051..0198264ea85c90aa0ad77323fa9772ae665abe0f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListInterfaces.ts @@ -19,12 +19,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Length, ResourceColor, LengthConstrain, Dimension } from "./ArkUnitsInterfaces" -import { Callback_Void, Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { Length, ResourceColor, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, LengthConstrain } from "./ArkUnitsInterfaces" +import { Callback_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" import { Scroller } from "./ArkScrollerMaterialized" -import { ScrollableCommonMethod, NestedScrollOptions, ItemDragInfo, CustomBuilder, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { Axis, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" export enum ScrollState { IDLE = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkListItem.ts b/arkoala-arkts/arkui/src/generated/ArkListItem.ts index 8e760b8ff26103b5671f1665112a38eb2e99ae73..cc4ffe9fc3accaac24e8fa336b27105334c27f17 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItem.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemPeer } from "./peers/ArkListItemPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ListItemAttribute, Sticky, EditMode, SwipeActionOptions, ListItemOptions } from "./ArkListItemInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { Sticky, EditMode, SwipeActionOptions, ListItemOptions, ListItemAttribute } from "./ArkListItemInterfaces" /** @memo:stable */ export class ArkListItemComponent extends ArkCommonMethodComponent { getPeer(): ArkListItemPeer { @@ -36,12 +56,12 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { public setListItemOptions(value?: ListItemOptions | undefined | string | undefined): this { if (this.checkPriority("setListItemOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ListItemOptions | undefined) this.getPeer()?.setListItemOptions0Attribute(value_casted) return this } - if ((((RuntimeType.STRING == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (string | undefined) this.getPeer()?.setListItemOptions1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts index 1722d32803fcd706f90e5c8c7c231917e7168b39..0c2b98c0421adb23574d45d7767b8a7ad926e2f0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItemGroup.ts @@ -19,14 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemGroupPeer } from "./peers/ArkListItemGroupPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ListItemGroupAttribute, ListItemGroupOptions } from "./ArkListItemGroupInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ListDividerOptions } from "./ArkListInterfaces" import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" +import { ListItemGroupOptions, ListItemGroupAttribute } from "./ArkListItemGroupInterfaces" /** @memo:stable */ export class ArkListItemGroupComponent extends ArkCommonMethodComponent { getPeer(): ArkListItemGroupPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts index 158fde48a9602b7cc4978a3cd080cca7f7d03099..5a29dd42ab623b4be3b349c51d07f2d538059d92 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItemGroupInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CustomBuilder, ComponentContent, CommonMethod } from "./ArkCommonInterfaces" +import { CustomBuilder, ComponentContent, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ListDividerOptions } from "./ArkListInterfaces" import { ChildrenMainSize } from "./ArkChildrenMainSizeMaterialized" export enum ListItemGroupStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts index 2b674547cb30885d16fada674a91b8660e807eb5..c79c059ef98b7607dd4cdde559e9e320a8780716 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListItemInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CustomBuilder, CommonMethod } from "./ArkCommonInterfaces" -import { Length } from "./ArkUnitsInterfaces" -import { Callback_Void, Callback_SwipeActionState_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { Callback_Void, Callback_SwipeActionState_Void, Callback_Number_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum Sticky { NONE = 0, None = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts index 4958d21886e9175fdad5a243c50055dfb9cf34c1..97972459c125df3b39e508c2d13a3681df078894 100644 --- a/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkListScrollerMaterialized.ts @@ -17,29 +17,39 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Scroller, ScrollerInternal } from "./ArkScrollerMaterialized" +import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions } from "./ArkScrollInterfaces" +import { Edge, Axis } from "./ArkEnumsInterfaces" +import { Literal_Boolean_next_Axis_direction } from "./SyntheticDeclarations" +import { Length } from "./ArkUnitsInterfaces" import { RectResult } from "./ArkCommonInterfaces" -import { ScrollAlign } from "./ArkScrollInterfaces" import { CloseSwipeActionOptions, VisibleListContentInfo } from "./ArkListInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ListScrollerInternal { + public static fromPtr(ptr: KPointer): ListScroller { + const obj : ListScroller = new ListScroller() + obj.peer = new Finalizable(ptr, ListScroller.getFinalizer()) + return obj + } +} export class ListScroller extends Scroller implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_listscroller(): KPointer { const retval = ArkUIGeneratedNativeModule._ListScroller_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = ListScroller.ctor() + const ctorPtr : KPointer = ListScroller.ctor_listscroller() this.peer = new Finalizable(ctorPtr, ListScroller.getFinalizer()) } static getFinalizer(): KPointer { @@ -70,7 +80,7 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getItemRectInGroup_serialize(index: number, indexInGroup: number): RectResult { const retval = ArkUIGeneratedNativeModule._ListScroller_getItemRectInGroup(this.peer!.ptr, index, indexInGroup) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRectResult() } private scrollToItemInGroup_serialize(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { const thisSerializer : Serializer = Serializer.hold() @@ -105,13 +115,6 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getVisibleListContentInfo_serialize(x: number, y: number): VisibleListContentInfo { const retval = ArkUIGeneratedNativeModule._ListScroller_getVisibleListContentInfo(this.peer!.ptr, x, y) - throw new Error("Object deserialization is not implemented.") - } -} -export class ListScrollerInternal { - public static fromPtr(ptr: KPointer): ListScroller { - const obj : ListScroller = new ListScroller() - obj.peer = new Finalizable(ptr, ListScroller.getFinalizer()) - return obj + return new Deserializer(retval, retval.length).readVisibleListContentInfo() } } diff --git a/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts index ad7080f90d9f0d1b86296bcc073bac929a4d2217..f95967a14e55d6780c39f8f08de2eb1e1742773d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLoadingProgress.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLoadingProgressPeer } from "./peers/ArkLoadingProgressPeer" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { LoadingProgressAttribute, LoadingProgressConfiguration } from "./ArkLoadingProgressInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { LoadingProgressConfiguration, LoadingProgressAttribute } from "./ArkLoadingProgressInterfaces" /** @memo:stable */ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent { getPeer(): ArkLoadingProgressPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts index 9029750fc42ed5532b89fae05242760716e5c17a..01dc23d164a7b8f33a594ccc500a0f33ecbbc497 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLoadingProgressInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum LoadingProgressStyle { DEFAULT = 0, Default = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts index 0198a016725e7f771de82fcd2715bfa1535a3b47..418c2860fecc29a80cf6af806971664ec2b4a1fe 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLocationButton.ts @@ -19,15 +19,18 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkLocationButtonPeer } from "./peers/ArkLocationButtonPeer" import { UseEventsProperties } from "./use_properties" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" -import { LocationButtonAttribute, LocationButtonOnClickResult, LocationButtonOptions } from "./ArkLocationButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_LocationButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions } from "./ArkLocationButtonInterfaces" /** @memo:stable */ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodComponent { getPeer(): ArkLocationButtonPeer { @@ -37,11 +40,11 @@ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodCompon public setLocationButtonOptions(options?: LocationButtonOptions): this { if (this.checkPriority("setLocationButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setLocationButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (LocationButtonOptions) this.getPeer()?.setLocationButtonOptions1Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts index 5490c6cd2de5323e8abd5caa92b616e722404637..50ce7cf52f24e18ca8569dd08df44ccb72a06550 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLocationButtonInterfaces.ts @@ -20,7 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ButtonType } from "./ArkButtonInterfaces" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_LocationButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" export enum LocationIconStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts index a6af5054cdf2a54b59c147e2ab985cdcd2a45667..ec659daf41a5565554c97a85d498d9ce63aff64b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface LongPressGestureEvent { repeat: boolean @@ -39,13 +41,13 @@ export class LongPressGestureEventInternal extends BaseGestureEventInternal impl set repeat(repeat: boolean) { this.setRepeat(repeat) } - static ctor(): KPointer { + static ctor_longpressgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._LongPressGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = LongPressGestureEventInternal.ctor() + const ctorPtr : KPointer = LongPressGestureEventInternal.ctor_longpressgestureevent() this.peer = new Finalizable(ctorPtr, LongPressGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMarquee.ts b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts index d9a5e7ebdfdc8c526bba68744b7c9f74790eca41..2d5cad13f08599423f40303c61eba7ef6e5dd390 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMarquee.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMarquee.ts @@ -19,17 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMarqueePeer } from "./peers/ArkMarqueePeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { MarqueeAttribute, MarqueeOptions } from "./ArkMarqueeInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { MarqueeOptions, MarqueeAttribute } from "./ArkMarqueeInterfaces" /** @memo:stable */ export class ArkMarqueeComponent extends ArkCommonMethodComponent { getPeer(): ArkMarqueePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts index 99ff9cab7bb1c570f3625e672220ed2803477be2..83ef26fd07474a008135bb8702944c3fa98ffb7a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMarqueeInterfaces.ts @@ -19,11 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, MarqueeUpdateStrategy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface MarqueeOptions { start: boolean; step?: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts index e29c3b486276461c7f577cc2816228cc96c2dd22..2cf56869e223d7e42a991d53117b4043919d2d97 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMatrix2DMaterialized.ts @@ -18,13 +18,19 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class Matrix2DInternal { + public static fromPtr(ptr: KPointer): Matrix2D { + const obj : Matrix2D = new Matrix2D() + obj.peer = new Finalizable(ptr, Matrix2D.getFinalizer()) + return obj + } +} export class Matrix2D implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -72,12 +78,12 @@ export class Matrix2D implements MaterializedBase { const translateY_NonNull = (translateY as number) this.setTranslateY(translateY_NonNull) } - static ctor(): KPointer { + static ctor_matrix2d(): KPointer { const retval = ArkUIGeneratedNativeModule._Matrix2D_ctor() return retval } constructor() { - const ctorPtr : KPointer = Matrix2D.ctor() + const ctorPtr : KPointer = Matrix2D.ctor_matrix2d() this.peer = new Finalizable(ctorPtr, Matrix2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -97,12 +103,12 @@ export class Matrix2D implements MaterializedBase { const degree_type = runtimeType(degree) const rx_type = runtimeType(rx) const ry_type = runtimeType(ry) - if ((((RuntimeType.NUMBER == degree_type)) || ((RuntimeType.UNDEFINED == degree_type))) && (((RuntimeType.NUMBER == rx_type)) || ((RuntimeType.UNDEFINED == rx_type))) && (((RuntimeType.UNDEFINED == ry_type)))) { + if (((RuntimeType.NUMBER == degree_type) || (RuntimeType.UNDEFINED == degree_type)) && ((RuntimeType.NUMBER == rx_type) || (RuntimeType.UNDEFINED == rx_type)) && (RuntimeType.UNDEFINED == ry_type)) { const rx_casted = degree as (number | undefined) const ry_casted = rx as (number | undefined) return this.rotate0_serialize(rx_casted, ry_casted) } - if ((((RuntimeType.NUMBER == degree_type))) && (((RuntimeType.NUMBER == rx_type)) || ((RuntimeType.UNDEFINED == rx_type))) && (((RuntimeType.NUMBER == ry_type)) || ((RuntimeType.UNDEFINED == ry_type)))) { + if ((RuntimeType.NUMBER == degree_type) && ((RuntimeType.NUMBER == rx_type) || (RuntimeType.UNDEFINED == rx_type)) && ((RuntimeType.NUMBER == ry_type) || (RuntimeType.UNDEFINED == ry_type))) { const degree_casted = degree as (number) const rx_casted = rx as (number | undefined) const ry_casted = ry as (number | undefined) @@ -319,10 +325,3 @@ export class Matrix2D implements MaterializedBase { ArkUIGeneratedNativeModule._Matrix2D_setTranslateY(this.peer!.ptr, translateY) } } -export class Matrix2DInternal { - public static fromPtr(ptr: KPointer): Matrix2D { - const obj : Matrix2D = new Matrix2D() - obj.peer = new Finalizable(ptr, Matrix2D.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts index b1c493762b7b8b600c81672e0ade7bdcbcf8f641..43cc96bd03551a4b058b122dedc91627d6993945 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMeasurableMaterialized.ts @@ -19,30 +19,29 @@ import { ConstraintSizeOptions, DirectionalEdgesT } from "./ArkUnitsInterfaces" import { MeasureResult } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface Measurable { measure(constraint: ConstraintSizeOptions): MeasureResult - getMargin(): DirectionalEdgesT - getPadding(): DirectionalEdgesT - getBorderWidth(): DirectionalEdgesT + getMargin(): DirectionalEdgesT + getPadding(): DirectionalEdgesT + getBorderWidth(): DirectionalEdgesT } export class MeasurableInternal implements MaterializedBase,Measurable { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_measurable(): KPointer { const retval = ArkUIGeneratedNativeModule._Measurable_ctor() return retval } constructor() { - const ctorPtr : KPointer = MeasurableInternal.ctor() + const ctorPtr : KPointer = MeasurableInternal.ctor_measurable() this.peer = new Finalizable(ctorPtr, MeasurableInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,13 +51,13 @@ export class MeasurableInternal implements MaterializedBase,Measurable { const constraint_casted = constraint as (ConstraintSizeOptions) return this.measure_serialize(constraint_casted) } - public getMargin(): DirectionalEdgesT { + public getMargin(): DirectionalEdgesT { return this.getMargin_serialize() } - public getPadding(): DirectionalEdgesT { + public getPadding(): DirectionalEdgesT { return this.getPadding_serialize() } - public getBorderWidth(): DirectionalEdgesT { + public getBorderWidth(): DirectionalEdgesT { return this.getBorderWidth_serialize() } private measure_serialize(constraint: ConstraintSizeOptions): MeasureResult { @@ -66,19 +65,19 @@ export class MeasurableInternal implements MaterializedBase,Measurable { thisSerializer.writeConstraintSizeOptions(constraint) const retval = ArkUIGeneratedNativeModule._Measurable_measure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readMeasureResult() } - private getMargin_serialize(): DirectionalEdgesT { + private getMargin_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getMargin(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readDirectionalEdgesT() } - private getPadding_serialize(): DirectionalEdgesT { + private getPadding_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getPadding(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readDirectionalEdgesT() } - private getBorderWidth_serialize(): DirectionalEdgesT { + private getBorderWidth_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getBorderWidth(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readDirectionalEdgesT() } public static fromPtr(ptr: KPointer): MeasurableInternal { const obj : MeasurableInternal = new MeasurableInternal() diff --git a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts index cf0d73b80b1a6542081f2e002e4bb3c20423d426..35a39987256013865ed8165e6d330c0ae6c37279 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImage.ts @@ -19,13 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkImageComponent } from "./ArkImage" import { ArkMediaCachedImagePeer } from "./peers/ArkMediaCachedImagePeer" -import { ImageAttribute, DrawableDescriptor } from "./ArkImageInterfaces" +import { ImageAttribute, ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceStr } from "./ArkUnitsInterfaces" +import { ColorFilter } from "./ArkColorFilterMaterialized" +import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { ASTCResource, MediaCachedImageAttribute } from "./ArkMediaCachedImageInterfaces" /** @memo:stable */ export class ArkMediaCachedImageComponent extends ArkImageComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts index 6192dfec964749fa6d066ef59e079ef27dbc9f10..25b190816f41dad1425f6f6781d9349efe52ca51 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMediaCachedImageInterfaces.ts @@ -20,8 +20,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { PixelMap } from "./ArkPixelMapMaterialized" -import { ResourceStr } from "./ArkUnitsInterfaces" -import { DrawableDescriptor, ImageAttribute } from "./ArkImageInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawableDescriptor, ImageAttribute, ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality } from "./ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { ColorFilter } from "./ArkColorFilterMaterialized" +import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" export interface ASTCResource { sources: Array; column: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkMenu.ts b/arkoala-arkts/arkui/src/generated/ArkMenu.ts index bffb62dc30e6aedcf6d76ad763aa193365dbe43e..5e96271d44a25aaeec06f2818e3385e9cb4f5934 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenu.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenu.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuPeer } from "./peers/ArkMenuPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { MenuAttribute, SubMenuExpandingMode } from "./ArkMenuInterfaces" -import { Length, Font, ResourceColor, Dimension, BorderRadiuses, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { SubMenuExpandingMode, MenuAttribute } from "./ArkMenuInterfaces" /** @memo:stable */ export class ArkMenuComponent extends ArkCommonMethodComponent { getPeer(): ArkMenuPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts index 1a814a754977b60be21e82bf8376cf11e86430da..e134bd888031c63da032c5a1cfb96af04c702311 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Length, Font, ResourceColor, Dimension, BorderRadiuses, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, DividerStyleOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type MenuInterface = () => MenuAttribute; export enum SubMenuExpandingMode { SIDE_EXPAND = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts index 56e567759791966a616c3effdbc8ed1cfc0d259f..d6247e791c23985ed3da946b7e7a819824a667ae 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItem.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemPeer } from "./peers/ArkMenuItemPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, SymbolGlyphModifier, CustomBuilder } from "./ArkCommonInterfaces" -import { MenuItemAttribute, MenuItemOptions } from "./ArkMenuItemInterfaces" -import { ResourceStr, Font, ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { MenuItemOptions, MenuItemAttribute } from "./ArkMenuItemInterfaces" /** @memo:stable */ export class ArkMenuItemComponent extends ArkCommonMethodComponent { getPeer(): ArkMenuItemPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts index 203771a58b641f0c3b8a2e928ca43df810e71c88..b0e29b112113ebb81e1d6e47553f44bf48bd38ef 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroup.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemGroupPeer } from "./peers/ArkMenuItemGroupPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { MenuItemGroupAttribute, MenuItemGroupOptions } from "./ArkMenuItemGroupInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { MenuItemGroupOptions, MenuItemGroupAttribute } from "./ArkMenuItemGroupInterfaces" /** @memo:stable */ export class ArkMenuItemGroupComponent extends ArkCommonMethodComponent { getPeer(): ArkMenuItemGroupPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts index 7e90aab050b4b9eaae3e21309b576b6b8da98f6a..233ebfead74e63ccef56242db97e466cf4d6dbe9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemGroupInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr } from "./ArkUnitsInterfaces" -import { CustomBuilder, CommonMethod } from "./ArkCommonInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface MenuItemGroupOptions { header?: ResourceStr | CustomBuilder; footer?: ResourceStr | CustomBuilder; diff --git a/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts index feb14f6f49a47ad6d1ce003b8e8fdb049191a3eb..96eefac0ca5fb013643f15959cffedf7d4fea9da 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMenuItemInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, Font, ResourceColor } from "./ArkUnitsInterfaces" -import { SymbolGlyphModifier, CustomBuilder, CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { SymbolGlyphModifier, CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface MenuItemOptions { startIcon?: ResourceStr; symbolStartIcon?: SymbolGlyphModifier; diff --git a/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts index 9dbb2fc5cb7caa3ea8b84030185af48224d65416..c514e0af7b955cddb81989a0ea21ac318469458c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMouseEventMaterialized.ts @@ -17,15 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { MouseButton, MouseAction } from "./ArkEnumsInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface MouseEvent { button: MouseButton @@ -111,13 +111,13 @@ export class MouseEventInternal extends BaseEventInternal implements Materialize set stopPropagation(stopPropagation: (() => void)) { this.setStopPropagation(stopPropagation) } - static ctor(): KPointer { + static ctor_mouseevent(): KPointer { const retval = ArkUIGeneratedNativeModule._MouseEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = MouseEventInternal.ctor() + const ctorPtr : KPointer = MouseEventInternal.ctor_mouseevent() this.peer = new Finalizable(ctorPtr, MouseEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts index 6aed747673c1d6d3370a57f255cc3673d29ce0f9..4eeaec8d24e68a4883a4d11400230faf5a931bde 100644 --- a/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkMutableStyledStringMaterialized.ts @@ -17,27 +17,35 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" -import { SpanStyle, StyledStringKey } from "./ArkStyledStringInterfaces" +import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" +import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" +import { StyleOptions, StyledStringKey, SpanStyle } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class MutableStyledStringInternal { + public static fromPtr(ptr: KPointer): MutableStyledString { + const obj : MutableStyledString = new MutableStyledString() + obj.peer = new Finalizable(ptr, MutableStyledString.getFinalizer()) + return obj + } +} export class MutableStyledString extends StyledString implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_mutablestyledstring(): KPointer { const retval = ArkUIGeneratedNativeModule._MutableStyledString_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = MutableStyledString.ctor() + const ctorPtr : KPointer = MutableStyledString.ctor_mutablestyledstring() this.peer = new Finalizable(ctorPtr, MutableStyledString.getFinalizer()) } static getFinalizer(): KPointer { @@ -156,10 +164,3 @@ export class MutableStyledString extends StyledString implements MaterializedBas thisSerializer.release() } } -export class MutableStyledStringInternal { - public static fromPtr(ptr: KPointer): MutableStyledString { - const obj : MutableStyledString = new MutableStyledString() - obj.peer = new Finalizable(ptr, MutableStyledString.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts index 9fcaf7a43335f70f67d8203dc8c1462ce28d8ec4..e556b1b8ab6b661fe243ce97f154f1fd59b9be41 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestination.ts @@ -19,19 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavDestinationPeer } from "./peers/ArkNavDestinationPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, SymbolGlyphModifier, CustomBuilder, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" -import { NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./ArkNavDestinationInterfaces" -import { Callback_Void, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" -import { ResourceStr } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" +import { NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute } from "./ArkNavDestinationInterfaces" import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./ArkNavigationInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" -import { Resource } from "./ArkResourceInterfaces" /** @memo:stable */ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { getPeer(): ArkNavDestinationPeer { @@ -50,12 +67,12 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { if (this.checkPriority("hideTitleBar")) { const hide_type = runtimeType(hide) const animated_type = runtimeType(animated) - if ((((RuntimeType.UNDEFINED == animated_type)))) { + if (RuntimeType.UNDEFINED == animated_type) { const value_casted = hide as (boolean) this.getPeer()?.hideTitleBar0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == animated_type)))) { + if (RuntimeType.BOOLEAN == animated_type) { const hide_casted = hide as (boolean) const animated_casted = animated as (boolean) this.getPeer()?.hideTitleBar1Attribute(hide_casted, animated_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts index a25d2a1680fe2f74ef9fbb31b3c93e8b7158a5ce..a57ca7041ee1fde482d48cb2087668bb0e41d5f5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationContextMaterialized.ts @@ -20,12 +20,11 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface NavDestinationContext { pathInfo: NavPathInfo @@ -57,12 +56,12 @@ export class NavDestinationContextInternal implements MaterializedBase,NavDestin const navDestinationId_NonNull = (navDestinationId as string) this.setNavDestinationId(navDestinationId_NonNull) } - static ctor(): KPointer { + static ctor_navdestinationcontext(): KPointer { const retval = ArkUIGeneratedNativeModule._NavDestinationContext_ctor() return retval } constructor() { - const ctorPtr : KPointer = NavDestinationContextInternal.ctor() + const ctorPtr : KPointer = NavDestinationContextInternal.ctor_navdestinationcontext() this.peer = new Finalizable(ctorPtr, NavDestinationContextInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts index 17d5c86ac54a0e6eafd41b6e7def9100888cdf99..fb265e5aa1344fc268e7e3e267e3dd8b25a4a2f9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavDestinationInterfaces.ts @@ -20,10 +20,26 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CustomBuilder, CommonMethod, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" -import { TitleHeight } from "./ArkEnumsInterfaces" -import { Length, ResourceStr } from "./ArkUnitsInterfaces" -import { Callback_Void, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./ArkCommonInterfaces" +import { TitleHeight, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean, Callback_NavDestinationContext_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./ArkNavigationInterfaces" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts index 15b1f1e10f75802694daa4f27b9b6ea76824247e..b069bdc3489709a9a50d2b2b17362c2e9db156cc 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavExtenderMaterialized.ts @@ -19,19 +19,25 @@ import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class NavExtenderInternal { + public static fromPtr(ptr: KPointer): NavExtender { + const obj : NavExtender = new NavExtender() + obj.peer = new Finalizable(ptr, NavExtender.getFinalizer()) + return obj + } +} export class NavExtender implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_navextender(): KPointer { const retval = ArkUIGeneratedNativeModule._NavExtender_ctor() return retval } @@ -39,7 +45,7 @@ export class NavExtender implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = NavExtender.ctor() + const ctorPtr : KPointer = NavExtender.ctor_navextender() this.peer = new Finalizable(ctorPtr, NavExtender.getFinalizer()) } static getFinalizer(): KPointer { @@ -59,10 +65,3 @@ export class NavExtender implements MaterializedBase { thisSerializer.release() } } -export class NavExtenderInternal { - public static fromPtr(ptr: KPointer): NavExtender { - const obj : NavExtender = new NavExtender() - obj.peer = new Finalizable(ptr, NavExtender.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts index 6209225c32a65891edddf43029c3db2e1b282745..6db0fcac8ddaf97b0d1427a6ac9d2890ddfe92af 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathInfoMaterialized.ts @@ -19,13 +19,19 @@ import { Callback_PopInfo_Void } from "./SyntheticDeclarations" import { PopInfo } from "./ArkNavigationInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class NavPathInfoInternal { + public static fromPtr(ptr: KPointer): NavPathInfo { + const obj : NavPathInfo = new NavPathInfo(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, NavPathInfo.getFinalizer()) + return obj + } +} export class NavPathInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -58,7 +64,7 @@ export class NavPathInfo implements MaterializedBase { const isEntry_NonNull = (isEntry as boolean) this.setIsEntry(isEntry_NonNull) } - static ctor(name: string, param: object, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean): KPointer { + static ctor_navpathinfo(name: string, param: object, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeCustomObject("Any", param) let onPop_type : int32 = RuntimeType.UNDEFINED @@ -82,7 +88,7 @@ export class NavPathInfo implements MaterializedBase { constructor(name?: string, param?: object, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean) { if (((name) !== (undefined)) && ((param) !== (undefined)) && ((onPop) !== (undefined)) && ((isEntry) !== (undefined))) { - const ctorPtr : KPointer = NavPathInfo.ctor(name, param, onPop, isEntry) + const ctorPtr : KPointer = NavPathInfo.ctor_navpathinfo(name, param, onPop, isEntry) this.peer = new Finalizable(ctorPtr, NavPathInfo.getFinalizer()) } } @@ -149,10 +155,3 @@ export class NavPathInfo implements MaterializedBase { ArkUIGeneratedNativeModule._NavPathInfo_setIsEntry(this.peer!.ptr, isEntry ? 1 : 0) } } -export class NavPathInfoInternal { - public static fromPtr(ptr: KPointer): NavPathInfo { - const obj : NavPathInfo = new NavPathInfo(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, NavPathInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts index 64d198134bdcd33a911694e37706fe1261a4092b..8eaf198004f96f5a88326d39c1685557cebed68d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -20,24 +20,30 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavigationOptions, PopInfo, NavigationInterception } from "./ArkNavigationInterfaces" import { Callback_PopInfo_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class NavPathStackInternal { + public static fromPtr(ptr: KPointer): NavPathStack { + const obj : NavPathStack = new NavPathStack() + obj.peer = new Finalizable(ptr, NavPathStack.getFinalizer()) + return obj + } +} export class NavPathStack implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_navpathstack(): KPointer { const retval = ArkUIGeneratedNativeModule._NavPathStack_ctor() return retval } constructor() { - const ctorPtr : KPointer = NavPathStack.ctor() + const ctorPtr : KPointer = NavPathStack.ctor_navpathstack() this.peer = new Finalizable(ctorPtr, NavPathStack.getFinalizer()) } static getFinalizer(): KPointer { @@ -46,13 +52,13 @@ export class NavPathStack implements MaterializedBase { public pushPath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) this.pushPath0_serialize(info_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) this.pushPath1_serialize(info_casted, options_casted) @@ -63,12 +69,12 @@ export class NavPathStack implements MaterializedBase { public pushDestination(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): Promise { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) return this.pushDestination0_serialize(info_casted, animated_casted) } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) return this.pushDestination1_serialize(info_casted, options_casted) @@ -80,14 +86,14 @@ export class NavPathStack implements MaterializedBase { const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) const animated_type = runtimeType(animated) - if ((((RuntimeType.OBJECT == param_type))) && (((RuntimeType.BOOLEAN == onPop_type)) || ((RuntimeType.UNDEFINED == onPop_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == param_type) && ((RuntimeType.BOOLEAN == onPop_type) || (RuntimeType.UNDEFINED == onPop_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const param_casted = param as (object) const animated_casted = onPop as (boolean | undefined) this.pushPathByName0_serialize(name_casted, param_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == param_type))) && (((RuntimeType.FUNCTION == onPop_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == param_type) && (RuntimeType.FUNCTION == onPop_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const param_casted = param as (Object) const onPop_casted = onPop as (((parameter: PopInfo) => void)) @@ -102,13 +108,13 @@ export class NavPathStack implements MaterializedBase { const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == onPop_type)) || ((RuntimeType.UNDEFINED == onPop_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == onPop_type) || (RuntimeType.UNDEFINED == onPop_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const param_casted = param as (Object) const animated_casted = onPop as (boolean | undefined) return this.pushDestinationByName0_serialize(name_casted, param_casted, animated_casted) } - if ((((RuntimeType.FUNCTION == onPop_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.FUNCTION == onPop_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const param_casted = param as (Object) const onPop_casted = onPop as (((parameter: PopInfo) => void)) @@ -120,13 +126,13 @@ export class NavPathStack implements MaterializedBase { public replacePath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) this.replacePath0_serialize(info_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) this.replacePath1_serialize(info_casted, options_casted) @@ -161,11 +167,11 @@ export class NavPathStack implements MaterializedBase { public pop(result?: boolean | undefined | Object, animated?: boolean): NavPathInfo | undefined { const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const animated_casted = result as (boolean | undefined) return this.pop0_serialize(animated_casted) } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) return this.pop1_serialize(result_casted, animated_casted) @@ -176,12 +182,12 @@ export class NavPathStack implements MaterializedBase { const name_type = runtimeType(name) const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const animated_casted = result as (boolean | undefined) return this.popToName0_serialize(name_casted, animated_casted) } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) @@ -193,13 +199,13 @@ export class NavPathStack implements MaterializedBase { const index_type = runtimeType(index) const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const index_casted = index as (number) const animated_casted = result as (boolean | undefined) this.popToIndex0_serialize(index_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const index_casted = index as (number) const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) @@ -599,10 +605,3 @@ export class NavPathStack implements MaterializedBase { thisSerializer.release() } } -export class NavPathStackInternal { - public static fromPtr(ptr: KPointer): NavPathStack { - const obj : NavPathStack = new NavPathStack() - obj.peer = new Finalizable(ptr, NavPathStack.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts index 18e6c403e7b99dfaf36655fb0cc77dda146b8f19..0f330cb4fc72a1a3ceabdfa31c1a6e87aecc81c7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavRouter.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavRouterPeer } from "./peers/ArkNavRouterPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { NavRouterAttribute, NavRouteMode, RouteInfo } from "./ArkNavRouterInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { NavRouteMode, NavRouterAttribute, RouteInfo } from "./ArkNavRouterInterfaces" /** @memo:stable */ export class ArkNavRouterComponent extends ArkCommonMethodComponent { getPeer(): ArkNavRouterPeer { @@ -36,11 +56,11 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { public setNavRouterOptions(value?: RouteInfo): this { if (this.checkPriority("setNavRouterOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setNavRouterOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (RouteInfo) this.getPeer()?.setNavRouterOptions1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts index dac267967d7e362c1cc1fd288c0fb15c6ac415d8..98d5400947bd48c7fb87e44e9ed788d2731b3881 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavRouterInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RouteInfo { name: string; param?: object; diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts index f045ce3174e45ad45261b29e2c1bf1491301ad0e..26cd723085a45239d7e57ea72d5194d4df1e9a75 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts @@ -18,12 +18,11 @@ import { NavContentInfo } from "./ArkNavigationInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface NavigationTransitionProxy { from: NavContentInfo @@ -57,12 +56,12 @@ export class NavigationTransitionProxyInternal implements MaterializedBase,Navig const isInteractive_NonNull = (isInteractive as boolean) this.setIsInteractive(isInteractive_NonNull) } - static ctor(): KPointer { + static ctor_navigationtransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._NavigationTransitionProxy_ctor() return retval } constructor() { - const ctorPtr : KPointer = NavigationTransitionProxyInternal.ctor() + const ctorPtr : KPointer = NavigationTransitionProxyInternal.ctor_navigationtransitionproxy() this.peer = new Finalizable(ctorPtr, NavigationTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigator.ts b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts index 673888de8e11a487b24113dfddeef6e111b8654a..694f558eac77762a5625afca155c6dfc122ef12f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigator.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigator.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavigatorPeer } from "./peers/ArkNavigatorPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { NavigatorAttribute, NavigationType } from "./ArkNavigatorInterfaces" -import { Literal_String_target_NavigationType_type } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Literal_String_target_NavigationType_type } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { NavigationType, NavigatorAttribute } from "./ArkNavigatorInterfaces" /** @memo:stable */ export class ArkNavigatorComponent extends ArkCommonMethodComponent { getPeer(): ArkNavigatorPeer { @@ -35,11 +55,11 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { public setNavigatorOptions(value?: Literal_String_target_NavigationType_type): this { if (this.checkPriority("setNavigatorOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setNavigatorOptions1Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (Literal_String_target_NavigationType_type | undefined) this.getPeer()?.setNavigatorOptions0Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts index 2fea2be89e131dab5d3c8938445bc79b9cde07a3..c362fe36bc27640799817cae0dd9ae1a9dd66e78 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNavigatorInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Literal_String_target_NavigationType_type } from "./SyntheticDeclarations" -import { CommonMethod } from "./ArkCommonInterfaces" +import { Literal_String_target_NavigationType_type, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum NavigationType { PUSH = 0, Push = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts index f1096409d983cf693c2acfa18fd68d955054f42a..961d25da6a4d2c7775e6feeaf9a8b6d85235f0b3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNodeContainer.ts @@ -19,13 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNodeContainerPeer } from "./peers/ArkNodeContainerPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { NodeContainerAttribute } from "./ArkNodeContainerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { NodeController } from "./ArkArkuiExternalInterfaces" +import { NodeContainerAttribute } from "./ArkNodeContainerInterfaces" /** @memo:stable */ export class ArkNodeContainerComponent extends ArkCommonMethodComponent { getPeer(): ArkNodeContainerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts index 77a0caccb033055519173a39ceb1b9bff6b2946c..7c1064cbaccf43ac7ac7c565d8b97cdf3d324d36 100644 --- a/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkNodeContainerInterfaces.ts @@ -20,7 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { NodeController } from "./ArkArkuiExternalInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type NodeContainerInterface = (controller: NodeController) => NodeContainerAttribute; export interface NodeContainerAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts new file mode 100644 index 0000000000000000000000000000000000000000..90d776fd830b765ce8239f3afec19e3846cfe3ae --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./ArkOffscreenCanvasRenderingContext2DMaterialized" +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class OffscreenCanvasInternal { + public static fromPtr(ptr: KPointer): OffscreenCanvas { + const obj : OffscreenCanvas = new OffscreenCanvas(undefined, undefined) + obj.peer = new Finalizable(ptr, OffscreenCanvas.getFinalizer()) + return obj + } +} +export class OffscreenCanvas implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get height(): number { + return this.getHeight() + } + set height(height: number) { + this.setHeight(height) + } + get width(): number { + return this.getWidth() + } + set width(width: number) { + this.setWidth(width) + } + static ctor_offscreencanvas(width: number, height: number): KPointer { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_ctor(width, height) + return retval + } + constructor(width?: number, height?: number) { + if (((width) !== (undefined)) && ((height) !== (undefined))) + { + const ctorPtr : KPointer = OffscreenCanvas.ctor_offscreencanvas(width, height) + this.peer = new Finalizable(ctorPtr, OffscreenCanvas.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._OffscreenCanvas_getFinalizer() + } + public transferToImageBitmap(): ImageBitmap { + return this.transferToImageBitmap_serialize() + } + public getContext2d(options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + const options_casted = options as (RenderingContextSettings | undefined) + return this.getContext2d_serialize(options_casted) + } + private getHeight(): number { + return this.getHeight_serialize() + } + private setHeight(height: number): void { + const height_casted = height as (number) + this.setHeight_serialize(height_casted) + return + } + private getWidth(): number { + return this.getWidth_serialize() + } + private setWidth(width: number): void { + const width_casted = width as (number) + this.setWidth_serialize(width_casted) + return + } + getContext(contextType: string, options: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + throw new Error("TBD") + } + private transferToImageBitmap_serialize(): ImageBitmap { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_transferToImageBitmap(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getContext2d_serialize(options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + const thisSerializer : Serializer = Serializer.hold() + let options_type : int32 = RuntimeType.UNDEFINED + options_type = runtimeType(options) + thisSerializer.writeInt8(options_type as int32) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRenderingContextSettings(options_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getContext2d(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + throw new Error("Object deserialization is not implemented.") + } + private getHeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getHeight(this.peer!.ptr) + return retval + } + private setHeight_serialize(height: number): void { + ArkUIGeneratedNativeModule._OffscreenCanvas_setHeight(this.peer!.ptr, height) + } + private getWidth_serialize(): number { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getWidth(this.peer!.ptr) + return retval + } + private setWidth_serialize(width: number): void { + ArkUIGeneratedNativeModule._OffscreenCanvas_setWidth(this.peer!.ptr, width) + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts new file mode 100644 index 0000000000000000000000000000000000000000..a183b517045a3239619e71d4df673b7920323e1f --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./ArkCanvasInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export class OffscreenCanvasRenderingContext2DInternal { + public static fromPtr(ptr: KPointer): OffscreenCanvasRenderingContext2D { + const obj : OffscreenCanvasRenderingContext2D = new OffscreenCanvasRenderingContext2D(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, OffscreenCanvasRenderingContext2D.getFinalizer()) + return obj + } +} +export class OffscreenCanvasRenderingContext2D extends CanvasRenderer implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor_offscreencanvasrenderingcontext2d(width: number, height: number, settings?: RenderingContextSettings): KPointer { + const thisSerializer : Serializer = Serializer.hold() + let settings_type : int32 = RuntimeType.UNDEFINED + settings_type = runtimeType(settings) + thisSerializer.writeInt8(settings_type as int32) + if ((RuntimeType.UNDEFINED) != (settings_type)) { + const settings_value = settings! + thisSerializer.writeRenderingContextSettings(settings_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_ctor(width, height, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(width?: number, height?: number, settings?: RenderingContextSettings) { + super() + if (((width) !== (undefined)) && ((height) !== (undefined)) && ((settings) !== (undefined))) + { + const ctorPtr : KPointer = OffscreenCanvasRenderingContext2D.ctor_offscreencanvasrenderingcontext2d(width, height, settings) + this.peer = new Finalizable(ctorPtr, OffscreenCanvasRenderingContext2D.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_getFinalizer() + } + public toDataURL(type?: string, quality?: float32): string { + const type_casted = type as (string | undefined) + const quality_casted = quality as (float32 | undefined) + return this.toDataURL_serialize(type_casted, quality_casted) + } + public transferToImageBitmap(): ImageBitmap { + return this.transferToImageBitmap_serialize() + } + private toDataURL_serialize(type?: string, quality?: float32): string { + const thisSerializer : Serializer = Serializer.hold() + let type_type : int32 = RuntimeType.UNDEFINED + type_type = runtimeType(type) + thisSerializer.writeInt8(type_type as int32) + if ((RuntimeType.UNDEFINED) != (type_type)) { + const type_value = type! + thisSerializer.writeString(type_value) + } + let quality_type : int32 = RuntimeType.UNDEFINED + quality_type = runtimeType(quality) + thisSerializer.writeInt8(quality_type as int32) + if ((RuntimeType.UNDEFINED) != (quality_type)) { + const quality_value = quality! + thisSerializer.writeFloat32(quality_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + private transferToImageBitmap_serialize(): ImageBitmap { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_transferToImageBitmap(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts index 8c251553c83f96a087b98bfedfd6c9a1e3afb0bf..e99382ebf714aef8628750b73d2320a4459b69af 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PanGestureEvent { offsetX: number @@ -67,13 +69,13 @@ export class PanGestureEventInternal extends BaseGestureEventInternal implements set velocity(velocity: number) { this.setVelocity(velocity) } - static ctor(): KPointer { + static ctor_pangestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._PanGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = PanGestureEventInternal.ctor() + const ctorPtr : KPointer = PanGestureEventInternal.ctor_pangestureevent() this.peer = new Finalizable(ctorPtr, PanGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts index 35d5e8e3635e7e49da3ae72940e86076a53fd40e..97b1550ffec76f3f0db8f85b8448d07c11c1d1b9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts @@ -19,19 +19,25 @@ import { Literal_Number_distance_fingers_PanDirection_direction } from "./SyntheticDeclarations" import { PanDirection } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class PanGestureOptionsInternal { + public static fromPtr(ptr: KPointer): PanGestureOptions { + const obj : PanGestureOptions = new PanGestureOptions(undefined) + obj.peer = new Finalizable(ptr, PanGestureOptions.getFinalizer()) + return obj + } +} export class PanGestureOptions implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value?: Literal_Number_distance_fingers_PanDirection_direction): KPointer { + static ctor_pangestureoptions(value?: Literal_Number_distance_fingers_PanDirection_direction): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -68,7 +74,7 @@ export class PanGestureOptions implements MaterializedBase { return retval } constructor(value?: Literal_Number_distance_fingers_PanDirection_direction) { - const ctorPtr : KPointer = PanGestureOptions.ctor(value) + const ctorPtr : KPointer = PanGestureOptions.ctor_pangestureoptions(value) this.peer = new Finalizable(ctorPtr, PanGestureOptions.getFinalizer()) } static getFinalizer(): KPointer { @@ -106,10 +112,3 @@ export class PanGestureOptions implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class PanGestureOptionsInternal { - public static fromPtr(ptr: KPointer): PanGestureOptions { - const obj : PanGestureOptions = new PanGestureOptions(undefined) - obj.peer = new Finalizable(ptr, PanGestureOptions.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts index 63789f007f9027c766f7ccf3482b1bfcd44a01b5..0f22f9c62e2834ef1b2eae69d6ead9cb82a045c8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanRecognizerMaterialized.ts @@ -17,27 +17,36 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { GestureRecognizer, GestureRecognizerInternal } from "./ArkGestureRecognizerMaterialized" +import { GestureControl_GestureType } from "./ArkGestureControlNamespace" +import { GestureRecognizerState } from "./ArkGestureInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { PanGestureOptions, PanGestureOptionsInternal } from "./ArkPanGestureOptionsMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class PanRecognizerInternal { + public static fromPtr(ptr: KPointer): PanRecognizer { + const obj : PanRecognizer = new PanRecognizer() + obj.peer = new Finalizable(ptr, PanRecognizer.getFinalizer()) + return obj + } +} export class PanRecognizer extends GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_panrecognizer(): KPointer { const retval = ArkUIGeneratedNativeModule._PanRecognizer_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = PanRecognizer.ctor() + const ctorPtr : KPointer = PanRecognizer.ctor_panrecognizer() this.peer = new Finalizable(ctorPtr, PanRecognizer.getFinalizer()) } static getFinalizer(): KPointer { @@ -51,10 +60,3 @@ export class PanRecognizer extends GestureRecognizer implements MaterializedBase throw new Error("Object deserialization is not implemented.") } } -export class PanRecognizerInternal { - public static fromPtr(ptr: KPointer): PanRecognizer { - const obj : PanRecognizer = new PanRecognizer() - obj.peer = new Finalizable(ptr, PanRecognizer.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPanel.ts b/arkoala-arkts/arkui/src/generated/ArkPanel.ts index c143f7fb4901e0d59fe12119faf34528ad62d798..1a3e582fb4c32058ebaa9a45591bfcf5b13a71b1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanel.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanel.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPanelPeer } from "./peers/ArkPanelPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { PanelAttribute, PanelMode, PanelType, PanelHeight } from "./ArkPanelInterfaces" -import { Dimension, ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { PanelMode, PanelType, PanelHeight, PanelAttribute } from "./ArkPanelInterfaces" /** @memo:stable */ export class ArkPanelComponent extends ArkCommonMethodComponent { getPeer(): ArkPanelPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts index 5810df90124c934636c192ccbfa8f5b216c401ae..f3111eae19cdc370bbbb4740aa5eccca6cac944e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPanelInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Dimension, ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum PanelMode { MINI = 0, Mini = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts index 4a578ced9f6d90db592c4c15ff4b1af069e0f7f7..c4a8fe0844377d94c078b11a14b02744aba63845 100644 --- a/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkParagraphStyleMaterialized.ts @@ -20,13 +20,19 @@ import { TextAlign, TextOverflow, WordBreak } from "./ArkEnumsInterfaces" import { LeadingMarginPlaceholder } from "./ArkRichEditorInterfaces" import { ParagraphStyleInterface } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ParagraphStyleInternal { + public static fromPtr(ptr: KPointer): ParagraphStyle { + const obj : ParagraphStyle = new ParagraphStyle(undefined) + obj.peer = new Finalizable(ptr, ParagraphStyle.getFinalizer()) + return obj + } +} export class ParagraphStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -50,7 +56,7 @@ export class ParagraphStyle implements MaterializedBase { get leadingMargin(): number | LeadingMarginPlaceholder | undefined { throw new Error("Not implemented") } - static ctor(value?: ParagraphStyleInterface): KPointer { + static ctor_paragraphstyle(value?: ParagraphStyleInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -64,7 +70,7 @@ export class ParagraphStyle implements MaterializedBase { return retval } constructor(value?: ParagraphStyleInterface) { - const ctorPtr : KPointer = ParagraphStyle.ctor(value) + const ctorPtr : KPointer = ParagraphStyle.ctor_paragraphstyle(value) this.peer = new Finalizable(ctorPtr, ParagraphStyle.getFinalizer()) } static getFinalizer(): KPointer { @@ -106,10 +112,3 @@ export class ParagraphStyle implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ParagraphStyleInternal { - public static fromPtr(ptr: KPointer): ParagraphStyle { - const obj : ParagraphStyle = new ParagraphStyle(undefined) - obj.peer = new Finalizable(ptr, ParagraphStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts b/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts index d180145a4971ae75b3b748b3d7a64f848e54b197..9c777628aa3c41870d9ac2fc71fb2f476f63643d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPasteButton.ts @@ -19,15 +19,18 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkPasteButtonPeer } from "./peers/ArkPasteButtonPeer" import { UseEventsProperties } from "./use_properties" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" -import { PasteButtonAttribute, PasteButtonOnClickResult, PasteButtonOptions } from "./ArkPasteButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_PasteButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions } from "./ArkPasteButtonInterfaces" /** @memo:stable */ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent { getPeer(): ArkPasteButtonPeer { @@ -37,11 +40,11 @@ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent public setPasteButtonOptions(options?: PasteButtonOptions): this { if (this.checkPriority("setPasteButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setPasteButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (PasteButtonOptions) this.getPeer()?.setPasteButtonOptions1Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts index 69ca4b8b7fe335aa95d9e681132032449b2348d4..138602eae0b8e8388372d4771b83eaeeb128eeb0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPasteButtonInterfaces.ts @@ -20,7 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ButtonType } from "./ArkButtonInterfaces" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_PasteButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" export enum PasteIconStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkPath.ts b/arkoala-arkts/arkui/src/generated/ArkPath.ts index 8bb2de0151286788650d8949cbef76cf0c1b1725..1d1bd89520051ca66b8cfbb4c2df328e2aafacac 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPath.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPath.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPathPeer } from "./peers/ArkPathPeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { PathAttribute, PathOptions } from "./ArkPathInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { PathOptions, PathAttribute } from "./ArkPathInterfaces" /** @memo:stable */ export class ArkPathComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkPathPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts index 30765915eb163962c20158c7424af72997eabe3f..05489d7bf700e87988e7d868a5172800f9b2a481 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPath2DMaterialized.ts @@ -20,25 +20,31 @@ import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class Path2DInternal { + public static fromPtr(ptr: KPointer): Path2D { + const obj : Path2D = new Path2D() + obj.peer = new Finalizable(ptr, Path2D.getFinalizer()) + return obj + } +} export class Path2D extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_path2d(): KPointer { const retval = ArkUIGeneratedNativeModule._Path2D_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = Path2D.ctor() + const ctorPtr : KPointer = Path2D.ctor_path2d() this.peer = new Finalizable(ctorPtr, Path2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -64,10 +70,3 @@ export class Path2D extends CanvasPath implements MaterializedBase { thisSerializer.release() } } -export class Path2DInternal { - public static fromPtr(ptr: KPointer): Path2D { - const obj : Path2D = new Path2D() - obj.peer = new Finalizable(ptr, Path2D.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts index 07fa7f8ce0252c2b17579915b3e0d684e22a599d..f6233d2c215066c719c754118195c13bf5ea7f05 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPathInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface PathOptions { width?: number | string; height?: number | string; diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts index 3382784d1fed06b13d91eec08704dee8f0def586..01f21359e5959b9dd0a107eeaa1b79a2895cea63 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLock.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPatternLockPeer } from "./peers/ArkPatternLockPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { PatternLockAttribute, CircleStyleOptions } from "./ArkPatternLockInterfaces" -import { Length, ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Array_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Array_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { CircleStyleOptions, PatternLockAttribute } from "./ArkPatternLockInterfaces" import { PatternLockController } from "./ArkPatternLockControllerMaterialized" /** @memo:stable */ export class ArkPatternLockComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts index 43c5419f6afcf52bae60445989ca137ab08364b5..f345bcec450612daba8653bb9aa23713fa8fd0ae 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLockControllerMaterialized.ts @@ -18,24 +18,30 @@ import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class PatternLockControllerInternal { + public static fromPtr(ptr: KPointer): PatternLockController { + const obj : PatternLockController = new PatternLockController() + obj.peer = new Finalizable(ptr, PatternLockController.getFinalizer()) + return obj + } +} export class PatternLockController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_patternlockcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._PatternLockController_ctor() return retval } constructor() { - const ctorPtr : KPointer = PatternLockController.ctor() + const ctorPtr : KPointer = PatternLockController.ctor_patternlockcontroller() this.peer = new Finalizable(ctorPtr, PatternLockController.getFinalizer()) } static getFinalizer(): KPointer { @@ -57,10 +63,3 @@ export class PatternLockController implements MaterializedBase { ArkUIGeneratedNativeModule._PatternLockController_setChallengeResult(this.peer!.ptr, (result.valueOf() as int32)) } } -export class PatternLockControllerInternal { - public static fromPtr(ptr: KPointer): PatternLockController { - const obj : PatternLockController = new PatternLockController() - obj.peer = new Finalizable(ptr, PatternLockController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts index 7ed10460d0b8c0373d8a6a9e095c3b74249a7f83..036537011d888bb389146b2ebaeea87de356c83e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPatternLockInterfaces.ts @@ -19,11 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { PatternLockController } from "./ArkPatternLockControllerMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Array_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Array_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum PatternLockChallengeResult { CORRECT = 1, WRONG = 2 diff --git a/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts index 7d39a9c0b0b260c76ff216ff73fe8ae990feb787..38bd329b45e2b051cbc886ee121dd9ea2d7a1326 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPermissionRequestMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class PermissionRequestInternal { + public static fromPtr(ptr: KPointer): PermissionRequest { + const obj : PermissionRequest = new PermissionRequest() + obj.peer = new Finalizable(ptr, PermissionRequest.getFinalizer()) + return obj + } +} export class PermissionRequest implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_permissionrequest(): KPointer { const retval = ArkUIGeneratedNativeModule._PermissionRequest_ctor() return retval } constructor() { - const ctorPtr : KPointer = PermissionRequest.ctor() + const ctorPtr : KPointer = PermissionRequest.ctor_permissionrequest() this.peer = new Finalizable(ctorPtr, PermissionRequest.getFinalizer()) } static getFinalizer(): KPointer { @@ -77,10 +83,3 @@ export class PermissionRequest implements MaterializedBase { thisSerializer.release() } } -export class PermissionRequestInternal { - public static fromPtr(ptr: KPointer): PermissionRequest { - const obj : PermissionRequest = new PermissionRequest() - obj.peer = new Finalizable(ptr, PermissionRequest.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts index 5c5e561e150d714c3b758afdf7b01dce3c654165..41b3223de11dee0d39a68b8f68101c1c19001b6d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPinchGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PinchGestureEvent { scale: number @@ -53,13 +55,13 @@ export class PinchGestureEventInternal extends BaseGestureEventInternal implemen set pinchCenterY(pinchCenterY: number) { this.setPinchCenterY(pinchCenterY) } - static ctor(): KPointer { + static ctor_pinchgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._PinchGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = PinchGestureEventInternal.ctor() + const ctorPtr : KPointer = PinchGestureEventInternal.ctor_pinchgestureevent() this.peer = new Finalizable(ctorPtr, PinchGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts index b492b15020720ed3bbaf4dcb6664339077c8ef69..5936abcdb78790b482d55c02029cb3ea2ff36296 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPixelMapMaterialized.ts @@ -17,16 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PixelMap { - isEditable: int32 - isStrideAlignment: int32 + readonly isEditable: boolean + readonly isStrideAlignment: boolean readPixelsToBufferSync(dst: NativeBuffer): void writeBufferToPixels(src: NativeBuffer): void } @@ -35,24 +34,18 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { public getPeer(): Finalizable | undefined { return this.peer } - get isEditable(): int32 { + get isEditable(): boolean { return this.getIsEditable() } - set isEditable(isEditable: int32) { - this.setIsEditable(isEditable) - } - get isStrideAlignment(): int32 { + get isStrideAlignment(): boolean { return this.getIsStrideAlignment() } - set isStrideAlignment(isStrideAlignment: int32) { - this.setIsStrideAlignment(isStrideAlignment) - } - static ctor(): KPointer { + static ctor_pixelmap(): KPointer { const retval = ArkUIGeneratedNativeModule._PixelMap_ctor() return retval } constructor() { - const ctorPtr : KPointer = PixelMapInternal.ctor() + const ctorPtr : KPointer = PixelMapInternal.ctor_pixelmap() this.peer = new Finalizable(ctorPtr, PixelMapInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,22 +61,12 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { this.writeBufferToPixels_serialize(src_casted) return } - private getIsEditable(): int32 { + private getIsEditable(): boolean { return this.getIsEditable_serialize() } - private setIsEditable(isEditable: int32): void { - const isEditable_casted = isEditable as (int32) - this.setIsEditable_serialize(isEditable_casted) - return - } - private getIsStrideAlignment(): int32 { + private getIsStrideAlignment(): boolean { return this.getIsStrideAlignment_serialize() } - private setIsStrideAlignment(isStrideAlignment: int32): void { - const isStrideAlignment_casted = isStrideAlignment as (int32) - this.setIsStrideAlignment_serialize(isStrideAlignment_casted) - return - } private readPixelsToBufferSync_serialize(dst: NativeBuffer): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeBuffer(dst) @@ -96,20 +79,14 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { ArkUIGeneratedNativeModule._PixelMap_writeBufferToPixels(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - private getIsEditable_serialize(): int32 { + private getIsEditable_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._PixelMap_getIsEditable(this.peer!.ptr) return retval } - private setIsEditable_serialize(isEditable: int32): void { - ArkUIGeneratedNativeModule._PixelMap_setIsEditable(this.peer!.ptr, isEditable) - } - private getIsStrideAlignment_serialize(): int32 { + private getIsStrideAlignment_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._PixelMap_getIsStrideAlignment(this.peer!.ptr) return retval } - private setIsStrideAlignment_serialize(isStrideAlignment: int32): void { - ArkUIGeneratedNativeModule._PixelMap_setIsStrideAlignment(this.peer!.ptr, isStrideAlignment) - } public static fromPtr(ptr: KPointer): PixelMapInternal { const obj : PixelMapInternal = new PixelMapInternal() obj.peer = new Finalizable(ptr, PixelMapInternal.getFinalizer()) diff --git a/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts index 421adbfd66b439ef359de12d44f8816ab5998186..fa6f843acaa61b297ce3da8d01ff45a4a1a7abd2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPixelMapMockMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface PixelMapMock { release(): void @@ -32,12 +31,12 @@ export class PixelMapMockInternal implements MaterializedBase,PixelMapMock { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_pixelmapmock(): KPointer { const retval = ArkUIGeneratedNativeModule._PixelMapMock_ctor() return retval } constructor() { - const ctorPtr : KPointer = PixelMapMockInternal.ctor() + const ctorPtr : KPointer = PixelMapMockInternal.ctor_pixelmapmock() this.peer = new Finalizable(ctorPtr, PixelMapMockInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts index 01526d6dabbd92c3271cafdb638fea94bd85bca1..e7a5931ab44bb06349c033a5a501ec87d86f3081 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPluginComponent.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPluginComponentPeer } from "./peers/ArkPluginComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { PluginComponentAttribute, PluginErrorCallback, PluginComponentOptions } from "./ArkPluginComponentInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { PluginErrorCallback, PluginComponentOptions, PluginComponentAttribute } from "./ArkPluginComponentInterfaces" /** @memo:stable */ export class ArkPluginComponentComponent extends ArkCommonMethodComponent { getPeer(): ArkPluginComponentPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts index 005088022bddb23eb448b64e9369aceed417002e..2a1b35e6d2625b20dc6d2c8d365339271042c03b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPluginComponentInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface PluginComponentTemplate { source: string; bundleName: string; diff --git a/arkoala-arkts/arkui/src/generated/ArkPolygon.ts b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts index ec3ef51b63e654c835a4c5cd1f237807fc165f94..b2c64a22d06852c24a3041870c3a4e3d6703f1a7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolygon.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolygon.ts @@ -19,13 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolygonPeer } from "./peers/ArkPolygonPeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { PolygonAttribute, PolygonOptions } from "./ArkPolygonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Point } from "./ArkPointInterfaces" +import { PolygonOptions, PolygonAttribute } from "./ArkPolygonInterfaces" /** @memo:stable */ export class ArkPolygonComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkPolygonPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts index b659eff46ad0b289198b2d75aa55d6c2264fc4b4..219c010aeb694431a01a2638124c363b2cf5c1e8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolygonInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Point } from "./ArkPointInterfaces" export interface PolygonOptions { width?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkPolyline.ts b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts index 8314dbf4e5ee1ad3114844e84b7d62632d8cbab8..d1bbcba3d0bf9be04243f9858f7dfedcd9faeddd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolyline.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolyline.ts @@ -19,13 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolylinePeer } from "./peers/ArkPolylinePeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { PolylineAttribute, PolylineOptions } from "./ArkPolylineInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Point } from "./ArkPointInterfaces" +import { PolylineOptions, PolylineAttribute } from "./ArkPolylineInterfaces" /** @memo:stable */ export class ArkPolylineComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkPolylinePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts index 7a0afd2a8aaed093e690af26cca1c7174a895dd3..ae1b4df4971adeb2b933bf0879b75957a6858487 100644 --- a/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkPolylineInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { Point } from "./ArkPointInterfaces" export interface PolylineOptions { width?: string | number; diff --git a/arkoala-arkts/arkui/src/generated/ArkProfilerNamespace.ts b/arkoala-arkts/arkui/src/generated/ArkProfilerNamespace.ts new file mode 100644 index 0000000000000000000000000000000000000000..d9ac5dd3be9efd44645a470a7dd661fca2c40e38 --- /dev/null +++ b/arkoala-arkts/arkui/src/generated/ArkProfilerNamespace.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +export namespace Profiler { + export class GlobalScope_Profiler_inspector { + public static registerVsyncCallback(callback_: ((info: string) => void)): void { + const callback__casted = callback_ as (((info: string) => void)) + GlobalScope_Profiler_inspector.registerVsyncCallback_serialize(callback__casted) + return + } + public static unregisterVsyncCallback(): void { + GlobalScope_Profiler_inspector.unregisterVsyncCallback_serialize() + return + } + private static registerVsyncCallback_serialize(callback_: ((info: string) => void)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteCallback(callback_) + ArkUIGeneratedNativeModule._GlobalScope_Profiler_inspector_registerVsyncCallback(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private static unregisterVsyncCallback_serialize(): void { + ArkUIGeneratedNativeModule._GlobalScope_Profiler_inspector_unregisterVsyncCallback() + } + } +} +export namespace Profiler { + export function registerVsyncCallback(callback_: ((info: string) => void)): void { + GlobalScope_Profiler_inspector.registerVsyncCallback(callback_) + } + export function unregisterVsyncCallback(): void { + GlobalScope_Profiler_inspector.unregisterVsyncCallback() + } +} diff --git a/arkoala-arkts/arkui/src/generated/ArkProgress.ts b/arkoala-arkts/arkui/src/generated/ArkProgress.ts index 04461a2289288c68aba8040043b7dd1fe5754c64..a41d466c65e7d8494d01f984f91b879ced98c3a2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgress.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgress.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkProgressPeer } from "./peers/ArkProgressPeer" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { ProgressAttribute, LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressOptions } from "./ArkProgressInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" +import { LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressOptions, ProgressAttribute } from "./ArkProgressInterfaces" /** @memo:stable */ export class ArkProgressComponent extends ArkCommonMethodComponent { getPeer(): ArkProgressPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts index 037d9849656594d639143cc5191cef8394430302..8f73b288622f3b65ce41d6894f803e1dfe602945 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgressInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Length, PX, VP, LPX, ResourceColor, Font } from "./ArkUnitsInterfaces" +import { Length, PX, VP, LPX, ResourceColor, Font, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" export interface ProgressOptions { value: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts index 9781cf9fd18bce41b1069c0638c21296aa4809ce..d31ce0e0a0a3b78e89e8fa2096b080d6f94d5c82 100644 --- a/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkProgressMaskMaterialized.ts @@ -20,19 +20,25 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ProgressMaskInternal { + public static fromPtr(ptr: KPointer): ProgressMask { + const obj : ProgressMask = new ProgressMask(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ProgressMask.getFinalizer()) + return obj + } +} export class ProgressMask implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: number, total: number, color: ResourceColor): KPointer { + static ctor_progressmask(value: number, total: number, color: ResourceColor): KPointer { const thisSerializer : Serializer = Serializer.hold() let color_type : int32 = RuntimeType.UNDEFINED color_type = runtimeType(color) @@ -41,17 +47,17 @@ export class ProgressMask implements MaterializedBase { const color_0 = color as Color thisSerializer.writeInt32((color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == color_type))) { + else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1 as int32) const color_1 = color as number thisSerializer.writeNumber(color_1) } - else if (((RuntimeType.STRING == color_type))) { + else if (RuntimeType.STRING == color_type) { thisSerializer.writeInt8(2 as int32) const color_2 = color as string thisSerializer.writeString(color_2) } - else if (((RuntimeType.OBJECT == color_type))) { + else if (RuntimeType.OBJECT == color_type) { thisSerializer.writeInt8(3 as int32) const color_3 = color as Resource thisSerializer.writeResource(color_3) @@ -63,7 +69,7 @@ export class ProgressMask implements MaterializedBase { constructor(value?: number, total?: number, color?: ResourceColor) { if (((value) !== (undefined)) && ((total) !== (undefined)) && ((color) !== (undefined))) { - const ctorPtr : KPointer = ProgressMask.ctor(value, total, color) + const ctorPtr : KPointer = ProgressMask.ctor_progressmask(value, total, color) this.peer = new Finalizable(ctorPtr, ProgressMask.getFinalizer()) } } @@ -97,17 +103,17 @@ export class ProgressMask implements MaterializedBase { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -119,10 +125,3 @@ export class ProgressMask implements MaterializedBase { ArkUIGeneratedNativeModule._ProgressMask_enableBreathingAnimation(this.peer!.ptr, value ? 1 : 0) } } -export class ProgressMaskInternal { - public static fromPtr(ptr: KPointer): ProgressMask { - const obj : ProgressMask = new ProgressMask(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ProgressMask.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkQrcode.ts b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts index c9ea2fcc41b9fca7e04c1c78f1232d13a429d1bd..5fce037e2aaf43e98dffbc05c200b48ca379f8b4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkQrcode.ts +++ b/arkoala-arkts/arkui/src/generated/ArkQrcode.ts @@ -19,14 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkQRCodePeer } from "./peers/ArkQrcodePeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { QRCodeAttribute } from "./ArkQrcodeInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { QRCodeAttribute } from "./ArkQrcodeInterfaces" /** @memo:stable */ export class ArkQRCodeComponent extends ArkCommonMethodComponent { getPeer(): ArkQRCodePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts index c638ae37df05e93d88d4274ec6b49b32a86ec2d0..ca765930589e4af937196bceb68e2eaa0c8f82fd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkQrcodeInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type QRCodeInterface = (value: string) => QRCodeAttribute; export interface QRCodeAttribute extends CommonMethod { color: ResourceColor; diff --git a/arkoala-arkts/arkui/src/generated/ArkRadio.ts b/arkoala-arkts/arkui/src/generated/ArkRadio.ts index 64fc5cc0d93102f408eb31aefa48dc83a54c0c36..f416da95c203370c6e4c2951624d019a5dd3d618 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRadio.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRadio.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRadioPeer } from "./peers/ArkRadioPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { RadioAttribute, RadioStyle, RadioConfiguration, RadioOptions } from "./ArkRadioInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute } from "./ArkRadioInterfaces" /** @memo:stable */ export class ArkRadioComponent extends ArkCommonMethodComponent { getPeer(): ArkRadioPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts index d90ac857b666da7f9ff9e418b241be52febbf564..ee5768ffbf17da69334306e99e7cb27dadce8913 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRadioInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CustomBuilder, CommonMethod, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum RadioIndicatorType { TICK = 0, DOT = 1, diff --git a/arkoala-arkts/arkui/src/generated/ArkRating.ts b/arkoala-arkts/arkui/src/generated/ArkRating.ts index 268dce68bf6d17d04171bdc908775f4e792e0313..9d1754d5ce60e41427c20522328390b350e6b163 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRating.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRating.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRatingPeer } from "./peers/ArkRatingPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { RatingAttribute, StarStyleOptions, RatingConfiguration, RatingOptions } from "./ArkRatingInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./ArkRatingInterfaces" /** @memo:stable */ export class ArkRatingComponent extends ArkCommonMethodComponent { getPeer(): ArkRatingPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts index e49923bcf61f08d78607b9cd360640ce07ae2fc5..4fb260bc1ee62b1b13095d229ec1c59139791056 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRatingInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Callback_Number_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RatingOptions { rating: number; indicator?: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkRect.ts b/arkoala-arkts/arkui/src/generated/ArkRect.ts index 9c4722c7effdc7ba473bc1b8a6b144b51cebdc66..222509d06df9c8043c560d9cd26856fc2cf14834 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRect.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRect.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkRectPeer } from "./peers/ArkRectPeer" -import { CommonShapeMethod } from "./ArkCommonInterfaces" -import { RectAttribute, RectOptions, RoundedRectOptions } from "./ArkRectInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RectOptions, RoundedRectOptions, RectAttribute } from "./ArkRectInterfaces" /** @memo:stable */ export class ArkRectComponent extends ArkCommonShapeMethodComponent { getPeer(): ArkRectPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRectInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRectInterfaces.ts index 71fbd9dde6aedd256bf316eb57d05de214ff2a9c..5bf9e78b3d6a80f42ff0c026f9ddca283c3d74a8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRectInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRectInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonShapeMethod } from "./ArkCommonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RectOptions { width?: number | string; height?: number | string; diff --git a/arkoala-arkts/arkui/src/generated/ArkRefresh.ts b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts index 1618ad75012a6669ffa05c332eaa678ae811770d..780426274433cb8141fd260c68769a73b4815489 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRefresh.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRefresh.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRefreshPeer } from "./peers/ArkRefreshPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { RefreshAttribute, RefreshStatus, RefreshOptions } from "./ArkRefreshInterfaces" -import { Callback_RefreshStatus_Void, Callback_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RefreshStatus_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RefreshStatus, RefreshOptions, RefreshAttribute } from "./ArkRefreshInterfaces" /** @memo:stable */ export class ArkRefreshComponent extends ArkCommonMethodComponent { getPeer(): ArkRefreshPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts index bc1173eb2e5e50bf051acc4bdc900003510736c9..be7a1f5328228c22a80033db8c29854537fd5bcf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRefreshInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr } from "./ArkUnitsInterfaces" -import { CustomBuilder, ComponentContent, CommonMethod } from "./ArkCommonInterfaces" -import { Callback_RefreshStatus_Void, Callback_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CustomBuilder, ComponentContent, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RefreshStatus_Void, Callback_Number_Void, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum RefreshStatus { INACTIVE = 0, Inactive = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts index 3128de0e3a32d2d0da21023acd1e094ead2d7319..a3e5b56bba5efb8370c4e0190058d4b10ae6795c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRelativeContainer.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRelativeContainerPeer } from "./peers/ArkRelativeContainerPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { RelativeContainerAttribute, GuideLineStyle, BarrierStyle, LocalizedBarrierStyle } from "./ArkRelativeContainerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { GuideLineStyle, BarrierStyle, LocalizedBarrierStyle, RelativeContainerAttribute } from "./ArkRelativeContainerInterfaces" /** @memo:stable */ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { getPeer(): ArkRelativeContainerPeer { @@ -51,12 +72,12 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { public barrier(value: Array | Array): this { if (this.checkPriority("barrier")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_BarrierStyle(value)))) { + if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_BarrierStyle(value))) { const value_casted = value as (Array) this.getPeer()?.barrier0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_LocalizedBarrierStyle(value)))) { + if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_LocalizedBarrierStyle(value))) { const value_casted = value as (Array) this.getPeer()?.barrier1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts index 8d04973ade21283dc1128b866b4e4eb94ec121dc..6c5d77629edd7681879744e9acd4d900b6ccd703 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRelativeContainerInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Dimension } from "./ArkUnitsInterfaces" -import { Axis } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { Dimension, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { Axis, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type RelativeContainerInterface = () => RelativeContainerAttribute; export interface GuideLinePosition { start?: Dimension; diff --git a/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts index caf1789b6769794f0ab66dc978dbd75594afbca5..246f70018887106165fc9415baa37633fe7914f6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRemoteWindow.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRemoteWindowPeer } from "./peers/ArkRemoteWindowPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { RemoteWindowAttribute, WindowAnimationTarget } from "./ArkRemoteWindowInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { WindowAnimationTarget, RemoteWindowAttribute } from "./ArkRemoteWindowInterfaces" /** @memo:stable */ export class ArkRemoteWindowComponent extends ArkCommonMethodComponent { getPeer(): ArkRemoteWindowPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts index 6fbed6f6311b3392c3ce7ca2512cad02e5f71582..e66ed0ea465cc29b146a641a7ba66f4f16fa8288 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRemoteWindowInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RRect { left: number; top: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts index 893f9d9d7a66e63c283e4c4ad90d91fb34e7becd..eba617ebfa484ce52d17cee9d10b14a002250ee1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts @@ -17,13 +17,19 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class RenderingContextSettingsInternal { + public static fromPtr(ptr: KPointer): RenderingContextSettings { + const obj : RenderingContextSettings = new RenderingContextSettings(undefined) + obj.peer = new Finalizable(ptr, RenderingContextSettings.getFinalizer()) + return obj + } +} export class RenderingContextSettings implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,7 +42,7 @@ export class RenderingContextSettings implements MaterializedBase { const antialias_NonNull = (antialias as boolean) this.setAntialias(antialias_NonNull) } - static ctor(antialias?: boolean): KPointer { + static ctor_renderingcontextsettings(antialias?: boolean): KPointer { const thisSerializer : Serializer = Serializer.hold() let antialias_type : int32 = RuntimeType.UNDEFINED antialias_type = runtimeType(antialias) @@ -50,7 +56,7 @@ export class RenderingContextSettings implements MaterializedBase { return retval } constructor(antialias?: boolean) { - const ctorPtr : KPointer = RenderingContextSettings.ctor(antialias) + const ctorPtr : KPointer = RenderingContextSettings.ctor_renderingcontextsettings(antialias) this.peer = new Finalizable(ctorPtr, RenderingContextSettings.getFinalizer()) } static getFinalizer(): KPointer { @@ -72,10 +78,3 @@ export class RenderingContextSettings implements MaterializedBase { ArkUIGeneratedNativeModule._RenderingContextSettings_setAntialias(this.peer!.ptr, antialias ? 1 : 0) } } -export class RenderingContextSettingsInternal { - public static fromPtr(ptr: KPointer): RenderingContextSettings { - const obj : RenderingContextSettings = new RenderingContextSettings(undefined) - obj.peer = new Finalizable(ptr, RenderingContextSettings.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts index 5d7ca60bcf2f64952c8cece0a9a05b70550cfda9..ee39f9365021387370195ca314fd833a08eee90d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ReplaceSymbolEffectInternal { + public static fromPtr(ptr: KPointer): ReplaceSymbolEffect { + const obj : ReplaceSymbolEffect = new ReplaceSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, ReplaceSymbolEffect.getFinalizer()) + return obj + } +} export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +43,7 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_replacesymboleffect(scope?: EffectScope): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -51,7 +57,7 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr : KPointer = ReplaceSymbolEffect.ctor(scope) + const ctorPtr : KPointer = ReplaceSymbolEffect.ctor_replacesymboleffect(scope) this.peer = new Finalizable(ctorPtr, ReplaceSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +79,3 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._ReplaceSymbolEffect_setScope(this.peer!.ptr, (scope.valueOf() as int32)) } } -export class ReplaceSymbolEffectInternal { - public static fromPtr(ptr: KPointer): ReplaceSymbolEffect { - const obj : ReplaceSymbolEffect = new ReplaceSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, ReplaceSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts index 5b0234f49ed1864206f4a746a738fbc676cf01eb..c0b8ceaedb62248f3091b59826c74e243542bcc2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditor.ts @@ -19,17 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichEditorPeer } from "./peers/ArkRichEditorPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, CustomBuilder } from "./ArkCommonInterfaces" -import { RichEditorAttribute, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, KeyboardOptions, PlaceholderStyle, RichEditorOptions, RichEditorStyledStringOptions } from "./ArkRichEditorInterfaces" -import { Callback_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, BarState } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, RichEditorAttribute, KeyboardOptions, PlaceholderStyle, RichEditorOptions, RichEditorStyledStringOptions } from "./ArkRichEditorInterfaces" import { TextRange, TextDataDetectorConfig, OnDidChangeCallback } from "./ArkTextCommonInterfaces" -import { CopyOptions, BarState, ResponseType } from "./ArkEnumsInterfaces" -import { ResourceColor, ResourceStr } from "./ArkUnitsInterfaces" import { EnterKeyType } from "./ArkTextInputInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" /** @memo:stable */ @@ -41,12 +59,12 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public setRichEditorOptions(value: RichEditorOptions | RichEditorStyledStringOptions): this { if (this.checkPriority("setRichEditorOptions")) { const value_type = runtimeType(value) - if ((TypeChecker.isRichEditorOptions(value, true))) { + if (TypeChecker.isRichEditorOptions(value, true)) { const value_casted = value as (RichEditorOptions) this.getPeer()?.setRichEditorOptions0Attribute(value_casted) return this } - if ((TypeChecker.isRichEditorStyledStringOptions(value, true))) { + if (TypeChecker.isRichEditorStyledStringOptions(value, true)) { const options_casted = value as (RichEditorStyledStringOptions) this.getPeer()?.setRichEditorOptions1Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts index b2f9c1c21811b5f980f073715894cd7d95d84693..13ba955271b70252624f1abf0fbb9b14e2000947 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts @@ -17,29 +17,36 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextEditControllerEx, TextEditControllerExInternal } from "./ArkTextEditControllerExMaterialized" -import { RichEditorTextStyle } from "./ArkRichEditorInterfaces" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" import { SelectionOptions } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PreviewText } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle } from "./ArkRichEditorInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class RichEditorBaseControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorBaseController { + const obj : RichEditorBaseController = new RichEditorBaseController() + obj.peer = new Finalizable(ptr, RichEditorBaseController.getFinalizer()) + return obj + } +} export class RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorbasecontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_ctor() return retval } constructor() { - const ctorPtr : KPointer = RichEditorBaseController.ctor() + const ctorPtr : KPointer = RichEditorBaseController.ctor_richeditorbasecontroller() this.peer = new Finalizable(ctorPtr, RichEditorBaseController.getFinalizer()) } static getFinalizer(): KPointer { @@ -97,7 +104,7 @@ export class RichEditorBaseController implements MaterializedBase { } private getTypingStyle_serialize(): RichEditorTextStyle { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getTypingStyle(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRichEditorTextStyle() } private setTypingStyle_serialize(value: RichEditorTextStyle): void { const thisSerializer : Serializer = Serializer.hold() @@ -130,13 +137,6 @@ export class RichEditorBaseController implements MaterializedBase { } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getPreviewText(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } -} -export class RichEditorBaseControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorBaseController { - const obj : RichEditorBaseController = new RichEditorBaseController() - obj.peer = new Finalizable(ptr, RichEditorBaseController.getFinalizer()) - return obj + return new Deserializer(retval, retval.length).readPreviewText() } } diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts index af499452ba0f1edde62b8daab4e8662d203c3cd5..e6b48149fcbef616bbecdfc46aa2bf86b0c5c4af 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -17,33 +17,43 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./ArkRichEditorBaseControllerMaterialized" -import { RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan } from "./ArkRichEditorInterfaces" +import { TextEditControllerEx, TextEditControllerExInternal } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions, CustomBuilder } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { PreviewText } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan } from "./ArkRichEditorInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { ResourceStr } from "./ArkUnitsInterfaces" -import { CustomBuilder } from "./ArkCommonInterfaces" -import { CustomNodeBuilder } from "./SyntheticDeclarations" +import { 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, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class RichEditorControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorController { + const obj : RichEditorController = new RichEditorController() + obj.peer = new Finalizable(ptr, RichEditorController.getFinalizer()) + return obj + } +} export class RichEditorController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = RichEditorController.ctor() + const ctorPtr : KPointer = RichEditorController.ctor_richeditorcontroller() this.peer = new Finalizable(ctorPtr, RichEditorController.getFinalizer()) } static getFinalizer(): KPointer { @@ -125,17 +135,17 @@ export class RichEditorController extends RichEditorBaseController implements Ma const value_0 = value as PixelMap thisSerializer.writePixelMap(value_0) } - else if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + else if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ResourceStr let value_1_type : int32 = RuntimeType.UNDEFINED value_1_type = runtimeType(value_1) - if (((RuntimeType.STRING == value_1_type))) { + if (RuntimeType.STRING == value_1_type) { thisSerializer.writeInt8(0 as int32) const value_1_0 = value_1 as string thisSerializer.writeString(value_1_0) } - else if (((RuntimeType.OBJECT == value_1_type))) { + else if (RuntimeType.OBJECT == value_1_type) { thisSerializer.writeInt8(1 as int32) const value_1_1 = value_1 as Resource thisSerializer.writeResource(value_1_1) @@ -248,7 +258,7 @@ export class RichEditorController extends RichEditorBaseController implements Ma } private getSelection_serialize(): RichEditorSelection { const retval = ArkUIGeneratedNativeModule._RichEditorController_getSelection(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRichEditorSelection() } private fromStyledString_serialize(value: StyledString): Array { const thisSerializer : Serializer = Serializer.hold() @@ -265,10 +275,3 @@ export class RichEditorController extends RichEditorBaseController implements Ma throw new Error("Object deserialization is not implemented.") } } -export class RichEditorControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorController { - const obj : RichEditorController = new RichEditorController() - obj.peer = new Finalizable(ptr, RichEditorController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts index 5982f7e225a09adc0424ea49cd715c3479a3d706..528bb029ecf56a9aafe308fef5795e5de9b36e3b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorInterfaces.ts @@ -19,11 +19,11 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Tuple_Number_Number, Tuple_Dimension_Dimension, Callback_Void, Callback_ClickEvent_Void, Callback_GestureEvent_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./SyntheticDeclarations" -import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Font } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, CopyOptions, BarState, ResponseType } from "./ArkEnumsInterfaces" +import { Tuple_Number_Number, Tuple_Dimension_Dimension, Callback_Void, Callback_ClickEvent_Void, Callback_GestureEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./SyntheticDeclarations" +import { ResourceColor, Length, ResourceStr, Dimension, Margin, BorderRadiuses, Font, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, BarState } from "./ArkEnumsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" -import { ShadowOptions, CommonMethod, CustomBuilder } from "./ArkCommonInterfaces" +import { ShadowOptions, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" @@ -32,6 +32,21 @@ import { ClickEvent } from "./ArkClickEventMaterialized" import { GestureEvent } from "./ArkGestureEventMaterialized" import { RichEditorController } from "./ArkRichEditorControllerMaterialized" import { RichEditorStyledStringController } from "./ArkRichEditorStyledStringControllerMaterialized" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { EnterKeyType } from "./ArkTextInputInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { SubmitEvent } from "./ArkSubmitEventMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts index 23d7423766f08e923bf823d99dcab93c41dfa474..ae245a2a30e463a4e4da862cf96d299d61f0aa7f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts @@ -17,31 +17,41 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" +import { PreviewText, StyledStringChangedListener } from "./ArkTextCommonInterfaces" +import { RichEditorTextStyle, RichEditorRange } from "./ArkRichEditorInterfaces" import { StyledStringController, StyledStringControllerInternal } from "./ArkStyledStringControllerMaterialized" import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" -import { RichEditorRange } from "./ArkRichEditorInterfaces" -import { StyledStringChangedListener } from "./ArkTextCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class RichEditorStyledStringControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorStyledStringController { + const obj : RichEditorStyledStringController = new RichEditorStyledStringController() + obj.peer = new Finalizable(ptr, RichEditorStyledStringController.getFinalizer()) + return obj + } +} export class RichEditorStyledStringController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorstyledstringcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = RichEditorStyledStringController.ctor() + const ctorPtr : KPointer = RichEditorStyledStringController.ctor_richeditorstyledstringcontroller() this.peer = new Finalizable(ctorPtr, RichEditorStyledStringController.getFinalizer()) } static getFinalizer(): KPointer { @@ -75,7 +85,7 @@ export class RichEditorStyledStringController extends RichEditorBaseController i } private getSelection_serialize(): RichEditorRange { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_getSelection(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRichEditorRange() } private onContentChanged_serialize(listener: StyledStringChangedListener): void { const thisSerializer : Serializer = Serializer.hold() @@ -84,10 +94,3 @@ export class RichEditorStyledStringController extends RichEditorBaseController i thisSerializer.release() } } -export class RichEditorStyledStringControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorStyledStringController { - const obj : RichEditorStyledStringController = new RichEditorStyledStringController() - obj.peer = new Finalizable(ptr, RichEditorStyledStringController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkRichText.ts b/arkoala-arkts/arkui/src/generated/ArkRichText.ts index cb345c97128505ce67372926136e1aaec290cee2..b2f51a7fb5bf2a87a3bd2e36497138077bf90267 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichText.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichText.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichTextPeer } from "./peers/ArkRichTextPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { RichTextAttribute } from "./ArkRichTextInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" /** @memo:stable */ export class ArkRichTextComponent extends ArkCommonMethodComponent { getPeer(): ArkRichTextPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts index 7d33f30b56f43abf261f2a6e6bce4e8fdf5812e3..566e55d0a47c29fda36a48b1afa2cda5856cfe7c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRichTextInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type RichTextInterface = (content: string) => RichTextAttribute; export interface RichTextAttribute extends CommonMethod { onStart: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkRootScene.ts b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts index 4410a9d025101af71c2aa013f72e90708ab0f0c3..9ad812d58db6a12837b1822804c9074bcd373b30 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRootScene.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRootScene.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRootScenePeer } from "./peers/ArkRootScenePeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { RootSceneAttribute, RootSceneSession } from "./ArkRootSceneInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RootSceneSession, RootSceneAttribute } from "./ArkRootSceneInterfaces" /** @memo:stable */ export class ArkRootSceneComponent extends ArkCommonMethodComponent { getPeer(): ArkRootScenePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts index 49186bb245f8fc560e4a0f0e64fed3e4341db669..5d494bbef73e38590c84c0c6310d7fbb64c2820c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRootSceneInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RootSceneSession { } export type RootSceneInterface = (session: RootSceneSession) => RootSceneAttribute; diff --git a/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts index 13e62ec312c87b23883ca62457d5ff375110adc3..f9103c901dd685540214559ab1920e2d19523da2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRotationGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface RotationGestureEvent { angle: number @@ -39,13 +41,13 @@ export class RotationGestureEventInternal extends BaseGestureEventInternal imple set angle(angle: number) { this.setAngle(angle) } - static ctor(): KPointer { + static ctor_rotationgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._RotationGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = RotationGestureEventInternal.ctor() + const ctorPtr : KPointer = RotationGestureEventInternal.ctor_rotationgestureevent() this.peer = new Finalizable(ctorPtr, RotationGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRow.ts b/arkoala-arkts/arkui/src/generated/ArkRow.ts index f2e98431a1b6b6db3fc6297e18c90962c3569ba7..50e15305b31fe9b63ca34953fe47cf4bb464e053 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRow.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowPeer } from "./peers/ArkRowPeer" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { RowAttribute, RowOptions } from "./ArkRowInterfaces" -import { VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { RowOptions, RowAttribute } from "./ArkRowInterfaces" /** @memo:stable */ export class ArkRowComponent extends ArkCommonMethodComponent { getPeer(): ArkRowPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts index e2fb3d8c9879ee86500fdc2edab853a2f5c2b4d8..757a1548420d89e92b84ab83b9468eca5eadc4d7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRowInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, VerticalAlign, FlexAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface RowOptions { space?: string | number; } diff --git a/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts index 80389e353709e617435d5435b3bef5cd84aa0527..339803de8f4307fd64bad8c4c50b51972e31fac7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRowSplit.ts @@ -19,11 +19,32 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowSplitPeer } from "./peers/ArkRowSplitPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { RowSplitAttribute } from "./ArkRowSplitInterfaces" /** @memo:stable */ export class ArkRowSplitComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts index 0affb04715390487dbd673340a2e069e6175b179..369a2ed27644bef06d0a357aa273e466f07127ad 100644 --- a/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkRowSplitInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type RowSplitInterface = () => RowSplitAttribute; export interface RowSplitAttribute extends CommonMethod { resizeable: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts index 68f43f44f378a9f572dcbcc55bbf042c82986876..cf6a948d77b1c7d902deea36ba0eefaab1187b0c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSaveButton.ts @@ -19,15 +19,18 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkSaveButtonPeer } from "./peers/ArkSaveButtonPeer" import { UseEventsProperties } from "./use_properties" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" -import { SaveButtonAttribute, SaveButtonOnClickResult, SaveButtonOptions } from "./ArkSaveButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_SaveButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions } from "./ArkSaveButtonInterfaces" /** @memo:stable */ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent { getPeer(): ArkSaveButtonPeer { @@ -37,11 +40,11 @@ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent public setSaveButtonOptions(options?: SaveButtonOptions): this { if (this.checkPriority("setSaveButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setSaveButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (SaveButtonOptions) this.getPeer()?.setSaveButtonOptions1Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts index e0b13c7b618a9477ffa3a26293e9f94adb76df52..857a718510ad439c8424f7a892767deed914583a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSaveButtonInterfaces.ts @@ -20,7 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { ButtonType } from "./ArkButtonInterfaces" -import { SecurityComponentMethod } from "./ArkSecurityComponentInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle } from "./ArkEnumsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { Callback_ClickEvent_SaveButtonOnClickResult_Void } from "./SyntheticDeclarations" import { ClickEvent } from "./ArkClickEventMaterialized" export enum SaveIconStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts index 02fafe11b97bd3085a9e67f07190d398defcb252..051e82c51376309d4851aeb9f98fe6abee0d594c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts @@ -18,13 +18,19 @@ import { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScaleSymbolEffectInternal { + public static fromPtr(ptr: KPointer): ScaleSymbolEffect { + const obj : ScaleSymbolEffect = new ScaleSymbolEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, ScaleSymbolEffect.getFinalizer()) + return obj + } +} export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -44,7 +50,7 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { const direction_NonNull = (direction as EffectDirection) this.setDirection(direction_NonNull) } - static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + static ctor_scalesymboleffect(scope?: EffectScope, direction?: EffectDirection): KPointer { const thisSerializer : Serializer = Serializer.hold() let scope_type : int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -65,7 +71,7 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope, direction?: EffectDirection) { - const ctorPtr : KPointer = ScaleSymbolEffect.ctor(scope, direction) + const ctorPtr : KPointer = ScaleSymbolEffect.ctor_scalesymboleffect(scope, direction) this.peer = new Finalizable(ctorPtr, ScaleSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -102,10 +108,3 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._ScaleSymbolEffect_setDirection(this.peer!.ptr, (direction.valueOf() as int32)) } } -export class ScaleSymbolEffectInternal { - public static fromPtr(ptr: KPointer): ScaleSymbolEffect { - const obj : ScaleSymbolEffect = new ScaleSymbolEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, ScaleSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkScreen.ts b/arkoala-arkts/arkui/src/generated/ArkScreen.ts index 25e6886aa17a5713f4659428ecd49a28e70f5092..c889db87ac79fee8119f9dc99ff341b6da880d53 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreen.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreen.ts @@ -19,11 +19,32 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScreenPeer } from "./peers/ArkScreenPeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ScreenAttribute } from "./ArkScreenInterfaces" /** @memo:stable */ export class ArkScreenComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts index 88af118890b56f03d4b16d2a42ba25a41c8821bc..b342ccb8d9338349c22bc180a372080742e2a24f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts @@ -18,24 +18,30 @@ import { ScreenCaptureConfig } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScreenCaptureHandlerInternal { + public static fromPtr(ptr: KPointer): ScreenCaptureHandler { + const obj : ScreenCaptureHandler = new ScreenCaptureHandler() + obj.peer = new Finalizable(ptr, ScreenCaptureHandler.getFinalizer()) + return obj + } +} export class ScreenCaptureHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_screencapturehandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ScreenCaptureHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = ScreenCaptureHandler.ctor() + const ctorPtr : KPointer = ScreenCaptureHandler.ctor_screencapturehandler() this.peer = new Finalizable(ctorPtr, ScreenCaptureHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -67,10 +73,3 @@ export class ScreenCaptureHandler implements MaterializedBase { ArkUIGeneratedNativeModule._ScreenCaptureHandler_deny(this.peer!.ptr) } } -export class ScreenCaptureHandlerInternal { - public static fromPtr(ptr: KPointer): ScreenCaptureHandler { - const obj : ScreenCaptureHandler = new ScreenCaptureHandler() - obj.peer = new Finalizable(ptr, ScreenCaptureHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts index 4e64a2140dd3770d29d7416dc4bc83742c36ba35..809154fdd9c418ddee8c76f3a963a7c7de08fc96 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScreenInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type ScreenInterface = (screenId: number) => ScreenAttribute; export interface ScreenAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkScroll.ts b/arkoala-arkts/arkui/src/generated/ArkScroll.ts index 713bf41ccae5016f67aa77688e5c3d66b23ebb9b..195edeb8a0f7db1434ad070478bc39d8d265a0db 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScroll.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScroll.ts @@ -19,17 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkScrollPeer } from "./peers/ArkScrollPeer" import { UseEventsProperties } from "./use_properties" -import { ScrollableCommonMethod, NestedScrollOptions, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { ScrollAttribute, ScrollDirection, ScrollOnWillScrollCallback, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions } from "./ArkScrollInterfaces" -import { Callback_Number_Number_Void, Callback_Void } from "./SyntheticDeclarations" -import { VoidCallback } from "./ArkUnitsInterfaces" -import { BarState, Color, EdgeEffect } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollDirection, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions, ScrollAttribute } from "./ArkScrollInterfaces" import { Scroller } from "./ArkScrollerMaterialized" /** @memo:stable */ export class ArkScrollComponent extends ArkScrollableCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts index 116f01a6ee890690b1efb10567a6545e527db8fc..e2135ff447162764f892c64b6070166d9e99548c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollBar.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScrollBarPeer } from "./peers/ArkScrollBarPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ScrollBarAttribute, ScrollBarOptions } from "./ArkScrollBarInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollBarOptions, ScrollBarAttribute } from "./ArkScrollBarInterfaces" /** @memo:stable */ export class ArkScrollBarComponent extends ArkCommonMethodComponent { getPeer(): ArkScrollBarPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts index a4ff4647e6bcf7f8c0848a8764813e564e2bc3d2..382d28b81f06ecc59a40447ebc27151baa6da491 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollBarInterfaces.ts @@ -20,8 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Scroller } from "./ArkScrollerMaterialized" -import { BarState } from "./ArkEnumsInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" +import { BarState, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ScrollBarDirection { VERTICAL = 0, Vertical = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts index 63599d8ff6c94c482adde0f692d7c54d46f8ed65..0ae04b88a1a2e9fd597910ab37895ab90da90490 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollInterfaces.ts @@ -20,14 +20,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { Curve, Edge, BarState, Color, EdgeEffect, ScrollSource } from "./ArkEnumsInterfaces" +import { Curve, Edge, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, ScrollSource } from "./ArkEnumsInterfaces" import { ICurve } from "./ArkICurveMaterialized" -import { Dimension, VoidCallback } from "./ArkUnitsInterfaces" +import { Dimension, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" import { ScrollSnapAlign, ScrollState } from "./ArkListInterfaces" import { Scroller } from "./ArkScrollerMaterialized" -import { ScrollableCommonMethod, NestedScrollOptions, EdgeEffectOptions } from "./ArkCommonInterfaces" -import { Callback_Number_Number_Void, Callback_Void } from "./SyntheticDeclarations" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ScrollDirection { VERTICAL = 0, Vertical = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts index 8c93d599141624432b1c90f5794cab8bc1da473c..4847bb3aa2864a2303c47f2bd1a65dd12db7d05d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollMotionMaterialized.ts @@ -18,19 +18,25 @@ import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScrollMotionInternal { + public static fromPtr(ptr: KPointer): ScrollMotion { + const obj : ScrollMotion = new ScrollMotion(undefined, undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ScrollMotion.getFinalizer()) + return obj + } +} export class ScrollMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(position: number, velocity: number, min: number, max: number, prop: SpringProp): KPointer { + static ctor_scrollmotion(position: number, velocity: number, min: number, max: number, prop: SpringProp): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeSpringProp(prop) const retval = ArkUIGeneratedNativeModule._ScrollMotion_ctor(position, velocity, min, max, thisSerializer.asArray(), thisSerializer.length()) @@ -40,7 +46,7 @@ export class ScrollMotion implements MaterializedBase { constructor(position?: number, velocity?: number, min?: number, max?: number, prop?: SpringProp) { if (((position) !== (undefined)) && ((velocity) !== (undefined)) && ((min) !== (undefined)) && ((max) !== (undefined)) && ((prop) !== (undefined))) { - const ctorPtr : KPointer = ScrollMotion.ctor(position, velocity, min, max, prop) + const ctorPtr : KPointer = ScrollMotion.ctor_scrollmotion(position, velocity, min, max, prop) this.peer = new Finalizable(ctorPtr, ScrollMotion.getFinalizer()) } } @@ -48,10 +54,3 @@ export class ScrollMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._ScrollMotion_getFinalizer() } } -export class ScrollMotionInternal { - public static fromPtr(ptr: KPointer): ScrollMotion { - const obj : ScrollMotion = new ScrollMotion(undefined, undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ScrollMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts index 8c2ffb5f64fb3bade40a67685af6f5515e6421a8..489a0269e9c5b68e0b875ca12dbef956db448d69 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts @@ -18,25 +18,31 @@ import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScrollableTargetInfoInternal { + public static fromPtr(ptr: KPointer): ScrollableTargetInfo { + const obj : ScrollableTargetInfo = new ScrollableTargetInfo() + obj.peer = new Finalizable(ptr, ScrollableTargetInfo.getFinalizer()) + return obj + } +} export class ScrollableTargetInfo extends EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_scrollabletargetinfo(): KPointer { const retval = ArkUIGeneratedNativeModule._ScrollableTargetInfo_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = ScrollableTargetInfo.ctor() + const ctorPtr : KPointer = ScrollableTargetInfo.ctor_scrollabletargetinfo() this.peer = new Finalizable(ctorPtr, ScrollableTargetInfo.getFinalizer()) } static getFinalizer(): KPointer { @@ -57,10 +63,3 @@ export class ScrollableTargetInfo extends EventTargetInfo implements Materialize return retval } } -export class ScrollableTargetInfoInternal { - public static fromPtr(ptr: KPointer): ScrollableTargetInfo { - const obj : ScrollableTargetInfo = new ScrollableTargetInfo() - obj.peer = new Finalizable(ptr, ScrollableTargetInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts index 24f4702417b14a85ff73805c6d742d1a66529873..418e52136818eff972f280281dfb631d84f6de4f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkScrollerMaterialized.ts @@ -23,24 +23,30 @@ import { Length } from "./ArkUnitsInterfaces" import { RectResult } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ScrollerInternal { + public static fromPtr(ptr: KPointer): Scroller { + const obj : Scroller = new Scroller() + obj.peer = new Finalizable(ptr, Scroller.getFinalizer()) + return obj + } +} export class Scroller implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_scroller(): KPointer { const retval = ArkUIGeneratedNativeModule._Scroller_ctor() return retval } constructor() { - const ctorPtr : KPointer = Scroller.ctor() + const ctorPtr : KPointer = Scroller.ctor_scroller() this.peer = new Finalizable(ctorPtr, Scroller.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,11 +68,11 @@ export class Scroller implements MaterializedBase { } public scrollPage(value: ScrollPageOptions | Literal_Boolean_next_Axis_direction): undefined { const value_type = runtimeType(value) - if ((TypeChecker.isScrollPageOptions(value, true, false))) { + if (TypeChecker.isScrollPageOptions(value, true, false)) { const value_casted = value as (ScrollPageOptions) return this.scrollPage0_serialize(value_casted) } - if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isLiteral_Boolean_next_Axis_direction(value, true, false)))) { + if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isLiteral_Boolean_next_Axis_direction(value, true, false))) { const value_casted = value as (Literal_Boolean_next_Axis_direction) return this.scrollPage1_serialize(value_casted) } @@ -147,7 +153,7 @@ export class Scroller implements MaterializedBase { } private currentOffset_serialize(): OffsetResult { const retval = ArkUIGeneratedNativeModule._Scroller_currentOffset(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readOffsetResult() } private scrollToIndex_serialize(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { const thisSerializer : Serializer = Serializer.hold() @@ -186,17 +192,10 @@ export class Scroller implements MaterializedBase { } private getItemRect_serialize(index: number): RectResult { const retval = ArkUIGeneratedNativeModule._Scroller_getItemRect(this.peer!.ptr, index) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRectResult() } private getItemIndex_serialize(x: number, y: number): number { const retval = ArkUIGeneratedNativeModule._Scroller_getItemIndex(this.peer!.ptr, x, y) return retval } } -export class ScrollerInternal { - public static fromPtr(ptr: KPointer): Scroller { - const obj : Scroller = new Scroller() - obj.peer = new Finalizable(ptr, Scroller.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSearch.ts b/arkoala-arkts/arkui/src/generated/ArkSearch.ts index 154ddc9c8c6f605d35010b6ef7dfe5e4feb0d054..29e703ad1f330ccf6734778bd6d7d6e5466d1a00 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearch.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearch.ts @@ -19,19 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSearchPeer } from "./peers/ArkSearchPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, SymbolGlyphModifier, TextDecorationOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { SearchAttribute, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchOptions } from "./ArkSearchInterfaces" -import { ResourceColor, Dimension, Font, ResourceStr } from "./ArkUnitsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, TextDecorationOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, TextAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchAttribute, SearchOptions } from "./ArkSearchInterfaces" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./ArkTextInputInterfaces" -import { CopyOptions, TextAlign } from "./ArkEnumsInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./ArkRichEditorInterfaces" /** @memo:stable */ @@ -151,12 +168,12 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onSubmit(value: ((breakpoints: string) => void) | SearchSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((breakpoints: string) => void)) this.getPeer()?.onSubmit0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (SearchSubmitCallback) this.getPeer()?.onSubmit1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts index c2d0977b17ae5f11c1d666f9371e77304468e107..1ef08c79d6459383dadf772f6d0e8b367221845f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearchControllerMaterialized.ts @@ -17,27 +17,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" -import { SelectionOptions } from "./ArkCommonInterfaces" +import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SearchControllerInternal { + public static fromPtr(ptr: KPointer): SearchController { + const obj : SearchController = new SearchController() + obj.peer = new Finalizable(ptr, SearchController.getFinalizer()) + return obj + } +} export class SearchController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_searchcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._SearchController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = SearchController.ctor() + const ctorPtr : KPointer = SearchController.ctor_searchcontroller() this.peer = new Finalizable(ctorPtr, SearchController.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,10 +84,3 @@ export class SearchController extends TextContentControllerBase implements Mater thisSerializer.release() } } -export class SearchControllerInternal { - public static fromPtr(ptr: KPointer): SearchController { - const obj : SearchController = new SearchController() - obj.peer = new Finalizable(ptr, SearchController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts index b91fa0603ecb32cb9769ebdd5558d4864de79511..d56ca40c0b7b792ced49239b8069885db6858ead 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSearchInterfaces.ts @@ -19,15 +19,32 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, Length, ResourceColor, Dimension, Font } from "./ArkUnitsInterfaces" +import { ResourceStr, Length, ResourceColor, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { SearchController } from "./ArkSearchControllerMaterialized" -import { SymbolGlyphModifier, CommonMethod, TextDecorationOptions, CustomBuilder } from "./ArkCommonInterfaces" +import { SymbolGlyphModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions } from "./ArkCommonInterfaces" import { SubmitEvent } from "./ArkSubmitEventMaterialized" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, TextAlign } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./ArkTextInputInterfaces" -import { CopyOptions, TextAlign } from "./ArkEnumsInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./ArkRichEditorInterfaces" export enum CancelButtonStyle { diff --git a/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts index e2fefe106ecdd77fdd2919ea0853a817c979b112..62117c6d9f22b735d96d7a12a02d3dbd45676196 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSecurityComponent.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkSecurityComponentMethodPeer } from "./peers/ArkSecurityComponentPeer" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions } from "./ArkUnitsInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkSelect.ts b/arkoala-arkts/arkui/src/generated/ArkSelect.ts index 9081168c6063e5093e4dfb5975271e52c72d1071..df5c956c205f13a721e1c22997ff347d07f80fa4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSelect.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSelect.ts @@ -19,17 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSelectPeer } from "./peers/ArkSelectPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, BlurStyle, ContentModifier } from "./ArkCommonInterfaces" -import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./ArkSelectInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, Offset } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, OptionWidthMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { ResourceStr, Font, ResourceColor, Length, Dimension, Offset } from "./ArkUnitsInterfaces" -import { Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" -import { OptionWidthMode } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectAttribute, SelectOption } from "./ArkSelectInterfaces" import { ControlSize } from "./ArkButtonInterfaces" import { DividerOptions } from "./ArkTextPickerInterfaces" /** @memo:stable */ diff --git a/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts index ff1d570e8406d6a703ce35f76156eb2cf9dd3bb0..7ebcf04b407ee4526dc9398f2815488543c4951c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSelectInterfaces.ts @@ -19,11 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, Font, ResourceColor, Length, Dimension, Offset } from "./ArkUnitsInterfaces" -import { SymbolGlyphModifier, CommonMethod, BlurStyle, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font, Offset } from "./ArkUnitsInterfaces" +import { SymbolGlyphModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, OptionWidthMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" -import { OptionWidthMode } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ControlSize } from "./ArkButtonInterfaces" import { DividerOptions } from "./ArkTextPickerInterfaces" export interface SelectOption { diff --git a/arkoala-arkts/arkui/src/generated/ArkShape.ts b/arkoala-arkts/arkui/src/generated/ArkShape.ts index bcfb1c4fbd1e5fefea7ca4c8c00887c6b8d79832..371e1f60ba6bedd4cd7dd557ff7b026bab7e9e30 100644 --- a/arkoala-arkts/arkui/src/generated/ArkShape.ts +++ b/arkoala-arkts/arkui/src/generated/ArkShape.ts @@ -19,16 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkShapePeer } from "./peers/ArkShapePeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ShapeAttribute, ViewportRect } from "./ArkShapeInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" +import { ViewportRect, ShapeAttribute } from "./ArkShapeInterfaces" /** @memo:stable */ export class ArkShapeComponent extends ArkCommonMethodComponent { getPeer(): ArkShapePeer { @@ -38,11 +55,11 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { public setShapeOptions(value?: PixelMap): this { if (this.checkPriority("setShapeOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setShapeOptions1Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (PixelMap) this.getPeer()?.setShapeOptions0Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts index cd401f895287dd334ed06833dd97731a216b9f68..a7dacfb921ef4de8bf7ab17650826c6b577fc1f4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkShapeInterfaces.ts @@ -20,10 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { PixelMap } from "./ArkPixelMapMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" export interface ViewportRect { x?: number | string; y?: number | string; diff --git a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts index dae7398e97c2494557e25b038800a57ff17fe16f..a208751bde2d7ac1fc74d1abfb1d8333da2f1ba0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSidebar.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSidebar.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSideBarContainerPeer } from "./peers/ArkSidebarPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SideBarContainerAttribute, ButtonStyle, SideBarPosition, SideBarContainerType } from "./ArkSidebarInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" -import { Length, Dimension } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ButtonStyle, SideBarPosition, SideBarContainerType, SideBarContainerAttribute } from "./ArkSidebarInterfaces" import { DividerStyle } from "./ArkTabsInterfaces" /** @memo:stable */ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { @@ -83,12 +102,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public sideBarWidth(value: number | Length): this { if (this.checkPriority("sideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.sideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.sideBarWidth1Attribute(value_casted) return this @@ -101,12 +120,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public minSideBarWidth(value: number | Length): this { if (this.checkPriority("minSideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.minSideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.minSideBarWidth1Attribute(value_casted) return this @@ -119,12 +138,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public maxSideBarWidth(value: number | Length): this { if (this.checkPriority("maxSideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.maxSideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.maxSideBarWidth1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts index 2d973f1e2dcc1a99086d4dc0ca437e4cb8d998b8..9083367c09a677ba88e7b8e223797d683ae50118 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSidebarInterfaces.ts @@ -21,9 +21,26 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from import { NodeAttach, remember } from "@koalaui/runtime" import { PixelMap } from "./ArkPixelMapMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" -import { Length, Dimension } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { DividerStyle } from "./ArkTabsInterfaces" export enum SideBarContainerType { EMBED = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkSlider.ts b/arkoala-arkts/arkui/src/generated/ArkSlider.ts index 3564903b50863b0642da6f3ef07cf31b3c603846..4d44a605032af172d0bcb384853b228c358a062d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSlider.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSlider.ts @@ -19,16 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSliderPeer } from "./peers/ArkSliderPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderOptions } from "./ArkSliderInterfaces" -import { ResourceColor, Length, Dimension, SizeOptions, ResourceStr } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" -import { Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderAttribute, SliderOptions } from "./ArkSliderInterfaces" /** @memo:stable */ export class ArkSliderComponent extends ArkCommonMethodComponent { getPeer(): ArkSliderPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts index c58fdf173caa68013cd1069b75ccbb21907a272b..427fffe9efcbc03465c0ef661f7fb91b927fa1c8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSliderInterfaces.ts @@ -19,11 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Axis } from "./ArkEnumsInterfaces" -import { ResourceStr, ResourceColor, Length, Dimension, SizeOptions } from "./ArkUnitsInterfaces" -import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" +import { Axis, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { LinearGradient } from "./ArkLinearGradientMaterialized" -import { Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./SyntheticDeclarations" export enum SliderStyle { OUT_SET = 0, OutSet = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSpan.ts index 031e3cc897eb8a62b99b43f8bc4f4f0fa53482bc..d6a420f0ca0a40070b52725537149bd559ed8382 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpan.ts @@ -19,16 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBaseSpanPeer, ArkSpanPeer } from "./peers/ArkSpanPeer" -import { CommonMethod, ShadowOptions } from "./ArkCommonInterfaces" -import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" -import { Font, ResourceColor, Length } from "./ArkUnitsInterfaces" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./ArkSpanInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" /** @memo:stable */ export class ArkBaseSpanComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts index 935c8018b404e9c301650ebc8ca24716e8e9c025..bcd2701f7b399c50c3dff879f2ce96c0b8ce7ff7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpanInterfaces.ts @@ -19,11 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, Dimension, BorderRadiuses, Font, Length } from "./ArkUnitsInterfaces" -import { CommonMethod, ShadowOptions } from "./ArkCommonInterfaces" +import { ResourceColor, Dimension, BorderRadiuses, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { FontStyle, FontWeight, TextCase } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" export interface TextBackgroundStyle { color?: ResourceColor; diff --git a/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts index 0e6e1278ca5e1703dc97ce68220c727bba4a928f..c16deb10a470b895651c2b2d042d5b643e7a3b7c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpringMotionMaterialized.ts @@ -18,19 +18,25 @@ import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SpringMotionInternal { + public static fromPtr(ptr: KPointer): SpringMotion { + const obj : SpringMotion = new SpringMotion(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, SpringMotion.getFinalizer()) + return obj + } +} export class SpringMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(start: number, end: number, velocity: number, prop: SpringProp): KPointer { + static ctor_springmotion(start: number, end: number, velocity: number, prop: SpringProp): KPointer { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeSpringProp(prop) const retval = ArkUIGeneratedNativeModule._SpringMotion_ctor(start, end, velocity, thisSerializer.asArray(), thisSerializer.length()) @@ -40,7 +46,7 @@ export class SpringMotion implements MaterializedBase { constructor(start?: number, end?: number, velocity?: number, prop?: SpringProp) { if (((start) !== (undefined)) && ((end) !== (undefined)) && ((velocity) !== (undefined)) && ((prop) !== (undefined))) { - const ctorPtr : KPointer = SpringMotion.ctor(start, end, velocity, prop) + const ctorPtr : KPointer = SpringMotion.ctor_springmotion(start, end, velocity, prop) this.peer = new Finalizable(ctorPtr, SpringMotion.getFinalizer()) } } @@ -48,10 +54,3 @@ export class SpringMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._SpringMotion_getFinalizer() } } -export class SpringMotionInternal { - public static fromPtr(ptr: KPointer): SpringMotion { - const obj : SpringMotion = new SpringMotion(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, SpringMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts index ae44f78446b8a582553d4da2849d2c55c067580c..a8e93fd2c770d8d49f8bd40330b74ea38f8b5c0e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSpringPropMaterialized.ts @@ -17,26 +17,32 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SpringPropInternal { + public static fromPtr(ptr: KPointer): SpringProp { + const obj : SpringProp = new SpringProp(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, SpringProp.getFinalizer()) + return obj + } +} export class SpringProp implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(mass: number, stiffness: number, damping: number): KPointer { + static ctor_springprop(mass: number, stiffness: number, damping: number): KPointer { const retval = ArkUIGeneratedNativeModule._SpringProp_ctor(mass, stiffness, damping) return retval } constructor(mass?: number, stiffness?: number, damping?: number) { if (((mass) !== (undefined)) && ((stiffness) !== (undefined)) && ((damping) !== (undefined))) { - const ctorPtr : KPointer = SpringProp.ctor(mass, stiffness, damping) + const ctorPtr : KPointer = SpringProp.ctor_springprop(mass, stiffness, damping) this.peer = new Finalizable(ctorPtr, SpringProp.getFinalizer()) } } @@ -44,10 +50,3 @@ export class SpringProp implements MaterializedBase { return ArkUIGeneratedNativeModule._SpringProp_getFinalizer() } } -export class SpringPropInternal { - public static fromPtr(ptr: KPointer): SpringProp { - const obj : SpringProp = new SpringProp(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, SpringProp.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts index da0d9d31d5907820a1e960f67ee09b741f9eed99..fd4e811e0762c5391580f319d6c2bdefd01be684 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SslErrorHandlerInternal { + public static fromPtr(ptr: KPointer): SslErrorHandler { + const obj : SslErrorHandler = new SslErrorHandler() + obj.peer = new Finalizable(ptr, SslErrorHandler.getFinalizer()) + return obj + } +} export class SslErrorHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_sslerrorhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._SslErrorHandler_ctor() return retval } constructor() { - const ctorPtr : KPointer = SslErrorHandler.ctor() + const ctorPtr : KPointer = SslErrorHandler.ctor_sslerrorhandler() this.peer = new Finalizable(ctorPtr, SslErrorHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class SslErrorHandler implements MaterializedBase { ArkUIGeneratedNativeModule._SslErrorHandler_handleCancel(this.peer!.ptr) } } -export class SslErrorHandlerInternal { - public static fromPtr(ptr: KPointer): SslErrorHandler { - const obj : SslErrorHandler = new SslErrorHandler() - obj.peer = new Finalizable(ptr, SslErrorHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkStack.ts b/arkoala-arkts/arkui/src/generated/ArkStack.ts index b09cb6c9e33eac1d4fc03f13042a564287f4b737..3a99bbc78bc42b0e70003f63f9472745ac0531cf 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStack.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStack.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStackPeer } from "./peers/ArkStackPeer" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" -import { StackAttribute, StackOptions } from "./ArkStackInterfaces" -import { Alignment } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { StackOptions, StackAttribute } from "./ArkStackInterfaces" /** @memo:stable */ export class ArkStackComponent extends ArkCommonMethodComponent { getPeer(): ArkStackPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts index ddb30c3ab508e4748e24c3109cf90014a3c051fe..bd76424c60e97c16a5875536acda1201665177b7 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStackInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Alignment } from "./ArkEnumsInterfaces" -import { CommonMethod, PointLightStyle } from "./ArkCommonInterfaces" +import { Alignment, HitTestMode, ImageSize, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface StackOptions { alignContent?: Alignment; } diff --git a/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts b/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts index 3465917b4edd158c29cdd8d3bbc15f3714796936..8ca6145f8ff277f4dbc7d185b529ebbb47dfc13f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStaticComponents.ts @@ -19,7 +19,7 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkRootPeer, ArkComponentRootPeer } from "./peers/ArkStaticComponentsPeer" /** @memo:stable */ diff --git a/arkoala-arkts/arkui/src/generated/ArkStepper.ts b/arkoala-arkts/arkui/src/generated/ArkStepper.ts index 3faa5d147a8bad01ae0a894878620ce8186437ec..57d067a05420fb67ac57cdd46978640cf260a55b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepper.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepper.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperPeer } from "./peers/ArkStepperPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Void, Literal_Number_index } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { StepperAttribute } from "./ArkStepperInterfaces" -import { Callback_Void, Callback_Number_Number_Void, Callback_Number_Void, Literal_Number_index } from "./SyntheticDeclarations" /** @memo:stable */ export class ArkStepperComponent extends ArkCommonMethodComponent { getPeer(): ArkStepperPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts index e9e1fe012336dbfad6a643600dcf7d999e0419a3..e138e1ff5c01512b509bafdc7343b64cd0ec2494 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepperInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Literal_Number_index, Callback_Void, Callback_Number_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" -import { CommonMethod } from "./ArkCommonInterfaces" +import { Literal_Number_index, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type StepperInterface = (value?: Literal_Number_index) => StepperAttribute; export interface StepperAttribute extends CommonMethod { onFinish: (() => void); diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts index 017db48e70acf2339233124c1551399dd02f1762..9d5cb11f763a95f3b3663b18b88bf387ccd7aef4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepperItem.ts @@ -19,12 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperItemPeer } from "./peers/ArkStepperItemPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { StepperItemAttribute, ItemState } from "./ArkStepperItemInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ItemState, StepperItemAttribute } from "./ArkStepperItemInterfaces" /** @memo:stable */ export class ArkStepperItemComponent extends ArkCommonMethodComponent { getPeer(): ArkStepperItemPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts index b9eaedf795e1bec0d62f679291612b6c13fcb46b..5e73017a5bf7b0efa4006f2bf9457231b2566873 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStepperItemInterfaces.ts @@ -19,7 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ItemState { NORMAL = 0, Normal = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts index e9d293f383cad90b59d686dc9df47e160b064a4e..d830165a588692de31d1b423947051d56df14fe4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringControllerMaterialized.ts @@ -19,12 +19,11 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { MutableStyledString, MutableStyledStringInternal } from "./ArkMutableStyledStringMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface StyledStringController { setStyledString(styledString: StyledString): void @@ -35,12 +34,12 @@ export class StyledStringControllerInternal implements MaterializedBase,StyledSt public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_styledstringcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._StyledStringController_ctor() return retval } constructor() { - const ctorPtr : KPointer = StyledStringControllerInternal.ctor() + const ctorPtr : KPointer = StyledStringControllerInternal.ctor_styledstringcontroller() this.peer = new Finalizable(ctorPtr, StyledStringControllerInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts index 2fd6c3fa9a14f9652a3c6337dd25f00a251264be..ade7f30c496ed98428d44fbf7cce75f7920b0eeb 100644 --- a/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkStyledStringMaterialized.ts @@ -20,13 +20,19 @@ import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMa import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { StyleOptions, StyledStringKey, SpanStyle } from "./ArkStyledStringInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class StyledStringInternal { + public static fromPtr(ptr: KPointer): StyledString { + const obj : StyledString = new StyledString(undefined, undefined) + obj.peer = new Finalizable(ptr, StyledString.getFinalizer()) + return obj + } +} export class StyledString implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -35,11 +41,11 @@ export class StyledString implements MaterializedBase { get length(): number { return this.getLength() } - static ctor(value: string | ImageAttachment | CustomSpan, styles?: Array): KPointer { + static ctor_styledstring(value: string | ImageAttachment | CustomSpan, styles?: Array): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) @@ -72,7 +78,7 @@ export class StyledString implements MaterializedBase { constructor(value?: string | ImageAttachment | CustomSpan, styles?: Array) { if (((value) !== (undefined)) && ((styles) !== (undefined))) { - const ctorPtr : KPointer = StyledString.ctor(value, styles) + const ctorPtr : KPointer = StyledString.ctor_styledstring(value, styles) this.peer = new Finalizable(ctorPtr, StyledString.getFinalizer()) } } @@ -188,10 +194,3 @@ export class StyledString implements MaterializedBase { return retval } } -export class StyledStringInternal { - public static fromPtr(ptr: KPointer): StyledString { - const obj : StyledString = new StyledString(undefined, undefined) - obj.peer = new Finalizable(ptr, StyledString.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts index 015942e63255223aaf26f39ae3d64bfed1ff4761..8c4b4b9ef7a20c2bdd6715cae5586dddd3cd0831 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSubmitEventMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface SubmitEvent { text: string @@ -39,12 +38,12 @@ export class SubmitEventInternal implements MaterializedBase,SubmitEvent { set text(text: string) { this.setText(text) } - static ctor(): KPointer { + static ctor_submitevent(): KPointer { const retval = ArkUIGeneratedNativeModule._SubmitEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = SubmitEventInternal.ctor() + const ctorPtr : KPointer = SubmitEventInternal.ctor_submitevent() this.peer = new Finalizable(ctorPtr, SubmitEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts index fdd1162a465b11e5f86abadbe2a4b642b8b2f4e5..f7f7a4587552494878b266f10dac36575c039600 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface SwipeGestureEvent { angle: number @@ -46,13 +48,13 @@ export class SwipeGestureEventInternal extends BaseGestureEventInternal implemen set speed(speed: number) { this.setSpeed(speed) } - static ctor(): KPointer { + static ctor_swipegestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._SwipeGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = SwipeGestureEventInternal.ctor() + const ctorPtr : KPointer = SwipeGestureEventInternal.ctor_swipegestureevent() this.peer = new Finalizable(ctorPtr, SwipeGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts index 32db822c09465d63180d7d1478f652330d0a1bee..41aa6c148cfa1bb2b52f83adfd9900e56df05cd9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiper.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiper.ts @@ -19,20 +19,38 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSwiperPeer } from "./peers/ArkSwiperPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SwiperAttribute, SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAutoFill } from "./ArkSwiperInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect, Curve } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" import { DigitIndicator } from "./ArkDigitIndicatorBuilder" import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" -import { EdgeEffect, Curve } from "./ArkEnumsInterfaces" +import { SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAttribute, SwiperAutoFill } from "./ArkSwiperInterfaces" import { ICurve } from "./ArkICurveMaterialized" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { Length } from "./ArkUnitsInterfaces" import { SwiperController } from "./ArkSwiperControllerMaterialized" /** @memo:stable */ export class ArkSwiperComponent extends ArkCommonMethodComponent { @@ -79,12 +97,12 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public indicator(value: IndicatorComponentController | DotIndicator | DigitIndicator | boolean): this { if (this.checkPriority("indicator")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isIndicatorComponentController(value)))) { + if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isIndicatorComponentController(value))) { const value_casted = value as (IndicatorComponentController) this.getPeer()?.indicator1Attribute(value_casted) return this } - if (((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isDotIndicator(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isDigitIndicator(value))) || (((RuntimeType.BOOLEAN == value_type))))) { + if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isDotIndicator(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isDigitIndicator(value))) || (RuntimeType.BOOLEAN == value_type)) { const value_casted = value as (DotIndicator | DigitIndicator | boolean) this.getPeer()?.indicator0Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts index 63f965036d0727b455bff2f39258f01bd3bdccd6..897c7558c639940e0c1940e67a94b81d53dd24b6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface SwiperContentTransitionProxy { selectedIndex: number @@ -60,12 +59,12 @@ export class SwiperContentTransitionProxyInternal implements MaterializedBase,Sw set mainAxisLength(mainAxisLength: number) { this.setMainAxisLength(mainAxisLength) } - static ctor(): KPointer { + static ctor_swipercontenttransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._SwiperContentTransitionProxy_ctor() return retval } constructor() { - const ctorPtr : KPointer = SwiperContentTransitionProxyInternal.ctor() + const ctorPtr : KPointer = SwiperContentTransitionProxyInternal.ctor_swipercontenttransitionproxy() this.peer = new Finalizable(ctorPtr, SwiperContentTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts index d7adebdbe02c0ddc736ac7615ab3057b7e852f08..06212470395f166bcf8e45fb9a7f9c912678e5f3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperControllerMaterialized.ts @@ -18,24 +18,30 @@ import { VoidCallback } from "./ArkUnitsInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class SwiperControllerInternal { + public static fromPtr(ptr: KPointer): SwiperController { + const obj : SwiperController = new SwiperController() + obj.peer = new Finalizable(ptr, SwiperController.getFinalizer()) + return obj + } +} export class SwiperController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_swipercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._SwiperController_ctor() return retval } constructor() { - const ctorPtr : KPointer = SwiperController.ctor() + const ctorPtr : KPointer = SwiperController.ctor_swipercontroller() this.peer = new Finalizable(ctorPtr, SwiperController.getFinalizer()) } static getFinalizer(): KPointer { @@ -91,10 +97,3 @@ export class SwiperController implements MaterializedBase { return retval } } -export class SwiperControllerInternal { - public static fromPtr(ptr: KPointer): SwiperController { - const obj : SwiperController = new SwiperController() - obj.peer = new Finalizable(ptr, SwiperController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts index a2e65de9eba9956aff7cacfcbb373299f2ce398e..8f29dcf88660a1195c004396cd79a11eb8743934 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSwiperInterfaces.ts @@ -19,15 +19,33 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { VP, Length, ResourceColor } from "./ArkUnitsInterfaces" +import { VP, Length, ResourceColor, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { SwiperController } from "./ArkSwiperControllerMaterialized" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect, Curve } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void, Callback_SwiperContentTransitionProxy_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DotIndicator } from "./ArkDotIndicatorBuilder" import { DigitIndicator } from "./ArkDigitIndicatorBuilder" import { IndicatorComponentController } from "./ArkIndicatorComponentControllerMaterialized" -import { EdgeEffect, Curve } from "./ArkEnumsInterfaces" import { ICurve } from "./ArkICurveMaterialized" -import { Callback_Number_Void, Callback_SwiperContentTransitionProxy_Void } from "./SyntheticDeclarations" import { SwiperContentTransitionProxy } from "./ArkSwiperContentTransitionProxyMaterialized" export interface SwiperAutoFill { minSize: VP; diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts index f87c120631294064ad8271157fa3331db5e96ad5..b5689e9d662e1b192996fcc1c54f9b7f310ab45f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpan.ts @@ -19,17 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolSpanPeer } from "./peers/ArkSymbolSpanPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SymbolSpanAttribute } from "./ArkSymbolSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" -import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { SymbolSpanAttribute } from "./ArkSymbolSpanInterfaces" /** @memo:stable */ export class ArkSymbolSpanComponent extends ArkCommonMethodComponent { getPeer(): ArkSymbolSpanPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts index df480cdb26916da1e2ec9f619503ddcefcdd9a63..af58de6e29b597d35476dac6ac4f55e330a8bdf1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolSpanInterfaces.ts @@ -20,11 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" -import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" export type SymbolSpanInterface = (value: Resource) => SymbolSpanAttribute; export interface SymbolSpanAttribute extends CommonMethod { fontSize: number | string | Resource; diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts index d06f6fb44fdde7dac392492b1966d4ae5e9df55a..43de6551f0b545693ac00a174bc6d97d44631ce8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolglyph.ts @@ -19,15 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolGlyphPeer } from "./peers/ArkSymbolglyphPeer" -import { CommonMethod } from "./ArkCommonInterfaces" -import { SymbolGlyphAttribute, SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect } from "./ArkSymbolglyphInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphAttribute } from "./ArkSymbolglyphInterfaces" /** @memo:stable */ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { getPeer(): ArkSymbolGlyphPeer { @@ -92,13 +110,13 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { if (this.checkPriority("symbolEffect")) { const symbolEffect_type = runtimeType(symbolEffect) const isActive_type = runtimeType(isActive) - if ((((RuntimeType.BOOLEAN == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + if ((RuntimeType.BOOLEAN == isActive_type) || (RuntimeType.UNDEFINED == isActive_type)) { const symbolEffect_casted = symbolEffect as (SymbolEffect) const isActive_casted = isActive as (boolean | undefined) this.getPeer()?.symbolEffect0Attribute(symbolEffect_casted, isActive_casted) return this } - if ((((RuntimeType.NUMBER == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + if ((RuntimeType.NUMBER == isActive_type) || (RuntimeType.UNDEFINED == isActive_type)) { const symbolEffect_casted = symbolEffect as (SymbolEffect) const triggerValue_casted = isActive as (number | undefined) this.getPeer()?.symbolEffect1Attribute(symbolEffect_casted, triggerValue_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts index 13ec11198e73463779118b14ca7a41512a30ec68..8145e880915cb18b9f32b0bfad1e925fd3671f6a 100644 --- a/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSymbolglyphInterfaces.ts @@ -20,9 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { FontWeight } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type SymbolGlyphInterface = (value?: Resource) => SymbolGlyphAttribute; export enum SymbolRenderingStrategy { SINGLE = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts similarity index 33% rename from arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts rename to arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts index 33d98cb442169ee1c739f7bc2e90e965f06b2002..e0d95827a4f1e7b1512513c6333d79fe0cbf4437 100644 --- a/arkoala-arkts/arkui/src/generated/ArkGlobalScopeInspectorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkSystemOpsMaterialized.ts @@ -16,55 +16,52 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Profiler } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" -export class GlobalScope_inspector { - public static getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes_serialize() +export class SystemOpsInternal { + public static fromPtr(ptr: KPointer): SystemOps { + const obj : SystemOps = new SystemOps() + obj.peer = new Finalizable(ptr, SystemOps.getFinalizer()) + return obj } - public static getInspectorNodeById(id: number): Object { - const id_casted = id as (number) - return GlobalScope_inspector.getInspectorNodeById_serialize(id_casted) - } - public static registerVsyncCallback(callback_: ((info: string) => void)): void { - const callback__casted = callback_ as (((info: string) => void)) - GlobalScope_inspector.registerVsyncCallback_serialize(callback__casted) - return +} +export class SystemOps implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer } - public static unregisterVsyncCallback(): void { - GlobalScope_inspector.unregisterVsyncCallback_serialize() - return + static ctor_systemops(): KPointer { + const retval = ArkUIGeneratedNativeModule._SystemOps_ctor() + return retval } - public static setAppBgColor(value: string): void { - const value_casted = value as (string) - GlobalScope_inspector.setAppBgColor_serialize(value_casted) - return + constructor() { + // Constructor does not have parameters. + // It means that the static method call invokes ctor method as well + // when all arguments are undefined. + const ctorPtr : KPointer = SystemOps.ctor_systemops() + this.peer = new Finalizable(ctorPtr, SystemOps.getFinalizer()) } - private static getInspectorNodes_serialize(): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodes() - throw new Error("Object deserialization is not implemented.") + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._SystemOps_getFinalizer() } - private static getInspectorNodeById_serialize(id: number): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodeById(id) - throw new Error("Object deserialization is not implemented.") + public static StartFrame(): KPointer { + return SystemOps.StartFrame_serialize() } - private static registerVsyncCallback_serialize(callback_: ((info: string) => void)): void { - const thisSerializer : Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(callback_) - ArkUIGeneratedNativeModule._GlobalScope_inspector_registerVsyncCallback(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + public static EndFrame(root: KPointer): void { + const root_casted = root as (KPointer) + SystemOps.EndFrame_serialize(root_casted) + return } - private static unregisterVsyncCallback_serialize(): void { - ArkUIGeneratedNativeModule._GlobalScope_inspector_unregisterVsyncCallback() + private static StartFrame_serialize(): KPointer { + const retval = ArkUIGeneratedNativeModule._SystemOps_StartFrame() + return retval } - private static setAppBgColor_serialize(value: string): void { - ArkUIGeneratedNativeModule._GlobalScope_inspector_setAppBgColor(value) + private static EndFrame_serialize(root: KPointer): void { + ArkUIGeneratedNativeModule._SystemOps_EndFrame(root) } } diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts index 45a092cce7a08b51bfb210c7d30f65b58f2f8e18..067285b3055b23051c5d66865715fb8033a72f82 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContent.ts @@ -19,17 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabContentPeer } from "./peers/ArkTabContentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, CustomBuilder } from "./ArkCommonInterfaces" -import { TabContentAttribute, TabBarOptions } from "./ArkTabContentInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TabBarOptions, TabContentAttribute } from "./ArkTabContentInterfaces" import { SubTabBarStyle } from "./ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./ArkBottomTabBarStyleBuilder" -import { VoidCallback } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkTabContentComponent extends ArkCommonMethodComponent { getPeer(): ArkTabContentPeer { @@ -47,12 +66,12 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { public tabBar(value: SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions): this { if (this.checkPriority("tabBar")) { const value_type = runtimeType(value) - if (((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isSubTabBarStyle(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isBottomTabBarStyle(value))))) { + if ((((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isSubTabBarStyle(value))) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isBottomTabBarStyle(value)))) { const value_casted = value as (SubTabBarStyle | BottomTabBarStyle) this.getPeer()?.tabBar1Attribute(value_casted) return this } - if (((((RuntimeType.STRING == value_type))) || (isResource(value)) || (((RuntimeType.FUNCTION == value_type))) || (TypeChecker.isTabBarOptions(value, false, false)))) { + if ((RuntimeType.STRING == value_type) || (isResource(value)) || (RuntimeType.FUNCTION == value_type) || (TypeChecker.isTabBarOptions(value, false, false))) { const value_casted = value as (string | Resource | CustomBuilder | TabBarOptions) this.getPeer()?.tabBar0Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts index 0e49289f9919b5f81c323529aa7c44392c435076..a24b4918363a9561495dc288ce24848ce6879fa6 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContentInterfaces.ts @@ -19,9 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Length, ResourceColor, VoidCallback } from "./ArkUnitsInterfaces" -import { SymbolGlyphModifier, CommonMethod, CustomBuilder } from "./ArkCommonInterfaces" +import { Length, ResourceColor, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { SymbolGlyphModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { SubTabBarStyle } from "./ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./ArkBottomTabBarStyleBuilder" export enum SelectedMode { diff --git a/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts index 70674916776784bd97e6314e72bb668b6a89e35f..bafecfb6fcec2342ca5be0b64d026732e5a18ec1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts @@ -17,12 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TabContentTransitionProxy { from: number @@ -46,12 +45,12 @@ export class TabContentTransitionProxyInternal implements MaterializedBase,TabCo set to(to: number) { this.setTo(to) } - static ctor(): KPointer { + static ctor_tabcontenttransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._TabContentTransitionProxy_ctor() return retval } constructor() { - const ctorPtr : KPointer = TabContentTransitionProxyInternal.ctor() + const ctorPtr : KPointer = TabContentTransitionProxyInternal.ctor_tabcontenttransitionproxy() this.peer = new Finalizable(ctorPtr, TabContentTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTabs.ts b/arkoala-arkts/arkui/src/generated/ArkTabs.ts index 318903d67f6b1dd0bee614dd0095cced7ba83596..3074755b63057fcaa354c6ceab95378f287c4def 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabs.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabs.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabsPeer } from "./peers/ArkTabsPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions } from "./ArkCommonInterfaces" -import { TabsAttribute, BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsOptions } from "./ArkTabsInterfaces" -import { Length, ResourceColor } from "./ArkUnitsInterfaces" -import { EdgeEffect } from "./ArkEnumsInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsAttribute, TabsOptions } from "./ArkTabsInterfaces" /** @memo:stable */ export class ArkTabsComponent extends ArkCommonMethodComponent { getPeer(): ArkTabsPeer { @@ -75,12 +93,12 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { if (this.checkPriority("barMode")) { const value_type = runtimeType(value) const options_type = runtimeType(options) - if ((TypeChecker.isBarMode(value)) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((TypeChecker.isBarMode(value)) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = value as (BarMode) this.getPeer()?.barMode0Attribute(value_casted) return this } - if ((TypeChecker.isBarMode(value)) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((TypeChecker.isBarMode(value)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const value_casted = value as (BarMode) const options_casted = options as (ScrollableBarModeOptions | undefined) this.getPeer()?.barMode1Attribute(value_casted, options_casted) @@ -239,12 +257,12 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { if (this.checkPriority("barBackgroundBlurStyle")) { const style_type = runtimeType(style) const options_type = runtimeType(options) - if ((TypeChecker.isBlurStyle(style)) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((TypeChecker.isBlurStyle(style)) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = style as (BlurStyle) this.getPeer()?.barBackgroundBlurStyle0Attribute(value_casted) return this } - if ((TypeChecker.isBlurStyle(style)) && (((RuntimeType.OBJECT == options_type)))) { + if ((TypeChecker.isBlurStyle(style)) && (RuntimeType.OBJECT == options_type)) { const style_casted = style as (BlurStyle) const options_casted = options as (BackgroundBlurStyleOptions) this.getPeer()?.barBackgroundBlurStyle1Attribute(style_casted, options_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts index 9574aac0118c513374c686390c8ec5d837fcb905..a332d1931a85c2574f9c9393ec71f0fe1a2a692e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabsControllerMaterialized.ts @@ -18,24 +18,30 @@ import { TranslateOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TabsControllerInternal { + public static fromPtr(ptr: KPointer): TabsController { + const obj : TabsController = new TabsController() + obj.peer = new Finalizable(ptr, TabsController.getFinalizer()) + return obj + } +} export class TabsController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_tabscontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TabsController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TabsController.ctor() + const ctorPtr : KPointer = TabsController.ctor_tabscontroller() this.peer = new Finalizable(ctorPtr, TabsController.getFinalizer()) } static getFinalizer(): KPointer { @@ -91,10 +97,3 @@ export class TabsController implements MaterializedBase { ArkUIGeneratedNativeModule._TabsController_setTabBarOpacity(this.peer!.ptr, opacity) } } -export class TabsControllerInternal { - public static fromPtr(ptr: KPointer): TabsController { - const obj : TabsController = new TabsController() - obj.peer = new Finalizable(ptr, TabsController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts index 89b5fc52aa2faf9467ea7f41084ce55fea4f5947..f0f2d4a32a8786f0f8827f347561396bbc605c8e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTabsInterfaces.ts @@ -20,10 +20,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { TabsController } from "./ArkTabsControllerMaterialized" -import { Length, ResourceColor, Dimension } from "./ArkUnitsInterfaces" -import { CommonMethod, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions } from "./ArkCommonInterfaces" -import { EdgeEffect } from "./ArkEnumsInterfaces" -import { Callback_Number_Void, Callback_TabContentTransitionProxy_Void } from "./SyntheticDeclarations" +import { Length, ResourceColor, Dimension, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void, Callback_TabContentTransitionProxy_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { TabContentTransitionProxy } from "./ArkTabContentTransitionProxyMaterialized" export enum BarMode { SCROLLABLE = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts index f7289976ec67c6e1861de4a3fe35103ceafb483a..c9e2090ea0ad9effe97b7c83aab625f47f05060c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTapGestureEventMaterialized.ts @@ -17,13 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseGestureEvent, BaseGestureEventInternal } from "./ArkBaseGestureEventMaterialized" +import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" +import { FingerInfo } from "./ArkGestureInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TapGestureEvent { } @@ -32,13 +34,13 @@ export class TapGestureEventInternal extends BaseGestureEventInternal implements public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_tapgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._TapGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TapGestureEventInternal.ctor() + const ctorPtr : KPointer = TapGestureEventInternal.ctor_tapgestureevent() this.peer = new Finalizable(ctorPtr, TapGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkText.ts b/arkoala-arkts/arkui/src/generated/ArkText.ts index cf2747d6a9c68198d21fc2ab1eff6bb0f1cca042..a1bbd44bef19f23bf03368baaac0c35b8b7b8aa1 100644 --- a/arkoala-arkts/arkui/src/generated/ArkText.ts +++ b/arkoala-arkts/arkui/src/generated/ArkText.ts @@ -19,19 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPeer } from "./peers/ArkTextPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ShadowOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./ArkTextInterfaces" -import { Font, ResourceColor, Length } from "./ArkUnitsInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TextOverflowOptions, TextAttribute, TextSpanType, TextResponseType, TextOptions } from "./ArkTextInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" -import { Callback_String_Void, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { TextDataDetectorConfig, FontSettingOptions } from "./ArkTextCommonInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { SelectionMenuOptions } from "./ArkRichEditorInterfaces" @@ -55,12 +71,12 @@ export class ArkTextComponent extends ArkCommonMethodComponent { if (this.checkPriority("font")) { const fontValue_type = runtimeType(fontValue) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { const value_casted = fontValue as (Font) this.getPeer()?.font0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type)) { const fontValue_casted = fontValue as (Font) const options_casted = options as (FontSettingOptions | undefined) this.getPeer()?.font1Attribute(fontValue_casted, options_casted) @@ -138,12 +154,12 @@ export class ArkTextComponent extends ArkCommonMethodComponent { if (this.checkPriority("fontWeight")) { const weight_type = runtimeType(weight) const options_type = runtimeType(options) - if (((((RuntimeType.NUMBER == weight_type))) || (TypeChecker.isFontWeight(weight)) || (((RuntimeType.STRING == weight_type)))) && (((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.NUMBER == weight_type) || (TypeChecker.isFontWeight(weight)) || (RuntimeType.STRING == weight_type)) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = weight as (number | FontWeight | string) this.getPeer()?.fontWeight0Attribute(value_casted) return this } - if (((((RuntimeType.NUMBER == weight_type))) || (TypeChecker.isFontWeight(weight)) || (((RuntimeType.STRING == weight_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.NUMBER == weight_type) || (TypeChecker.isFontWeight(weight)) || (RuntimeType.STRING == weight_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const weight_casted = weight as (number | FontWeight | string) const options_casted = options as (FontSettingOptions | undefined) this.getPeer()?.fontWeight1Attribute(weight_casted, options_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkTextArea.ts b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts index 394dfe4756322d25e8b10f7fd0997a6d5d0c63a1..71cb8fdbe944c257b67728c39daeab545c68c006 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextArea.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextArea.ts @@ -19,21 +19,37 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextAreaPeer } from "./peers/ArkTextAreaPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, TextDecorationOptions, InputCounterOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { TextAreaAttribute, TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaOptions } from "./ArkTextAreaInterfaces" -import { ResourceColor, Font, Length, ResourceStr, Dimension } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { EnterKeyType } from "./ArkTextInputInterfaces" -import { TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" -import { Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaAttribute, TextAreaOptions } from "./ArkTextAreaInterfaces" import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" /** @memo:stable */ export class ArkTextAreaComponent extends ArkCommonMethodComponent { @@ -179,12 +195,12 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((enterKey: EnterKeyType) => void)) this.getPeer()?.onSubmit0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (TextAreaSubmitCallback) this.getPeer()?.onSubmit1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts index 8c6d72cbd9f16881f5faf4693f63cb2ee59af51e..2240ad9d435bbcb1f03fdb301b44161c6c7136a0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextAreaControllerMaterialized.ts @@ -17,27 +17,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" -import { SelectionOptions } from "./ArkCommonInterfaces" +import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextAreaControllerInternal { + public static fromPtr(ptr: KPointer): TextAreaController { + const obj : TextAreaController = new TextAreaController() + obj.peer = new Finalizable(ptr, TextAreaController.getFinalizer()) + return obj + } +} export class TextAreaController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textareacontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextAreaController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TextAreaController.ctor() + const ctorPtr : KPointer = TextAreaController.ctor_textareacontroller() this.peer = new Finalizable(ctorPtr, TextAreaController.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,10 +84,3 @@ export class TextAreaController extends TextContentControllerBase implements Mat ArkUIGeneratedNativeModule._TextAreaController_stopEditing(this.peer!.ptr) } } -export class TextAreaControllerInternal { - public static fromPtr(ptr: KPointer): TextAreaController { - const obj : TextAreaController = new TextAreaController() - obj.peer = new Finalizable(ptr, TextAreaController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts index d9d3b7afbd5a3469ef081806e98ca28ee7a31e65..7f546a9ffec5e852e028a39b0f3d7b708b8b7303 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextAreaInterfaces.ts @@ -19,17 +19,33 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceStr, ResourceColor, Font, Length, Dimension } from "./ArkUnitsInterfaces" +import { ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { TextAreaController } from "./ArkTextAreaControllerMaterialized" import { EnterKeyType } from "./ArkTextInputInterfaces" import { SubmitEvent } from "./ArkSubmitEventMaterialized" -import { CommonMethod, TextDecorationOptions, InputCounterOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" -import { Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" export interface TextAreaOptions { placeholder?: ResourceStr; diff --git a/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts index 912f3cc2ddc9f0ec9e5ba9d96a665eb1cffd663c..3a13afe287038dada42728be38f012d42dfa5686 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextBaseControllerMaterialized.ts @@ -19,12 +19,11 @@ import { SelectionOptions } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TextBaseController { setSelection(selectionStart: number, selectionEnd: number, options: SelectionOptions): void @@ -36,12 +35,12 @@ export class TextBaseControllerInternal implements MaterializedBase,TextBaseCont public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textbasecontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextBaseController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextBaseControllerInternal.ctor() + const ctorPtr : KPointer = TextBaseControllerInternal.ctor_textbasecontroller() this.peer = new Finalizable(ctorPtr, TextBaseControllerInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClock.ts b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts index 03e699e2e43216e73cf72ecdef62a21e22c6bfb7..ef674daf4722a1dbcbabc464d98b8605b6df5b4e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClock.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClock.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextClockPeer } from "./peers/ArkTextClockPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ShadowOptions, ContentModifier } from "./ArkCommonInterfaces" -import { TextClockAttribute, TextClockConfiguration, TextClockOptions } from "./ArkTextClockInterfaces" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./ArkTextClockInterfaces" import { DateTimeOptions } from "./ArkTimePickerInterfaces" /** @memo:stable */ export class ArkTextClockComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts index d20e42f8ee1bb4e43c2ff32f560fea94ad9464bb..b0d52430317626f9ff1e7f771c0ee21d69228804 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClockControllerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextClockControllerInternal { + public static fromPtr(ptr: KPointer): TextClockController { + const obj : TextClockController = new TextClockController() + obj.peer = new Finalizable(ptr, TextClockController.getFinalizer()) + return obj + } +} export class TextClockController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textclockcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextClockController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextClockController.ctor() + const ctorPtr : KPointer = TextClockController.ctor_textclockcontroller() this.peer = new Finalizable(ctorPtr, TextClockController.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class TextClockController implements MaterializedBase { return retval } } -export class TextClockControllerInternal { - public static fromPtr(ptr: KPointer): TextClockController { - const obj : TextClockController = new TextClockController() - obj.peer = new Finalizable(ptr, TextClockController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts index 2a3f02d4cce8c0b4de79d76150e4d00ddd923479..24c30c345fb2436ed905c91310a3547a6e62da14 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextClockInterfaces.ts @@ -19,11 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonConfiguration, CommonMethod, ShadowOptions, ContentModifier } from "./ArkCommonInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { TextClockController } from "./ArkTextClockControllerMaterialized" -import { Callback_Number_Void } from "./SyntheticDeclarations" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DateTimeOptions } from "./ArkTimePickerInterfaces" export interface TextClockConfiguration extends CommonConfiguration { timeZoneOffset: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts index 8a22629b4126136b27a0a29ca86c80bc36b2f1e8..fc8cbd74ab2122530c9abee45f388c5e0d254d3b 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts @@ -18,24 +18,30 @@ import { CaretOffset, RectResult } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextContentControllerBaseInternal { + public static fromPtr(ptr: KPointer): TextContentControllerBase { + const obj : TextContentControllerBase = new TextContentControllerBase() + obj.peer = new Finalizable(ptr, TextContentControllerBase.getFinalizer()) + return obj + } +} export class TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textcontentcontrollerbase(): KPointer { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextContentControllerBase.ctor() + const ctorPtr : KPointer = TextContentControllerBase.ctor_textcontentcontrollerbase() this.peer = new Finalizable(ctorPtr, TextContentControllerBase.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,21 +58,14 @@ export class TextContentControllerBase implements MaterializedBase { } private getCaretOffset_serialize(): CaretOffset { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readCaretOffset() } private getTextContentRect_serialize(): RectResult { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readRectResult() } private getTextContentLineCount_serialize(): number { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) return retval } } -export class TextContentControllerBaseInternal { - public static fromPtr(ptr: KPointer): TextContentControllerBase { - const obj : TextContentControllerBase = new TextContentControllerBase() - obj.peer = new Finalizable(ptr, TextContentControllerBase.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts index ecd311f344e2d4d53c544ac41bc07cf5b667b256..82134a185054e7bca1aa090af4adb6c50a74b9ed 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextControllerMaterialized.ts @@ -19,24 +19,30 @@ import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextControllerInternal { + public static fromPtr(ptr: KPointer): TextController { + const obj : TextController = new TextController() + obj.peer = new Finalizable(ptr, TextController.getFinalizer()) + return obj + } +} export class TextController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextController.ctor() + const ctorPtr : KPointer = TextController.ctor_textcontroller() this.peer = new Finalizable(ctorPtr, TextController.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,10 +74,3 @@ export class TextController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class TextControllerInternal { - public static fromPtr(ptr: KPointer): TextController { - const obj : TextController = new TextController() - obj.peer = new Finalizable(ptr, TextController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts index cab2aa58da02f49a51b9ebd1297a6283695e43c6..5ff481f47afb63d3624bc3fc213980b8cd88f488 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextEditControllerExMaterialized.ts @@ -17,14 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextBaseController, TextBaseControllerInternal } from "./ArkTextBaseControllerMaterialized" +import { SelectionOptions } from "./ArkCommonInterfaces" +import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PreviewText } from "./ArkTextCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TextEditControllerEx { isEditing(): boolean @@ -38,13 +39,13 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_texteditcontrollerex(): KPointer { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TextEditControllerExInternal.ctor() + const ctorPtr : KPointer = TextEditControllerExInternal.ctor_texteditcontrollerex() this.peer = new Finalizable(ctorPtr, TextEditControllerExInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -84,7 +85,7 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_getPreviewText(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readPreviewText() } public static fromPtr(ptr: KPointer): TextEditControllerExInternal { const obj : TextEditControllerExInternal = new TextEditControllerExInternal() diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts index 1c2b1e97c76f88cfb645cb8fd34ea0ed0e8d7786..15c2aba815b3f59b2d7f8c1d061bf4fd151f0cce 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInput.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInput.ts @@ -19,20 +19,37 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextInputPeer } from "./peers/ArkTextInputPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, CustomBuilder, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" -import { TextInputAttribute, InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./ArkTextInputInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputAttribute, TextInputOptions } from "./ArkTextInputInterfaces" import { ContentType } from "./ArkTextAreaInterfaces" -import { ResourceColor, Dimension, Font, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" import { EditableTextOnChangeCallback, CaretStyle, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" import { CancelButtonOptions, CancelButtonSymbolOptions } from "./ArkSearchInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./ArkRichEditorInterfaces" /** @memo:stable */ @@ -422,12 +439,12 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { if (this.checkPriority("cancelButton")) { const value_type = runtimeType(value) - if ((TypeChecker.isCancelButtonOptions(value, true, true))) { + if (TypeChecker.isCancelButtonOptions(value, true, true)) { const value_casted = value as (CancelButtonOptions) this.getPeer()?.cancelButton0Attribute(value_casted) return this } - if ((TypeChecker.isCancelButtonSymbolOptions(value, true, true))) { + if (TypeChecker.isCancelButtonSymbolOptions(value, true, true)) { const value_casted = value as (CancelButtonSymbolOptions) this.getPeer()?.cancelButton1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts index 63bf8c749b6d9fd7e3d2dfb109c518786fb070b2..8b58a379a8efc0f162c968df182745126ce1d3ee 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInputControllerMaterialized.ts @@ -17,27 +17,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" -import { SelectionOptions } from "./ArkCommonInterfaces" +import { CaretOffset, RectResult, SelectionOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextInputControllerInternal { + public static fromPtr(ptr: KPointer): TextInputController { + const obj : TextInputController = new TextInputController() + obj.peer = new Finalizable(ptr, TextInputController.getFinalizer()) + return obj + } +} export class TextInputController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textinputcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextInputController_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TextInputController.ctor() + const ctorPtr : KPointer = TextInputController.ctor_textinputcontroller() this.peer = new Finalizable(ctorPtr, TextInputController.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,10 +84,3 @@ export class TextInputController extends TextContentControllerBase implements Ma ArkUIGeneratedNativeModule._TextInputController_stopEditing(this.peer!.ptr) } } -export class TextInputControllerInternal { - public static fromPtr(ptr: KPointer): TextInputController { - const obj : TextInputController = new TextInputController() - obj.peer = new Finalizable(ptr, TextInputController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts index ea92c84c578a9fa203db52250014fe889afa6fdf..302c36a374920f2a9c1e9dd2feea6ca3595da4bd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInputInterfaces.ts @@ -19,15 +19,32 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ResourceColor, ResourceStr, Dimension, Font, Length } from "./ArkUnitsInterfaces" +import { ResourceColor, ResourceStr, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" import { TextInputController } from "./ArkTextInputControllerMaterialized" import { Resource } from "./ArkResourceInterfaces" import { SubmitEvent } from "./ArkSubmitEventMaterialized" import { PasteEvent, KeyboardOptions } from "./ArkRichEditorInterfaces" -import { CommonMethod, CustomBuilder, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { ContentType } from "./ArkTextAreaInterfaces" -import { TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./ArkEnumsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./SyntheticDeclarations" import { EditableTextOnChangeCallback, CaretStyle, InsertValue, DeleteValue } from "./ArkTextCommonInterfaces" import { CancelButtonOptions, CancelButtonSymbolOptions } from "./ArkSearchInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts index 7d11b8782976b7fa0c1d24445e62a8b36ee27613..61332458fa2820cb7a38ad574b0b132118c3b65c 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextInterfaces.ts @@ -19,13 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { TextOverflow, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./ArkEnumsInterfaces" +import { TextOverflow, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { CommonMethod, ShadowOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { Font, ResourceColor, Length } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" -import { Callback_String_Void, Callback_Number_Number_Void } from "./SyntheticDeclarations" import { TextDataDetectorConfig, FontSettingOptions } from "./ArkTextCommonInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" import { SelectionMenuOptions } from "./ArkRichEditorInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts index fe0889b1803980525f1f44424a4e7acf2d019696..d91fe03195d54251476dd5e1e510c04f0766e45f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts @@ -19,13 +19,19 @@ import { ResourceStr } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextMenuItemIdInternal { + public static fromPtr(ptr: KPointer): TextMenuItemId { + const obj : TextMenuItemId = new TextMenuItemId() + obj.peer = new Finalizable(ptr, TextMenuItemId.getFinalizer()) + return obj + } +} export class TextMenuItemId implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -52,7 +58,7 @@ export class TextMenuItemId implements MaterializedBase { get AI_WRITER(): TextMenuItemId { throw new Error("Not implemented") } - static ctor(): KPointer { + static ctor_textmenuitemid(): KPointer { const retval = ArkUIGeneratedNativeModule._TextMenuItemId_ctor() return retval } @@ -60,7 +66,7 @@ export class TextMenuItemId implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = TextMenuItemId.ctor() + const ctorPtr : KPointer = TextMenuItemId.ctor_textmenuitemid() this.peer = new Finalizable(ctorPtr, TextMenuItemId.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,12 +84,12 @@ export class TextMenuItemId implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let id_type : int32 = RuntimeType.UNDEFINED id_type = runtimeType(id) - if (((RuntimeType.STRING == id_type))) { + if (RuntimeType.STRING == id_type) { thisSerializer.writeInt8(0 as int32) const id_0 = id as string thisSerializer.writeString(id_0) } - else if (((RuntimeType.OBJECT == id_type))) { + else if (RuntimeType.OBJECT == id_type) { thisSerializer.writeInt8(1 as int32) const id_1 = id as Resource thisSerializer.writeResource(id_1) @@ -101,10 +107,3 @@ export class TextMenuItemId implements MaterializedBase { return retval } } -export class TextMenuItemIdInternal { - public static fromPtr(ptr: KPointer): TextMenuItemId { - const obj : TextMenuItemId = new TextMenuItemId() - obj.peer = new Finalizable(ptr, TextMenuItemId.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts index 2537195dfc5c316d6d0d299b9a84daa294175c45..031239ef2f6c3d04039be25c5d8d33369bf67256 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPicker.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPickerPeer } from "./peers/ArkTextPickerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PickerTextStyle } from "./ArkCommonInterfaces" -import { TextPickerAttribute, DividerOptions, TextPickerOptions } from "./ArkTextPickerInterfaces" -import { Callback_String_Number_Void, Callback_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void } from "./SyntheticDeclarations" -import { Dimension } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { DividerOptions, TextPickerOptions, TextPickerAttribute } from "./ArkTextPickerInterfaces" /** @memo:stable */ export class ArkTextPickerComponent extends ArkCommonMethodComponent { getPeer(): ArkTextPickerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts index f609b4a0d39b1790279e9e9dd5a0416a9320e3c1..dadd49a86c2180c64921162feccbe9297ab6041e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPickerDialogMaterialized.ts @@ -18,19 +18,25 @@ import { TextPickerDialogOptions } from "./ArkTextPickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextPickerDialogInternal { + public static fromPtr(ptr: KPointer): TextPickerDialog { + const obj : TextPickerDialog = new TextPickerDialog() + obj.peer = new Finalizable(ptr, TextPickerDialog.getFinalizer()) + return obj + } +} export class TextPickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textpickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._TextPickerDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class TextPickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = TextPickerDialog.ctor() + const ctorPtr : KPointer = TextPickerDialog.ctor_textpickerdialog() this.peer = new Finalizable(ctorPtr, TextPickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class TextPickerDialog implements MaterializedBase { return retval } } -export class TextPickerDialogInternal { - public static fromPtr(ptr: KPointer): TextPickerDialog { - const obj : TextPickerDialog = new TextPickerDialog() - obj.peer = new Finalizable(ptr, TextPickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts index 133a6f9b401f85a957de00e44767155e832aeb06..868b787993399176ec5edb04f88d7bcc565a1d37 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextPickerInterfaces.ts @@ -20,9 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { Dimension, ResourceColor, Offset } from "./ArkUnitsInterfaces" -import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./ArkCommonInterfaces" -import { Callback_String_Number_Void, Callback_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void } from "./SyntheticDeclarations" +import { Dimension, ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DialogAlignment } from "./ArkAlertDialogInterfaces" export interface TextPickerRangeContent { icon: string | Resource; diff --git a/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts index 100712dc4e4cae97e8604e1c01281bebdbb0d2e1..ad7bcaaef4145858d439bb563bf8bf6e96bbdace 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextShadowStyleMaterialized.ts @@ -18,13 +18,19 @@ import { ShadowOptions } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextShadowStyleInternal { + public static fromPtr(ptr: KPointer): TextShadowStyle { + const obj : TextShadowStyle = new TextShadowStyle(undefined) + obj.peer = new Finalizable(ptr, TextShadowStyle.getFinalizer()) + return obj + } +} export class TextShadowStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,7 +39,7 @@ export class TextShadowStyle implements MaterializedBase { get textShadow(): Array { throw new Error("Not implemented") } - static ctor(value: ShadowOptions | Array): KPointer { + static ctor_textshadowstyle(value: ShadowOptions | Array): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -56,20 +62,20 @@ export class TextShadowStyle implements MaterializedBase { return retval } constructor(value?: ShadowOptions | Array) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr : KPointer = TextShadowStyle.ctor(value) + const ctorPtr : KPointer = TextShadowStyle.ctor_textshadowstyle(value) this.peer = new Finalizable(ctorPtr, TextShadowStyle.getFinalizer()) } } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextShadowStyle_getFinalizer() } -} -export class TextShadowStyleInternal { - public static fromPtr(ptr: KPointer): TextShadowStyle { - const obj : TextShadowStyle = new TextShadowStyle(undefined) - obj.peer = new Finalizable(ptr, TextShadowStyle.getFinalizer()) - return obj + private getTextShadow(): Array { + return this.getTextShadow_serialize() + } + private getTextShadow_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TextShadowStyle_getTextShadow(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") } } diff --git a/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts index be7f4de55d4424c355b38f44bd8b952bc88ba5c8..02b907232ff6d5660e13b0768303ef0b2f595f6e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts @@ -21,13 +21,19 @@ import { FontStyle, Color } from "./ArkEnumsInterfaces" import { TextStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextStyle_styled_stringInternal { + public static fromPtr(ptr: KPointer): TextStyle_styled_string { + const obj : TextStyle_styled_string = new TextStyle_styled_string(undefined) + obj.peer = new Finalizable(ptr, TextStyle_styled_string.getFinalizer()) + return obj + } +} export class TextStyle_styled_string implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -48,7 +54,7 @@ export class TextStyle_styled_string implements MaterializedBase { get fontStyle(): FontStyle | undefined { return this.getFontStyle() } - static ctor(value?: TextStyleInterface): KPointer { + static ctor_textstyle_styled_string(value?: TextStyleInterface): KPointer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -62,7 +68,7 @@ export class TextStyle_styled_string implements MaterializedBase { return retval } constructor(value?: TextStyleInterface) { - const ctorPtr : KPointer = TextStyle_styled_string.ctor(value) + const ctorPtr : KPointer = TextStyle_styled_string.ctor_textstyle_styled_string(value) this.peer = new Finalizable(ctorPtr, TextStyle_styled_string.getFinalizer()) } static getFinalizer(): KPointer { @@ -97,10 +103,3 @@ export class TextStyle_styled_string implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class TextStyle_styled_stringInternal { - public static fromPtr(ptr: KPointer): TextStyle_styled_string { - const obj : TextStyle_styled_string = new TextStyle_styled_string(undefined) - obj.peer = new Finalizable(ptr, TextStyle_styled_string.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts index 07cef13b9940ef7440a5d60843546cb8f2fc6b82..070cb8721ccbe36fa356f8b5e172e2c698e33305 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimer.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextTimerPeer } from "./peers/ArkTextTimerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ShadowOptions, ContentModifier } from "./ArkCommonInterfaces" -import { TextTimerAttribute, TextTimerConfiguration, TextTimerOptions } from "./ArkTextTimerInterfaces" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight } from "./ArkEnumsInterfaces" -import { Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./ArkTextTimerInterfaces" /** @memo:stable */ export class ArkTextTimerComponent extends ArkCommonMethodComponent { getPeer(): ArkTextTimerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts index 8ffcb28e90235d1df810573fb44819317a85aac3..046447f0ceee158f4afc00c3f47de67b39a2c317 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimerControllerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TextTimerControllerInternal { + public static fromPtr(ptr: KPointer): TextTimerController { + const obj : TextTimerController = new TextTimerController() + obj.peer = new Finalizable(ptr, TextTimerController.getFinalizer()) + return obj + } +} export class TextTimerController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_texttimercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextTimerController_ctor() return retval } constructor() { - const ctorPtr : KPointer = TextTimerController.ctor() + const ctorPtr : KPointer = TextTimerController.ctor_texttimercontroller() this.peer = new Finalizable(ctorPtr, TextTimerController.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class TextTimerController implements MaterializedBase { return retval } } -export class TextTimerControllerInternal { - public static fromPtr(ptr: KPointer): TextTimerController { - const obj : TextTimerController = new TextTimerController() - obj.peer = new Finalizable(ptr, TextTimerController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts index 0e1485d95ed02ef0caf711ab6c74f78ec52640d2..fe5963d37770f54759a38823c1089b779d02c169 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTextTimerInterfaces.ts @@ -19,11 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonConfiguration, CommonMethod, ShadowOptions, ContentModifier } from "./ArkCommonInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { TextTimerController } from "./ArkTextTimerControllerMaterialized" -import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" -import { FontStyle, FontWeight } from "./ArkEnumsInterfaces" -import { Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface TextTimerConfiguration extends CommonConfiguration { count: number; isCountDown: boolean; diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts index 11b096a4047aaa69ed9f2ad3bc1846c663061ee7..b76fcf2fce0ccc00ba6f30c70085f5e482c1fdba 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePicker.ts @@ -19,14 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTimePickerPeer } from "./peers/ArkTimePickerPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, PickerTextStyle } from "./ArkCommonInterfaces" -import { TimePickerAttribute, DateTimeOptions, TimePickerResult, TimePickerOptions } from "./ArkTimePickerInterfaces" -import { Callback_TimePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TimePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerAttribute } from "./ArkTimePickerInterfaces" /** @memo:stable */ export class ArkTimePickerComponent extends ArkCommonMethodComponent { getPeer(): ArkTimePickerPeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts index 0a72b60175a77842cf4095d8674016e510358875..84c9071864f8d814b85df0254e57082c2495dcff 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePickerDialogMaterialized.ts @@ -18,19 +18,25 @@ import { TimePickerDialogOptions } from "./ArkTimePickerInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TimePickerDialogInternal { + public static fromPtr(ptr: KPointer): TimePickerDialog { + const obj : TimePickerDialog = new TimePickerDialog() + obj.peer = new Finalizable(ptr, TimePickerDialog.getFinalizer()) + return obj + } +} export class TimePickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_timepickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._TimePickerDialog_ctor() return retval } @@ -38,7 +44,7 @@ export class TimePickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = TimePickerDialog.ctor() + const ctorPtr : KPointer = TimePickerDialog.ctor_timepickerdialog() this.peer = new Finalizable(ctorPtr, TimePickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +68,3 @@ export class TimePickerDialog implements MaterializedBase { return retval } } -export class TimePickerDialogInternal { - public static fromPtr(ptr: KPointer): TimePickerDialog { - const obj : TimePickerDialog = new TimePickerDialog() - obj.peer = new Finalizable(ptr, TimePickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts index a6f29ca5603f343f96ba4e98ba093dd78d5a3eda..b9442fc2aa4182bd53d4853e3790f91aedcdc5d3 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTimePickerInterfaces.ts @@ -19,10 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod, PickerTextStyle, PickerDialogButtonStyle, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType } from "./ArkCommonInterfaces" -import { Callback_TimePickerResult_Void, Callback_Date_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, PickerDialogButtonStyle, HoverModeAreaType } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TimePickerResult_Void, Callback_Date_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { DialogAlignment } from "./ArkAlertDialogInterfaces" -import { Offset, ResourceColor } from "./ArkUnitsInterfaces" export interface TimePickerResult { hour: number; minute: number; diff --git a/arkoala-arkts/arkui/src/generated/ArkToggle.ts b/arkoala-arkts/arkui/src/generated/ArkToggle.ts index 1f56ef69c70ff3c74aa2bb49806e8a150ba3118d..401acd926295c977cf935450b315f700fe9da988 100644 --- a/arkoala-arkts/arkui/src/generated/ArkToggle.ts +++ b/arkoala-arkts/arkui/src/generated/ArkToggle.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTogglePeer } from "./peers/ArkTogglePeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { ToggleAttribute, ToggleConfiguration, SwitchStyle, ToggleOptions } from "./ArkToggleInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" -import { ResourceColor } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute } from "./ArkToggleInterfaces" /** @memo:stable */ export class ArkToggleComponent extends ArkCommonMethodComponent { getPeer(): ArkTogglePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts index 316adec2271d8731b14211bfe64eea3335fc8812..46d902eb0e480a02394dab238fb7df77e53037a2 100644 --- a/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkToggleInterfaces.ts @@ -20,9 +20,27 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { Resource } from "./ArkResourceInterfaces" -import { ResourceColor } from "./ArkUnitsInterfaces" -import { CommonConfiguration, CommonMethod, ContentModifier } from "./ArkCommonInterfaces" -import { Callback_Boolean_Void } from "./SyntheticDeclarations" +import { ResourceColor, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CommonConfiguration, ContentModifier, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Callback_Boolean_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export enum ToggleType { CHECKBOX = 0, Checkbox = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts index b27d910574be068638a9301db29b6ad0b1210fae..036658c413353286c8d16723efda3fe4e3941b2e 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTouchEventMaterialized.ts @@ -17,16 +17,15 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" +import { EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint } from "./ArkCommonInterfaces" import { TouchType } from "./ArkEnumsInterfaces" -import { TouchObject, HistoricalPoint } from "./ArkCommonInterfaces" import { Callback_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface TouchEvent { type: TouchType @@ -71,13 +70,13 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize set preventDefault(preventDefault: (() => void)) { this.setPreventDefault(preventDefault) } - static ctor(): KPointer { + static ctor_touchevent(): KPointer { const retval = ArkUIGeneratedNativeModule._TouchEvent_ctor() return retval } constructor() { super() - const ctorPtr : KPointer = TouchEventInternal.ctor() + const ctorPtr : KPointer = TouchEventInternal.ctor_touchevent() this.peer = new Finalizable(ctorPtr, TouchEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -94,11 +93,17 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize this.setType_serialize(type_casted) return } + private getTouches(): Array { + return this.getTouches_serialize() + } private setTouches(touches: Array): void { const touches_casted = touches as (Array) this.setTouches_serialize(touches_casted) return } + private getChangedTouches(): Array { + return this.getChangedTouches_serialize() + } private setChangedTouches(changedTouches: Array): void { const changedTouches_casted = changedTouches as (Array) this.setChangedTouches_serialize(changedTouches_casted) @@ -131,6 +136,10 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize private setType_serialize(type: TouchType): void { ArkUIGeneratedNativeModule._TouchEvent_setType(this.peer!.ptr, (type.valueOf() as int32)) } + private getTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getTouches(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setTouches_serialize(touches: Array): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(touches.length as int32) @@ -141,6 +150,10 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize ArkUIGeneratedNativeModule._TouchEvent_setTouches(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } + private getChangedTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getChangedTouches(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setChangedTouches_serialize(changedTouches: Array): void { const thisSerializer : Serializer = Serializer.hold() thisSerializer.writeInt32(changedTouches.length as int32) diff --git a/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts index 06926a454512c429e8aa87c8ad9c21920c76b38d..f13bd9c5470cadf3aa1c8f8b568cf84cb8b740b9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkTransitionEffectMaterialized.ts @@ -18,13 +18,19 @@ import { TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam } from "./ArkCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class TransitionEffectInternal { + public static fromPtr(ptr: KPointer): TransitionEffect { + const obj : TransitionEffect = new TransitionEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, TransitionEffect.getFinalizer()) + return obj + } +} export class TransitionEffect implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -42,7 +48,7 @@ export class TransitionEffect implements MaterializedBase { get SLIDE_SWITCH(): TransitionEffect { throw new Error("Not implemented") } - static ctor(type: string, effect: TransitionEffects): KPointer { + static ctor_transitioneffect(type: string, effect: TransitionEffects): KPointer { const thisSerializer : Serializer = Serializer.hold() const effect_identity = effect.identity const effect_opacity = effect.opacity @@ -68,7 +74,7 @@ export class TransitionEffect implements MaterializedBase { constructor(type?: string, effect?: TransitionEffects) { if (((type) !== (undefined)) && ((effect) !== (undefined))) { - const ctorPtr : KPointer = TransitionEffect.ctor(type, effect) + const ctorPtr : KPointer = TransitionEffect.ctor_transitioneffect(type, effect) this.peer = new Finalizable(ctorPtr, TransitionEffect.getFinalizer()) } } @@ -168,10 +174,3 @@ export class TransitionEffect implements MaterializedBase { return obj } } -export class TransitionEffectInternal { - public static fromPtr(ptr: KPointer): TransitionEffect { - const obj : TransitionEffect = new TransitionEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, TransitionEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts index 789f9a7b38c59c84054c1e617cc89777b14e5375..a2248e76738d7db574edb63d8415f94714ce060d 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUICommonEventMaterialized.ts @@ -23,12 +23,11 @@ import { KeyEvent, KeyEventInternal } from "./ArkKeyEventMaterialized" import { HoverCallback, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { MouseEvent, MouseEventInternal } from "./ArkMouseEventMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface UICommonEvent { setOnClick(callback_?: ((event: ClickEvent) => void)): void @@ -48,12 +47,12 @@ export class UICommonEventInternal implements MaterializedBase,UICommonEvent { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_uicommonevent(): KPointer { const retval = ArkUIGeneratedNativeModule._UICommonEvent_ctor() return retval } constructor() { - const ctorPtr : KPointer = UICommonEventInternal.ctor() + const ctorPtr : KPointer = UICommonEventInternal.ctor_uicommonevent() this.peer = new Finalizable(ctorPtr, UICommonEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts index eaeca3e83733fde1639671405883c6ab0abfa48c..ebc771d3d98c929045f9ca8ce8876c2ecc6fb4c9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts @@ -18,12 +18,11 @@ import { Callback_UIExtensionProxy_Void } from "./SyntheticDeclarations" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface UIExtensionProxy { send(data: Map): void @@ -38,12 +37,12 @@ export class UIExtensionProxyInternal implements MaterializedBase,UIExtensionPro public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_uiextensionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._UIExtensionProxy_ctor() return retval } constructor() { - const ctorPtr : KPointer = UIExtensionProxyInternal.ctor() + const ctorPtr : KPointer = UIExtensionProxyInternal.ctor_uiextensionproxy() this.peer = new Finalizable(ctorPtr, UIExtensionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts index e27ca53f18e70bab662c7540afa35d41a7399cea..206022cbd049ffca6962d130149c85c3b0010f00 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponent.ts @@ -19,15 +19,35 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkUIExtensionComponentPeer } from "./peers/ArkUiExtensionComponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { UIExtensionComponentAttribute, ReceiveCallback, UIExtensionOptions } from "./ArkUiExtensionComponentInterfaces" -import { Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" +import { ReceiveCallback, UIExtensionOptions, UIExtensionComponentAttribute } from "./ArkUiExtensionComponentInterfaces" import { Want } from "./ArkArkuiExternalInterfaces" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts index b96ef78c34aa504bbcf6fcf9beae50e074ee1568..512005039a88f0b727ed7c1ff975b9514246a3e0 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts @@ -19,9 +19,29 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentContent, CommonMethod } from "./ArkCommonInterfaces" +import { ComponentContent, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" import { Want } from "./ArkArkuiExternalInterfaces" -import { Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" import { ErrorCallback } from "./ArkIsolatedComponentInterfaces" import { TerminationInfo } from "./ArkEmbeddedComponentInterfaces" diff --git a/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts index 531d5bf718df8ee05783e65c4574101008ca268d..c7fb767fd81f973491e65cea507e089fa9e881cd 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUnifiedDataMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class UnifiedDataInternal { + public static fromPtr(ptr: KPointer): UnifiedData { + const obj : UnifiedData = new UnifiedData() + obj.peer = new Finalizable(ptr, UnifiedData.getFinalizer()) + return obj + } +} export class UnifiedData implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_unifieddata(): KPointer { const retval = ArkUIGeneratedNativeModule._UnifiedData_ctor() return retval } constructor() { - const ctorPtr : KPointer = UnifiedData.ctor() + const ctorPtr : KPointer = UnifiedData.ctor_unifieddata() this.peer = new Finalizable(ctorPtr, UnifiedData.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +62,3 @@ export class UnifiedData implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class UnifiedDataInternal { - public static fromPtr(ptr: KPointer): UnifiedData { - const obj : UnifiedData = new UnifiedData() - obj.peer = new Finalizable(ptr, UnifiedData.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts index 4f53ba5915755e2508b7b95eec1cc0f524a1ec95..a64e218fcd53963bbee60c7c4f658ce9d7b1de22 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUnitsInterfaces.ts @@ -189,11 +189,11 @@ export interface TouchPoint { x: Dimension; y: Dimension; } -export interface DirectionalEdgesT { - start: T; - end: T; - top: T; - bottom: T; +export interface DirectionalEdgesT { + start: number; + end: number; + top: number; + bottom: number; } export interface DividerStyleOptions { strokeWidth?: LengthMetrics; diff --git a/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts index 0e97a8fec03086fe5661b690b3aef12c00a04570..8b7505dfd535b864686fef2cdaa933d7b280dec4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkUrlStyleMaterialized.ts @@ -17,13 +17,19 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class UrlStyleInternal { + public static fromPtr(ptr: KPointer): UrlStyle { + const obj : UrlStyle = new UrlStyle(undefined) + obj.peer = new Finalizable(ptr, UrlStyle.getFinalizer()) + return obj + } +} export class UrlStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -32,14 +38,14 @@ export class UrlStyle implements MaterializedBase { get url(): string { return this.getUrl() } - static ctor(url: string): KPointer { + static ctor_urlstyle(url: string): KPointer { const retval = ArkUIGeneratedNativeModule._UrlStyle_ctor(url) return retval } constructor(url?: string) { - if (((url) !== (undefined))) + if ((url) !== (undefined)) { - const ctorPtr : KPointer = UrlStyle.ctor(url) + const ctorPtr : KPointer = UrlStyle.ctor_urlstyle(url) this.peer = new Finalizable(ctorPtr, UrlStyle.getFinalizer()) } } @@ -54,10 +60,3 @@ export class UrlStyle implements MaterializedBase { return retval } } -export class UrlStyleInternal { - public static fromPtr(ptr: KPointer): UrlStyle { - const obj : UrlStyle = new UrlStyle(undefined) - obj.peer = new Finalizable(ptr, UrlStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkVideo.ts b/arkoala-arkts/arkui/src/generated/ArkVideo.ts index 348bfa4fa1aa3edc51fbce0e632251d9fb9f17bb..82e603988853b339c455a8b049d253da7a843862 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideo.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideo.ts @@ -19,16 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkVideoPeer } from "./peers/ArkVideoPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VideoAttribute, FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions } from "./ArkVideoInterfaces" -import { ImageFit } from "./ArkEnumsInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" -import { Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions, VideoAttribute } from "./ArkVideoInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" /** @memo:stable */ export class ArkVideoComponent extends ArkCommonMethodComponent { diff --git a/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts index f3accf5bc53eec96a718dd73b927eacd3ca0129e..017a548d64f050295822cf015c858f960576f095 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideoControllerMaterialized.ts @@ -18,24 +18,30 @@ import { SeekMode } from "./ArkVideoInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class VideoControllerInternal { + public static fromPtr(ptr: KPointer): VideoController { + const obj : VideoController = new VideoController() + obj.peer = new Finalizable(ptr, VideoController.getFinalizer()) + return obj + } +} export class VideoController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_videocontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._VideoController_ctor() return retval } constructor() { - const ctorPtr : KPointer = VideoController.ctor() + const ctorPtr : KPointer = VideoController.ctor_videocontroller() this.peer = new Finalizable(ctorPtr, VideoController.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,11 +59,11 @@ export class VideoController implements MaterializedBase { public setCurrentTime(value: number, seekMode?: SeekMode): undefined { const value_type = runtimeType(value) const seekMode_type = runtimeType(seekMode) - if ((((RuntimeType.UNDEFINED == seekMode_type)))) { + if (RuntimeType.UNDEFINED == seekMode_type) { const value_casted = value as (number) return this.setCurrentTime0_serialize(value_casted) } - if ((((TypeChecker.isSeekMode(seekMode))))) { + if (TypeChecker.isSeekMode(seekMode)) { const value_casted = value as (number) const seekMode_casted = seekMode as (SeekMode) return this.setCurrentTime1_serialize(value_casted, seekMode_casted) @@ -107,10 +113,3 @@ export class VideoController implements MaterializedBase { ArkUIGeneratedNativeModule._VideoController_reset(this.peer!.ptr) } } -export class VideoControllerInternal { - public static fromPtr(ptr: KPointer): VideoController { - const obj : VideoController = new VideoController() - obj.peer = new Finalizable(ptr, VideoController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts index 175dc50b819aba1017724dc1aa1846a3a6f05356..e1fde2dbc8bb8ea34d33af78c7f5654f10cb1918 100644 --- a/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkVideoInterfaces.ts @@ -23,10 +23,26 @@ import { Resource } from "./ArkResourceInterfaces" import { PixelMap } from "./ArkPixelMapMaterialized" import { VideoController } from "./ArkVideoControllerMaterialized" import { ImageAIOptions, ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" -import { CommonMethod } from "./ArkCommonInterfaces" -import { ImageFit } from "./ArkEnumsInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" -import { Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Callback_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" export enum SeekMode { PREVIOUS_KEYFRAME = 0, PreviousKeyframe = 0, diff --git a/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts index fcac8311384c5fde2cf303363862bf8ba55ed18b..8a246190f1865a38b0840af7f40ba33715dc67a8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkViewMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class ViewInternal { + public static fromPtr(ptr: KPointer): View { + const obj : View = new View() + obj.peer = new Finalizable(ptr, View.getFinalizer()) + return obj + } +} export class View implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_view(): KPointer { const retval = ArkUIGeneratedNativeModule._View_ctor() return retval } constructor() { - const ctorPtr : KPointer = View.ctor() + const ctorPtr : KPointer = View.ctor_view() this.peer = new Finalizable(ctorPtr, View.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,10 +58,3 @@ export class View implements MaterializedBase { return retval } } -export class ViewInternal { - public static fromPtr(ptr: KPointer): View { - const obj : View = new View() - obj.peer = new Finalizable(ptr, View.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts index 067a1ae84e97be4becbcfba434de02fd60b5b78f..eb1fad7be02987347a3ac57c1358de7db6332e07 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlow.ts @@ -19,18 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkWaterFlowPeer } from "./peers/ArkWaterFlowPeer" import { UseEventsProperties } from "./use_properties" -import { ScrollableCommonMethod, NestedScrollOptions } from "./ArkCommonInterfaces" -import { WaterFlowAttribute, WaterFlowOptions } from "./ArkWaterFlowInterfaces" -import { ConstraintSizeOptions, Length } from "./ArkUnitsInterfaces" -import { FlexDirection } from "./ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" import { ScrollState } from "./ArkListInterfaces" +import { WaterFlowAttribute, WaterFlowOptions } from "./ArkWaterFlowInterfaces" /** @memo:stable */ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { getPeer(): ArkWaterFlowPeer { @@ -131,12 +149,12 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts index b87d828d3a3f48ba6c519195092f9e2279686f45..afed2895fa489105a2b3c5941fd429372955d3e5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlowInterfaces.ts @@ -19,13 +19,31 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { Dimension, Margin, ConstraintSizeOptions, Length } from "./ArkUnitsInterfaces" -import { CustomBuilder, ScrollableCommonMethod, NestedScrollOptions } from "./ArkCommonInterfaces" +import { Dimension, Margin, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { CustomBuilder, ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./ArkCommonInterfaces" import { Scroller } from "./ArkScrollerMaterialized" import { WaterFlowSections } from "./ArkWaterFlowSectionsMaterialized" -import { FlexDirection } from "./ArkEnumsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_Number_Number_Void } from "./SyntheticDeclarations" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./ArkScrollInterfaces" import { ScrollState } from "./ArkListInterfaces" export type GetItemMainSizeByIndex = (index: number) => number; export interface SectionOptions { diff --git a/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts index 5abbd5055a04867525cd018cd05ffe407bc72f1d..55c9e549a18c7994b5c707b8ca236d099fff4c98 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts @@ -18,24 +18,30 @@ import { SectionOptions } from "./ArkWaterFlowInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WaterFlowSectionsInternal { + public static fromPtr(ptr: KPointer): WaterFlowSections { + const obj : WaterFlowSections = new WaterFlowSections() + obj.peer = new Finalizable(ptr, WaterFlowSections.getFinalizer()) + return obj + } +} export class WaterFlowSections implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_waterflowsections(): KPointer { const retval = ArkUIGeneratedNativeModule._WaterFlowSections_ctor() return retval } constructor() { - const ctorPtr : KPointer = WaterFlowSections.ctor() + const ctorPtr : KPointer = WaterFlowSections.ctor_waterflowsections() this.peer = new Finalizable(ctorPtr, WaterFlowSections.getFinalizer()) } static getFinalizer(): KPointer { @@ -109,10 +115,3 @@ export class WaterFlowSections implements MaterializedBase { return retval } } -export class WaterFlowSectionsInternal { - public static fromPtr(ptr: KPointer): WaterFlowSections { - const obj : WaterFlowSections = new WaterFlowSections() - obj.peer = new Finalizable(ptr, WaterFlowSections.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWeb.ts b/arkoala-arkts/arkui/src/generated/ArkWeb.ts index e514a07f43fe438c7c9263aab57994df2718f7ad..e06df023ddb1e050e7fec9e0486ba9487eb673aa 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWeb.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWeb.ts @@ -19,18 +19,36 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWebPeer } from "./peers/ArkWebPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod, NestedScrollOptions, CustomBuilder } from "./ArkCommonInterfaces" -import { WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, WebOptions } from "./ArkWebInterfaces" -import { Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_KeyEvent_Boolean, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebAttribute, WebElementType, WebResponseType, SelectionMenuOptionsExt, WebOptions } from "./ArkWebInterfaces" import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" import { WebResourceResponse } from "./ArkWebResourceResponseMaterialized" -import { KeyEvent } from "./ArkKeyEventMaterialized" -import { CopyOptions } from "./ArkEnumsInterfaces" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" /** @memo:stable */ export class ArkWebComponent extends ArkCommonMethodComponent { @@ -428,12 +446,12 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onRenderExited(value: ((parameter: OnRenderExitedEvent) => void) | ((event?: Literal_Object_detail) => boolean)): this { if (this.checkPriority("onRenderExited")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((parameter: OnRenderExitedEvent) => void)) this.getPeer()?.onRenderExited0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((event?: Literal_Object_detail) => boolean)) this.getPeer()?.onRenderExited1Attribute(value_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts index ab35c30b8752d155f1d29bf83d1a88970e77b5ef..61fdbf3462acc625ba6a1c69f5a73a0982c62559 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts @@ -18,24 +18,30 @@ import { ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebContextMenuParamInternal { + public static fromPtr(ptr: KPointer): WebContextMenuParam { + const obj : WebContextMenuParam = new WebContextMenuParam() + obj.peer = new Finalizable(ptr, WebContextMenuParam.getFinalizer()) + return obj + } +} export class WebContextMenuParam implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontextmenuparam(): KPointer { const retval = ArkUIGeneratedNativeModule._WebContextMenuParam_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebContextMenuParam.ctor() + const ctorPtr : KPointer = WebContextMenuParam.ctor_webcontextmenuparam() this.peer = new Finalizable(ctorPtr, WebContextMenuParam.getFinalizer()) } static getFinalizer(): KPointer { @@ -140,10 +146,3 @@ export class WebContextMenuParam implements MaterializedBase { return retval } } -export class WebContextMenuParamInternal { - public static fromPtr(ptr: KPointer): WebContextMenuParam { - const obj : WebContextMenuParam = new WebContextMenuParam() - obj.peer = new Finalizable(ptr, WebContextMenuParam.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts index 126ac4f1c2e145cdb0afd8f154d7c927f289e0f2..10f98b75fb108315156655b28b6c1a928160dac4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebContextMenuResultInternal { + public static fromPtr(ptr: KPointer): WebContextMenuResult { + const obj : WebContextMenuResult = new WebContextMenuResult() + obj.peer = new Finalizable(ptr, WebContextMenuResult.getFinalizer()) + return obj + } +} export class WebContextMenuResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontextmenuresult(): KPointer { const retval = ArkUIGeneratedNativeModule._WebContextMenuResult_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebContextMenuResult.ctor() + const ctorPtr : KPointer = WebContextMenuResult.ctor_webcontextmenuresult() this.peer = new Finalizable(ctorPtr, WebContextMenuResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -83,10 +89,3 @@ export class WebContextMenuResult implements MaterializedBase { ArkUIGeneratedNativeModule._WebContextMenuResult_selectAll(this.peer!.ptr) } } -export class WebContextMenuResultInternal { - public static fromPtr(ptr: KPointer): WebContextMenuResult { - const obj : WebContextMenuResult = new WebContextMenuResult() - obj.peer = new Finalizable(ptr, WebContextMenuResult.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts index 82b5c51b4336feec6f317e83636538cc3e0cd33c..ee0004a9fca0abd93af6145de891fbdba677e321 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebControllerMaterialized.ts @@ -21,24 +21,30 @@ import { Resource } from "./ArkResourceInterfaces" import { Header, HitTestType } from "./ArkWebInterfaces" import { WebCookie, WebCookieInternal } from "./ArkWebCookieMaterialized" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebControllerInternal { + public static fromPtr(ptr: KPointer): WebController { + const obj : WebController = new WebController() + obj.peer = new Finalizable(ptr, WebController.getFinalizer()) + return obj + } +} export class WebController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebController_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebController.ctor() + const ctorPtr : KPointer = WebController.ctor_webcontroller() this.peer = new Finalizable(ctorPtr, WebController.getFinalizer()) } static getFinalizer(): KPointer { @@ -173,12 +179,12 @@ export class WebController implements MaterializedBase { const options_url = options.url let options_url_type : int32 = RuntimeType.UNDEFINED options_url_type = runtimeType(options_url) - if (((RuntimeType.STRING == options_url_type))) { + if (RuntimeType.STRING == options_url_type) { thisSerializer.writeInt8(0 as int32) const options_url_0 = options_url as string thisSerializer.writeString(options_url_0) } - else if (((RuntimeType.OBJECT == options_url_type))) { + else if (RuntimeType.OBJECT == options_url_type) { thisSerializer.writeInt8(1 as int32) const options_url_1 = options_url as Resource thisSerializer.writeResource(options_url_1) @@ -260,10 +266,3 @@ export class WebController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class WebControllerInternal { - public static fromPtr(ptr: KPointer): WebController { - const obj : WebController = new WebController() - obj.peer = new Finalizable(ptr, WebController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts index 41f99abb7031a8387aa8e3529fb077e56955b731..a7385258fe2090b7c2d9dfa1c9bd2a2e59965bba 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebCookieMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebCookieInternal { + public static fromPtr(ptr: KPointer): WebCookie { + const obj : WebCookie = new WebCookie() + obj.peer = new Finalizable(ptr, WebCookie.getFinalizer()) + return obj + } +} export class WebCookie implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcookie(): KPointer { const retval = ArkUIGeneratedNativeModule._WebCookie_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebCookie.ctor() + const ctorPtr : KPointer = WebCookie.ctor_webcookie() this.peer = new Finalizable(ctorPtr, WebCookie.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class WebCookie implements MaterializedBase { return retval } } -export class WebCookieInternal { - public static fromPtr(ptr: KPointer): WebCookie { - const obj : WebCookie = new WebCookie() - obj.peer = new Finalizable(ptr, WebCookie.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts index a63db8eb297653215c07db9416cdae3c595530e8..ccdeed00499eb63330c484ed2c939ef5485bc952 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebInterfaces.ts @@ -20,13 +20,13 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { WebResourceRequest } from "./ArkWebResourceRequestMaterialized" -import { CustomBuilder, CommonMethod, NestedScrollOptions } from "./ArkCommonInterfaces" +import { CustomBuilder, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions } from "./ArkCommonInterfaces" import { WebKeyboardController } from "./ArkWebKeyboardControllerMaterialized" import { FullScreenExitHandler } from "./ArkFullScreenExitHandlerMaterialized" import { Resource } from "./ArkResourceInterfaces" import { WebController } from "./ArkWebControllerMaterialized" import { WebviewController } from "./ArkWebviewControllerMaterialized" -import { Position, ResourceStr } from "./ArkUnitsInterfaces" +import { Position, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" import { TouchEvent } from "./ArkTouchEventMaterialized" import { EventResult } from "./ArkEventResultMaterialized" import { JsGeolocation } from "./ArkJsGeolocationMaterialized" @@ -46,10 +46,24 @@ import { ClientAuthenticationHandler } from "./ArkClientAuthenticationHandlerMat import { ControllerHandler } from "./ArkControllerHandlerMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { DataResubmissionHandler } from "./ArkDataResubmissionHandlerMaterialized" -import { Callback_Void, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_KeyEvent_Boolean, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText } from "./SyntheticDeclarations" +import { Callback_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText } from "./SyntheticDeclarations" import { MenuType } from "./ArkTextCommonInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, NestedScrollMode } from "./ArkEnumsInterfaces" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" import { KeyEvent } from "./ArkKeyEventMaterialized" -import { CopyOptions, NestedScrollMode } from "./ArkEnumsInterfaces" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" import { EditMenuOptions } from "./ArkEditMenuOptionsMaterialized" export type OnNavigationEntryCommittedCallback = (loadCommittedDetails: LoadCommittedDetails) => void; export type OnSslErrorEventCallback = (sslErrorEvent: SslErrorEvent) => void; diff --git a/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts index 53edef511d7dd6c7076a1f738f2e9c25131d58a1..f4fde2efcd6dcb86d587094a982af8584c9340b9 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebKeyboardControllerInternal { + public static fromPtr(ptr: KPointer): WebKeyboardController { + const obj : WebKeyboardController = new WebKeyboardController() + obj.peer = new Finalizable(ptr, WebKeyboardController.getFinalizer()) + return obj + } +} export class WebKeyboardController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webkeyboardcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebKeyboardController_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebKeyboardController.ctor() + const ctorPtr : KPointer = WebKeyboardController.ctor_webkeyboardcontroller() this.peer = new Finalizable(ctorPtr, WebKeyboardController.getFinalizer()) } static getFinalizer(): KPointer { @@ -80,10 +86,3 @@ export class WebKeyboardController implements MaterializedBase { ArkUIGeneratedNativeModule._WebKeyboardController_close(this.peer!.ptr) } } -export class WebKeyboardControllerInternal { - public static fromPtr(ptr: KPointer): WebKeyboardController { - const obj : WebKeyboardController = new WebKeyboardController() - obj.peer = new Finalizable(ptr, WebKeyboardController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts index 07a3061b7ea030a6cddb08e0ab41c9126e0f3f6a..5ebb66c76d3880ed5e0f708fc772cf286ab5d2a8 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceErrorMaterialized.ts @@ -17,24 +17,30 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebResourceErrorInternal { + public static fromPtr(ptr: KPointer): WebResourceError { + const obj : WebResourceError = new WebResourceError() + obj.peer = new Finalizable(ptr, WebResourceError.getFinalizer()) + return obj + } +} export class WebResourceError implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourceerror(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceError_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebResourceError.ctor() + const ctorPtr : KPointer = WebResourceError.ctor_webresourceerror() this.peer = new Finalizable(ctorPtr, WebResourceError.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +61,3 @@ export class WebResourceError implements MaterializedBase { return retval } } -export class WebResourceErrorInternal { - public static fromPtr(ptr: KPointer): WebResourceError { - const obj : WebResourceError = new WebResourceError() - obj.peer = new Finalizable(ptr, WebResourceError.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts index 913f2c978d92fec763aa2518132fa7db427e828d..a500dfab2819b5ea08279ea74885aae0bb9b47f5 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceRequestMaterialized.ts @@ -18,24 +18,30 @@ import { Header } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebResourceRequestInternal { + public static fromPtr(ptr: KPointer): WebResourceRequest { + const obj : WebResourceRequest = new WebResourceRequest() + obj.peer = new Finalizable(ptr, WebResourceRequest.getFinalizer()) + return obj + } +} export class WebResourceRequest implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourcerequest(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceRequest_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebResourceRequest.ctor() + const ctorPtr : KPointer = WebResourceRequest.ctor_webresourcerequest() this.peer = new Finalizable(ctorPtr, WebResourceRequest.getFinalizer()) } static getFinalizer(): KPointer { @@ -84,10 +90,3 @@ export class WebResourceRequest implements MaterializedBase { return retval } } -export class WebResourceRequestInternal { - public static fromPtr(ptr: KPointer): WebResourceRequest { - const obj : WebResourceRequest = new WebResourceRequest() - obj.peer = new Finalizable(ptr, WebResourceRequest.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts index 90ea91aaeb64844e090eb1e02d3d0cf4d23489b5..c2e19e0ef7ed205e09e9bd12b2e650862c2d2ae4 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebResourceResponseMaterialized.ts @@ -19,24 +19,30 @@ import { Resource } from "./ArkResourceInterfaces" import { Header } from "./ArkWebInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebResourceResponseInternal { + public static fromPtr(ptr: KPointer): WebResourceResponse { + const obj : WebResourceResponse = new WebResourceResponse() + obj.peer = new Finalizable(ptr, WebResourceResponse.getFinalizer()) + return obj + } +} export class WebResourceResponse implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourceresponse(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceResponse_ctor() return retval } constructor() { - const ctorPtr : KPointer = WebResourceResponse.ctor() + const ctorPtr : KPointer = WebResourceResponse.ctor_webresourceresponse() this.peer = new Finalizable(ctorPtr, WebResourceResponse.getFinalizer()) } static getFinalizer(): KPointer { @@ -133,12 +139,12 @@ export class WebResourceResponse implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let data_type : int32 = RuntimeType.UNDEFINED data_type = runtimeType(data) - if (((RuntimeType.STRING == data_type))) { + if (RuntimeType.STRING == data_type) { thisSerializer.writeInt8(0 as int32) const data_0 = data as string thisSerializer.writeString(data_0) } - else if (((RuntimeType.NUMBER == data_type))) { + else if (RuntimeType.NUMBER == data_type) { thisSerializer.writeInt8(1 as int32) const data_1 = data as number thisSerializer.writeNumber(data_1) @@ -186,10 +192,3 @@ export class WebResourceResponse implements MaterializedBase { return retval } } -export class WebResourceResponseInternal { - public static fromPtr(ptr: KPointer): WebResourceResponse { - const obj : WebResourceResponse = new WebResourceResponse() - obj.peer = new Finalizable(ptr, WebResourceResponse.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts index f2bd86a417e83cf7602e1c5c8c16f06314c5e8f1..8d28beaceb54092528e8d717bcc078616c709401 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWebviewControllerMaterialized.ts @@ -19,19 +19,25 @@ import { Resource } from "./ArkResourceInterfaces" import { WebHeader } from "./ArkArkuiExternalInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class WebviewControllerInternal { + public static fromPtr(ptr: KPointer): WebviewController { + const obj : WebviewController = new WebviewController() + obj.peer = new Finalizable(ptr, WebviewController.getFinalizer()) + return obj + } +} export class WebviewController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webviewcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebviewController_ctor() return retval } @@ -39,7 +45,7 @@ export class WebviewController implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr : KPointer = WebviewController.ctor() + const ctorPtr : KPointer = WebviewController.ctor_webviewcontroller() this.peer = new Finalizable(ctorPtr, WebviewController.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,12 +68,12 @@ export class WebviewController implements MaterializedBase { const thisSerializer : Serializer = Serializer.hold() let url_type : int32 = RuntimeType.UNDEFINED url_type = runtimeType(url) - if (((RuntimeType.STRING == url_type))) { + if (RuntimeType.STRING == url_type) { thisSerializer.writeInt8(0 as int32) const url_0 = url as string thisSerializer.writeString(url_0) } - else if (((RuntimeType.OBJECT == url_type))) { + else if (RuntimeType.OBJECT == url_type) { thisSerializer.writeInt8(1 as int32) const url_1 = url as Resource thisSerializer.writeResource(url_1) @@ -87,10 +93,3 @@ export class WebviewController implements MaterializedBase { thisSerializer.release() } } -export class WebviewControllerInternal { - public static fromPtr(ptr: KPointer): WebviewController { - const obj : WebviewController = new WebviewController() - obj.peer = new Finalizable(ptr, WebviewController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts index 17ddf5d8c61a014cebc98fac4ab471ff501c365a..94400549e97d728a05af8c950eecf15f5aca0d5f 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWindowScene.ts @@ -19,13 +19,33 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWindowScenePeer } from "./peers/ArkWindowScenePeer" -import { CommonMethod } from "./ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" import { WindowSceneAttribute } from "./ArkWindowSceneInterfaces" -import { Position } from "./ArkUnitsInterfaces" /** @memo:stable */ export class ArkWindowSceneComponent extends ArkCommonMethodComponent { getPeer(): ArkWindowScenePeer { diff --git a/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts index 39f0b7953d06fff5103afbc951a0e58696bb9c5d..3349573d889e58c5e5dbe3a9b9fea8f5746263de 100644 --- a/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkWindowSceneInterfaces.ts @@ -19,8 +19,28 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { CommonMethod } from "./ArkCommonInterfaces" -import { Position } from "./ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export type WindowSceneInterface = (persistentId: number) => WindowSceneAttribute; export interface WindowSceneAttribute extends CommonMethod { } diff --git a/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts index c75d2bb3ea8f7551774eeee329a0b0f6dafb71cc..4fb7f4e3c32197ab0869a2df202dea09b6c25217 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXComponentControllerMaterialized.ts @@ -20,24 +20,30 @@ import { Literal_Number_surfaceHeight_surfaceWidth } from "./SyntheticDeclaratio import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" import { ImageAnalyzerConfig } from "./ArkImageCommonInterfaces" import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase, NativeBuffer } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" +import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" +export class XComponentControllerInternal { + public static fromPtr(ptr: KPointer): XComponentController { + const obj : XComponentController = new XComponentController() + obj.peer = new Finalizable(ptr, XComponentController.getFinalizer()) + return obj + } +} export class XComponentController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_xcomponentcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._XComponentController_ctor() return retval } constructor() { - const ctorPtr : KPointer = XComponentController.ctor() + const ctorPtr : KPointer = XComponentController.ctor_xcomponentcontroller() this.peer = new Finalizable(ctorPtr, XComponentController.getFinalizer()) } static getFinalizer(): KPointer { @@ -119,7 +125,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRect_serialize(): SurfaceRect { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readSurfaceRect() } private setXComponentSurfaceRotation_serialize(rotationOptions: SurfaceRotationOptions): void { const thisSerializer : Serializer = Serializer.hold() @@ -129,7 +135,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRotation_serialize(): SurfaceRotationOptions { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval, retval.length).readSurfaceRotationOptions() } private onSurfaceCreated_serialize(surfaceId: string): void { ArkUIGeneratedNativeModule._XComponentController_onSurfaceCreated(this.peer!.ptr, surfaceId) @@ -155,10 +161,3 @@ export class XComponentController implements MaterializedBase { ArkUIGeneratedNativeModule._XComponentController_stopImageAnalyzer(this.peer!.ptr) } } -export class XComponentControllerInternal { - public static fromPtr(ptr: KPointer): XComponentController { - const obj : XComponentController = new XComponentController() - obj.peer = new Finalizable(ptr, XComponentController.getFinalizer()) - return obj - } -} diff --git a/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts index 8545e51fffd2d0e18f9d834b2fe56e504537f591..92a692d45e4d83e5cf0e7ed075f65ebfb81b1cef 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXcomponent.ts @@ -19,15 +19,34 @@ import { int32, float32 } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" +import { ComponentBase } from "./../ComponentBase" import { TypeChecker } from "#components" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkXComponentPeer } from "./peers/ArkXcomponentPeer" import { UseEventsProperties } from "./use_properties" -import { CommonMethod } from "./ArkCommonInterfaces" -import { XComponentAttribute, OnNativeLoadCallback, XComponentOptions } from "./ArkXcomponentInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" -import { Type_XComponentInterface_value } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Type_XComponentInterface_value } from "./SyntheticDeclarations" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" +import { OnNativeLoadCallback, XComponentAttribute, XComponentOptions } from "./ArkXcomponentInterfaces" import { XComponentController } from "./ArkXComponentControllerMaterialized" /** @memo:stable */ export class ArkXComponentComponent extends ArkCommonMethodComponent { @@ -38,17 +57,17 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { public setXComponentOptions(value: Type_XComponentInterface_value | XComponentOptions): this { if (this.checkPriority("setXComponentOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Type_XComponentInterface_value) this.getPeer()?.setXComponentOptions0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Type_XComponentInterface_value) this.getPeer()?.setXComponentOptions1Attribute(value_casted) return this } - if ((TypeChecker.isXComponentOptions(value, true, true, false))) { + if (TypeChecker.isXComponentOptions(value, true, true, false)) { const options_casted = value as (XComponentOptions) this.getPeer()?.setXComponentOptions2Attribute(options_casted) return this diff --git a/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts b/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts index 9225add87a412605a394555f85d6d02b665b03a5..7ea158b0d26369bf3134e742aa969d94ec65d464 100644 --- a/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts +++ b/arkoala-arkts/arkui/src/generated/ArkXcomponentInterfaces.ts @@ -19,12 +19,30 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback, NativeBuffer } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { XComponentType } from "./ArkEnumsInterfaces" +import { XComponentType, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./ArkEnumsInterfaces" import { XComponentController } from "./ArkXComponentControllerMaterialized" import { ImageAIOptions } from "./ArkImageCommonInterfaces" -import { Type_XComponentInterface_value } from "./SyntheticDeclarations" -import { CommonMethod } from "./ArkCommonInterfaces" -import { VoidCallback } from "./ArkUnitsInterfaces" +import { Type_XComponentInterface_value, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback } from "./ArkUnitsInterfaces" +import { DrawModifier } from "./ArkDrawModifierMaterialized" +import { LengthMetrics } from "./ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./ArkImageInterfaces" +import { Resource } from "./ArkResourceInterfaces" +import { ClickEvent } from "./ArkClickEventMaterialized" +import { HoverEvent } from "./ArkHoverEventMaterialized" +import { MouseEvent } from "./ArkMouseEventMaterialized" +import { TouchEvent } from "./ArkTouchEventMaterialized" +import { KeyEvent } from "./ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" +import { TransitionEffect } from "./ArkTransitionEffectMaterialized" +import { DragEvent } from "./ArkDragEventMaterialized" +import { ProgressMask } from "./ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../handwritten" +import { GestureModifier } from "./ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./ArkGestureInterfaces" +import { BaseGestureEvent } from "./ArkBaseGestureEventMaterialized" +import { PixelMap } from "./ArkPixelMapMaterialized" export interface SurfaceRect { offsetX?: number; offsetY?: number; diff --git a/arkoala-arkts/arkui/src/generated/GlobalScope.ts b/arkoala-arkts/arkui/src/generated/GlobalScope.ts deleted file mode 100644 index df92b67446a1c0cb12ce3c4cb56297421adccde4..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/generated/GlobalScope.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { GlobalScope_common } from "./ArkGlobalScopeCommonMaterialized" -import { Context, AnimateParam } from "./ArkCommonInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { Callback_Void, Profiler } from "./SyntheticDeclarations" -import { PointerStyle } from "./ArkArkuiCustomInterfaces" -import { GlobalScope_inspector } from "./ArkGlobalScopeInspectorMaterialized" -export function getContext(component: Object): Context { - return GlobalScope_common.getContext(component) -} -export function postCardAction(component: Object, action: Object): void { - GlobalScope_common.postCardAction(component, action) -} -export function dollar_r(value: string, params: Array): Resource { - return GlobalScope_common.dollar_r(value, params) -} -export function dollar_rawfile(value: string): Resource { - return GlobalScope_common.dollar_rawfile(value) -} -export function animateTo(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateTo(value, event) -} -export function animateToImmediately(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateToImmediately(value, event) -} -export function vp2px(value: number): number { - return GlobalScope_common.vp2px(value) -} -export function px2vp(value: number): number { - return GlobalScope_common.px2vp(value) -} -export function fp2px(value: number): number { - return GlobalScope_common.fp2px(value) -} -export function px2fp(value: number): number { - return GlobalScope_common.px2fp(value) -} -export function lpx2px(value: number): number { - return GlobalScope_common.lpx2px(value) -} -export function px2lpx(value: number): number { - return GlobalScope_common.px2lpx(value) -} -export function requestFocus(value: string): boolean { - return GlobalScope_common.requestFocus(value) -} -export function setCursor(value: PointerStyle): void { - GlobalScope_common.setCursor(value) -} -export function restoreDefault(): void { - GlobalScope_common.restoreDefault() -} -export function getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes() -} -export function getInspectorNodeById(id: number): Object { - return GlobalScope_inspector.getInspectorNodeById(id) -} -export function registerVsyncCallback(callback_: ((info: string) => void)): void { - GlobalScope_inspector.registerVsyncCallback(callback_) -} -export function unregisterVsyncCallback(): void { - GlobalScope_inspector.unregisterVsyncCallback() -} -export function setAppBgColor(value: string): void { - GlobalScope_inspector.setAppBgColor(value) -} diff --git a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts index dd7703bf1d1001625ceb94e98055955c02f62449..f106b915edd32b8694495b79e122e3774346196b 100644 --- a/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts +++ b/arkoala-arkts/arkui/src/generated/SyntheticDeclarations.ts @@ -75,6 +75,7 @@ import { UIExtensionProxy } from "./ArkUIExtensionProxyMaterialized" import { IsolatedComponentAttribute } from "./ArkIsolatedComponentInterfaces" import { StyledString } from "./ArkStyledStringMaterialized" export type AsyncCallback_image_PixelMap_Void = (result: PixelMap) => void; +export type Callback_Pointer_Void = (value: KPointer) => void; export interface Literal_Want_want { want: Want; } @@ -196,8 +197,6 @@ export type Callback_TouchEvent_HitTestMode = (parameter: TouchEvent) => HitTest export interface Literal_Alignment_align { align?: Alignment; } -export type Callback_Pointer_Void = (value: KPointer) => void; -export type CustomNodeBuilder = (parentNode: KPointer) => KPointer; export interface Literal_Empty { } export interface Literal_String_key_Any_defaultValue { @@ -448,6 +447,3 @@ export interface Literal_Number_code_Want_want { export type Callback_Literal_Number_code_Want_want_Void = (parameter: Literal_Number_code_Want_want) => void; export type Callback_IsolatedComponentAttribute_Void = (value: IsolatedComponentAttribute) => void; export type Callback_Opt_StyledString_Opt_Array_String_Void = (value?: StyledString | undefined, error?: Array | undefined) => void; -export namespace Profiler { - export type Callback_String_Void = (info: string) => void; -} diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts index da98d6478a7b5db7c340f6b39de0878ab3aec106..848bd60519382af22fd23a2ad1c61faedbca7293 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/ArkUIGeneratedNativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" import { Length } from "./../ArkUnitsInterfaces" @@ -1576,6 +1576,10 @@ export class ArkUIGeneratedNativeModule { native static _LazyForEachOps_OnRangeUpdate(node: KPointer, totalCount: KInt, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _LazyForEachOps_SetCurrentIndex(node: KPointer, index: KInt): void native static _LazyForEachOps_Prepare(node: KPointer): void + native static _SystemOps_ctor(): KPointer + native static _SystemOps_getFinalizer(): KPointer + native static _SystemOps_StartFrame(): KPointer + native static _SystemOps_EndFrame(root: KPointer): void native static _DrawingCanvas_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _DrawingCanvas_getFinalizer(): KPointer native static _DrawingCanvas_drawRect(ptr: KPointer, left: number, top: number, right: number, bottom: number): void @@ -1614,15 +1618,13 @@ export class ArkUIGeneratedNativeModule { native static _FrameNode_getChildrenCount(ptr: KPointer): int32 native static _FrameNode_dispose(ptr: KPointer): void native static _FrameNode_getOpacity(ptr: KPointer): number - native static _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KPointer + native static _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KInteropReturnBuffer native static _PixelMap_ctor(): KPointer native static _PixelMap_getFinalizer(): KPointer native static _PixelMap_readPixelsToBufferSync(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _PixelMap_writeBufferToPixels(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _PixelMap_getIsEditable(ptr: KPointer): int32 - native static _PixelMap_setIsEditable(ptr: KPointer, isEditable: KInt): void - native static _PixelMap_getIsStrideAlignment(ptr: KPointer): int32 - native static _PixelMap_setIsStrideAlignment(ptr: KPointer, isStrideAlignment: KInt): void + native static _PixelMap_getIsEditable(ptr: KPointer): boolean + native static _PixelMap_getIsStrideAlignment(ptr: KPointer): boolean native static _NavExtender_ctor(): KPointer native static _NavExtender_getFinalizer(): KPointer native static _NavExtender_setUpdateStackCallback(thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -1714,7 +1716,7 @@ export class ArkUIGeneratedNativeModule { native static _CanvasRenderer_restore(ptr: KPointer): void native static _CanvasRenderer_save(ptr: KPointer): void native static _CanvasRenderer_fillText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KPointer + native static _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KInteropReturnBuffer native static _CanvasRenderer_strokeText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasRenderer_getTransform(ptr: KPointer): KPointer native static _CanvasRenderer_resetTransform(ptr: KPointer): void @@ -1778,6 +1780,18 @@ export class ArkUIGeneratedNativeModule { native static _CanvasRenderingContext2D_offOnDetach(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CanvasRenderingContext2D_getHeight(ptr: KPointer): number native static _CanvasRenderingContext2D_getWidth(ptr: KPointer): number + native static _OffscreenCanvasRenderingContext2D_ctor(width: number, height: number, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _OffscreenCanvasRenderingContext2D_getFinalizer(): KPointer + native static _OffscreenCanvasRenderingContext2D_toDataURL(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): string + native static _OffscreenCanvasRenderingContext2D_transferToImageBitmap(ptr: KPointer): KPointer + native static _OffscreenCanvas_ctor(width: number, height: number): KPointer + native static _OffscreenCanvas_getFinalizer(): KPointer + native static _OffscreenCanvas_transferToImageBitmap(ptr: KPointer): KPointer + native static _OffscreenCanvas_getContext2d(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _OffscreenCanvas_getHeight(ptr: KPointer): number + native static _OffscreenCanvas_setHeight(ptr: KPointer, height: number): void + native static _OffscreenCanvas_getWidth(ptr: KPointer): number + native static _OffscreenCanvas_setWidth(ptr: KPointer, width: number): void native static _DrawingRenderingContext_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _DrawingRenderingContext_getFinalizer(): KPointer native static _DrawingRenderingContext_invalidate(ptr: KPointer): void @@ -1800,6 +1814,9 @@ export class ArkUIGeneratedNativeModule { native static _TransitionEffect_asymmetric(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _TransitionEffect_animation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _TransitionEffect_combine(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean + native static _GlobalScope_cursorControl_common_setCursor(value: KInt): void + native static _GlobalScope_cursorControl_common_restoreDefault(): void native static _BaseEvent_ctor(): KPointer native static _BaseEvent_getFinalizer(): KPointer native static _BaseEvent_getModifierKeyState(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): boolean @@ -1891,7 +1908,9 @@ export class ArkUIGeneratedNativeModule { native static _TouchEvent_getHistoricalPoints(ptr: KPointer): KPointer native static _TouchEvent_getType(ptr: KPointer): KPointer native static _TouchEvent_setType(ptr: KPointer, type: KInt): void + native static _TouchEvent_getTouches(ptr: KPointer): KPointer native static _TouchEvent_setTouches(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _TouchEvent_getChangedTouches(ptr: KPointer): KPointer native static _TouchEvent_setChangedTouches(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TouchEvent_getStopPropagation(ptr: KPointer): KPointer native static _TouchEvent_setStopPropagation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -1910,10 +1929,10 @@ export class ArkUIGeneratedNativeModule { native static _DragEvent_getY(ptr: KPointer): number native static _DragEvent_setData(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _DragEvent_getData(ptr: KPointer): KPointer - native static _DragEvent_getSummary(ptr: KPointer): KPointer + native static _DragEvent_getSummary(ptr: KPointer): KInteropReturnBuffer native static _DragEvent_setResult(ptr: KPointer, dragResult: KInt): void native static _DragEvent_getResult(ptr: KPointer): KPointer - native static _DragEvent_getPreviewRect(ptr: KPointer): KPointer + native static _DragEvent_getPreviewRect(ptr: KPointer): KInteropReturnBuffer native static _DragEvent_getVelocityX(ptr: KPointer): number native static _DragEvent_getVelocityY(ptr: KPointer): number native static _DragEvent_getVelocity(ptr: KPointer): number @@ -1951,17 +1970,17 @@ export class ArkUIGeneratedNativeModule { native static _ProgressMask_enableBreathingAnimation(ptr: KPointer, value: KInt): void native static _Measurable_ctor(): KPointer native static _Measurable_getFinalizer(): KPointer - native static _Measurable_measure(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _Measurable_getMargin(ptr: KPointer): KPointer - native static _Measurable_getPadding(ptr: KPointer): KPointer - native static _Measurable_getBorderWidth(ptr: KPointer): KPointer + native static _Measurable_measure(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer + native static _Measurable_getMargin(ptr: KPointer): KInteropReturnBuffer + native static _Measurable_getPadding(ptr: KPointer): KInteropReturnBuffer + native static _Measurable_getBorderWidth(ptr: KPointer): KInteropReturnBuffer native static _View_ctor(): KPointer native static _View_getFinalizer(): KPointer native static _View_create(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): object native static _TextContentControllerBase_ctor(): KPointer native static _TextContentControllerBase_getFinalizer(): KPointer - native static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KPointer - native static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KPointer + native static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KInteropReturnBuffer + native static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KInteropReturnBuffer native static _TextContentControllerBase_getTextContentLineCount(ptr: KPointer): number native static _DynamicNode_ctor(): KPointer native static _DynamicNode_getFinalizer(): KPointer @@ -1988,21 +2007,6 @@ export class ArkUIGeneratedNativeModule { native static _GestureModifier_ctor(): KPointer native static _GestureModifier_getFinalizer(): KPointer native static _GestureModifier_applyGesture(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_getContext(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _GlobalScope_common_postCardAction(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_dollar_r(value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _GlobalScope_common_dollar_rawfile(value: KStringPtr): KPointer - native static _GlobalScope_common_animateTo(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_animateToImmediately(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_common_vp2px(value: number): number - native static _GlobalScope_common_px2vp(value: number): number - native static _GlobalScope_common_fp2px(value: number): number - native static _GlobalScope_common_px2fp(value: number): number - native static _GlobalScope_common_lpx2px(value: number): number - native static _GlobalScope_common_px2lpx(value: number): number - native static _GlobalScope_common_requestFocus(value: KStringPtr): boolean - native static _GlobalScope_common_setCursor(value: KInt): void - native static _GlobalScope_common_restoreDefault(): void native static _ContextMenu_ctor(): KPointer native static _ContextMenu_getFinalizer(): KPointer native static _ContextMenu_close(): undefined @@ -2017,6 +2021,7 @@ export class ArkUIGeneratedNativeModule { native static _DatePickerDialog_show(thisArray: KUint8ArrayPtr, thisLength: int32): undefined native static _BaseGestureEvent_ctor(): KPointer native static _BaseGestureEvent_getFinalizer(): KPointer + native static _BaseGestureEvent_getFingerList(ptr: KPointer): KPointer native static _BaseGestureEvent_setFingerList(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _TapGestureEvent_ctor(): KPointer native static _TapGestureEvent_getFinalizer(): KPointer @@ -2058,6 +2063,7 @@ export class ArkUIGeneratedNativeModule { native static _GestureEvent_getFinalizer(): KPointer native static _GestureEvent_getRepeat(ptr: KPointer): boolean native static _GestureEvent_setRepeat(ptr: KPointer, repeat: KInt): void + native static _GestureEvent_getFingerList(ptr: KPointer): KPointer native static _GestureEvent_setFingerList(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _GestureEvent_getOffsetX(ptr: KPointer): number native static _GestureEvent_setOffsetX(ptr: KPointer, offsetX: number): void @@ -2110,10 +2116,10 @@ export class ArkUIGeneratedNativeModule { native static _ImageAnalyzerController_getImageAnalyzerSupportTypes(ptr: KPointer): KPointer native static _ListScroller_ctor(): KPointer native static _ListScroller_getFinalizer(): KPointer - native static _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KPointer + native static _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KInteropReturnBuffer native static _ListScroller_scrollToItemInGroup(ptr: KPointer, index: number, indexInGroup: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _ListScroller_closeAllSwipeActions(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KPointer + native static _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KInteropReturnBuffer native static _Matrix2D_ctor(): KPointer native static _Matrix2D_getFinalizer(): KPointer native static _Matrix2D_identity(ptr: KPointer): KPointer @@ -2203,13 +2209,13 @@ export class ArkUIGeneratedNativeModule { native static _RichEditorBaseController_getCaretOffset(ptr: KPointer): number native static _RichEditorBaseController_setCaretOffset(ptr: KPointer, offset: number): boolean native static _RichEditorBaseController_closeSelectionMenu(ptr: KPointer): void - native static _RichEditorBaseController_getTypingStyle(ptr: KPointer): KPointer + native static _RichEditorBaseController_getTypingStyle(ptr: KPointer): KInteropReturnBuffer native static _RichEditorBaseController_setTypingStyle(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorBaseController_setSelection(ptr: KPointer, selectionStart: number, selectionEnd: number, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorBaseController_isEditing(ptr: KPointer): boolean native static _RichEditorBaseController_stopEditing(ptr: KPointer): void native static _RichEditorBaseController_getLayoutManager(ptr: KPointer): KPointer - native static _RichEditorBaseController_getPreviewText(ptr: KPointer): KPointer + native static _RichEditorBaseController_getPreviewText(ptr: KPointer): KInteropReturnBuffer native static _RichEditorController_ctor(): KPointer native static _RichEditorController_getFinalizer(): KPointer native static _RichEditorController_addTextSpan(ptr: KPointer, value: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): number @@ -2221,14 +2227,14 @@ export class ArkUIGeneratedNativeModule { native static _RichEditorController_deleteSpans(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorController_getSpans(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _RichEditorController_getParagraphs(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer - native static _RichEditorController_getSelection(ptr: KPointer): KPointer + native static _RichEditorController_getSelection(ptr: KPointer): KInteropReturnBuffer native static _RichEditorController_fromStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _RichEditorController_toStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _RichEditorStyledStringController_ctor(): KPointer native static _RichEditorStyledStringController_getFinalizer(): KPointer native static _RichEditorStyledStringController_setStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _RichEditorStyledStringController_getStyledString(ptr: KPointer): KPointer - native static _RichEditorStyledStringController_getSelection(ptr: KPointer): KPointer + native static _RichEditorStyledStringController_getSelection(ptr: KPointer): KInteropReturnBuffer native static _RichEditorStyledStringController_onContentChanged(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _Scroller_ctor(): KPointer native static _Scroller_getFinalizer(): KPointer @@ -2237,11 +2243,11 @@ export class ArkUIGeneratedNativeModule { native static _Scroller_fling(ptr: KPointer, velocity: number): void native static _Scroller_scrollPage0(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): undefined native static _Scroller_scrollPage1(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): undefined - native static _Scroller_currentOffset(ptr: KPointer): KPointer + native static _Scroller_currentOffset(ptr: KPointer): KInteropReturnBuffer native static _Scroller_scrollToIndex(ptr: KPointer, value: number, thisArray: KUint8ArrayPtr, thisLength: int32): undefined native static _Scroller_scrollBy(ptr: KPointer, dx: Length, dy: Length): undefined native static _Scroller_isAtEnd(ptr: KPointer): boolean - native static _Scroller_getItemRect(ptr: KPointer, index: number): KPointer + native static _Scroller_getItemRect(ptr: KPointer, index: number): KInteropReturnBuffer native static _Scroller_getItemIndex(ptr: KPointer, x: number, y: number): number native static _SearchController_ctor(): KPointer native static _SearchController_getFinalizer(): KPointer @@ -2336,7 +2342,7 @@ export class ArkUIGeneratedNativeModule { native static _TextEditControllerEx_stopEditing(ptr: KPointer): void native static _TextEditControllerEx_setCaretOffset(ptr: KPointer, offset: number): boolean native static _TextEditControllerEx_getCaretOffset(ptr: KPointer): number - native static _TextEditControllerEx_getPreviewText(ptr: KPointer): KPointer + native static _TextEditControllerEx_getPreviewText(ptr: KPointer): KInteropReturnBuffer native static _StyledStringController_ctor(): KPointer native static _StyledStringController_getFinalizer(): KPointer native static _StyledStringController_setStyledString(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void @@ -2344,8 +2350,8 @@ export class ArkUIGeneratedNativeModule { native static _LayoutManager_ctor(): KPointer native static _LayoutManager_getFinalizer(): KPointer native static _LayoutManager_getLineCount(ptr: KPointer): number - native static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KPointer - native static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KPointer + native static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KInteropReturnBuffer + native static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KInteropReturnBuffer native static _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KPointer native static _TextMenuItemId_ctor(): KPointer native static _TextMenuItemId_getFinalizer(): KPointer @@ -2541,9 +2547,9 @@ export class ArkUIGeneratedNativeModule { native static _XComponentController_getXComponentContext(ptr: KPointer): KPointer native static _XComponentController_setXComponentSurfaceSize(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _XComponentController_setXComponentSurfaceRect(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KPointer + native static _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KInteropReturnBuffer native static _XComponentController_setXComponentSurfaceRotation(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KPointer + native static _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KInteropReturnBuffer native static _XComponentController_onSurfaceCreated(ptr: KPointer, surfaceId: KStringPtr): void native static _XComponentController_onSurfaceChanged(ptr: KPointer, surfaceId: KStringPtr, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _XComponentController_onSurfaceDestroyed(ptr: KPointer, surfaceId: KStringPtr): void @@ -2593,6 +2599,7 @@ export class ArkUIGeneratedNativeModule { native static _LetterSpacingStyle_getLetterSpacing(ptr: KPointer): number native static _TextShadowStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _TextShadowStyle_getFinalizer(): KPointer + native static _TextShadowStyle_getTextShadow(ptr: KPointer): KPointer native static _BackgroundColorStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer native static _BackgroundColorStyle_getFinalizer(): KPointer native static _GestureStyle_ctor(thisArray: KUint8ArrayPtr, thisLength: int32): KPointer @@ -2629,7 +2636,7 @@ export class ArkUIGeneratedNativeModule { native static _ImageAttachment_getObjectFit(ptr: KPointer): KPointer native static _CustomSpan_ctor(): KPointer native static _CustomSpan_getFinalizer(): KPointer - native static _CustomSpan_onMeasure(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KPointer + native static _CustomSpan_onMeasure(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): KInteropReturnBuffer native static _CustomSpan_onDraw(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _CustomSpan_invalidate(ptr: KPointer): void native static _LinearIndicatorController_ctor(): KPointer @@ -2638,9 +2645,6 @@ export class ArkUIGeneratedNativeModule { native static _LinearIndicatorController_start(ptr: KPointer, thisArray: KUint8ArrayPtr, thisLength: int32): void native static _LinearIndicatorController_pause(ptr: KPointer): void native static _LinearIndicatorController_stop(ptr: KPointer): void - native static _GlobalScope_inspector_getInspectorNodes(): KPointer - native static _GlobalScope_inspector_getInspectorNodeById(id: number): KPointer - native static _GlobalScope_inspector_registerVsyncCallback(thisArray: KUint8ArrayPtr, thisLength: int32): void - native static _GlobalScope_inspector_unregisterVsyncCallback(): void - native static _GlobalScope_inspector_setAppBgColor(value: KStringPtr): void + native static _GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray: KUint8ArrayPtr, thisLength: int32): void + native static _GlobalScope_Profiler_inspector_unregisterVsyncCallback(): void } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ts index 8627e5886058a7a5a86a9e0c6fbf0035a607cb54..dde3a003f7c6ba10ed85b8b3f213bb536989f71b 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/ArkUINativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class ArkUINativeModule { diff --git a/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts b/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts index a4bb4723c1c5ad75fc1d7891de95923a7827dafd..748511a9a5426c19a89948910bd48faa252059ca 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/TestNativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, NativeBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class TestNativeModule { diff --git a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts index f9504b738b8d861ab7d672d712cb11adc9808ed7..dedb9b9da6de3b41542d6c0c77c111a9e0c36b26 100644 --- a/arkoala-arkts/arkui/src/generated/arkts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/arkts/type_check.ts @@ -1,13 +1,13 @@ -import { KBoolean, KStringPtr, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { KBoolean, KStringPtr, NativeBuffer, MaterializedBase } from "@koalaui/interop" import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./../ArkAnimationExtenderInterfaces" -import { Curve, DialogButtonStyle, BorderStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, Axis, CheckBoxShape, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, Color, ColoringStrategy, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, GradientDirection, Alignment, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" +import { Curve, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, DialogButtonStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, CheckBoxShape, LineCapStyle, LineJoinStyle, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" import { ICurve } from "./../ArkICurveMaterialized" import { AnimationExtender } from "./../ArkAnimationExtenderMaterialized" -import { AnimateParam, TranslateOptions, UIContext, CommonMethod, DismissReason, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CustomBuilder, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, MotionPathOptions, sharedTransitionOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, ScaleOptions, AlignRuleOption, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, LocalizedAlignRuleOptions, ChainStyle, RotateOptions, TransitionOptions, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EffectType, PreDragStatus, DragItemInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, ModalTransition, BackgroundBlurStyleOptions, BlurStyleOptions, ForegroundBlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ShadowType, MultiShadowOptions, SafeAreaType, SafeAreaEdge, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, BorderImageOption, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, UniformDataType, DragResult, BlendMode, BlendApplyType, IntentionCode, BindOptions, DismissContentCoverAction, ContentCoverOptions, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, SheetOptions, StateStyles, PopupMessageOptions, DismissPopupAction, PopupOptions, CustomPopupOptions, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, ContextMenuOptions, MenuOptions, TouchTestInfo, RectResult, TouchResult, PixelStretchEffectOptions, ClickEffect, FadingEdgeOptions, NestedScrollOptions, MenuElement, SymbolGlyphModifier, OutlineStyle, DragPreviewMode, MenuPolicy, ImageModifier, DragPreviewOptions, DragInteractionOptions, InvertOptions, CircleShape, EllipseShape, PathShape, RectShape, PixelRoundPolicy, VisualEffect, Filter, AccessibilityCallback, MotionBlurOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, LinearGradientBlurOptions, ComponentContent, OverlayOptions, Blender, VisibleAreaChangeCallback, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" +import { AnimateParam, TranslateOptions, UIContext, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, TransitionOptions, MotionBlurOptions, InvertOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DismissReason, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, TransitionHierarchyStrategy, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, BlurStyleOptions, ShadowType, MultiShadowOptions, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, DragResult, IntentionCode, BindOptions, DismissContentCoverAction, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, PopupMessageOptions, DismissPopupAction, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, RectResult, FadingEdgeOptions, NestedScrollOptions, SymbolGlyphModifier, DragPreviewMode, MenuPolicy, ImageModifier, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" import { PointerStyle, Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { LazyForEachOps } from "./../ArkLazyForEachOpsMaterialized" +import { SystemOps } from "./../ArkSystemOpsMaterialized" import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, WebHeader, SnapshotOptions, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" @@ -15,10 +15,10 @@ import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" import { Resource } from "./../ArkResourceInterfaces" import { WebviewController } from "./../ArkWebviewControllerMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" -import { AsyncCallback_image_PixelMap_Void, Literal_Want_want, Callback_Void, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Number_offset_span, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Literal_Alignment_align, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Empty, Callback_Number_Number_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Literal_Boolean_next_Axis_direction, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback_, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback__Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Type_WebAttribute_onFileSelectorShow_callback, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" +import { AsyncCallback_image_PixelMap_Void, Literal_Want_want, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Empty, Callback_Number_Number_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Literal_Boolean_next_Axis_direction, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback_, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback__Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Type_WebAttribute_onFileSelectorShow_callback, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" import { GlobalScope_ohos_arkui_performanceMonitor } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { FrameNode } from "./../ArkFrameNodeMaterialized" -import { Position, VoidCallback, ResourceStr, ResourceColor, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, Offset, Font, Length, LengthMetricsUnit, MarkStyle, Bias, Area, Margin, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, EdgeWidth, DirectionalEdgesT, ColorMetrics, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" +import { Position, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, Offset, Font, LengthMetricsUnit, MarkStyle, Bias, EdgeWidth, DirectionalEdgesT, ColorMetrics, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" import { NavExtender } from "./../ArkNavExtenderMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -27,9 +27,22 @@ import { Root, ComponentRoot } from "./../ArkStaticComponentsInterfaces" import { EventEmulator } from "./../ArkEventEmulatorMaterialized" import { ClickEvent } from "./../ArkClickEventMaterialized" import { AbilityComponentInterface, AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier, CustomComponent, AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, NavigationAttribute, CommonTransition, PageTransitionEnterInterface, PageTransitionExitInterface } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode, FingerInfo, GestureInterface, TapGestureParameters, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, SwipeGestureInterface, PinchGestureInterface, RotationGestureInterface, GestureGroupInterface, TapGestureHandlerOptions, TapGestureHandler, LongPressGestureHandlerOptions, LongPressGestureHandler, PanGestureHandlerOptions, PanGestureHandler, SwipeGestureHandlerOptions, SwipeGestureHandler, PinchGestureHandlerOptions, PinchGestureHandler, RotationGestureHandlerOptions, RotationGestureHandler, GestureGroupGestureHandlerOptions, GestureRecognizerState } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { SheetInfo, DismissDialogAction, ActionSheetButtonOptions, ActionSheetOffset, ActionSheetOptions } from "./../ArkActionSheetInterfaces" import { DialogAlignment, DialogButtonDirection, AlertDialogButtonBaseOptions, AlertDialogButtonOptions, TextStyle_alert_dialog, AlertDialogParam, AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions } from "./../ArkAlertDialogInterfaces" -import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ActionSheet } from "./../ArkActionSheetMaterialized" import { AlertDialog } from "./../ArkAlertDialogMaterialized" import { IndexerAlign, AlphabetIndexerOptions, AlphabetIndexerInterface, AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./../ArkAlphabetIndexerInterfaces" @@ -57,32 +70,21 @@ import { RenderingContextSettings } from "./../ArkRenderingContextSettingsMateri import { CanvasRenderer } from "./../ArkCanvasRendererMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { OffscreenCanvasRenderingContext2D } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { OffscreenCanvas } from "./../ArkOffscreenCanvasMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" import { CheckboxOptions, CheckBoxConfiguration, CheckboxInterface, CheckboxAttribute, OnCheckboxChangeCallback } from "./../ArkCheckboxInterfaces" import { SelectStatus, CheckboxGroupOptions, CheckboxGroupResult, CheckboxGroupInterface, CheckboxGroupAttribute, OnCheckboxGroupChangeCallback } from "./../ArkCheckboxgroupInterfaces" import { CircleOptions, CircleInterface, CircleAttribute } from "./../ArkCircleInterfaces" import { ColumnOptions, ColumnInterface, ColumnAttribute } from "./../ArkColumnInterfaces" import { ColumnSplitInterface, ColumnSplitAttribute, ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" -import { DrawModifier } from "./../ArkDrawModifierMaterialized" import { BaseEvent } from "./../ArkBaseEventMaterialized" -import { HoverEvent } from "./../ArkHoverEventMaterialized" -import { MouseEvent } from "./../ArkMouseEventMaterialized" import { AccessibilityHoverEvent } from "./../ArkAccessibilityHoverEventMaterialized" -import { TouchEvent } from "./../ArkTouchEventMaterialized" import { PixelMapMock } from "./../ArkPixelMapMockMaterialized" -import { DragEvent } from "./../ArkDragEventMaterialized" -import { KeyEvent } from "./../ArkKeyEventMaterialized" -import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier, CustomComponent, AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, NavigationAttribute, CommonTransition, PageTransitionEnterInterface, PageTransitionExitInterface } from "./../../handwritten" -import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" -import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" -import { GestureModifier } from "./../ArkGestureModifierMaterialized" -import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode, FingerInfo, GestureInterface, TapGestureParameters, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, SwipeGestureInterface, PinchGestureInterface, RotationGestureInterface, GestureGroupInterface, TapGestureHandlerOptions, TapGestureHandler, LongPressGestureHandlerOptions, LongPressGestureHandler, PanGestureHandlerOptions, PanGestureHandler, SwipeGestureHandlerOptions, SwipeGestureHandler, PinchGestureHandlerOptions, PinchGestureHandler, RotationGestureHandlerOptions, RotationGestureHandler, GestureGroupGestureHandlerOptions, GestureRecognizerState } from "./../ArkGestureInterfaces" -import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { Measurable } from "./../ArkMeasurableMaterialized" import { View } from "./../ArkViewMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollAlign, ScrollDirection, OffsetResult, ScrollEdgeOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollOptions, ScrollPageOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollDirection, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" import { DynamicNode } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { UICommonEvent } from "./../ArkUICommonEventMaterialized" @@ -183,6 +185,7 @@ import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController } from "./../ArkRichEditorBaseControllerMaterialized" import { TextEditControllerEx } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./../ArkTextBaseControllerMaterialized" import { LayoutManager } from "./../ArkLayoutManagerMaterialized" import { StyledString } from "./../ArkStyledStringMaterialized" import { StyledStringController } from "./../ArkStyledStringControllerMaterialized" @@ -233,7 +236,6 @@ import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" import { TextAreaOptions, TextAreaInterface, TextAreaAttribute, TextAreaType, ContentType, TextAreaSubmitCallback } from "./../ArkTextAreaInterfaces" import { TextClockController } from "./../ArkTextClockControllerMaterialized" import { TextClockConfiguration, TextClockOptions, TextClockInterface, TextClockAttribute } from "./../ArkTextClockInterfaces" -import { TextBaseController } from "./../ArkTextBaseControllerMaterialized" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { SubmitEvent } from "./../ArkSubmitEventMaterialized" import { TextInputController } from "./../ArkTextInputControllerMaterialized" @@ -2339,6 +2341,12 @@ export class TypeChecker { static isObscuredReasons(value: object|string|number|undefined|null): boolean { return value instanceof ObscuredReasons } + static isOffscreenCanvas(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { + return value instanceof OffscreenCanvas + } + static isOffscreenCanvasRenderingContext2D(value: object|string|number|undefined|null): boolean { + return value instanceof OffscreenCanvasRenderingContext2D + } static isOffset(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof Offset } @@ -3590,6 +3598,9 @@ export class TypeChecker { static isSystemBarStyle(value: object|string|number|undefined|null, arg0: boolean): boolean { return value instanceof SystemBarStyle } + static isSystemOps(value: object|string|number|undefined|null): boolean { + return value instanceof SystemOps + } static isTabBarIconStyle(value: object|string|number|undefined|null, arg0: boolean, arg1: boolean): boolean { return value instanceof TabBarIconStyle } @@ -4178,6 +4189,9 @@ export class TypeChecker { static isArray_Number(value: object|string|number|undefined|null): boolean { return value instanceof Array } + static isArray_CustomObject(value: object|string|number|undefined|null): boolean { + return value instanceof Array + } static isArray_TouchObject(value: object|string|number|undefined|null): boolean { return value instanceof Array } @@ -4268,9 +4282,6 @@ export class TypeChecker { static isArray_LayoutSafeAreaEdge(value: object|string|number|undefined|null): boolean { return value instanceof Array } - static isArray_CustomObject(value: object|string|number|undefined|null): boolean { - return value instanceof Array - } static isArray_Point(value: object|string|number|undefined|null): boolean { return value instanceof Array } diff --git a/arkoala-arkts/arkui/src/generated/index.ts b/arkoala-arkts/arkui/src/generated/index.ts index ce94405345c0e8634db0e6d9f5df44a82c2ba95c..675403deffa5e3b973766a957665da1edc5d8974 100644 --- a/arkoala-arkts/arkui/src/generated/index.ts +++ b/arkoala-arkts/arkui/src/generated/index.ts @@ -131,6 +131,7 @@ export * from "./ArkAnimationExtenderInterfaces" export * from "./ArkArkuiCustomInterfaces" export * from "./ArkArkuiExternalInterfaces" export * from "./SyntheticDeclarations" +export * from "./ArkCustomBuilderInterfaces" export * from "./ArkNavigationExtenderInterfaces" export * from "./ArkPointInterfaces" export * from "./ArkStaticComponentsInterfaces" @@ -265,10 +266,13 @@ export * from "./ArkWaterFlowInterfaces" export * from "./ArkUiExtensionComponentInterfaces" export * from "./ArkStyledStringInterfaces" export * from "./ArkLinearindicatorInterfaces" +export * from "./ArkInspectorInterfaces" +export * from "./ArkProfilerNamespace" export * from "./ArkRawFileDescriptorInterfaces" export * from "./ArkAnimationExtenderMaterialized" export * from "./ArkUnifiedDataMaterialized" export * from "./ArkLazyForEachOpsMaterialized" +export * from "./ArkSystemOpsMaterialized" export * from "./ArkDrawingCanvasMaterialized" export * from "./ArkLengthMetricsMaterialized" export * from "./ArkWebviewControllerMaterialized" @@ -295,10 +299,14 @@ export * from "./ArkImageDataMaterialized" export * from "./ArkRenderingContextSettingsMaterialized" export * from "./ArkCanvasRendererMaterialized" export * from "./ArkCanvasRenderingContext2DMaterialized" +export * from "./ArkOffscreenCanvasRenderingContext2DMaterialized" +export * from "./ArkOffscreenCanvasMaterialized" export * from "./ArkDrawingRenderingContextMaterialized" export * from "./ArkICurveMaterialized" export * from "./ArkDrawModifierMaterialized" export * from "./ArkTransitionEffectMaterialized" +export * from "./ArkFocusControlNamespace" +export * from "./ArkCursorControlNamespace" export * from "./ArkBaseEventMaterialized" export * from "./ArkClickEventMaterialized" export * from "./ArkHoverEventMaterialized" @@ -316,7 +324,6 @@ export * from "./ArkDynamicNodeMaterialized" export * from "./ArkChildrenMainSizeMaterialized" export * from "./ArkUICommonEventMaterialized" export * from "./ArkGestureModifierMaterialized" -export * from "./ArkGlobalScopeCommonMaterialized" export * from "./ArkContextMenuMaterialized" export * from "./ArkCustomDialogControllerMaterialized" export * from "./ArkLinearGradientMaterialized" @@ -414,8 +421,4 @@ export * from "./ArkMutableStyledStringMaterialized" export * from "./ArkImageAttachmentMaterialized" export * from "./ArkCustomSpanMaterialized" export * from "./ArkLinearIndicatorControllerMaterialized" -export * from "./ArkGlobalScopeInspectorMaterialized" -export * from "./GlobalScope" -export * from "./Events" -export * from "./PeerNode" -export * from "./peers/CallbacksChecker" +export * from "./ArkProfilerNamespace" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts index d0e1cb8e58ba51915fc991865f01253479bc2aee..f0c07d96f3a872dd7a122570d8903d634854fec9 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAbilityComponentPeer.ts @@ -20,19 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" -import { Callback_Void, Literal_Want_want } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Literal_Want_want } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { Want } from "./../ArkArkuiExternalInterfaces" +import { AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts index 918ff84eb86e2ad2f6ae7a24dff424ed3cd8602b..6bef5434fed7b0d817820c4e1cc46eae33b05902 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, BlurStyle } from "./../ArkCommonInterfaces" -import { AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" -import { Callback_Number_Void } from "./../SyntheticDeclarations" -import { ResourceColor, Font, Position, Length } from "./../ArkUnitsInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback, IndexerAlign, AlphabetIndexerAttribute, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -71,17 +87,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -98,17 +114,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -125,17 +141,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -152,17 +168,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -179,17 +195,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -206,17 +222,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -233,17 +249,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -260,17 +276,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -303,12 +319,12 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) @@ -370,17 +386,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts index 4355f93f4e24b45588aa46065e3e118daa36ef52..3942847fb610265e2b3f00a5d025c166ebbfa22c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkAnimatorPeer.ts @@ -20,20 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { AnimatorAttribute } from "./../ArkAnimatorInterfaces" -import { AnimationStatus, Curve, FillMode, PlayMode } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, Curve, FillMode, PlayMode } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { SpringMotion } from "./../ArkSpringMotionMaterialized" -import { Callback_Void, Callback_Number_Void } from "./../SyntheticDeclarations" +import { AnimatorAttribute } from "./../ArkAnimatorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts index 22ef4e32637c5ce8794d1502a13d7644394820c4..cc2af3dec4294b91be20281c889104ee09ccce19 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBadgePeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { BadgeAttribute, BadgeParamWithNumber, BadgeParamWithString } from "./../ArkBadgeInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { BadgeParamWithNumber, BadgeAttribute, BadgeParamWithString } from "./../ArkBadgeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts index a1a3284d470d7342f6e2775aa17c7a3ea72c8bae..481465f854c3ab0ca1fe18538d37cbb775934356 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkBlankPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { BlankAttribute } from "./../ArkBlankInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { BlankAttribute } from "./../ArkBlankInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -58,12 +75,12 @@ export class ArkBlankPeer extends ArkCommonMethodPeer { const min_value = min! let min_value_type : int32 = RuntimeType.UNDEFINED min_value_type = runtimeType(min_value) - if (((RuntimeType.NUMBER == min_value_type))) { + if (RuntimeType.NUMBER == min_value_type) { thisSerializer.writeInt8(0 as int32) const min_value_0 = min_value as number thisSerializer.writeNumber(min_value_0) } - else if (((RuntimeType.STRING == min_value_type))) { + else if (RuntimeType.STRING == min_value_type) { thisSerializer.writeInt8(1 as int32) const min_value_1 = min_value as string thisSerializer.writeString(min_value_1) @@ -81,17 +98,17 @@ export class ArkBlankPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts index 5a9eb8dde5658501a4fa29e700941506ef999298..7453f26e9a25c7235db28984c6f3bcf7b31dc4e0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkButtonPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { ButtonAttribute, ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonOptions } from "./../ArkButtonInterfaces" -import { ResourceColor, Length, ResourceStr } from "./../ArkUnitsInterfaces" -import { FontWeight, FontStyle, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, FontStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ButtonType, ButtonStyleMode, ControlSize, ButtonRole, ButtonConfiguration, LabelStyle, ButtonAttribute, ButtonOptions } from "./../ArkButtonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -62,12 +79,12 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let label_type : int32 = RuntimeType.UNDEFINED label_type = runtimeType(label) - if (((RuntimeType.STRING == label_type))) { + if (RuntimeType.STRING == label_type) { thisSerializer.writeInt8(0 as int32) const label_0 = label as string thisSerializer.writeString(label_0) } - else if (((RuntimeType.OBJECT == label_type))) { + else if (RuntimeType.OBJECT == label_type) { thisSerializer.writeInt8(1 as int32) const label_1 = label as Resource thisSerializer.writeResource(label_1) @@ -106,17 +123,17 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -131,7 +148,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -141,7 +158,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -156,12 +173,12 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts index 0f92eeed7e12bc521f71f27c5851ee8200bba9f8..983bd48712cf14d28a8273fcbdc79797454d44e8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { Axis } from "./../ArkEnumsInterfaces" import { CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarAttribute } from "./../ArkCalendarInterfaces" @@ -30,8 +30,7 @@ import { CalendarController } from "./../ArkCalendarControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts index ed796404b7cf45be2d5e1f8bfe6d204beac3108d..88e7adf599f114e575a32a2a321a8b67d39e862c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCalendarPickerPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PickerTextStyle } from "./../ArkCommonInterfaces" -import { CalendarPickerAttribute, CalendarAlign, CalendarOptions } from "./../ArkCalendarPickerInterfaces" -import { Callback_Date_Void } from "./../SyntheticDeclarations" -import { Offset } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Offset, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Date_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { CalendarAlign, CalendarPickerAttribute, CalendarOptions } from "./../ArkCalendarPickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts index a1f624e47e27ac085e7bc684aaa7cf851c22f807..93949117b63fae67e0f0e2519d350c6a32cc2806 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCanvasPeer.ts @@ -20,21 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { CanvasAttribute } from "./../ArkCanvasInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" +import { CanvasAttribute } from "./../ArkCanvasInterfaces" import { ImageAIOptions } from "./../ArkImageCommonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts index c66c58604881e3dda82262788ad978e2b4b46d4a..f2ac26a3dd9926fc8326560b225efbde6046de8d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { CheckboxAttribute, OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions } from "./../ArkCheckboxInterfaces" -import { ResourceColor, MarkStyle } from "./../ArkUnitsInterfaces" -import { CheckBoxShape, Color } from "./../ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions, CheckboxAttribute } from "./../ArkCheckboxInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -74,17 +90,17 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -104,17 +120,17 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts index e4d416c5f733f669b2b471ea7e76216d2e93154f..bfec7f725b0011ddf6b1c94d85d541007f9b19d0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { CheckboxGroupAttribute, OnCheckboxGroupChangeCallback, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { ResourceColor, MarkStyle } from "./../ArkUnitsInterfaces" -import { CheckBoxShape, Color } from "./../ArkEnumsInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, MarkStyle, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CheckBoxShape } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnCheckboxGroupChangeCallback, CheckboxGroupOptions, CheckboxGroupAttribute } from "./../ArkCheckboxgroupInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -74,17 +90,17 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -101,17 +117,17 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts index 6d9286a04cdb126ad673c6d3f417945d811230d2..987d8372a809f5bf695ad43e4fb1fd1cad1707fa 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCirclePeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { CircleAttribute, CircleOptions } from "./../ArkCircleInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { CircleOptions, CircleAttribute } from "./../ArkCircleInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts index 1903cdd9aea75c54a304da2abdf2a7d281a73098..fd56ab814c6a68e05e5a55d43048e7d37d9641af 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { ColumnAttribute, ColumnOptions } from "./../ArkColumnInterfaces" -import { HorizontalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ColumnOptions, ColumnAttribute } from "./../ArkColumnInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts index 0129e0511adcaf640b0829d674cac47cf8fbc01b..ed953e1a29572dd93b0b24088714c14646ecf519 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkColumnSplitPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ColumnSplitAttribute, ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ColumnSplitDividerStyle, ColumnSplitAttribute } from "./../ArkColumnSplitInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts index 516528093eaee456e70b2d3359de9cf86b20dffe..828ad0bbd6c70dbf1655c5e216913b964cffd4b0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCommonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { DrawModifier } from "./../ArkDrawModifierMaterialized" @@ -49,8 +49,7 @@ import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScro import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -154,12 +153,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -341,17 +340,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -369,12 +368,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as SizeOptions thisSerializer.writeSizeOptions(value_0) } - else if (((TypeChecker.isImageSize(value)))) { + else if (TypeChecker.isImageSize(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ImageSize thisSerializer.writeInt32((value_1.valueOf() as int32)) @@ -386,12 +385,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Position thisSerializer.writePosition(value_0) } - else if (((TypeChecker.isAlignment(value)))) { + else if (TypeChecker.isAlignment(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Alignment thisSerializer.writeInt32((value_1.valueOf() as int32)) @@ -445,12 +444,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -468,12 +467,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isBorderStyle(value)))) { + if (TypeChecker.isBorderStyle(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as BorderStyle thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as EdgeStyles const value_1_top = value_1.top @@ -569,7 +568,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -579,17 +578,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -611,17 +610,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_top_value_0 = value_1_top_value as Color thisSerializer.writeInt32((value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_top_value_1 = value_1_top_value as number thisSerializer.writeNumber(value_1_top_value_1) } - else if (((RuntimeType.STRING == value_1_top_value_type))) { + else if (RuntimeType.STRING == value_1_top_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_top_value_2 = value_1_top_value as string thisSerializer.writeString(value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_1_top_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_top_value_3 = value_1_top_value as Resource thisSerializer.writeResource(value_1_top_value_3) @@ -640,17 +639,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_right_value_0 = value_1_right_value as Color thisSerializer.writeInt32((value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_right_value_1 = value_1_right_value as number thisSerializer.writeNumber(value_1_right_value_1) } - else if (((RuntimeType.STRING == value_1_right_value_type))) { + else if (RuntimeType.STRING == value_1_right_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_right_value_2 = value_1_right_value as string thisSerializer.writeString(value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_1_right_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_right_value_3 = value_1_right_value as Resource thisSerializer.writeResource(value_1_right_value_3) @@ -669,17 +668,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_bottom_value_0 = value_1_bottom_value as Color thisSerializer.writeInt32((value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_bottom_value_1 = value_1_bottom_value as number thisSerializer.writeNumber(value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_1_bottom_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_bottom_value_2 = value_1_bottom_value as string thisSerializer.writeString(value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_1_bottom_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_bottom_value_3 = value_1_bottom_value as Resource thisSerializer.writeResource(value_1_bottom_value_3) @@ -698,17 +697,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_left_value_0 = value_1_left_value as Color thisSerializer.writeInt32((value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_left_value_1 = value_1_left_value as number thisSerializer.writeNumber(value_1_left_value_1) } - else if (((RuntimeType.STRING == value_1_left_value_type))) { + else if (RuntimeType.STRING == value_1_left_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_left_value_2 = value_1_left_value as string thisSerializer.writeString(value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_1_left_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_left_value_3 = value_1_left_value as Resource thisSerializer.writeResource(value_1_left_value_3) @@ -792,12 +791,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isOutlineStyle(value)))) { + if (TypeChecker.isOutlineStyle(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as OutlineStyle thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as EdgeOutlineStyles const value_1_top = value_1.top @@ -888,7 +887,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -898,17 +897,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -930,17 +929,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_top_value_0 = value_1_top_value as Color thisSerializer.writeInt32((value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_top_value_1 = value_1_top_value as number thisSerializer.writeNumber(value_1_top_value_1) } - else if (((RuntimeType.STRING == value_1_top_value_type))) { + else if (RuntimeType.STRING == value_1_top_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_top_value_2 = value_1_top_value as string thisSerializer.writeString(value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_1_top_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_top_value_3 = value_1_top_value as Resource thisSerializer.writeResource(value_1_top_value_3) @@ -959,17 +958,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_right_value_0 = value_1_right_value as Color thisSerializer.writeInt32((value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_right_value_1 = value_1_right_value as number thisSerializer.writeNumber(value_1_right_value_1) } - else if (((RuntimeType.STRING == value_1_right_value_type))) { + else if (RuntimeType.STRING == value_1_right_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_right_value_2 = value_1_right_value as string thisSerializer.writeString(value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_1_right_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_right_value_3 = value_1_right_value as Resource thisSerializer.writeResource(value_1_right_value_3) @@ -988,17 +987,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_bottom_value_0 = value_1_bottom_value as Color thisSerializer.writeInt32((value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_bottom_value_1 = value_1_bottom_value as number thisSerializer.writeNumber(value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_1_bottom_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_bottom_value_2 = value_1_bottom_value as string thisSerializer.writeString(value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_1_bottom_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_bottom_value_3 = value_1_bottom_value as Resource thisSerializer.writeResource(value_1_bottom_value_3) @@ -1017,17 +1016,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_left_value_0 = value_1_left_value as Color thisSerializer.writeInt32((value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1 as int32) const value_1_left_value_1 = value_1_left_value as number thisSerializer.writeNumber(value_1_left_value_1) } - else if (((RuntimeType.STRING == value_1_left_value_type))) { + else if (RuntimeType.STRING == value_1_left_value_type) { thisSerializer.writeInt8(2 as int32) const value_1_left_value_2 = value_1_left_value as string thisSerializer.writeString(value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_1_left_value_type) { thisSerializer.writeInt8(3 as int32) const value_1_left_value_3 = value_1_left_value as Resource thisSerializer.writeResource(value_1_left_value_3) @@ -1094,7 +1093,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -1104,17 +1103,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -1267,17 +1266,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isColor(value)))) { + if (TypeChecker.isColor(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -1295,12 +1294,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as InvertOptions thisSerializer.writeInvertOptions(value_1) @@ -1312,12 +1311,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -1413,12 +1412,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -1515,12 +1514,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_xs_value = value_xs! let value_xs_value_type : int32 = RuntimeType.UNDEFINED value_xs_value_type = runtimeType(value_xs_value) - if (((RuntimeType.NUMBER == value_xs_value_type))) { + if (RuntimeType.NUMBER == value_xs_value_type) { thisSerializer.writeInt8(0 as int32) const value_xs_value_0 = value_xs_value as number thisSerializer.writeNumber(value_xs_value_0) } - else if (((RuntimeType.OBJECT == value_xs_value_type))) { + else if (RuntimeType.OBJECT == value_xs_value_type) { thisSerializer.writeInt8(1 as int32) const value_xs_value_1 = value_xs_value as Literal_Number_offset_span const value_xs_value_1_span = value_xs_value_1.span @@ -1537,12 +1536,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_sm_value = value_sm! let value_sm_value_type : int32 = RuntimeType.UNDEFINED value_sm_value_type = runtimeType(value_sm_value) - if (((RuntimeType.NUMBER == value_sm_value_type))) { + if (RuntimeType.NUMBER == value_sm_value_type) { thisSerializer.writeInt8(0 as int32) const value_sm_value_0 = value_sm_value as number thisSerializer.writeNumber(value_sm_value_0) } - else if (((RuntimeType.OBJECT == value_sm_value_type))) { + else if (RuntimeType.OBJECT == value_sm_value_type) { thisSerializer.writeInt8(1 as int32) const value_sm_value_1 = value_sm_value as Literal_Number_offset_span const value_sm_value_1_span = value_sm_value_1.span @@ -1559,12 +1558,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_md_value = value_md! let value_md_value_type : int32 = RuntimeType.UNDEFINED value_md_value_type = runtimeType(value_md_value) - if (((RuntimeType.NUMBER == value_md_value_type))) { + if (RuntimeType.NUMBER == value_md_value_type) { thisSerializer.writeInt8(0 as int32) const value_md_value_0 = value_md_value as number thisSerializer.writeNumber(value_md_value_0) } - else if (((RuntimeType.OBJECT == value_md_value_type))) { + else if (RuntimeType.OBJECT == value_md_value_type) { thisSerializer.writeInt8(1 as int32) const value_md_value_1 = value_md_value as Literal_Number_offset_span const value_md_value_1_span = value_md_value_1.span @@ -1581,12 +1580,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_lg_value = value_lg! let value_lg_value_type : int32 = RuntimeType.UNDEFINED value_lg_value_type = runtimeType(value_lg_value) - if (((RuntimeType.NUMBER == value_lg_value_type))) { + if (RuntimeType.NUMBER == value_lg_value_type) { thisSerializer.writeInt8(0 as int32) const value_lg_value_0 = value_lg_value as number thisSerializer.writeNumber(value_lg_value_0) } - else if (((RuntimeType.OBJECT == value_lg_value_type))) { + else if (RuntimeType.OBJECT == value_lg_value_type) { thisSerializer.writeInt8(1 as int32) const value_lg_value_1 = value_lg_value as Literal_Number_offset_span const value_lg_value_1_span = value_lg_value_1.span @@ -1684,17 +1683,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.FUNCTION == value_type))) { + if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as DragItemInfo thisSerializer.writeDragItemInfo(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -1718,12 +1717,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_angle_value = value_angle! let value_angle_value_type : int32 = RuntimeType.UNDEFINED value_angle_value_type = runtimeType(value_angle_value) - if (((RuntimeType.NUMBER == value_angle_value_type))) { + if (RuntimeType.NUMBER == value_angle_value_type) { thisSerializer.writeInt8(0 as int32) const value_angle_value_0 = value_angle_value as number thisSerializer.writeNumber(value_angle_value_0) } - else if (((RuntimeType.STRING == value_angle_value_type))) { + else if (RuntimeType.STRING == value_angle_value_type) { thisSerializer.writeInt8(1 as int32) const value_angle_value_1 = value_angle_value as string thisSerializer.writeString(value_angle_value_1) @@ -1749,17 +1748,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = value_colors_element_0 as Color thisSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1 as int32) const value_colors_element_0_1 = value_colors_element_0 as number thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2 as int32) const value_colors_element_0_2 = value_colors_element_0 as string thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3 as int32) const value_colors_element_0_3 = value_colors_element_0 as Resource thisSerializer.writeResource(value_colors_element_0_3) @@ -1793,12 +1792,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_start_value = value_start! let value_start_value_type : int32 = RuntimeType.UNDEFINED value_start_value_type = runtimeType(value_start_value) - if (((RuntimeType.NUMBER == value_start_value_type))) { + if (RuntimeType.NUMBER == value_start_value_type) { thisSerializer.writeInt8(0 as int32) const value_start_value_0 = value_start_value as number thisSerializer.writeNumber(value_start_value_0) } - else if (((RuntimeType.STRING == value_start_value_type))) { + else if (RuntimeType.STRING == value_start_value_type) { thisSerializer.writeInt8(1 as int32) const value_start_value_1 = value_start_value as string thisSerializer.writeString(value_start_value_1) @@ -1812,12 +1811,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_end_value = value_end! let value_end_value_type : int32 = RuntimeType.UNDEFINED value_end_value_type = runtimeType(value_end_value) - if (((RuntimeType.NUMBER == value_end_value_type))) { + if (RuntimeType.NUMBER == value_end_value_type) { thisSerializer.writeInt8(0 as int32) const value_end_value_0 = value_end_value as number thisSerializer.writeNumber(value_end_value_0) } - else if (((RuntimeType.STRING == value_end_value_type))) { + else if (RuntimeType.STRING == value_end_value_type) { thisSerializer.writeInt8(1 as int32) const value_end_value_1 = value_end_value as string thisSerializer.writeString(value_end_value_1) @@ -1831,12 +1830,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_rotation_value = value_rotation! let value_rotation_value_type : int32 = RuntimeType.UNDEFINED value_rotation_value_type = runtimeType(value_rotation_value) - if (((RuntimeType.NUMBER == value_rotation_value_type))) { + if (RuntimeType.NUMBER == value_rotation_value_type) { thisSerializer.writeInt8(0 as int32) const value_rotation_value_0 = value_rotation_value as number thisSerializer.writeNumber(value_rotation_value_0) } - else if (((RuntimeType.STRING == value_rotation_value_type))) { + else if (RuntimeType.STRING == value_rotation_value_type) { thisSerializer.writeInt8(1 as int32) const value_rotation_value_1 = value_rotation_value as string thisSerializer.writeString(value_rotation_value_1) @@ -1854,17 +1853,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = value_colors_element_0 as Color thisSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1 as int32) const value_colors_element_0_1 = value_colors_element_0 as number thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2 as int32) const value_colors_element_0_2 = value_colors_element_0 as string thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3 as int32) const value_colors_element_0_3 = value_colors_element_0 as Resource thisSerializer.writeResource(value_colors_element_0_3) @@ -1893,12 +1892,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_radius = value.radius let value_radius_type : int32 = RuntimeType.UNDEFINED value_radius_type = runtimeType(value_radius) - if (((RuntimeType.NUMBER == value_radius_type))) { + if (RuntimeType.NUMBER == value_radius_type) { thisSerializer.writeInt8(0 as int32) const value_radius_0 = value_radius as number thisSerializer.writeNumber(value_radius_0) } - else if (((RuntimeType.STRING == value_radius_type))) { + else if (RuntimeType.STRING == value_radius_type) { thisSerializer.writeInt8(1 as int32) const value_radius_1 = value_radius as string thisSerializer.writeString(value_radius_1) @@ -1915,17 +1914,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = value_colors_element_0 as Color thisSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1 as int32) const value_colors_element_0_1 = value_colors_element_0 as number thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2 as int32) const value_colors_element_0_2 = value_colors_element_0 as string thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3 as int32) const value_colors_element_0_3 = value_colors_element_0 as Resource thisSerializer.writeResource(value_colors_element_0_3) @@ -1954,12 +1953,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ShadowOptions thisSerializer.writeShadowOptions(value_0) } - else if (((TypeChecker.isShadowStyle(value)))) { + else if (TypeChecker.isShadowStyle(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ShadowStyle thisSerializer.writeInt32((value_1.valueOf() as int32)) @@ -2286,17 +2285,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let src_type : int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(0 as int32) const src_0 = src as ResourceStr let src_0_type : int32 = RuntimeType.UNDEFINED src_0_type = runtimeType(src_0) - if (((RuntimeType.STRING == src_0_type))) { + if (RuntimeType.STRING == src_0_type) { thisSerializer.writeInt8(0 as int32) const src_0_0 = src_0 as string thisSerializer.writeString(src_0_0) } - else if (((RuntimeType.OBJECT == src_0_type))) { + else if (RuntimeType.OBJECT == src_0_type) { thisSerializer.writeInt8(1 as int32) const src_0_1 = src_0 as Resource thisSerializer.writeResource(src_0_1) @@ -2596,17 +2595,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as ComponentContent thisSerializer.writeComponentContent(value_2) @@ -2637,12 +2636,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let effect_type : int32 = RuntimeType.UNDEFINED effect_type = runtimeType(effect) - if (((TypeChecker.isBlendMode(effect)))) { + if (TypeChecker.isBlendMode(effect)) { thisSerializer.writeInt8(0 as int32) const effect_0 = effect as BlendMode thisSerializer.writeInt32((effect_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == effect_type))) { + else if (RuntimeType.OBJECT == effect_type) { thisSerializer.writeInt8(1 as int32) const effect_1 = effect as Blender thisSerializer.writeBlender(effect_1) @@ -2678,7 +2677,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let content_type : int32 = RuntimeType.UNDEFINED content_type = runtimeType(content) - if (((RuntimeType.OBJECT == content_type))) { + if (RuntimeType.OBJECT == content_type) { thisSerializer.writeInt8(0 as int32) const content_0 = content as Array thisSerializer.writeInt32(content_0.length as int32) @@ -2687,7 +2686,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeMenuElement(content_0_element) } } - else if (((RuntimeType.FUNCTION == content_type))) { + else if (RuntimeType.FUNCTION == content_type) { thisSerializer.writeInt8(1 as int32) const content_1 = content as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) @@ -2706,7 +2705,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let content_type : int32 = RuntimeType.UNDEFINED content_type = runtimeType(content) - if (((RuntimeType.OBJECT == content_type))) { + if (RuntimeType.OBJECT == content_type) { thisSerializer.writeInt8(0 as int32) const content_0 = content as Array thisSerializer.writeInt32(content_0.length as int32) @@ -2715,7 +2714,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeMenuElement(content_0_element) } } - else if (((RuntimeType.FUNCTION == content_type))) { + else if (RuntimeType.FUNCTION == content_type) { thisSerializer.writeInt8(1 as int32) const content_1 = content as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) @@ -2831,12 +2830,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((TypeChecker.isFunctionKey(value)))) { + else if (TypeChecker.isFunctionKey(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as FunctionKey thisSerializer.writeInt32((value_1.valueOf() as int32)) @@ -3024,17 +3023,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -3051,17 +3050,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -3073,12 +3072,12 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -3096,12 +3095,12 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -3113,17 +3112,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -3135,17 +3134,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -3223,12 +3222,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -3240,12 +3239,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -3266,12 +3265,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -3334,12 +3333,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isContentClipMode(value)))) { + if (TypeChecker.isContentClipMode(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ContentClipMode thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as RectShape thisSerializer.writeRectShape(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts index e5fcb0ed753824a9ec1ee3687ea4dcc7adc7203a..fda88181c974a2971c8863d2ecc3b7b64c2d56b8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkComponent3dPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { Component3DAttribute, SceneOptions } from "./../ArkComponent3dInterfaces" -import { ResourceStr, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { Component3DAttribute, SceneOptions } from "./../ArkComponent3dInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -64,12 +82,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -81,12 +99,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -98,12 +116,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -131,12 +149,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let uri_type : int32 = RuntimeType.UNDEFINED uri_type = runtimeType(uri) - if (((RuntimeType.STRING == uri_type))) { + if (RuntimeType.STRING == uri_type) { thisSerializer.writeInt8(0 as int32) const uri_0 = uri as string thisSerializer.writeString(uri_0) } - else if (((RuntimeType.OBJECT == uri_type))) { + else if (RuntimeType.OBJECT == uri_type) { thisSerializer.writeInt8(1 as int32) const uri_1 = uri as Resource thisSerializer.writeResource(uri_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts index 5b85b32e186d5277c04b25be854904ade297b379..51ce6d64e27389ebea6a7f1e5008b8bf9bf27a17 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkContainerSpanPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { AttributeModifier } from "./../../handwritten" @@ -29,8 +29,7 @@ import { ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts index 079c91872a5e9b45d8032e7bf2671f7d0ef0bb5e..bc42ff59f3aeeefa880d23b903ac9f3271035ff3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkCounterPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { CounterAttribute } from "./../ArkCounterInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts index 29b9ffd719479f487d57b131c1672c33b82aa4bd..acd3e3060e89e8af544000baebdab3d59dbe961d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDataPanelPeer.ts @@ -20,21 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { DataPanelAttribute, DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions } from "./../ArkDataPanelInterfaces" -import { ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { LinearGradient } from "./../ArkLinearGradientMaterialized" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { DataPanelShadowOptions, DataPanelConfiguration, DataPanelOptions, DataPanelAttribute } from "./../ArkDataPanelInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -66,7 +83,7 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_element : ResourceColor | LinearGradient = value[i] let value_element_type : int32 = RuntimeType.UNDEFINED value_element_type = runtimeType(value_element) - if ((TypeChecker.isColor(value_element)) || (((RuntimeType.NUMBER == value_element_type))) || (((RuntimeType.STRING == value_element_type))) || (((RuntimeType.OBJECT == value_element_type)))) { + if ((TypeChecker.isColor(value_element)) || (RuntimeType.NUMBER == value_element_type) || (RuntimeType.STRING == value_element_type) || (RuntimeType.OBJECT == value_element_type)) { thisSerializer.writeInt8(0 as int32) const value_element_0 = value_element as ResourceColor let value_element_0_type : int32 = RuntimeType.UNDEFINED @@ -76,17 +93,17 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_element_0_0 = value_element_0 as Color thisSerializer.writeInt32((value_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_element_0_type))) { + else if (RuntimeType.NUMBER == value_element_0_type) { thisSerializer.writeInt8(1 as int32) const value_element_0_1 = value_element_0 as number thisSerializer.writeNumber(value_element_0_1) } - else if (((RuntimeType.STRING == value_element_0_type))) { + else if (RuntimeType.STRING == value_element_0_type) { thisSerializer.writeInt8(2 as int32) const value_element_0_2 = value_element_0 as string thisSerializer.writeString(value_element_0_2) } - else if (((RuntimeType.OBJECT == value_element_0_type))) { + else if (RuntimeType.OBJECT == value_element_0_type) { thisSerializer.writeInt8(3 as int32) const value_element_0_3 = value_element_0 as Resource thisSerializer.writeResource(value_element_0_3) @@ -110,17 +127,17 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts index 9ca83c4ec5e8cd53009f40760616737abf153416..8986ffb16499f485727af69cdea54a40e478ffbd 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDatePickerPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PickerTextStyle } from "./../ArkCommonInterfaces" -import { DatePickerAttribute, DatePickerResult, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Callback_DatePickerResult_Void, Callback_Date_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DatePickerResult_Void, Callback_Date_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./../ArkDatePickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts index d92ed1cc4471ccb60b4897c52e1af385b8cd1d3b..9672010689e7edf959f33134a7235d3dadb7bc8f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkDividerPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { DividerAttribute } from "./../ArkDividerInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { LineCapStyle, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { DividerAttribute } from "./../ArkDividerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -64,17 +81,17 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -86,12 +103,12 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts index 30de4528269fa26566d84cf52f3f8b62357f8bb2..12e04d7a682f88f144e10e2a4a87d812f557625e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEffectComponentPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts index 8565e12a071659cd4404550165656393463a9d20..78c8bd7af7da7aa18ad934fcff5323001a4b4c10 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEllipsePeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { EllipseAttribute, EllipseOptions } from "./../ArkEllipseInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { EllipseOptions, EllipseAttribute } from "./../ArkEllipseInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts index f615b7807a13c9535c705b5d6ab6b9b1a33ea2c6..f98fdc6b6b6ae2f1c54119f57b8597dfdc42b208 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts @@ -20,21 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { EmbeddedComponentAttribute, TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" -import { Callback_TerminationInfo_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EmbeddedType } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TerminationInfo_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TerminationInfo, EmbeddedComponentAttribute } from "./../ArkEmbeddedComponentInterfaces" import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { Want } from "./../ArkArkuiExternalInterfaces" -import { EmbeddedType } from "./../ArkEnumsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts index fb3370de72d43da1dee7281a8f6f61f0bf81904f..5767b3d0853917a0c0e387540409a0da28e3d838 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlexPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { FlexAttribute, FlexOptions } from "./../ArkFlexInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { FlexOptions, FlexAttribute } from "./../ArkFlexInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts index 52d89fdd8050ee720e82946ba79f15acb018597d..74c0a06c8ba4a52ccdc86e0e1bf58c4a8b1f98eb 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFlowItemPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { FlowItemAttribute } from "./../ArkFlowItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts index 7be82affe9b799fe414fa117d033a63dbb217096..f3763c8037ecf1e88579daa8ac06f7c6f6df39fe 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFolderStackPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { FolderStackAttribute, OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions } from "./../ArkFolderStackInterfaces" -import { Alignment } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions, FolderStackAttribute } from "./../ArkFolderStackInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts index 57a9e26f6fa523583f042712e65a02465ed28bf2..9badbffd6b03a13f4e7477d59b1f85985fe5145d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormComponentPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { FormComponentAttribute, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" -import { SizeOptions } from "./../ArkUnitsInterfaces" -import { Visibility } from "./../ArkEnumsInterfaces" -import { Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void, Callback_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Any_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { FormDimension, FormCallbackInfo, FormInfo, FormComponentAttribute } from "./../ArkFormComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts index e56ce8309f8c35fdbe1357b07270f59b03f3d540..588ec0799a4c0f825a286dc9eb4d844ad46697e6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkFormLinkPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { FormLinkAttribute, FormLinkOptions } from "./../ArkFormLinkInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { FormLinkOptions, FormLinkAttribute } from "./../ArkFormLinkInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts index b89756127dceed0dd5d4278262ddf3d18e7105d1..f85cbe4cf2aa313e572d6f411e9d7654e850c608 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGaugePeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, CustomBuilder, ContentModifier } from "./../ArkCommonInterfaces" -import { GaugeAttribute, GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions } from "./../ArkGaugeInterfaces" -import { ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { LinearGradient } from "./../ArkLinearGradientMaterialized" -import { Tuple_Union_ResourceColor_LinearGradient_Number } from "./../SyntheticDeclarations" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Tuple_Union_ResourceColor_LinearGradient_Number } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./../ArkGaugeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -70,7 +86,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -80,17 +96,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -110,7 +126,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_2_element_0 = value_2_element[0] let value_2_element_0_type : int32 = RuntimeType.UNDEFINED value_2_element_0_type = runtimeType(value_2_element_0) - if ((TypeChecker.isColor(value_2_element_0)) || (((RuntimeType.NUMBER == value_2_element_0_type))) || (((RuntimeType.STRING == value_2_element_0_type))) || (((RuntimeType.OBJECT == value_2_element_0_type)))) { + if ((TypeChecker.isColor(value_2_element_0)) || (RuntimeType.NUMBER == value_2_element_0_type) || (RuntimeType.STRING == value_2_element_0_type) || (RuntimeType.OBJECT == value_2_element_0_type)) { thisSerializer.writeInt8(0 as int32) const value_2_element_0_0 = value_2_element_0 as ResourceColor let value_2_element_0_0_type : int32 = RuntimeType.UNDEFINED @@ -120,17 +136,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_2_element_0_0_0 = value_2_element_0_0 as Color thisSerializer.writeInt32((value_2_element_0_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_2_element_0_0_type))) { + else if (RuntimeType.NUMBER == value_2_element_0_0_type) { thisSerializer.writeInt8(1 as int32) const value_2_element_0_0_1 = value_2_element_0_0 as number thisSerializer.writeNumber(value_2_element_0_0_1) } - else if (((RuntimeType.STRING == value_2_element_0_0_type))) { + else if (RuntimeType.STRING == value_2_element_0_0_type) { thisSerializer.writeInt8(2 as int32) const value_2_element_0_0_2 = value_2_element_0_0 as string thisSerializer.writeString(value_2_element_0_0_2) } - else if (((RuntimeType.OBJECT == value_2_element_0_0_type))) { + else if (RuntimeType.OBJECT == value_2_element_0_0_type) { thisSerializer.writeInt8(3 as int32) const value_2_element_0_0_3 = value_2_element_0_0 as Resource thisSerializer.writeResource(value_2_element_0_0_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts index 2a09c89463cb28fde4297e67c6bb43e640c78e32..d2135fb5a78faa6749938cf7fe707ea21063e984 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridColPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { GridColAttribute, GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GridColColumnOption, GridColOptions, GridColAttribute } from "./../ArkGridColInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -62,12 +82,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as GridColColumnOption thisSerializer.writeGridColColumnOption(value_1) @@ -79,12 +99,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as GridColColumnOption thisSerializer.writeGridColColumnOption(value_1) @@ -96,12 +116,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as GridColColumnOption thisSerializer.writeGridColColumnOption(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts index 2ad9db5b3dbd21ad8433834b4022e2a9db3e0e2a..5e241e28ad0cac450d36ce0492f309004201a07d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridContainerPeer.ts @@ -20,17 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkColumnPeer, ArkColumnAttributes } from "./ArkColumnPeer" import { ColumnAttribute } from "./../ArkColumnInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, HorizontalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { GridContainerOptions, GridContainerAttribute } from "./../ArkGridContainerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts index e28bfea179167a00d8eace52039fb40cb6c70524..2b22eadc535dd05cac5080a8046534e761c1ca19 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridItemPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { GridItemAttribute, GridItemOptions } from "./../ArkGridItemInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GridItemOptions, GridItemAttribute } from "./../ArkGridItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts index 28d29edf373050319a8b67d51fd560a6b1ef1fd4..1a243ab8af0c5d0bc8723cc8906073cc8f5d60b5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridPeer.ts @@ -20,23 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { ScrollableCommonMethod, ItemDragInfo, CustomBuilder, NestedScrollOptions, EdgeEffectOptions } from "./../ArkCommonInterfaces" -import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./../ArkGridInterfaces" -import { Length } from "./../ArkUnitsInterfaces" -import { Color, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" -import { Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" +import { ComputedBarAttribute, GridDirection, GridItemAlignment, GridAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" import { ScrollState } from "./../ArkListInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -87,12 +104,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -109,12 +126,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -207,12 +224,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts index 9b4cbcd5b6d34306590fab7b37c13a6f0077f1d5..a05f9c8020d69177dd07fc8fc98fe7596e0a14f3 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkGridRowPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { GridRowAttribute, GridRowOptions } from "./../ArkGridRowInterfaces" -import { Callback_String_Void } from "./../SyntheticDeclarations" -import { ItemAlign } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GridRowOptions, GridRowAttribute } from "./../ArkGridRowInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts index 3bf762ceca13837fa129d1c8a36bc3eb06b5ff9c..79e1fdb744ebaedfbbb350e2e0ed38fb9f00d9f0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkHyperlinkPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -52,12 +70,12 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let address_type : int32 = RuntimeType.UNDEFINED address_type = runtimeType(address) - if (((RuntimeType.STRING == address_type))) { + if (RuntimeType.STRING == address_type) { thisSerializer.writeInt8(0 as int32) const address_0 = address as string thisSerializer.writeString(address_0) } - else if (((RuntimeType.OBJECT == address_type))) { + else if (RuntimeType.OBJECT == address_type) { thisSerializer.writeInt8(1 as int32) const address_1 = address as Resource thisSerializer.writeResource(address_1) @@ -69,12 +87,12 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type : int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0 as int32) const content_value_0 = content_value as string thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1 as int32) const content_value_1 = content_value as Resource thisSerializer.writeResource(content_value_1) @@ -92,17 +110,17 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts index 2e1a398fc4eaa0bda315d937e26c59b443c2ff2c..eb6b8f11d2c9f7bde034846e6fc81cac968a292e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageAnimatorPeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ImageAnimatorAttribute, ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" -import { AnimationStatus, FillMode } from "./../ArkEnumsInterfaces" -import { Callback_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, AnimationStatus, FillMode } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ImageFrameInfo, ImageAnimatorAttribute } from "./../ArkImageAnimatorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts index cbb7541d90fe371c826db12bf142504da9ab88b5..b282799f3e7903cdbb2d67d723ed54470063905d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImagePeer.ts @@ -20,24 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { ImageAttribute, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResizableOptions, ResolutionQuality, DrawableDescriptor, ImageContent } from "./../ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor, ImageAttribute, ImageContent } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" -import { ResourceColor, ResourceStr } from "./../ArkUnitsInterfaces" -import { ImageFit, ImageRepeat, CopyOptions, Color } from "./../ArkEnumsInterfaces" import { ColorFilter } from "./../ArkColorFilterMaterialized" -import { Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Void } from "./../SyntheticDeclarations" import { ImageAnalyzerConfig, ImageAIOptions } from "./../ArkImageCommonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -62,17 +76,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const src_0 = src as PixelMap thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1 as int32) const src_1 = src as ResourceStr let src_1_type : int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0 as int32) const src_1_0 = src_1 as string thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1 as int32) const src_1_1 = src_1 as Resource thisSerializer.writeResource(src_1_1) @@ -95,17 +109,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const src_0 = src as PixelMap thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1 as int32) const src_1 = src as ResourceStr let src_1_type : int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0 as int32) const src_1_0 = src_1 as string thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1 as int32) const src_1_1 = src_1 as Resource thisSerializer.writeResource(src_1_1) @@ -116,7 +130,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const src_2 = src as DrawableDescriptor thisSerializer.writeDrawableDescriptor(src_2) } - else if (((TypeChecker.isImageContent(src)))) { + else if (TypeChecker.isImageContent(src)) { thisSerializer.writeInt8(3 as int32) const src_3 = src as ImageContent thisSerializer.writeInt32((src_3.valueOf() as int32)) @@ -133,17 +147,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const src_0 = src as PixelMap thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1 as int32) const src_1 = src as ResourceStr let src_1_type : int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0 as int32) const src_1_0 = src_1 as string thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1 as int32) const src_1_1 = src_1 as Resource thisSerializer.writeResource(src_1_1) @@ -162,7 +176,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) @@ -195,17 +209,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts index 9dbc9beeb4703d2c9ea4241be5581aa8c39eb59a..98ecee9cee15e0f02a23b5c210ec7ec59015cef0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkImageSpanPeer.ts @@ -20,23 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkBaseSpanPeer, ArkBaseSpanAttributes } from "./ArkSpanPeer" -import { BaseSpan } from "./../ArkSpanInterfaces" -import { ImageSpanAttribute, ImageCompleteCallback } from "./../ArkImageSpanInterfaces" -import { ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" -import { ColorFilter } from "./../ArkColorFilterMaterialized" -import { DrawingColorFilter, ImageErrorCallback } from "./../ArkImageInterfaces" -import { PixelMap } from "./../ArkPixelMapMaterialized" -import { ResourceStr } from "./../ArkUnitsInterfaces" +import { BaseSpan, TextBackgroundStyle } from "./../ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageSpanAlignment, ImageFit } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions, DrawingColorFilter, ImageErrorCallback } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ColorFilter } from "./../ArkColorFilterMaterialized" +import { ImageCompleteCallback, ImageSpanAttribute } from "./../ArkImageSpanInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -56,17 +72,17 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceStr let value_0_type : int32 = RuntimeType.UNDEFINED value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { + if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as string thisSerializer.writeString(value_0_0) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as Resource thisSerializer.writeResource(value_0_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts index 0a5a47db4771c0e0c21e2de90a8c56e7619f8ff8..20fe5174dfbde9f73ad988ed8cc0ff3042d20fae 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts @@ -20,21 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { IndicatorComponentAttribute } from "./../ArkIndicatorcomponentInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" -import { Callback_Number_Void } from "./../SyntheticDeclarations" import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" +import { IndicatorComponentAttribute } from "./../ArkIndicatorcomponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkIndicatorComponentPeer extends ArkCommonMethodPeer { diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts index f42972474ae72c642c094bf050bdd8ff9dfa385e..3a0b682c24b54bd3a0e89961b5ee70e5fc95f930 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinePeer.ts @@ -20,19 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { LineAttribute, LineOptions } from "./../ArkLineInterfaces" -import { Length } from "./../ArkUnitsInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LineOptions, LineAttribute } from "./../ArkLineInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts index 14e6df9b7ee0a55076c9c72482d3d765d66f4f77..18992a46728027030c283583dfc04f97ba66da65 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLinearindicatorPeer.ts @@ -20,18 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { LinearIndicatorAttribute, LinearIndicatorStyle, OnLinearIndicatorChangeCallback } from "./../ArkLinearindicatorInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearIndicatorStyle, OnLinearIndicatorChangeCallback, LinearIndicatorAttribute } from "./../ArkLinearindicatorInterfaces" import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts index de3d535834b0d6d2d6720286dac3e6f9f1306fde..183b00aac1a4052cd040dd613caa32f10c9aca8b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemGroupPeer.ts @@ -20,19 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ListItemGroupAttribute, ListItemGroupOptions } from "./../ArkListItemGroupInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { ListDividerOptions } from "./../ArkListInterfaces" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" +import { ListItemGroupOptions, ListItemGroupAttribute } from "./../ArkListItemGroupInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts index 5e2c2a4ea173e9e430f38411c4d4d78a599961d8..ea7eae26dde9a1c46661df409d75b81f9f104b38 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListItemPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ListItemAttribute, Sticky, EditMode, SwipeActionOptions, ListItemOptions } from "./../ArkListItemInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { Sticky, EditMode, SwipeActionOptions, ListItemOptions, ListItemAttribute } from "./../ArkListItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -78,12 +97,12 @@ export class ArkListItemPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { + if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as boolean thisSerializer.writeBoolean(value_0) } - else if (((TypeChecker.isEditMode(value)))) { + else if (TypeChecker.isEditMode(value)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as EditMode thisSerializer.writeInt32((value_1.valueOf() as int32)) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts index c7be513b94887a8bbb352e84e98f3133a8204708..2e83312944cd8b1a824b6519788a376785fbb08c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkListPeer.ts @@ -20,22 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { ScrollableCommonMethod, NestedScrollOptions, ItemDragInfo, CustomBuilder, EdgeEffectOptions } from "./../ArkCommonInterfaces" -import { ListAttribute, ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ScrollState, ListOptions } from "./../ArkListInterfaces" -import { Axis, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, LengthConstrain, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" +import { ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ScrollState, ListAttribute, ListOptions } from "./../ArkListInterfaces" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" -import { Callback_Number_Number_Void, Callback_Number_Number_Number_Void, Callback_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" -import { LengthConstrain, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -130,12 +147,12 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -246,12 +263,12 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as LengthConstrain const value_1_minLength = value_1.minLength diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts index 63e1bdddc78af8509d6fd5fd249752a24598266e..7dd9633ebdacd5320bd27359c7a7382fe22e9826 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLoadingProgressPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { LoadingProgressAttribute, LoadingProgressConfiguration } from "./../ArkLoadingProgressInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LoadingProgressConfiguration, LoadingProgressAttribute } from "./../ArkLoadingProgressInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -61,17 +78,17 @@ export class ArkLoadingProgressPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts index 1408965c269898091a2f059e9d561721023b2e45..e82942fd4a304e091f48a56d1e00e98e0878fce4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkLocationButtonPeer.ts @@ -20,19 +20,21 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" -import { SecurityComponentMethod } from "./../ArkSecurityComponentInterfaces" -import { LocationButtonAttribute, LocationButtonOnClickResult, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" import { Callback_ClickEvent_LocationButtonOnClickResult_Void } from "./../SyntheticDeclarations" import { ClickEvent } from "./../ArkClickEventMaterialized" +import { LocationButtonOnClickResult, LocationButtonAttribute, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts index dadc35836a82aaa20bb65acf16d149bab33d9630..4a1b7960b5b519b1c4e3e1b417fa120717b0fbba 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMarqueePeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { MarqueeAttribute, MarqueeOptions } from "./../ArkMarqueeInterfaces" -import { ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { FontWeight, MarqueeUpdateStrategy, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight, MarqueeUpdateStrategy } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Callback_Void } from "./../SyntheticDeclarations" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { MarqueeOptions, MarqueeAttribute } from "./../ArkMarqueeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -65,17 +81,17 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -93,7 +109,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -103,7 +119,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -115,12 +131,12 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts index b23f3e09f473cee032f7cb0e09e12989118053cd..9eecba1d7a174b289488ad6d8f39664955f10e90 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts @@ -20,20 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkImagePeer, ArkImageAttributes } from "./ArkImagePeer" -import { ImageAttribute, DrawableDescriptor } from "./../ArkImageInterfaces" +import { ImageAttribute, ResizableOptions, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./../ArkImageInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit, CopyOptions } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" -import { ResourceStr } from "./../ArkUnitsInterfaces" +import { ColorFilter } from "./../ArkColorFilterMaterialized" +import { ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { ASTCResource, MediaCachedImageAttribute } from "./../ArkMediaCachedImageInterfaces" -import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -58,17 +77,17 @@ export class ArkMediaCachedImagePeer extends ArkImagePeer { const src_0 = src as PixelMap thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1 as int32) const src_1 = src as ResourceStr let src_1_type : int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0 as int32) const src_1_0 = src_1 as string thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1 as int32) const src_1_1 = src_1 as Resource thisSerializer.writeResource(src_1_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts index 6331d031558d0ecaf76148bd7a2d1fb36104acb3..3f21ec6cd49fa4d955235587aaf03e982be6ff26 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { MenuItemGroupAttribute, MenuItemGroupOptions } from "./../ArkMenuItemGroupInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { MenuItemGroupOptions, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts index 0354a18d74aa9d2d93281b766610ec3c50e7d2d2..24ad2421bcd3fbce48673ea24ee5b3fcb717eb38 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuItemPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, SymbolGlyphModifier, CustomBuilder } from "./../ArkCommonInterfaces" -import { MenuItemAttribute, MenuItemOptions } from "./../ArkMenuItemInterfaces" -import { ResourceStr, Font, ResourceColor } from "./../ArkUnitsInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { MenuItemOptions, MenuItemAttribute } from "./../ArkMenuItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -59,12 +75,12 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.OBJECT == value_value_type))) { + if (RuntimeType.OBJECT == value_value_type) { thisSerializer.writeInt8(0 as int32) const value_value_0 = value_value as MenuItemOptions thisSerializer.writeMenuItemOptions(value_value_0) } - else if (((RuntimeType.FUNCTION == value_value_type))) { + else if (RuntimeType.FUNCTION == value_value_type) { thisSerializer.writeInt8(1 as int32) const value_value_1 = value_value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_value_1)) @@ -80,22 +96,22 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { + if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as boolean thisSerializer.writeBoolean(value_0) } - else if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + else if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(1 as int32) const value_1 = value as ResourceStr let value_1_type : int32 = RuntimeType.UNDEFINED value_1_type = runtimeType(value_1) - if (((RuntimeType.STRING == value_1_type))) { + if (RuntimeType.STRING == value_1_type) { thisSerializer.writeInt8(0 as int32) const value_1_0 = value_1 as string thisSerializer.writeString(value_1_0) } - else if (((RuntimeType.OBJECT == value_1_type))) { + else if (RuntimeType.OBJECT == value_1_type) { thisSerializer.writeInt8(1 as int32) const value_1_1 = value_1 as Resource thisSerializer.writeResource(value_1_1) @@ -130,17 +146,17 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -163,17 +179,17 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts index b7ff5de81625de1eac9a6270bda662a775ad8171..7db59a4edecaa1ac5be1da76d12dde405f81f32c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkMenuPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { MenuAttribute, SubMenuExpandingMode } from "./../ArkMenuInterfaces" -import { Length, Font, ResourceColor, Dimension, BorderRadiuses, DividerStyleOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, DividerStyleOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { SubMenuExpandingMode, MenuAttribute } from "./../ArkMenuInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -70,17 +87,17 @@ export class ArkMenuPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts index 22bd7444560c24efafb9ed6206d8d57fbc250fe8..3749c9b58e168681ce5cbbe71597d6bfe00b95e0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -20,23 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, SymbolGlyphModifier, CustomBuilder, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" -import { NavDestinationAttribute, NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" -import { Callback_Void, Callback_Boolean, Callback_NavDestinationContext_Void } from "./../SyntheticDeclarations" -import { ResourceStr } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean, Callback_NavDestinationContext_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" +import { NavDestinationMode, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle, NavDestinationAttribute } from "./../ArkNavDestinationInterfaces" import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions } from "./../ArkNavigationInterfaces" import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" -import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -86,17 +102,17 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceStr let value_0_type : int32 = RuntimeType.UNDEFINED value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { + if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(0 as int32) const value_0_0 = value_0 as string thisSerializer.writeString(value_0_0) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as Resource thisSerializer.writeResource(value_0_1) @@ -119,7 +135,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Array thisSerializer.writeInt32(value_0.length as int32) @@ -128,7 +144,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeNavigationMenuItem(value_0_element) } } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) @@ -197,12 +213,12 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) @@ -236,7 +252,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let toolbarParam_type : int32 = RuntimeType.UNDEFINED toolbarParam_type = runtimeType(toolbarParam) - if (((RuntimeType.OBJECT == toolbarParam_type))) { + if (RuntimeType.OBJECT == toolbarParam_type) { thisSerializer.writeInt8(0 as int32) const toolbarParam_0 = toolbarParam as Array thisSerializer.writeInt32(toolbarParam_0.length as int32) @@ -245,7 +261,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeToolbarItem(toolbarParam_0_element) } } - else if (((RuntimeType.FUNCTION == toolbarParam_type))) { + else if (RuntimeType.FUNCTION == toolbarParam_type) { thisSerializer.writeInt8(1 as int32) const toolbarParam_1 = toolbarParam as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(toolbarParam_1)) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts index f3ec64c0cf85c5fd71d9b7554c64dee1bde96901..b35651209be7795cca2ad17310e587a57fcfce93 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavRouterPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { NavRouterAttribute, NavRouteMode, RouteInfo } from "./../ArkNavRouterInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { NavRouteMode, NavRouterAttribute, RouteInfo } from "./../ArkNavRouterInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts index 304cb87ab6826ee63bbe6467298788b2cad7c221..11c845a3a38a897c730d5e5230085775acde5165 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNavigatorPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { NavigatorAttribute, NavigationType } from "./../ArkNavigatorInterfaces" -import { Literal_String_target_NavigationType_type } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Literal_String_target_NavigationType_type } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { NavigationType, NavigatorAttribute } from "./../ArkNavigatorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts index ffa025d740da0425f68cf82cc6bac79039f42f8f..17e8baf0cf7c45c744fea3f1f50a86c4c897b07d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkNodeContainerPeer.ts @@ -20,18 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { NodeController } from "./../ArkArkuiExternalInterfaces" +import { NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts index 8bd3b4e712253db3eb3170b7d3dfa451bd174d65..0fd63439f6cd8ad60317dbabf0c2d71f3d6cd761 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPanelPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { PanelAttribute, PanelMode, PanelType, PanelHeight } from "./../ArkPanelInterfaces" -import { Dimension, ResourceColor, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_PanelMode_Void, Callback_Number_Void, Callback_PanelMode_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { PanelMode, PanelType, PanelHeight, PanelAttribute } from "./../ArkPanelInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,12 +99,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -100,12 +116,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -117,12 +133,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -142,17 +158,17 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts index 37333fec48d13c39560d863cf2ecc060b0f1a52f..fd00599819f7a70705b65fb0d3fd3b7d6248fcb2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPasteButtonPeer.ts @@ -20,19 +20,21 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" -import { SecurityComponentMethod } from "./../ArkSecurityComponentInterfaces" -import { PasteButtonAttribute, PasteButtonOnClickResult, PasteButtonOptions } from "./../ArkPasteButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" import { Callback_ClickEvent_PasteButtonOnClickResult_Void } from "./../SyntheticDeclarations" import { ClickEvent } from "./../ArkClickEventMaterialized" +import { PasteButtonOnClickResult, PasteButtonAttribute, PasteButtonOptions } from "./../ArkPasteButtonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts index ae697ad7beed3259e33582486e972849c9799730..aaefee0b8dee4c9f894cca923a3ad6dd66c008db 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPathPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { PathAttribute, PathOptions } from "./../ArkPathInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { PathOptions, PathAttribute } from "./../ArkPathInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts index e1c34c545d68e5b390fa2ad8289351fadc6f8ca3..7a5df795d702f7f120282d535777f34b26b0dc1f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPatternLockPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { PatternLockAttribute, CircleStyleOptions } from "./../ArkPatternLockInterfaces" -import { Length, ResourceColor } from "./../ArkUnitsInterfaces" -import { Callback_Array_Number_Void, Callback_Number_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Array_Number_Void, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { CircleStyleOptions, PatternLockAttribute } from "./../ArkPatternLockInterfaces" import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -78,17 +94,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -105,17 +121,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -132,17 +148,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -159,17 +175,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -186,17 +202,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -208,12 +224,12 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts index a53e96ffc1749098100b3635f0fd554f0e64c91c..ae40c971cdc35b9bad9d0befb108fa3df564aba8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPluginComponentPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { PluginComponentAttribute, PluginErrorCallback, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { PluginErrorCallback, PluginComponentOptions, PluginComponentAttribute } from "./../ArkPluginComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts index de024c5c9fe2a8fea3b275b91c04b8dab73e9293..e2b8b84b102e5907660297b1fd6a150aa6d289e1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolygonPeer.ts @@ -20,18 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { PolygonAttribute, PolygonOptions } from "./../ArkPolygonInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { Point } from "./../ArkPointInterfaces" +import { PolygonOptions, PolygonAttribute } from "./../ArkPolygonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts index d71b93a78db3649a0f82d77add83a48269aada0a..3b093cbe334fb3d2d29d1f5c97c106bb160dc31e 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkPolylinePeer.ts @@ -20,18 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { PolylineAttribute, PolylineOptions } from "./../ArkPolylineInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { Point } from "./../ArkPointInterfaces" +import { PolylineOptions, PolylineAttribute } from "./../ArkPolylineInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts index e13d3be4142444a01b592eb8f5a29f53b1d34888..1957755f24374b856e2d271115b2c642ee64c1e2 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkProgressPeer.ts @@ -20,21 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { ProgressAttribute, LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressOptions } from "./../ArkProgressInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { LinearGradient } from "./../ArkLinearGradientMaterialized" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ProgressOptions, ProgressAttribute } from "./../ArkProgressInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -63,7 +80,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -73,17 +90,17 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts index 6f03478c127c7c40c3e50832ad3f1aae6381b9b5..8f284f8e258f2db9604bd68b883ca719f77d0835 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkQrcodePeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { QRCodeAttribute } from "./../ArkQrcodeInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { QRCodeAttribute } from "./../ArkQrcodeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -61,17 +78,17 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -88,17 +105,17 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -110,12 +127,12 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts index 6ae0823611c9076cb8c8d96faf4fa7088041ec93..7150688e15fa23a0437f02f45ddd1cee7c2a4ee5 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRadioPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { RadioAttribute, RadioStyle, RadioConfiguration, RadioOptions } from "./../ArkRadioInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute } from "./../ArkRadioInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts index 301753aa462f76d28c043e917f4cb1fcc8cdc7ff..239f6688d244ffc70336e5868007943e2ec1eb97 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRatingPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { RatingAttribute, StarStyleOptions, RatingConfiguration, RatingOptions } from "./../ArkRatingInterfaces" -import { Callback_Number_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./../ArkRatingInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts index 345d0b0b33c24edda5095dedcd55aaf851d1c0ce..2abb96c5e032c661567243f7090e5a5343a9abf0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRectPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" -import { CommonShapeMethod } from "./../ArkCommonInterfaces" -import { RectAttribute, RectOptions, RoundedRectOptions } from "./../ArkRectInterfaces" +import { CommonShapeMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RectOptions, RoundedRectOptions, RectAttribute } from "./../ArkRectInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -73,12 +93,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -90,12 +110,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -107,17 +127,17 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Array thisSerializer.writeInt32(value_2.length as int32) @@ -125,12 +145,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const value_2_element : number | string = value_2[i] let value_2_element_type : int32 = RuntimeType.UNDEFINED value_2_element_type = runtimeType(value_2_element) - if (((RuntimeType.NUMBER == value_2_element_type))) { + if (RuntimeType.NUMBER == value_2_element_type) { thisSerializer.writeInt8(0 as int32) const value_2_element_0 = value_2_element as number thisSerializer.writeNumber(value_2_element_0) } - else if (((RuntimeType.STRING == value_2_element_type))) { + else if (RuntimeType.STRING == value_2_element_type) { thisSerializer.writeInt8(1 as int32) const value_2_element_1 = value_2_element as string thisSerializer.writeString(value_2_element_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts index 95a8935aeeff820793830a9915a035283efbab42..173039729618e1f5c0341dbb54282c626eeec971 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRefreshPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { RefreshAttribute, RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" -import { Callback_RefreshStatus_Void, Callback_Void, Callback_Number_Void, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RefreshStatus_Void, Callback_Number_Void, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RefreshStatus, RefreshOptions, RefreshAttribute } from "./../ArkRefreshInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts index 3e8c3672f23e0d725d34c2d4e7cdb4f3e9f011c3..3875f5e0b06970532e833820e276f4d68ecf529f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRelativeContainerPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { RelativeContainerAttribute, GuideLineStyle, BarrierStyle, LocalizedBarrierStyle } from "./../ArkRelativeContainerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { GuideLineStyle, BarrierStyle, LocalizedBarrierStyle, RelativeContainerAttribute } from "./../ArkRelativeContainerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts index ab89774044d7da59959740da10c6c18c86ce71d8..da9c3576dc359cc599fefc6b96ea1c683ac74b74 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRemoteWindowPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { RemoteWindowAttribute, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { WindowAnimationTarget, RemoteWindowAttribute } from "./../ArkRemoteWindowInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts index b9a52b40d9ef49302d5b8c3e73823df83c8c830c..df82595de371daeb84d58a4fd9ef6944063a7c7f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichEditorPeer.ts @@ -20,24 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, CustomBuilder } from "./../ArkCommonInterfaces" -import { RichEditorAttribute, RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, KeyboardOptions, PlaceholderStyle, RichEditorOptions, RichEditorStyledStringOptions } from "./../ArkRichEditorInterfaces" -import { Callback_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, BarState } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_Boolean_Void, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RichEditorSelection, RichEditorRange, RichEditorInsertValue, RichEditorTextSpanResult, RichEditorDeleteValue, PasteEventCallback, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, SelectionMenuOptions, RichEditorAttribute, KeyboardOptions, PlaceholderStyle, RichEditorOptions, RichEditorStyledStringOptions } from "./../ArkRichEditorInterfaces" import { TextRange, TextDataDetectorConfig, OnDidChangeCallback } from "./../ArkTextCommonInterfaces" -import { CopyOptions, BarState, ResponseType, Color } from "./../ArkEnumsInterfaces" -import { ResourceColor, ResourceStr } from "./../ArkUnitsInterfaces" import { EnterKeyType } from "./../ArkTextInputInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" -import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -143,17 +159,17 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -170,17 +186,17 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -284,12 +300,12 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts index 8218c1c8a82ba10e7e930535142478c26706661d..0ddbaa344f2c8c8c5fadb0e3e15935a18ae43723 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRichTextPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { RichTextAttribute } from "./../ArkRichTextInterfaces" -import { Callback_Void } from "./../SyntheticDeclarations" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts index 2bd388391835f3ba4feb252beabd7cf85e1b9ecd..4df10397ee0a40a9ed10c6267790651d88d4d80d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRootScenePeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { RootSceneAttribute, RootSceneSession } from "./../ArkRootSceneInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RootSceneSession, RootSceneAttribute } from "./../ArkRootSceneInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts index 4097f055554db7484638c23bc31838f9b74e2ee4..3a57886615ec055fcf09f8953b7a9fc45707cf15 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { RowAttribute, RowOptions } from "./../ArkRowInterfaces" -import { VerticalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, VerticalAlign, FlexAlign } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { RowOptions, RowAttribute } from "./../ArkRowInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts index 1409db2a3bf6c93409cc38506b26a1f1d87f9ad0..6e17a213a647faad3202a01bf047500b4adb79e1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkRowSplitPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { RowSplitAttribute } from "./../ArkRowSplitInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts index 499dcc0282d9b892662248a9edd6aec41e4202ce..dce0610788d17bc0fafa9e468dc2ad7a8fd992f0 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSaveButtonPeer.ts @@ -20,19 +20,21 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" -import { SecurityComponentMethod } from "./../ArkSecurityComponentInterfaces" -import { SaveButtonAttribute, SaveButtonOnClickResult, SaveButtonOptions } from "./../ArkSaveButtonInterfaces" +import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" +import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfaces" +import { Resource } from "./../ArkResourceInterfaces" import { Callback_ClickEvent_SaveButtonOnClickResult_Void } from "./../SyntheticDeclarations" import { ClickEvent } from "./../ArkClickEventMaterialized" +import { SaveButtonOnClickResult, SaveButtonAttribute, SaveButtonOptions } from "./../ArkSaveButtonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts index 60d53319f2ed093962602ac5e3c5984f1ff2c799..52892bde3fc08e1656d14fdaa61fce21d4554a88 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScreenPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { ScreenAttribute } from "./../ArkScreenInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts index 7b09cba9fd4f839223abca7fb09c6ce2de976729..594e8d621dc78a94ba3560350cc20641cf99619b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollBarPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ScrollBarAttribute, ScrollBarOptions } from "./../ArkScrollBarInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollBarOptions, ScrollBarAttribute } from "./../ArkScrollBarInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts index 8e21ac4809f7bfa836f279de971f58ace67e54b6..5c9b6fc9e80ef4b35ef7f20c82017e95021d981a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkScrollPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { ScrollableCommonMethod, NestedScrollOptions, EdgeEffectOptions } from "./../ArkCommonInterfaces" -import { ScrollAttribute, ScrollDirection, ScrollOnWillScrollCallback, ScrollOnScrollCallback, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions } from "./../ArkScrollInterfaces" -import { Callback_Number_Number_Void, Callback_Void } from "./../SyntheticDeclarations" -import { VoidCallback } from "./../ArkUnitsInterfaces" -import { BarState, Color, EdgeEffect } from "./../ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollDirection, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions, ScrollAttribute } from "./../ArkScrollInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -126,12 +142,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -143,12 +159,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -175,12 +191,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts index fefaa8fc7dc2bcbe38866ad1888bc824861a6be6..e695a43a706500b13420ff16a80005eda0530258 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSearchPeer.ts @@ -20,25 +20,41 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, SymbolGlyphModifier, TextDecorationOptions, CustomBuilder } from "./../ArkCommonInterfaces" -import { SearchAttribute, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" -import { ResourceColor, Dimension, Font, ResourceStr, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, SymbolGlyphModifier, TextDecorationOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions, TextAlign } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchSubmitCallback, SearchType, SearchButtonOptions, SearchAttribute, SearchOptions } from "./../ArkSearchInterfaces" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./../ArkTextCommonInterfaces" import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback } from "./../ArkTextInputInterfaces" -import { CopyOptions, TextAlign, Color } from "./../ArkEnumsInterfaces" -import { Resource } from "./../ArkResourceInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./../ArkRichEditorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -75,17 +91,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -145,17 +161,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -178,17 +194,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -290,17 +306,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -312,17 +328,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -340,17 +356,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -362,17 +378,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -438,12 +454,12 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts index df0ca6fda1a1ced7e16e2f564158303521b5097e..7d59ba3d2a65b1b4d1ad03f0485b97b0b9a89e88 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSecurityComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -30,8 +30,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -97,7 +96,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -107,7 +106,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -119,12 +118,12 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -141,17 +140,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -168,17 +167,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -195,17 +194,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -228,17 +227,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts index 7fce8673874affc9441bf1a67e58f6a29436c5ee..0749faca078f95821f101984dd6cb8a75205deaa 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSelectPeer.ts @@ -20,23 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, BlurStyle, ContentModifier } from "./../ArkCommonInterfaces" -import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, Offset, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, OptionWidthMode } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ResourceStr, Font, ResourceColor, Length, Dimension, Offset, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" -import { OptionWidthMode, Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectAttribute, SelectOption } from "./../ArkSelectInterfaces" import { ControlSize } from "./../ArkButtonInterfaces" import { DividerOptions } from "./../ArkTextPickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -66,12 +82,12 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -83,12 +99,12 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -111,17 +127,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -138,17 +154,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -171,17 +187,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -198,17 +214,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -231,17 +247,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -290,17 +306,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts index 6791558f967ef25117efa40d5401dd64fda624b9..e2f2c6d3577fc336c95de8ce0c11237d6aa6d0ef 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkShapePeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" -import { ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { LineCapStyle, LineJoinStyle, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ViewportRect, ShapeAttribute } from "./../ArkShapeInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -74,17 +90,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -101,17 +117,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -123,12 +139,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -156,12 +172,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -173,17 +189,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -195,17 +211,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -217,12 +233,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts index bbe6106f85e665ed2b938ce4ef0a0d0cae98b8e4..f97558086e6edf747c1e691828109bbf6774f86a 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSidebarPeer.ts @@ -20,21 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { SideBarContainerAttribute, ButtonStyle, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" -import { Length, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { DividerStyle } from "./../ArkTabsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ButtonStyle, SideBarPosition, SideBarContainerType, SideBarContainerAttribute } from "./../ArkSidebarInterfaces" +import { DividerStyle } from "./../ArkTabsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts index c05e9a65a136fcc96a648f5b503bffac950a05bf..5c435bae7f87e725546c122ea3b31103d40a1414 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSliderPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderOptions } from "./../ArkSliderInterfaces" -import { ResourceColor, Length, Dimension, SizeOptions, ResourceStr, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { LinearGradient } from "./../ArkLinearGradientMaterialized" -import { Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./../SyntheticDeclarations" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_SliderChangeMode_Void, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { LinearGradient } from "./../ArkLinearGradientMaterialized" +import { SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderAttribute, SliderOptions } from "./../ArkSliderInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -72,17 +88,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -94,7 +110,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((TypeChecker.isColor(value)) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ResourceColor let value_0_type : int32 = RuntimeType.UNDEFINED @@ -104,17 +120,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0_0 = value_0 as Color thisSerializer.writeInt32((value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1 as int32) const value_0_1 = value_0 as number thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2 as int32) const value_0_2 = value_0 as string thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3 as int32) const value_0_3 = value_0 as Resource thisSerializer.writeResource(value_0_3) @@ -137,17 +153,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -182,17 +198,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -212,17 +228,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -278,12 +294,12 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type : int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0 as int32) const content_value_0 = content_value as string thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1 as int32) const content_value_1 = content_value as Resource thisSerializer.writeResource(content_value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts index b66aa1586d025efbc19a3fb95457d9afdfc2ee0a..ad7cd2aa5878154890aed2f3699bbbe0291ce815 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSpanPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ShadowOptions } from "./../ArkCommonInterfaces" -import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./../ArkSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, Font } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextCase } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" -import { Font, ResourceColor, Length } from "./../ArkUnitsInterfaces" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { FontStyle, FontWeight, TextCase, Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./../ArkSpanInterfaces" import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,12 +99,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -111,17 +127,17 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -133,17 +149,17 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -158,7 +174,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -168,7 +184,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -180,12 +196,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -203,12 +219,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts index 59e3e5cb653626d42217cb5992403f841fae621b..aa037362f2bef7dc5c8b390d5e57816cc3a29f1d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStackPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PointLightStyle } from "./../ArkCommonInterfaces" -import { StackAttribute, StackOptions } from "./../ArkStackInterfaces" -import { Alignment } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { StackOptions, StackAttribute } from "./../ArkStackInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts index 1fc44f219e45b63410adf8a1a741f0e2884e9843..fc30c3190c9cdfc0ddfb741e5b2a00e1da203c19 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStaticComponentsPeer.ts @@ -20,14 +20,13 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts index 9ad19b2022642d14a029509d216025a2a391f210..48af59ebbdd1b7c4f18d14345330560607051429 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperItemPeer.ts @@ -20,17 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { StepperItemAttribute, ItemState } from "./../ArkStepperItemInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ItemState, StepperItemAttribute } from "./../ArkStepperItemInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts index 8360dc729df41d86e6885b2e771e626ddc67a902..7695b0ff3b7b21f03f3478b71a71e4c026045c1b 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkStepperPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_Void, Literal_Number_index } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { StepperAttribute } from "./../ArkStepperInterfaces" -import { Callback_Void, Callback_Number_Number_Void, Callback_Number_Void, Literal_Number_index } from "./../SyntheticDeclarations" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts index 4a6caeb3ad8eabfb7741b3d53618df11f8c3b147..4f8593878bd562ae8843c1c464e8bfba9f53a090 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSwiperPeer.ts @@ -20,26 +20,42 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { SwiperAttribute, SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAutoFill } from "./../ArkSwiperInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect, Curve } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" -import { EdgeEffect, Curve } from "./../ArkEnumsInterfaces" +import { SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSwiperAnimationEndCallback, OnSwiperGestureSwipeCallback, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ContentDidScrollCallback, ArrowStyle, SwiperAttribute, SwiperAutoFill } from "./../ArkSwiperInterfaces" import { ICurve } from "./../ArkICurveMaterialized" -import { Callback_Number_Void } from "./../SyntheticDeclarations" -import { Length } from "./../ArkUnitsInterfaces" -import { Resource } from "./../ArkResourceInterfaces" import { SwiperController } from "./../ArkSwiperControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkSwiperPeer extends ArkCommonMethodPeer { @@ -88,7 +104,7 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const value_1 = value as DigitIndicator thisSerializer.writeDigitIndicator(value_1) } - else if (((RuntimeType.BOOLEAN == value_type))) { + else if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as boolean thisSerializer.writeBoolean(value_2) @@ -115,12 +131,12 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -144,17 +160,17 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((TypeChecker.isCurve(value)))) { + if (TypeChecker.isCurve(value)) { thisSerializer.writeInt8(0 as int32) const value_0 = value as Curve thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as ICurve thisSerializer.writeICurve(value_2) @@ -220,12 +236,12 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as ArrowStyle thisSerializer.writeArrowStyle(value_0) } - else if (((RuntimeType.BOOLEAN == value_type))) { + else if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as boolean thisSerializer.writeBoolean(value_1) @@ -244,17 +260,17 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as SwiperAutoFill thisSerializer.writeSwiperAutoFill(value_2) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts index 4726bfb3a01dc724db99d96f780a4d1961fd6e5e..333a397f13becad2a5aee2289eeb9355acad1aad 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolSpanPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { FontWeight, Color } from "./../ArkEnumsInterfaces" -import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" +import { SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -61,17 +77,17 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -91,17 +107,17 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const value_element_0 = value_element as Color thisSerializer.writeInt32((value_element_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_element_type))) { + else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1 as int32) const value_element_1 = value_element as number thisSerializer.writeNumber(value_element_1) } - else if (((RuntimeType.STRING == value_element_type))) { + else if (RuntimeType.STRING == value_element_type) { thisSerializer.writeInt8(2 as int32) const value_element_2 = value_element as string thisSerializer.writeString(value_element_2) } - else if (((RuntimeType.OBJECT == value_element_type))) { + else if (RuntimeType.OBJECT == value_element_type) { thisSerializer.writeInt8(3 as int32) const value_element_3 = value_element as Resource thisSerializer.writeResource(value_element_3) @@ -114,7 +130,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -124,7 +140,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts index 5834045559ad79c1a99f133ff531c14b89a76d1e..a4afeec7b929caddc5b7a9f3878a912bee4f6ae4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkSymbolglyphPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { SymbolGlyphAttribute, SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect } from "./../ArkSymbolglyphInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontWeight } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { FontWeight, Color } from "./../ArkEnumsInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphAttribute } from "./../ArkSymbolglyphInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -65,17 +82,17 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -95,17 +112,17 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const value_element_0 = value_element as Color thisSerializer.writeInt32((value_element_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_element_type))) { + else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1 as int32) const value_element_1 = value_element as number thisSerializer.writeNumber(value_element_1) } - else if (((RuntimeType.STRING == value_element_type))) { + else if (RuntimeType.STRING == value_element_type) { thisSerializer.writeInt8(2 as int32) const value_element_2 = value_element as string thisSerializer.writeString(value_element_2) } - else if (((RuntimeType.OBJECT == value_element_type))) { + else if (RuntimeType.OBJECT == value_element_type) { thisSerializer.writeInt8(3 as int32) const value_element_3 = value_element as Resource thisSerializer.writeResource(value_element_3) @@ -118,7 +135,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -128,7 +145,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts index 95b446322a27e9cd21696706e5fda99a49f8ccbd..3ee86af64ba88a30bd10c95dd182e9de664848d8 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabContentPeer.ts @@ -20,21 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, CustomBuilder } from "./../ArkCommonInterfaces" -import { TabContentAttribute, TabBarOptions } from "./../ArkTabContentInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TabBarOptions, TabContentAttribute } from "./../ArkTabContentInterfaces" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" -import { VoidCallback } from "./../ArkUnitsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" export class ArkTabContentPeer extends ArkCommonMethodPeer { @@ -55,7 +73,7 @@ export class ArkTabContentPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) @@ -65,7 +83,7 @@ export class ArkTabContentPeer extends ArkCommonMethodPeer { const value_1 = value as Resource thisSerializer.writeResource(value_1) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as CustomBuilder thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_2)) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts index c378f64bc85dadac40957e4b4e8f4c7332db9a6f..a6c04ee5372224e03e857a4c426205fb575bf7ed 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTabsPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, BlurStyle, BackgroundEffectOptions, BackgroundBlurStyleOptions } from "./../ArkCommonInterfaces" -import { TabsAttribute, BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsOptions } from "./../ArkTabsInterfaces" -import { Length, ResourceColor } from "./../ArkUnitsInterfaces" -import { EdgeEffect, Color } from "./../ArkEnumsInterfaces" -import { Callback_Number_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, EdgeEffect } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsAttribute, TabsOptions } from "./../ArkTabsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -176,17 +192,17 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts index bbed3a44d28af2b2c3a27b4d1ece717201a8e0cd..2c29c154194f6dcecb22f87ece270437f0df781d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextAreaPeer.ts @@ -20,26 +20,41 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, TextDecorationOptions, InputCounterOptions, CustomBuilder } from "./../ArkCommonInterfaces" -import { TextAreaAttribute, TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { ResourceColor, Font, Length, ResourceStr, Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { EnterKeyType } from "./../ArkTextInputInterfaces" -import { TextAlign, FontStyle, FontWeight, TextOverflow, CopyOptions, TextContentStyle, BarState, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, Color } from "./../ArkEnumsInterfaces" import { CaretStyle, EditableTextOnChangeCallback, InsertValue, DeleteValue } from "./../ArkTextCommonInterfaces" -import { Callback_EnterKeyType_Void, Callback_Number_Number_Void, Callback_Boolean_Void, Callback_String_Void, Callback_String_PasteEvent_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" +import { TextAreaSubmitCallback, TextAreaType, ContentType, TextAreaAttribute, TextAreaOptions } from "./../ArkTextAreaInterfaces" import { PasteEvent, KeyboardOptions } from "./../ArkRichEditorInterfaces" -import { Resource } from "./../ArkResourceInterfaces" -import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -76,17 +91,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -115,17 +130,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -142,17 +157,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -170,7 +185,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -180,7 +195,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -192,12 +207,12 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -226,17 +241,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -320,17 +335,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -342,17 +357,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -382,17 +397,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -410,17 +425,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -480,12 +495,12 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts index 9f30ee22b65293f7a0aaee0e653139f3f973be75..d162d31b1679a6bbb434b6c090e171aab41b96ff 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextClockPeer.ts @@ -20,22 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ShadowOptions, ContentModifier } from "./../ArkCommonInterfaces" -import { TextClockAttribute, TextClockConfiguration, TextClockOptions } from "./../ArkTextClockInterfaces" -import { Callback_Number_Void } from "./../SyntheticDeclarations" -import { ResourceColor, Length, ResourceStr } from "./../ArkUnitsInterfaces" -import { FontStyle, FontWeight, Color } from "./../ArkEnumsInterfaces" -import { DateTimeOptions } from "./../ArkTimePickerInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./../ArkTextClockInterfaces" +import { DateTimeOptions } from "./../ArkTimePickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -81,17 +97,17 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -109,7 +125,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -119,7 +135,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -131,12 +147,12 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts index 6b1797c17b796810ead60999aef0592259ad6513..b84cf37b7fd46b2dce901cbdff49cbca266f57de 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextInputPeer.ts @@ -20,26 +20,42 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, CustomBuilder, TextDecorationOptions, InputCounterOptions } from "./../ArkCommonInterfaces" -import { TextInputAttribute, InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, TextDecorationOptions, InputCounterOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { InputType, EnterKeyType, OnSubmitCallback, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, TextInputStyle, PasswordIcon, UnderlineColor, TextInputAttribute, TextInputOptions } from "./../ArkTextInputInterfaces" import { ContentType } from "./../ArkTextAreaInterfaces" -import { ResourceColor, Dimension, Font, Length, ResourceStr, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" -import { TextOverflow, FontStyle, FontWeight, CopyOptions, TextAlign, TextContentStyle, BarState, WordBreak, LineBreakStrategy, TextHeightAdaptivePolicy, Color } from "./../ArkEnumsInterfaces" -import { Callback_Boolean_Void, Callback_String_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_ResourceStr_Void } from "./../SyntheticDeclarations" import { EditableTextOnChangeCallback, CaretStyle, InsertValue, DeleteValue } from "./../ArkTextCommonInterfaces" import { CancelButtonOptions, CancelButtonSymbolOptions } from "./../ArkSearchInterfaces" -import { Resource } from "./../ArkResourceInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { KeyboardOptions } from "./../ArkRichEditorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -82,17 +98,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -130,17 +146,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -196,17 +212,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -224,7 +240,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -234,7 +250,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -246,12 +262,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -318,17 +334,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -357,12 +373,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { thisSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string thisSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { thisSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource thisSerializer.writeResource(value_value_1) @@ -389,7 +405,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if ((TypeChecker.isColor(value_value)) || (((RuntimeType.NUMBER == value_value_type))) || (((RuntimeType.STRING == value_value_type))) || (((RuntimeType.OBJECT == value_value_type)))) { + if ((TypeChecker.isColor(value_value)) || (RuntimeType.NUMBER == value_value_type) || (RuntimeType.STRING == value_value_type) || (RuntimeType.OBJECT == value_value_type)) { thisSerializer.writeInt8(0 as int32) const value_value_0 = value_value as ResourceColor let value_value_0_type : int32 = RuntimeType.UNDEFINED @@ -399,17 +415,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value_0_0 = value_value_0 as Color thisSerializer.writeInt32((value_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_value_0_type))) { + else if (RuntimeType.NUMBER == value_value_0_type) { thisSerializer.writeInt8(1 as int32) const value_value_0_1 = value_value_0 as number thisSerializer.writeNumber(value_value_0_1) } - else if (((RuntimeType.STRING == value_value_0_type))) { + else if (RuntimeType.STRING == value_value_0_type) { thisSerializer.writeInt8(2 as int32) const value_value_0_2 = value_value_0 as string thisSerializer.writeString(value_value_0_2) } - else if (((RuntimeType.OBJECT == value_value_0_type))) { + else if (RuntimeType.OBJECT == value_value_0_type) { thisSerializer.writeInt8(3 as int32) const value_value_0_3 = value_value_0 as Resource thisSerializer.writeResource(value_value_0_3) @@ -458,17 +474,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -480,17 +496,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -514,17 +530,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -536,17 +552,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -609,12 +625,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts index e2576114f0961101a33a93e15a19a6d18f58c7a0..9a46cd181982463778f12f26dc2ce9a4fbeb9a3d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPeer.ts @@ -20,26 +20,41 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ShadowOptions, CustomBuilder } from "./../ArkCommonInterfaces" -import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" -import { Font, ResourceColor, Length } from "./../ArkUnitsInterfaces" -import { Resource } from "./../ArkResourceInterfaces" -import { FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode, Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, Font, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight, TextAlign, TextCase, CopyOptions, TextHeightAdaptivePolicy, WordBreak, LineBreakStrategy, EllipsisMode, TextSelectableMode } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Void, Callback_Number_Number_Void } from "./../SyntheticDeclarations" import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TextOverflowOptions, TextAttribute, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" -import { Callback_String_Void, Callback_Number_Number_Void } from "./../SyntheticDeclarations" import { TextDataDetectorConfig, FontSettingOptions } from "./../ArkTextCommonInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { SelectionMenuOptions } from "./../ArkRichEditorInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -64,12 +79,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type : int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0 as int32) const content_value_0 = content_value as string thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1 as int32) const content_value_1 = content_value as Resource thisSerializer.writeResource(content_value_1) @@ -113,17 +128,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -135,17 +150,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -157,17 +172,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -179,17 +194,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -201,12 +216,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -218,12 +233,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -238,7 +253,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -248,7 +263,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -260,7 +275,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let weight_type : int32 = RuntimeType.UNDEFINED weight_type = runtimeType(weight) - if (((RuntimeType.NUMBER == weight_type))) { + if (RuntimeType.NUMBER == weight_type) { thisSerializer.writeInt8(0 as int32) const weight_0 = weight as number thisSerializer.writeNumber(weight_0) @@ -270,7 +285,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const weight_1 = weight as FontWeight thisSerializer.writeInt32((weight_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == weight_type))) { + else if (RuntimeType.STRING == weight_type) { thisSerializer.writeInt8(2 as int32) const weight_2 = weight as string thisSerializer.writeString(weight_2) @@ -298,17 +313,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as Resource thisSerializer.writeResource(value_2) @@ -326,12 +341,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) @@ -352,12 +367,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -372,12 +387,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -439,17 +454,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -466,17 +481,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts index e26e56e37023a7c7d76149b6ce83be88729231bd..7ceb21574bbaed66e10bbba04fd430338e8772f7 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextPickerPeer.ts @@ -20,20 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PickerTextStyle } from "./../ArkCommonInterfaces" -import { TextPickerAttribute, DividerOptions, TextPickerOptions } from "./../ArkTextPickerInterfaces" -import { Callback_String_Number_Void, Callback_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void } from "./../SyntheticDeclarations" -import { Dimension, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { DividerOptions, TextPickerOptions, TextPickerAttribute } from "./../ArkTextPickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -65,12 +82,12 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as string thisSerializer.writeString(value_1) @@ -121,12 +138,12 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Array thisSerializer.writeInt32(value_1.length as int32) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts index 8d50a5dd65713120ccf4c215526108a5a2c75ccb..a03cad4be60f14d4699ffd5fc1970a208290df8f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTextTimerPeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ShadowOptions, ContentModifier } from "./../ArkCommonInterfaces" -import { TextTimerAttribute, TextTimerConfiguration, TextTimerOptions } from "./../ArkTextTimerInterfaces" -import { ResourceColor, Length, ResourceStr } from "./../ArkUnitsInterfaces" -import { FontStyle, FontWeight, Color } from "./../ArkEnumsInterfaces" -import { Callback_Number_Number_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, FontStyle, FontWeight } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./../ArkTextTimerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -74,17 +90,17 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -102,7 +118,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) @@ -112,7 +128,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const value_1 = value as FontWeight thisSerializer.writeInt32((value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) @@ -124,12 +140,12 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as string thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts index 8de3d6341e7f6555df3b81bc388bed9419a64142..1b9c39452434ff1c56ee1e41127d5df3488d2160 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTimePickerPeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, PickerTextStyle } from "./../ArkCommonInterfaces" -import { TimePickerAttribute, DateTimeOptions, TimePickerResult, TimePickerOptions } from "./../ArkTimePickerInterfaces" -import { Callback_TimePickerResult_Void, Callback_Date_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_TimePickerResult_Void, Callback_Date_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerAttribute } from "./../ArkTimePickerInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts index fc786f68b766eab53c7c4b327422261e2b337cde..c390c418a2bb98bf80b94c530e4545a08a4304c1 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkTogglePeer.ts @@ -20,21 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, ContentModifier } from "./../ArkCommonInterfaces" -import { ToggleAttribute, ToggleConfiguration, SwitchStyle, ToggleOptions } from "./../ArkToggleInterfaces" -import { Callback_Boolean_Void } from "./../SyntheticDeclarations" -import { ResourceColor } from "./../ArkUnitsInterfaces" -import { Color } from "./../ArkEnumsInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Boolean_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute } from "./../ArkToggleInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -77,17 +93,17 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) @@ -104,17 +120,17 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { const value_0 = value as Color thisSerializer.writeInt32((value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as number thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2 as int32) const value_2 = value as string thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3 as int32) const value_3 = value as Resource thisSerializer.writeResource(value_3) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts index 9876cc0f91bd1965e9df997dbb497461e11cf53a..adad52b8fa923f434d57a5014a6d0586a459b9dc 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts @@ -20,22 +20,41 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { UIExtensionComponentAttribute, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" -import { Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_UIExtensionProxy_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Number_Void, Callback_TerminationInfo_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" +import { ReceiveCallback, UIExtensionOptions, UIExtensionComponentAttribute } from "./../ArkUiExtensionComponentInterfaces" import { Want } from "./../ArkArkuiExternalInterfaces" import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts index f1a8a99eb496b64fec6192e7f6b6ffeeb85704f5..b5d304afade49016749f901787c7e60a3a986de6 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkVideoPeer.ts @@ -20,21 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { VideoAttribute, FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions } from "./../ArkVideoInterfaces" -import { ImageFit } from "./../ArkEnumsInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" -import { Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Callback_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, ImageFit } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions, VideoAttribute } from "./../ArkVideoInterfaces" import { ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts index ef8bfe617ab37e44bd26f1388eae434a49a86d95..11bed32568889050c2c17ec0556d0f18bd2edd99 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWaterFlowPeer.ts @@ -20,22 +20,39 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" -import { ScrollableCommonMethod, NestedScrollOptions } from "./../ArkCommonInterfaces" -import { WaterFlowAttribute, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" -import { ConstraintSizeOptions, Length } from "./../ArkUnitsInterfaces" -import { FlexDirection } from "./../ArkEnumsInterfaces" +import { ScrollableCommonMethod, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { Callback_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Callback_Number_Number_Void } from "./../SyntheticDeclarations" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" import { ScrollState } from "./../ArkListInterfaces" +import { WaterFlowAttribute, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -97,12 +114,12 @@ export class ArkWaterFlowPeer extends ArkScrollableCommonMethodPeer { const thisSerializer : Serializer = Serializer.hold() let value_type : int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0 as int32) const value_0 = value as number thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1 as int32) const value_1 = value as Resource thisSerializer.writeResource(value_1) diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts index 7bed2fb0c4addabf312d8f83dd74547e5a0f77f1..29dcb3a3c600376cadde9bb296adf361c05ba1f4 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWebPeer.ts @@ -20,23 +20,40 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod, NestedScrollOptions, CustomBuilder } from "./../ArkCommonInterfaces" -import { WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, WebOptions } from "./../ArkWebInterfaces" -import { Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_KeyEvent_Boolean, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, NestedScrollOptions } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, CopyOptions } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnFullScreenEnterCallback, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnContextMenuHideCallback, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnSslErrorEventCallback, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnFirstMeaningfulPaintCallback, OnLargestContentfulPaintCallback, OnLoadInterceptEvent, OnOverScrollEvent, OnSafeBrowsingCheckResultCallback, OnNavigationEntryCommittedCallback, OnIntelligentTrackingPreventionCallback, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, OnNativeEmbedVisibilityChangeCallback, NativeEmbedTouchInfo, OnOverrideUrlLoadingCallback, NativeMediaPlayerConfig, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, ExpandedMenuItemOptions, OnViewportFitChangedCallback, WebKeyboardCallback, OnAdsBlockedCallback, WebKeyboardAvoidMode, WebAttribute, WebElementType, WebResponseType, SelectionMenuOptionsExt, WebOptions } from "./../ArkWebInterfaces" import { WebResourceRequest } from "./../ArkWebResourceRequestMaterialized" import { WebResourceResponse } from "./../ArkWebResourceResponseMaterialized" -import { KeyEvent } from "./../ArkKeyEventMaterialized" -import { CopyOptions } from "./../ArkEnumsInterfaces" import { EditMenuOptions } from "./../ArkEditMenuOptionsMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts index 1b5afd60fb287f63035168e2def7672ac98be77c..831dfe0998d69db513bc2a98a604568981fc5565 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkWindowScenePeer.ts @@ -20,18 +20,37 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" -import { Position } from "./../ArkUnitsInterfaces" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts index 90a09b7d2e81689c25a7983da50afba4c47e969a..e5ce6cbc8619dfc01142d76f5f49bb9053727533 100644 --- a/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/ArkXcomponentPeer.ts @@ -20,20 +20,38 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" -import { CommonMethod } from "./../ArkCommonInterfaces" -import { XComponentAttribute, OnNativeLoadCallback, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { VoidCallback } from "./../ArkUnitsInterfaces" -import { Type_XComponentInterface_value } from "./../SyntheticDeclarations" +import { CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" +import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey } from "./../ArkEnumsInterfaces" +import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Type_XComponentInterface_value } from "./../SyntheticDeclarations" +import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" +import { ResizableOptions } from "./../ArkImageInterfaces" +import { Resource } from "./../ArkResourceInterfaces" +import { ClickEvent } from "./../ArkClickEventMaterialized" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" +import { PixelMap } from "./../ArkPixelMapMaterialized" +import { OnNativeLoadCallback, XComponentAttribute, XComponentOptions } from "./../ArkXcomponentInterfaces" import { XComponentController } from "./../ArkXComponentControllerMaterialized" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" import { TypeChecker } from "#components" -import { wrapCallback } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts index 0d6509997d5c3f4d96cfad0c68e8fbfa627a2582..2dfc5e772d214ab890094241583565576b32478c 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackDeserializeCall.ts @@ -20,7 +20,7 @@ import { ResourceHolder, KInt, KStringPtr, wrapSystemCallback, KPointer, Runtime import { CallbackTransformer } from "./CallbackTransformer" import { AccessibilityCallback, TouchTestInfo, TouchResult, CustomBuilder, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragItemInfo, ItemDragInfo, PreDragStatus, SheetDismiss, SheetType, SpringBackAction, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback } from "./../ArkCommonInterfaces" import { AccessibilityHoverEvent } from "./../ArkAccessibilityHoverEventMaterialized" -import { AsyncCallback_image_PixelMap_Void, Callback_Any_Void, Callback_Area_Area_Void, Callback_Array_Number_Void, Callback_Array_String_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Boolean_Void, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_ClickEvent_Void, Callback_ComputedBarAttribute_Void, Callback_CopyEvent_Void, Callback_CustomBuilder_Void, Callback_CutEvent_Void, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_DismissContentCoverAction_Void, Callback_DismissDialogAction_Void, Callback_DismissPopupAction_Void, Callback_DismissSheetAction_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_EnterKeyType_Void, Callback_FormCallbackInfo_Void, Callback_FullscreenInfo_Void, Callback_GestureEvent_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_GestureJudgeResult_Void, Callback_GestureRecognizer_Void, Callback_HitTestMode_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_IsolatedComponentAttribute_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_MouseEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_NavDestinationContext_Void, Callback_NavigationMode_Void, Callback_NavigationTitleMode_Void, Callback_NavigationTransitionProxy_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Number_Void, Callback_Number_Number_PanelMode_Void, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_Number_Tuple_Number_Number, Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Void, Callback_OffsetResult_Void, Callback_OnAlertEvent_Boolean, Callback_OnAudioStateChangedEvent_Void, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnClientAuthenticationEvent_Void, Callback_OnConfirmEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnContextMenuShowEvent_Boolean, Callback_OnDataResubmittedEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPromptEvent_Boolean, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnRenderExitedEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnScrollEvent_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_PanelMode_Void, Callback_PlaybackInfo_Void, Callback_Pointer_Void, Callback_PopInfo_Void, Callback_PreDragStatus_Void, Callback_PreparedInfo_Void, Callback_RefreshStatus_Void, Callback_ResourceStr_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RichEditorTextSpanResult_Void, Callback_SheetDismiss_Void, Callback_SheetType_Void, Callback_SpringBackAction_Void, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_String_Unknown_Void, Callback_String_Void, Callback_StyledStringChangeValue_Boolean, Callback_SwipeActionState_Void, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_TerminationInfo_Void, Callback_TextPickerResult_Void, Callback_TextRange_Void, Callback_TimePickerResult_Void, Callback_TouchEvent_HitTestMode, Callback_TouchEvent_Void, Callback_TouchResult_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_Tuple_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_UIExtensionProxy_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Union_Number_Array_Number_Void, Callback_Union_Number_Resource_Void, Callback_Union_String_Array_String_Void, Callback_Void, Callback_WebKeyboardOptions_Void, Callback_WebResourceResponse_Void, Callback_WithThemeAttribute_Void, CustomNodeBuilder, Type_NavigationAttribute_customNavContentTransition_delegate, Type_TextPickerAttribute_onChange_callback, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data } from "./../SyntheticDeclarations" +import { AsyncCallback_image_PixelMap_Void, Callback_Any_Void, Callback_Area_Area_Void, Callback_Array_Number_Void, Callback_Array_String_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Boolean_Void, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_ClickEvent_Void, Callback_ComputedBarAttribute_Void, Callback_CopyEvent_Void, Callback_CustomBuilder_Void, Callback_CutEvent_Void, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_DismissContentCoverAction_Void, Callback_DismissDialogAction_Void, Callback_DismissPopupAction_Void, Callback_DismissSheetAction_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_EnterKeyType_Void, Callback_FormCallbackInfo_Void, Callback_FullscreenInfo_Void, Callback_GestureEvent_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_GestureJudgeResult_Void, Callback_GestureRecognizer_Void, Callback_HitTestMode_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_IsolatedComponentAttribute_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Void, Callback_KeyEvent_Boolean, Callback_KeyEvent_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_MouseEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_NavDestinationContext_Void, Callback_NavigationMode_Void, Callback_NavigationTitleMode_Void, Callback_NavigationTransitionProxy_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Number_Number_Void, Callback_Number_Number_PanelMode_Void, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_Number_Tuple_Number_Number, Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Void, Callback_OffsetResult_Void, Callback_OnAlertEvent_Boolean, Callback_OnAudioStateChangedEvent_Void, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnClientAuthenticationEvent_Void, Callback_OnConfirmEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnContextMenuShowEvent_Boolean, Callback_OnDataResubmittedEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPromptEvent_Boolean, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnRenderExitedEvent_Void, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnScrollEvent_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_PanelMode_Void, Callback_PlaybackInfo_Void, Callback_Pointer_Void, Callback_PopInfo_Void, Callback_PreDragStatus_Void, Callback_PreparedInfo_Void, Callback_RefreshStatus_Void, Callback_ResourceStr_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RichEditorTextSpanResult_Void, Callback_SheetDismiss_Void, Callback_SheetType_Void, Callback_SpringBackAction_Void, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_String_Unknown_Void, Callback_String_Void, Callback_StyledStringChangeValue_Boolean, Callback_SwipeActionState_Void, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_TerminationInfo_Void, Callback_TextPickerResult_Void, Callback_TextRange_Void, Callback_TimePickerResult_Void, Callback_TouchEvent_HitTestMode, Callback_TouchEvent_Void, Callback_TouchResult_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_Tuple_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_UIExtensionProxy_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Union_Number_Array_Number_Void, Callback_Union_Number_Resource_Void, Callback_Union_String_Array_String_Void, Callback_Void, Callback_WebKeyboardOptions_Void, Callback_WebResourceResponse_Void, Callback_WithThemeAttribute_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Type_TextPickerAttribute_onChange_callback, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data } from "./../SyntheticDeclarations" import { PixelMap } from "./../ArkPixelMapMaterialized" import { ButtonTriggerClickCallback } from "./../ArkButtonInterfaces" import { Area, ResourceStr, SizeOptions, VoidCallback } from "./../ArkUnitsInterfaces" @@ -73,6 +73,7 @@ import { TouchEvent } from "./../ArkTouchEventMaterialized" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" import { WithThemeAttribute, WithThemeInterface, WithThemeOptions } from "./../ArkWithThemeInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, SwiperAnimationEvent, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" import { GetItemMainSizeByIndex } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" import { ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" @@ -1358,7 +1359,7 @@ export function deserializeAndCallContentDidScrollCallback(thisDeserializer: Des } export function deserializeAndCallCustomNodeBuilder(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer) => KPointer)) + const _call = (ResourceHolder.instance().get(_resourceId) as CustomNodeBuilder) let parentNode : KPointer = thisDeserializer.readPointer() let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) const _callResult = _call(parentNode) diff --git a/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts b/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts index f55b0bd059dc75c747442627e0badb048ad99eae..344a26bcfb5b86ab51e031bc41154ce50272ee9d 100644 --- a/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/CallbackTransformer.ts @@ -14,9 +14,9 @@ */ import { KPointer } from "@koalaui/interop" -import { PeerNode } from "../PeerNode" +import { PeerNode } from "../../PeerNode" import { CustomBuilder } from "../ArkCommonInterfaces" -import { CustomNodeBuilder } from "../SyntheticDeclarations" +import { CustomNodeBuilder } from "../ArkCustomBuilderInterfaces" import { ArkComponentRootPeer } from "./ArkStaticComponentsPeer" // TODO need invert dependency: createUiDetachedRoot should be imported from @koalaui/arkoala same as in TS diff --git a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts index 3817de40688129da613262962e8efa8c1f8b9b14..1f0dcda9d67ec8a264efab54bae360d8bf9d7b7f 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Deserializer.ts @@ -22,48 +22,49 @@ import { CallbackKind } from "./CallbackKind" import { TypeChecker } from "#components" import { KUint8ArrayPtr, NativeBuffer, InteropNativeModule } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, InputCounterOptions, SelectionOptions, BackgroundBlurStyleOptions, BlurStyleOptions, EdgeEffectOptions, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, FadingEdgeOptions, RectShape, ContentClipMode, DismissReason, SheetOptions, BindOptions, ContentCoverOptions, ContextMenuOptions, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, BlendApplyType, Blender, BlendMode, OverlayOptions, DragInteractionOptions, DragPreviewOptions, ChainStyle, sharedTransitionOptions, EffectType, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, DragBehavior, LightSource, TouchResult, CommonMethod, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, CaretOffset, MeasureResult, MenuElement, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, Summary, LayoutSafeAreaEdge, LayoutSafeAreaType, SafeAreaEdge, SafeAreaType, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" -import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent, SwiperNestedScrollMode, SwiperDisplayMode } from "./../ArkSwiperInterfaces" -import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, TextRange, StyledStringChangeValue, TextMenuItem, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, PositionWithAffinity, LineMetrics, TextBox, PreviewText, DeleteValue, InsertValue, CaretStyle, TextDataDetectorType, TextDataDetectorConfig } from "./../ArkTextCommonInterfaces" -import { GetItemMainSizeByIndex, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, Affinity, TextRange, StyledStringChangeValue, CaretStyle, InsertValue, DeleteValue, TextMenuItem, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, TextDataDetectorType } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, WaterFlowAttribute, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" -import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode, ResizableOptions } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, NavBarPosition, ToolbarItem, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { ImageErrorCallback, ResizableOptions, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleMode, NavBarPosition } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" -import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, PlaceholderStyle, RichEditorResponseType, RichEditorSpanType, RichEditorDeleteDirection, RichEditorSpanStyleOptions, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, PasteEvent, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorAttribute, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorDeleteDirection, RichEditorSpanStyleOptions, RichEditorStyledStringOptions, RichEditorOptions } from "./../ArkRichEditorInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" -import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebCaptureMode, SelectionMenuOptionsExt, WebResponseType, WebElementType, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, NestedScrollOptionsExt, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebKeyboardAvoidMode, WebOptions, ContextMenuEditStateFlags, ProtectedResourceType, WebLayoutMode, WebDarkMode, OverScrollMode, CacheMode, MixedMode } from "./../ArkWebInterfaces" -import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebCaptureMode, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, NativeEmbedTouchInfo, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, RenderProcessNotRespondingData, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, LargestContentfulPaint, FirstMeaningfulPaint, SslErrorEvent, FullScreenEnterEvent, WebOptions, ContextMenuEditStateFlags, ProtectedResourceType } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" import { OnCheckboxGroupChangeCallback, SelectStatus, CheckboxGroupResult, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, TextInputStyle, PasswordIcon, EnterKeyType, TextInputOptions, InputType } from "./../ArkTextInputInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, TextInputAttribute, InputType, EnterKeyType, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions, ScrollDirection } from "./../ArkScrollInterfaces" -import { OnScrollVisibleContentChangeCallback, ScrollSnapAlign, ScrollState, ListDividerOptions, ListItemGroupArea, ChainEdgeEffect, CloseSwipeActionOptions, VisibleListContentInfo, ChainAnimationOptions, ListOptions, StickyStyle, ListItemAlign } from "./../ArkListInterfaces" -import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, LayoutStyle, DividerStyle, ScrollableBarModeOptions, BarMode, TabContentAnimatedTransition, AnimationMode, BarPosition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAttribute, ScrollDirection, ScrollSnapOptions, OffsetOptions, OnScrollFrameBeginHandlerResult } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ListItemGroupArea, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, LayoutStyle, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" import { PageTransitionCallback, RouteType, SlideEffect } from "./../ArkPageTransitionInterfaces" import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { SearchSubmitCallback, CancelButtonStyle, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonOptions, SearchOptions, SearchType } from "./../ArkSearchInterfaces" -import { SliderTriggerChangeCallback, SliderBlockType, SliderStyle, SliderChangeMode, SlideRange, SliderBlockStyle, SliderOptions, SliderInteraction } from "./../ArkSliderInterfaces" -import { TextAreaSubmitCallback, ContentType, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, LengthMetricsUnit, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, DirectionalEdgesT, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, BorderOptions, ChainWeightOptions, MarkStyle } from "./../ArkUnitsInterfaces" +import { SearchSubmitCallback, CancelButtonStyle, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderBlockType, SliderStyle, SliderOptions } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Offset, DividerStyleOptions, LengthMetricsUnit, LengthConstrain, DirectionalEdgesT, Bias, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, Edge, XComponentType, TextContentStyle, EdgeEffect, OptionWidthMode, BarState, ScrollSource, ResponseType, AppRotation, FoldStatus, FlexAlign, ItemAlign, FlexWrap, FlexDirection, FunctionKey, ImageRepeat, ImageSize, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HitTestMode, HeightBreakpoint, WidthBreakpoint, TextSelectableMode, MarqueeUpdateStrategy, EllipsisMode, CopyOptions, TextCase, RelateType, Week, EmbeddedType, LineJoinStyle, LineCapStyle, ModifierKey, RenderFit, ObscuredReasons, Direction, Visibility, HoverEffect, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" +import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection, Edge, XComponentType, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, AppRotation, FoldStatus, FlexAlign, FlexWrap, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HeightBreakpoint, WidthBreakpoint, MarqueeUpdateStrategy, RelateType, Week, EmbeddedType, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" import { LengthUnit, WebHeader, TextModifier, Want, RectHeightStyle, RectWidthStyle, PerfMonitorSourceType, PerfMonitorActionType, SnapshotOptions, NodeController } from "./../ArkArkuiExternalInterfaces" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Union_Number_Resource_Void, Callback_PanelMode_Void, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Callback_MouseEvent_Void, Callback_KeyEvent_Void, Callback_TouchEvent_Void, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_NativeEmbedTouchInfo_Void, Callback_NativeEmbedDataInfo_Void, Callback_OnOverScrollEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnScaleChangeEvent_Void, Callback_OnResourceLoadEvent_Void, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnRenderExitedEvent_Void, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnConsoleEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnAlertEvent_Boolean, Callback_OnGeolocationShowEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_EnterKeyType_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_DeleteValue_Void, Callback_DeleteValue_Boolean, Callback_InsertValue_Void, Callback_InsertValue_Boolean, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_TextRange_Void, Callback_RichEditorTextSpanResult_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_NavDestinationContext_Void, Callback_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Number_Number_Boolean, Callback_Number_Boolean, Callback_Number_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_Number_Number_ComputedBarAttribute, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Callback_Number_Number_Void, Callback_TouchEvent_HitTestMode, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_PreDragStatus_Void, Callback_DragEvent_String_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_Area_Area_Void, Callback_KeyEvent_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" import { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" -import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMeasureInfo, CustomSpanMetrics, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" +import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" +import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMetrics, CustomSpanMeasureInfo, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { SwipeActionState, SwipeActionItem, SwipeEdgeEffect, EditMode, ListItemStyle, SwipeActionOptions, ListItemOptions, Sticky } from "./../ArkListItemInterfaces" @@ -81,11 +82,11 @@ import { WebCookie, WebCookieInternal } from "./../ArkWebCookieMaterialized" import { PlaybackSpeed, SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions } from "./../ArkVideoInterfaces" import { DateTimeOptions, TimePickerResult, TimePickerFormat, TimePickerDialogOptions, TimePickerOptions } from "./../ArkTimePickerInterfaces" import { DialogAlignment, DialogButtonDirection, TextStyle_alert_dialog, AlertDialogButtonBaseOptions, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" -import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, DividerOptions, TextCascadePickerRangeContent, TextPickerRangeContent } from "./../ArkTextPickerInterfaces" +import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" import { ProgressStatus, ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, LinearStyleOptions, ProgressType, ProgressStyle, ProgressOptions } from "./../ArkProgressInterfaces" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" @@ -93,8 +94,8 @@ import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" import { ColorStop, DataPanelType, DataPanelShadowOptions, DataPanelOptions } from "./../ArkDataPanelInterfaces" import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Scene, ModelType, SceneOptions } from "./../ArkComponent3dInterfaces" -import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, FingerInfo, GestureInfo } from "./../ArkGestureInterfaces" +import { Scene, Component3DAttribute, ModelType, SceneOptions } from "./../ArkComponent3dInterfaces" +import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureInfo, GestureJudgeResult, GestureMask, GestureRecognizerState, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" @@ -107,14 +108,27 @@ import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" import { ButtonIconOptions, ButtonStyle, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" -import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" @@ -128,7 +142,6 @@ import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandle import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" -import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" @@ -138,26 +151,30 @@ import { ToggleType, SwitchStyle, ToggleOptions } from "./../ArkToggleInterfaces import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" -import { TextResponseType, TextSpanType, TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" -import { MenuAlignType, ArrowPosition, SelectOption } from "./../ArkSelectInterfaces" +import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" +import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" import { ScrollBarDirection, ScrollBarOptions } from "./../ArkScrollBarInterfaces" import { SaveDescription, SaveIconStyle, SaveButtonOnClickResult, SaveButtonOptions } from "./../ArkSaveButtonInterfaces" import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { LocalizedBarrierDirection, BarrierDirection, GuideLinePosition, LocalizedBarrierStyle, BarrierStyle, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" @@ -170,32 +187,28 @@ import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" import { LocationDescription, LocationIconStyle, LocationButtonOnClickResult, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" import { ListItemGroupStyle, ListItemGroupOptions } from "./../ArkListItemGroupInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" import { SizeType, GridContainerOptions } from "./../ArkGridContainerInterfaces" import { GridItemStyle, GridItemOptions } from "./../ArkGridItemInterfaces" -import { GridItemAlignment, ComputedBarAttribute, GridDirection, GridLayoutOptions } from "./../ArkGridInterfaces" +import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./../ArkGridInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" +import { GestureControl_GestureType } from "./../ArkGestureControlNamespace" import { FormShape, FormRenderingMode, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { FocusPriority, FocusBoxStyle } from "./../ArkFocusInterfaces" -import { GestureControl_GestureType } from "./../ArkGestureControlNamespace" -import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" -import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" +import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" -import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" -import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" -import { CalendarDialogOptions, CalendarOptions, CalendarAlign } from "./../ArkCalendarPickerInterfaces" +import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" @@ -213,8 +226,6 @@ import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDi import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" -import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" -import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { TextClockOptions } from "./../ArkTextClockInterfaces" import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" @@ -222,16 +233,13 @@ import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDi import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" -import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" import { ItemState } from "./../ArkStepperItemInterfaces" import { LayoutDirection, ColorMode } from "./../ArkStateManagementInterfaces" import { StackOptions } from "./../ArkStackInterfaces" -import { ViewportRect } from "./../ArkShapeInterfaces" import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" import { RowOptions } from "./../ArkRowInterfaces" import { RootSceneSession } from "./../ArkRootSceneInterfaces" -import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" import { PolylineOptions } from "./../ArkPolylineInterfaces" @@ -250,7 +258,6 @@ import { LineOptions } from "./../ArkLineInterfaces" import { DataOperationType } from "./../ArkLazyForEachInterfaces" import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" import { PanRecognizer, PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" import { ScrollableTargetInfo, ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" import { SwipeGestureEvent, SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" import { RotationGestureEvent, RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" @@ -267,15 +274,13 @@ import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInt import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { ContextMenu, ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { View, ViewInternal } from "./../ArkViewMaterialized" import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" -import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ColumnOptions } from "./../ArkColumnInterfaces" import { CircleOptions } from "./../ArkCircleInterfaces" +import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" @@ -287,6 +292,7 @@ import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMater import { NavExtender, NavExtenderInternal } from "./../ArkNavExtenderMaterialized" import { GlobalScope_ohos_arkui_performanceMonitor, GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot, GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" +import { SystemOps, SystemOpsInternal } from "./../ArkSystemOpsMaterialized" import { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" @@ -806,81 +812,87 @@ export class Deserializer extends DeserializerBase { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: GestureEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: GestureEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ClickEvent_Void(isSync: boolean = false): ((event: ClickEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ClickEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_PopInfo_Void(isSync: boolean = false): ((parameter: PopInfo) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: PopInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePopInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PopInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePopInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SwipeActionState_Void(isSync: boolean = false): ((state: SwipeActionState) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (state: SwipeActionState):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((state.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (state: SwipeActionState):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((state.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Void(isSync: boolean = false): (() => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readCustomNodeBuilder(isSync: boolean = false): ((parentNode: KPointer) => KPointer) { + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readCustomNodeBuilder(isSync: boolean = false): CustomNodeBuilder { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parentNode: KPointer):KPointer => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePointer(parentNode); -let _continuationValue : KPointer | undefined; -const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as KPointer); } + return (parentNode: KPointer):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } } readLocalizedEdgeColors(): LocalizedEdgeColors { let valueDeserializer : Deserializer = this @@ -1093,14 +1105,15 @@ return (_continuationValue as KPointer); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DismissPopupAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissPopupAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissPopupAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissPopupAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCanvasPattern(): CanvasPattern { let valueDeserializer : Deserializer = this @@ -1116,39 +1129,42 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (transitionProxy: NavigationTransitionProxy):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavigationTransitionProxy(transitionProxy); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (transitionProxy: NavigationTransitionProxy):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavigationTransitionProxy(transitionProxy); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readColorMetrics(): ColorMetrics { let valueDeserializer : Deserializer = this @@ -1328,17 +1344,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):number => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : number | undefined; -const _continuationCallback : ((index: number) => void) = (value: number):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as number); } + return (index: number):number => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : number | undefined; + const _continuationCallback : ((index: number) => void) = (value: number):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as number); } } readImageAnalyzerController(): ImageAnalyzerController { let valueDeserializer : Deserializer = this @@ -1370,14 +1387,15 @@ return (_continuationValue as number); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (breakpoints: string):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(breakpoints); -(isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (breakpoints: string):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(breakpoints); + (isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDateTimeOptions(): DateTimeOptions { let valueDeserializer : Deserializer = this @@ -1389,14 +1407,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: TimePickerResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTimePickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TimePickerResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTimePickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRectangle(): Rectangle { let valueDeserializer : Deserializer = this @@ -1651,33 +1670,41 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: TextPickerResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextPickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TextPickerResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextPickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextMenuItemId(): TextMenuItemId { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return TextMenuItemIdInternal.fromPtr(ptr) } + readAffinity(): Affinity { + let valueDeserializer : Deserializer = this + const _AffinityStub_result : string = (valueDeserializer.readString() as string) + let value : Affinity = ({_AffinityStub: _AffinityStub_result} as Affinity) + return value + } readMenuOnAppearCallback(isSync: boolean = false): MenuOnAppearCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (start: number, end: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(start); -_argsSerializer.writeNumber(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: number, end: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(start); + _argsSerializer.writeNumber(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabBarIconStyle(): TabBarIconStyle { let valueDeserializer : Deserializer = this @@ -1942,14 +1969,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: TabContentTransitionProxy):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTabContentTransitionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TabContentTransitionProxy):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTabContentTransitionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIconOptions(): IconOptions { let valueDeserializer : Deserializer = this @@ -2230,31 +2258,33 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (rangeBefore: TextRange, rangeAfter: TextRange):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextRange(rangeBefore); -_argsSerializer.writeTextRange(rangeAfter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (rangeBefore: TextRange, rangeAfter: TextRange):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextRange(rangeBefore); + _argsSerializer.writeTextRange(rangeAfter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_StyledStringChangeValue_Boolean(isSync: boolean = false): ((parameter: StyledStringChangeValue) => boolean) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: StyledStringChangeValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeStyledStringChangeValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: StyledStringChangeValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeStyledStringChangeValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readRichEditorImageSpanStyle(): RichEditorImageSpanStyle { let valueDeserializer : Deserializer = this @@ -2493,52 +2523,54 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (mode: NavigationMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: NavigationMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readInterceptionShowCallback(isSync: boolean = false): InterceptionShowCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let from_type : int32 = RuntimeType.UNDEFINED; -from_type = runtimeType(from); -if (((RuntimeType.OBJECT == from_type))) { - _argsSerializer.writeInt8(0 as int32); - const from_0 = from as NavDestinationContext; - _argsSerializer.writeNavDestinationContext(from_0); -} -else if (((RuntimeType.STRING == from_type))) { - _argsSerializer.writeInt8(1 as int32); - const from_1 = from as NavBar; - _argsSerializer.writeString(from_1); -} -let to_type : int32 = RuntimeType.UNDEFINED; -to_type = runtimeType(to); -if (((RuntimeType.OBJECT == to_type))) { - _argsSerializer.writeInt8(0 as int32); - const to_0 = to as NavDestinationContext; - _argsSerializer.writeNavDestinationContext(to_0); -} -else if (((RuntimeType.STRING == to_type))) { - _argsSerializer.writeInt8(1 as int32); - const to_1 = to as NavBar; - _argsSerializer.writeString(to_1); -} -_argsSerializer.writeInt32((operation.valueOf() as int32)); -_argsSerializer.writeBoolean(isAnimated); -(isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let from_type : int32 = RuntimeType.UNDEFINED; + from_type = runtimeType(from); + if (RuntimeType.OBJECT == from_type) { + _argsSerializer.writeInt8(0 as int32); + const from_0 = from as NavDestinationContext; + _argsSerializer.writeNavDestinationContext(from_0); + } + else if (RuntimeType.STRING == from_type) { + _argsSerializer.writeInt8(1 as int32); + const from_1 = from as NavBar; + _argsSerializer.writeString(from_1); + } + let to_type : int32 = RuntimeType.UNDEFINED; + to_type = runtimeType(to); + if (RuntimeType.OBJECT == to_type) { + _argsSerializer.writeInt8(0 as int32); + const to_0 = to as NavDestinationContext; + _argsSerializer.writeNavDestinationContext(to_0); + } + else if (RuntimeType.STRING == to_type) { + _argsSerializer.writeInt8(1 as int32); + const to_1 = to as NavBar; + _argsSerializer.writeString(to_1); + } + _argsSerializer.writeInt32((operation.valueOf() as int32)); + _argsSerializer.writeBoolean(isAnimated); + (isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextModifier(): TextModifier { let value : TextModifier = ({} as TextModifier) @@ -2735,27 +2767,29 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: Date):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt64((parameter.getTime() as int64)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: Date):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt64((parameter.getTime() as int64)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DatePickerResult_Void(isSync: boolean = false): ((value: DatePickerResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: DatePickerResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDatePickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: DatePickerResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDatePickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLunarSwitchStyle(): LunarSwitchStyle { let valueDeserializer : Deserializer = this @@ -2858,79 +2892,85 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: SheetType):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((parameter.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SheetType):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((parameter.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Void(isSync: boolean = false): ((index: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SpringBackAction_Void(isSync: boolean = false): ((parameter: SpringBackAction) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: SpringBackAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSpringBackAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SpringBackAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSpringBackAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DismissSheetAction_Void(isSync: boolean = false): ((parameter: DismissSheetAction) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DismissSheetAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissSheetAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissSheetAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissSheetAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SheetDismiss_Void(isSync: boolean = false): ((sheetDismiss: SheetDismiss) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (sheetDismiss: SheetDismiss):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSheetDismiss(sheetDismiss); -(isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (sheetDismiss: SheetDismiss):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSheetDismiss(sheetDismiss); + (isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DismissContentCoverAction_Void(isSync: boolean = false): ((parameter: DismissContentCoverAction) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DismissContentCoverAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissContentCoverAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissContentCoverAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissContentCoverAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readContextMenuAnimationOptions(): ContextMenuAnimationOptions { let valueDeserializer : Deserializer = this @@ -2962,15 +3002,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: Literal_Boolean_isVisible):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const event_isVisible = event.isVisible; -_argsSerializer.writeBoolean(event_isVisible); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: Literal_Boolean_isVisible):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const event_isVisible = event.isVisible; + _argsSerializer.writeBoolean(event_isVisible); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPopupMessageOptions(): PopupMessageOptions { let valueDeserializer : Deserializer = this @@ -3385,14 +3426,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DismissDialogAction):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissDialogAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissDialogAction):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissDialogAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readAlertDialogButtonBaseOptions(): AlertDialogButtonBaseOptions { let valueDeserializer : Deserializer = this @@ -3559,26 +3601,28 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Extender_OnProgress(isSync: boolean = false): Callback_Extender_OnProgress { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: float32):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFloat32(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: float32):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFloat32(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCustomTheme(): CustomTheme { let valueDeserializer : Deserializer = this @@ -3716,15 +3760,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, progress: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(progress); -(isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, progress: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(progress); + (isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLinearIndicatorStyle(): LinearIndicatorStyle { let valueDeserializer : Deserializer = this @@ -3800,6 +3845,19 @@ return; } let value : DrawContext = ({_DrawContextStub: _DrawContextStub_result} as DrawContext) return value } + readCustomSpanMetrics(): CustomSpanMetrics { + let valueDeserializer : Deserializer = this + const width_result : number = (valueDeserializer.readNumber() as number) + const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let height_buf : number | undefined + if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) + { + height_buf = (valueDeserializer.readNumber() as number) + } + const height_result : number | undefined = height_buf + let value : CustomSpanMetrics = ({width: width_result,height: height_result} as CustomSpanMetrics) + return value + } readCustomSpanMeasureInfo(): CustomSpanMeasureInfo { let valueDeserializer : Deserializer = this const fontSize_result : number = (valueDeserializer.readNumber() as number) @@ -3904,14 +3962,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: UIExtensionProxy):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeUIExtensionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: UIExtensionProxy):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeUIExtensionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readWaterFlowAttribute(): WaterFlowAttribute { + throw new Error("Interface with functions is not supported") } readWaterFlowSections(): WaterFlowSections { let valueDeserializer : Deserializer = this @@ -4186,6 +4248,12 @@ return; } let value : SurfaceRotationOptions = ({lock: lock_result} as SurfaceRotationOptions) return value } + readWindowSceneAttribute(): WindowSceneAttribute { + throw new Error("Interface with functions is not supported") + } + readWebAttribute(): WebAttribute { + throw new Error("Interface with functions is not supported") + } readSelectionMenuOptionsExt(): SelectionMenuOptionsExt { let valueDeserializer : Deserializer = this const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -4228,15 +4296,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selectedText: Literal_String_plainText):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const selectedText_plainText = selectedText.plainText; -_argsSerializer.writeString(selectedText_plainText); -(isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selectedText: Literal_String_plainText):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const selectedText_plainText = selectedText.plainText; + _argsSerializer.writeString(selectedText_plainText); + (isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEventResult(): EventResult { let valueDeserializer : Deserializer = this @@ -4449,6 +4518,11 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return JsGeolocationInternal.fromPtr(ptr) } + readWebCookie(): WebCookie { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return WebCookieInternal.fromPtr(ptr) + } readScreenCaptureConfig(): ScreenCaptureConfig { let valueDeserializer : Deserializer = this const captureMode_result : WebCaptureMode = (valueDeserializer.readInt32() as WebCaptureMode) @@ -4964,57 +5038,59 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string | Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0 as int32); - const value_0 = value as string; - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1 as int32); - const value_1 = value as Array; - _argsSerializer.writeInt32(value_1.length as int32); - for (let i = 0; i < value_1.length; i++) { - const value_1_element : string = value_1[i]; - _argsSerializer.writeString(value_1_element); + return (value: string | Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0 as int32); + const value_0 = value as string; + _argsSerializer.writeString(value_0); } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1 as int32); + const value_1 = value as Array; + _argsSerializer.writeInt32(value_1.length as int32); + for (let i = 0; i < value_1.length; i++) { + const value_1_element : string = value_1[i]; + _argsSerializer.writeString(value_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Union_Number_Array_Number_Void(isSync: boolean = false): ((selected: number | Array) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selected: number | Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let selected_type : int32 = RuntimeType.UNDEFINED; -selected_type = runtimeType(selected); -if (((RuntimeType.NUMBER == selected_type))) { - _argsSerializer.writeInt8(0 as int32); - const selected_0 = selected as number; - _argsSerializer.writeNumber(selected_0); -} -else if (((RuntimeType.OBJECT == selected_type))) { - _argsSerializer.writeInt8(1 as int32); - const selected_1 = selected as Array; - _argsSerializer.writeInt32(selected_1.length as int32); - for (let i = 0; i < selected_1.length; i++) { - const selected_1_element : number = selected_1[i]; - _argsSerializer.writeNumber(selected_1_element); + return (selected: number | Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let selected_type : int32 = RuntimeType.UNDEFINED; + selected_type = runtimeType(selected); + if (RuntimeType.NUMBER == selected_type) { + _argsSerializer.writeInt8(0 as int32); + const selected_0 = selected as number; + _argsSerializer.writeNumber(selected_0); } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + else if (RuntimeType.OBJECT == selected_type) { + _argsSerializer.writeInt8(1 as int32); + const selected_1 = selected as Array; + _argsSerializer.writeInt32(selected_1.length as int32); + for (let i = 0; i < selected_1.length; i++) { + const selected_1_element : number = selected_1[i]; + _argsSerializer.writeNumber(selected_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDividerOptions(): DividerOptions { let valueDeserializer : Deserializer = this @@ -5070,25 +5146,29 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: ResourceStr):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0 as int32); - const value_0 = value as string; - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1 as int32); - const value_1 = value as Resource; - _argsSerializer.writeResource(value_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: ResourceStr):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0 as int32); + const value_0 = value as string; + _argsSerializer.writeString(value_0); + } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1 as int32); + const value_1 = value as Resource; + _argsSerializer.writeResource(value_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readTextInputAttribute(): TextInputAttribute { + throw new Error("Interface with functions is not supported") } readInputCounterOptions(): InputCounterOptions { let valueDeserializer : Deserializer = this @@ -5294,16 +5374,52 @@ return; } let value : TextMenuItem = ({content: content_result,icon: icon_result,id: id_result} as TextMenuItem) return value } + readLineMetrics(): LineMetrics { + let valueDeserializer : Deserializer = this + const _LineMetricsStub_result : string = (valueDeserializer.readString() as string) + let value : LineMetrics = ({_LineMetricsStub: _LineMetricsStub_result} as LineMetrics) + return value + } + readPositionWithAffinity(): PositionWithAffinity { + let valueDeserializer : Deserializer = this + const position_result : number = (valueDeserializer.readNumber() as number) + const affinity_result : Affinity = valueDeserializer.readAffinity() + let value : PositionWithAffinity = ({position: position_result,affinity: affinity_result} as PositionWithAffinity) + return value + } + readMutableStyledString(): MutableStyledString { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return MutableStyledStringInternal.fromPtr(ptr) + } + readPreviewText(): PreviewText { + let valueDeserializer : Deserializer = this + const offset_result : number = (valueDeserializer.readNumber() as number) + const value_result : string = (valueDeserializer.readString() as string) + let value : PreviewText = ({offset: offset_result,value: value_result} as PreviewText) + return value + } + readLayoutManager(): LayoutManager { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return LayoutManagerInternal.fromPtr(ptr) + } readTextClockController(): TextClockController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return TextClockControllerInternal.fromPtr(ptr) } + readTextAreaAttribute(): TextAreaAttribute { + throw new Error("Interface with functions is not supported") + } readTextAreaController(): TextAreaController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return TextAreaControllerInternal.fromPtr(ptr) } + readTextAttribute(): TextAttribute { + throw new Error("Interface with functions is not supported") + } readSelectionMenuOptions(): SelectionMenuOptions { let valueDeserializer : Deserializer = this const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5394,6 +5510,9 @@ return; } let value : TabBarOptions = ({icon: icon_result,text: text_result} as TabBarOptions) return value } + readTabsAttribute(): TabsAttribute { + throw new Error("Interface with functions is not supported") + } readBackgroundBlurStyleOptions(): BackgroundBlurStyleOptions { let valueDeserializer : Deserializer = this const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5495,6 +5614,9 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return TabsControllerInternal.fromPtr(ptr) } + readSymbolGlyphAttribute(): SymbolGlyphAttribute { + throw new Error("Interface with functions is not supported") + } readSymbolEffect(): SymbolEffect { let value : SymbolEffect = ({} as SymbolEffect) return value @@ -5505,6 +5627,9 @@ return; } readDotIndicator(): DotIndicator { throw new Error("Can not deserialize builder class") } + readSwiperAttribute(): SwiperAttribute { + throw new Error("Interface with functions is not supported") + } readSwiperAutoFill(): SwiperAutoFill { let valueDeserializer : Deserializer = this const minSize_buf_selector : int32 = valueDeserializer.readInt8() @@ -5607,38 +5732,49 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: SwiperContentTransitionProxy):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSwiperContentTransitionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SwiperContentTransitionProxy):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSwiperContentTransitionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readSliderAttribute(): SliderAttribute { + throw new Error("Interface with functions is not supported") + } + readShapeAttribute(): ShapeAttribute { + throw new Error("Interface with functions is not supported") } readCallback_Union_Number_Resource_Void(isSync: boolean = false): ((selected: number | Resource) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selected: number | Resource):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let selected_type : int32 = RuntimeType.UNDEFINED; -selected_type = runtimeType(selected); -if (((RuntimeType.NUMBER == selected_type))) { - _argsSerializer.writeInt8(0 as int32); - const selected_0 = selected as number; - _argsSerializer.writeNumber(selected_0); -} -else if (((RuntimeType.OBJECT == selected_type))) { - _argsSerializer.writeInt8(1 as int32); - const selected_1 = selected as Resource; - _argsSerializer.writeResource(selected_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selected: number | Resource):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let selected_type : int32 = RuntimeType.UNDEFINED; + selected_type = runtimeType(selected); + if (RuntimeType.NUMBER == selected_type) { + _argsSerializer.writeInt8(0 as int32); + const selected_0 = selected as number; + _argsSerializer.writeNumber(selected_0); + } + else if (RuntimeType.OBJECT == selected_type) { + _argsSerializer.writeInt8(1 as int32); + const selected_1 = selected as Resource; + _argsSerializer.writeResource(selected_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readSelectAttribute(): SelectAttribute { + throw new Error("Interface with functions is not supported") } readLocalizedEdges(): LocalizedEdges { let valueDeserializer : Deserializer = this @@ -5706,6 +5842,9 @@ return; } let value : Edges = ({top: top_result,left: left_result,bottom: bottom_result,right: right_result} as Edges) return value } + readSearchAttribute(): SearchAttribute { + throw new Error("Interface with functions is not supported") + } readSearchButtonOptions(): SearchButtonOptions { let valueDeserializer : Deserializer = this const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5792,6 +5931,9 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return SearchControllerInternal.fromPtr(ptr) } + readScrollAttribute(): ScrollAttribute { + throw new Error("Interface with functions is not supported") + } readEdgeEffectOptions(): EdgeEffectOptions { let valueDeserializer : Deserializer = this const alwaysEnabled_result : boolean = valueDeserializer.readBoolean() @@ -5802,20 +5944,30 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource):OffsetResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xOffset); -_argsSerializer.writeNumber(yOffset); -_argsSerializer.writeInt32((scrollState.valueOf() as int32)); -_argsSerializer.writeInt32((scrollSource.valueOf() as int32)); -let _continuationValue : OffsetResult | undefined; -const _continuationCallback : ((value: OffsetResult) => void) = (value: OffsetResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as OffsetResult); } + return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource):OffsetResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xOffset); + _argsSerializer.writeNumber(yOffset); + _argsSerializer.writeInt32((scrollState.valueOf() as int32)); + _argsSerializer.writeInt32((scrollSource.valueOf() as int32)); + let _continuationValue : OffsetResult | undefined; + const _continuationCallback : ((value: OffsetResult) => void) = (value: OffsetResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as OffsetResult); } + } + readRectResult(): RectResult { + let valueDeserializer : Deserializer = this + const x_result : number = (valueDeserializer.readNumber() as number) + const y_result : number = (valueDeserializer.readNumber() as number) + const width_result : number = (valueDeserializer.readNumber() as number) + const height_result : number = (valueDeserializer.readNumber() as number) + let value : RectResult = ({x: x_result,y: y_result,width: width_result,height: height_result} as RectResult) + return value } readScrollToIndexOptions(): ScrollToIndexOptions { let valueDeserializer : Deserializer = this @@ -5829,6 +5981,13 @@ return (_continuationValue as OffsetResult); } let value : ScrollToIndexOptions = ({extraOffset: extraOffset_result} as ScrollToIndexOptions) return value } + readOffsetResult(): OffsetResult { + let valueDeserializer : Deserializer = this + const xOffset_result : number = (valueDeserializer.readNumber() as number) + const yOffset_result : number = (valueDeserializer.readNumber() as number) + let value : OffsetResult = ({xOffset: xOffset_result,yOffset: yOffset_result} as OffsetResult) + return value + } readScrollPageOptions(): ScrollPageOptions { let valueDeserializer : Deserializer = this const next_result : boolean = valueDeserializer.readBoolean() @@ -5911,6 +6070,9 @@ return (_continuationValue as OffsetResult); } let ptr : KPointer = valueDeserializer.readPointer() return RichEditorControllerInternal.fromPtr(ptr) } + readRichEditorAttribute(): RichEditorAttribute { + throw new Error("Interface with functions is not supported") + } readPlaceholderStyle(): PlaceholderStyle { let valueDeserializer : Deserializer = this const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6059,6 +6221,31 @@ return (_continuationValue as OffsetResult); } let value : RichEditorRange = ({start: start_result,end: end_result} as RichEditorRange) return value } + readRichEditorSelection(): RichEditorSelection { + let valueDeserializer : Deserializer = this + const selection_buf_value0 : number = (valueDeserializer.readNumber() as number) + const selection_buf_value1 : number = (valueDeserializer.readNumber() as number) + const selection_result : [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) + const spans_buf_length : int32 = valueDeserializer.readInt32() + let spans_buf : Array = new Array() + for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { + const spans_buf_buf_selector : int32 = valueDeserializer.readInt8() + let spans_buf_buf : RichEditorTextSpanResult | RichEditorImageSpanResult | undefined + if (spans_buf_buf_selector == 0) { + spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() + } + else if (spans_buf_buf_selector == 1) { + spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() + } + else { + throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") + } + spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) + } + const spans_result : Array = spans_buf + let value : RichEditorSelection = ({selection: selection_result,spans: spans_result} as RichEditorSelection) + return value + } readRichEditorParagraphStyleOptions(): RichEditorParagraphStyleOptions { let valueDeserializer : Deserializer = this const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6651,14 +6838,15 @@ return (_continuationValue as OffsetResult); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (mode: PanelMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: PanelMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNavContentInfo(): NavContentInfo { let valueDeserializer : Deserializer = this @@ -6744,6 +6932,9 @@ return; } let value : NavigationOptions = ({launchMode: launchMode_result,animated: animated_result} as NavigationOptions) return value } + readNavDestinationAttribute(): NavDestinationAttribute { + throw new Error("Interface with functions is not supported") + } readNavigationToolbarOptions(): NavigationToolbarOptions { let valueDeserializer : Deserializer = this const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6918,6 +7109,14 @@ return; } let value : SystemBarStyle = ({_SystemBarStyleStub: _SystemBarStyleStub_result} as SystemBarStyle) return value } + readRouteMapConfig(): RouteMapConfig { + let valueDeserializer : Deserializer = this + const name_result : string = (valueDeserializer.readString() as string) + const pageSourceFile_result : string = (valueDeserializer.readString() as string) + const data_result : Object = (valueDeserializer.readCustomObject("Object") as Object) + let value : RouteMapConfig = ({name: name_result,pageSourceFile: pageSourceFile_result,data: data_result} as RouteMapConfig) + return value + } readMenuItemOptions(): MenuItemOptions { let valueDeserializer : Deserializer = this const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7133,6 +7332,29 @@ return; } let value : ListDividerOptions = ({strokeWidth: strokeWidth_result,color: color_result,startMargin: startMargin_result,endMargin: endMargin_result} as ListDividerOptions) return value } + readListAttribute(): ListAttribute { + throw new Error("Interface with functions is not supported") + } + readVisibleListContentInfo(): VisibleListContentInfo { + let valueDeserializer : Deserializer = this + const index_result : number = (valueDeserializer.readNumber() as number) + const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let itemGroupArea_buf : ListItemGroupArea | undefined + if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) + { + itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) + } + const itemGroupArea_result : ListItemGroupArea | undefined = itemGroupArea_buf + const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let itemIndexInGroup_buf : number | undefined + if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) + { + itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) + } + const itemIndexInGroup_result : number | undefined = itemIndexInGroup_buf + let value : VisibleListContentInfo = ({index: index_result,itemGroupArea: itemGroupArea_result,itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) + return value + } readCloseSwipeActionOptions(): CloseSwipeActionOptions { let valueDeserializer : Deserializer = this const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7180,37 +7402,52 @@ return; } let value : BreakPoints = ({value: value_result,reference: reference_result} as BreakPoints) return value } + readGridAttribute(): GridAttribute { + throw new Error("Interface with functions is not supported") + } readCallback_Number_Tuple_Number_Number_Number_Number(isSync: boolean = false): ((index: number) => [ number, number, number, number ]) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):[ number, number, number, number ] => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : [ number, number, number, number ] | undefined; -const _continuationCallback : ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as [ number, number, number, number ]); } + return (index: number):[ number, number, number, number ] => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : [ number, number, number, number ] | undefined; + const _continuationCallback : ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as [ number, number, number, number ]); } } readCallback_Number_Tuple_Number_Number(isSync: boolean = false): ((index: number) => [ number, number ]) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):[ number, number ] => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : [ number, number ] | undefined; -const _continuationCallback : ((value: [ number, number ]) => void) = (value: [ number, number ]):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as [ number, number ]); } + return (index: number):[ number, number ] => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : [ number, number ] | undefined; + const _continuationCallback : ((value: [ number, number ]) => void) = (value: [ number, number ]):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as [ number, number ]); } + } + readPanGestureOptions(): PanGestureOptions { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return PanGestureOptionsInternal.fromPtr(ptr) + } + readEventTargetInfo(): EventTargetInfo { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return EventTargetInfoInternal.fromPtr(ptr) } readWindowStatusType(): WindowStatusType { let valueDeserializer : Deserializer = this @@ -7571,6 +7808,9 @@ return (_continuationValue as [ number, number ]); } let value : AnimateParam = ({duration: duration_result,tempo: tempo_result,curve: curve_result,delay: delay_result,iterations: iterations_result,playMode: playMode_result,onFinish: onFinish_result,finishCallbackType: finishCallbackType_result,expectedFrameRateRange: expectedFrameRateRange_result} as AnimateParam) return value } + readComponent3DAttribute(): Component3DAttribute { + throw new Error("Interface with functions is not supported") + } readUIGestureEvent(): UIGestureEvent { throw new Error("Interface with functions is not supported") } @@ -7578,15 +7818,16 @@ return (_continuationValue as [ number, number ]); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (isExpanding: boolean, currentRatio: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isExpanding); -_argsSerializer.writeNumber(currentRatio); -(isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isExpanding: boolean, currentRatio: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isExpanding); + _argsSerializer.writeNumber(currentRatio); + (isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readVisibleAreaEventOptions(): VisibleAreaEventOptions { let valueDeserializer : Deserializer = this @@ -7610,82 +7851,88 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (oldValue: SizeOptions, newValue: SizeOptions):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSizeOptions(oldValue); -_argsSerializer.writeSizeOptions(newValue); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (oldValue: SizeOptions, newValue: SizeOptions):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSizeOptions(oldValue); + _argsSerializer.writeSizeOptions(newValue); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_MouseEvent_Void(isSync: boolean = false): ((event: MouseEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: MouseEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeMouseEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: MouseEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeMouseEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readHoverCallback(isSync: boolean = false): HoverCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (isHover: boolean, event: HoverEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: HoverEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_KeyEvent_Void(isSync: boolean = false): ((event: KeyEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: KeyEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeKeyEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: KeyEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeKeyEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_TouchEvent_Void(isSync: boolean = false): ((event: TouchEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: TouchEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: TouchEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnMoveHandler(isSync: boolean = false): OnMoveHandler { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: number, to: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (from: number, to: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFadingEdgeOptions(): FadingEdgeOptions { let valueDeserializer : Deserializer = this @@ -7705,6 +7952,30 @@ return; } let value : RectShape = ({_RectShapeStub: _RectShapeStub_result} as RectShape) return value } + readCaretOffset(): CaretOffset { + let valueDeserializer : Deserializer = this + const index_result : number = (valueDeserializer.readNumber() as number) + const x_result : number = (valueDeserializer.readNumber() as number) + const y_result : number = (valueDeserializer.readNumber() as number) + let value : CaretOffset = ({index: index_result,x: x_result,y: y_result} as CaretOffset) + return value + } + readDirectionalEdgesT(): DirectionalEdgesT { + let valueDeserializer : Deserializer = this + const start_result : number = (valueDeserializer.readNumber() as number) + const end_result : number = (valueDeserializer.readNumber() as number) + const top_result : number = (valueDeserializer.readNumber() as number) + const bottom_result : number = (valueDeserializer.readNumber() as number) + let value : DirectionalEdgesT = ({start: start_result,end: end_result,top: top_result,bottom: bottom_result} as DirectionalEdgesT) + return value + } + readMeasureResult(): MeasureResult { + let valueDeserializer : Deserializer = this + const width_result : number = (valueDeserializer.readNumber() as number) + const height_result : number = (valueDeserializer.readNumber() as number) + let value : MeasureResult = ({width: width_result,height: height_result} as MeasureResult) + return value + } readConstraintSizeOptions(): ConstraintSizeOptions { let valueDeserializer : Deserializer = this const minWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7742,23 +8013,24 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array):GestureJudgeResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBaseGestureEvent(event); -_argsSerializer.writeGestureRecognizer(current); -_argsSerializer.writeInt32(recognizers.length as int32); -for (let i = 0; i < recognizers.length; i++) { - const recognizers_element : GestureRecognizer = recognizers[i]; - _argsSerializer.writeGestureRecognizer(recognizers_element); -} -let _continuationValue : GestureJudgeResult | undefined; -const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureJudgeResult); } + return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array):GestureJudgeResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBaseGestureEvent(event); + _argsSerializer.writeGestureRecognizer(current); + _argsSerializer.writeInt32(recognizers.length as int32); + for (let i = 0; i < recognizers.length; i++) { + const recognizers_element : GestureRecognizer = recognizers[i]; + _argsSerializer.writeGestureRecognizer(recognizers_element); + } + let _continuationValue : GestureJudgeResult | undefined; + const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureJudgeResult); } } readAccessibilityOptions(): AccessibilityOptions { let valueDeserializer : Deserializer = this @@ -9554,14 +9826,15 @@ return (_continuationValue as GestureJudgeResult); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (transitionIn: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(transitionIn); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (transitionIn: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(transitionIn); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readForegroundBlurStyleOptions(): ForegroundBlurStyleOptions { let valueDeserializer : Deserializer = this @@ -9772,15 +10045,6 @@ return; } let value : DrawingLattice = ({_DrawingLatticeStub: _DrawingLatticeStub_result} as DrawingLattice) return value } - readRectResult(): RectResult { - let valueDeserializer : Deserializer = this - const x_result : number = (valueDeserializer.readNumber() as number) - const y_result : number = (valueDeserializer.readNumber() as number) - const width_result : number = (valueDeserializer.readNumber() as number) - const height_result : number = (valueDeserializer.readNumber() as number) - let value : RectResult = ({x: x_result,y: y_result,width: width_result,height: height_result} as RectResult) - return value - } readDrawModifier(): DrawModifier { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -9792,11 +10056,32 @@ return; } let value : IntentionCode = ({_IntentionCodeStub: _IntentionCodeStub_result} as IntentionCode) return value } + readSummary(): Summary { + let valueDeserializer : Deserializer = this + const _SummaryStub_result : string = (valueDeserializer.readString() as string) + let value : Summary = ({_SummaryStub: _SummaryStub_result} as Summary) + return value + } readUnifiedData(): UnifiedData { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return UnifiedDataInternal.fromPtr(ptr) } + readTouchObject(): TouchObject { + let valueDeserializer : Deserializer = this + const type_result : TouchType = (valueDeserializer.readInt32() as TouchType) + const id_result : number = (valueDeserializer.readNumber() as number) + const displayX_result : number = (valueDeserializer.readNumber() as number) + const displayY_result : number = (valueDeserializer.readNumber() as number) + const windowX_result : number = (valueDeserializer.readNumber() as number) + const windowY_result : number = (valueDeserializer.readNumber() as number) + const screenX_result : number = (valueDeserializer.readNumber() as number) + const screenY_result : number = (valueDeserializer.readNumber() as number) + const x_result : number = (valueDeserializer.readNumber() as number) + const y_result : number = (valueDeserializer.readNumber() as number) + let value : TouchObject = ({type: type_result,id: id_result,displayX: displayX_result,displayY: displayY_result,windowX: windowX_result,windowY: windowY_result,screenX: screenX_result,screenY: screenY_result,x: x_result,y: y_result} as TouchObject) + return value + } readColumnSplitDividerStyle(): ColumnSplitDividerStyle { let valueDeserializer : Deserializer = this const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -9859,11 +10144,39 @@ return; } let ptr : KPointer = valueDeserializer.readPointer() return CanvasRenderingContext2DInternal.fromPtr(ptr) } + readOffscreenCanvasRenderingContext2D(): OffscreenCanvasRenderingContext2D { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return OffscreenCanvasRenderingContext2DInternal.fromPtr(ptr) + } + readRenderingContextSettings(): RenderingContextSettings { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return RenderingContextSettingsInternal.fromPtr(ptr) + } readImageBitmap(): ImageBitmap { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return ImageBitmapInternal.fromPtr(ptr) } + readTextMetrics(): TextMetrics { + let valueDeserializer : Deserializer = this + const actualBoundingBoxAscent_result : number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxDescent_result : number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxLeft_result : number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxRight_result : number = (valueDeserializer.readNumber() as number) + const alphabeticBaseline_result : number = (valueDeserializer.readNumber() as number) + const emHeightAscent_result : number = (valueDeserializer.readNumber() as number) + const emHeightDescent_result : number = (valueDeserializer.readNumber() as number) + const fontBoundingBoxAscent_result : number = (valueDeserializer.readNumber() as number) + const fontBoundingBoxDescent_result : number = (valueDeserializer.readNumber() as number) + const hangingBaseline_result : number = (valueDeserializer.readNumber() as number) + const ideographicBaseline_result : number = (valueDeserializer.readNumber() as number) + const width_result : number = (valueDeserializer.readNumber() as number) + const height_result : number = (valueDeserializer.readNumber() as number) + let value : TextMetrics = ({actualBoundingBoxAscent: actualBoundingBoxAscent_result,actualBoundingBoxDescent: actualBoundingBoxDescent_result,actualBoundingBoxLeft: actualBoundingBoxLeft_result,actualBoundingBoxRight: actualBoundingBoxRight_result,alphabeticBaseline: alphabeticBaseline_result,emHeightAscent: emHeightAscent_result,emHeightDescent: emHeightDescent_result,fontBoundingBoxAscent: fontBoundingBoxAscent_result,fontBoundingBoxDescent: fontBoundingBoxDescent_result,hangingBaseline: hangingBaseline_result,ideographicBaseline: ideographicBaseline_result,width: width_result,height: height_result} as TextMetrics) + return value + } readImageData(): ImageData { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -10030,6 +10343,9 @@ return; } let value : CalendarDialogOptions = ({hintRadius: hintRadius_result,selected: selected_result,onAccept: onAccept_result,onCancel: onCancel_result,onChange: onChange_result,backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,acceptButtonStyle: acceptButtonStyle_result,cancelButtonStyle: cancelButtonStyle_result,onDidAppear: onDidAppear_result,onDidDisappear: onDidDisappear_result,onWillAppear: onWillAppear_result,onWillDisappear: onWillDisappear_result,shadow: shadow_result,enableHoverMode: enableHoverMode_result,hoverModeArea: hoverModeArea_result} as CalendarDialogOptions) return value } + readCalendarPickerAttribute(): CalendarPickerAttribute { + throw new Error("Interface with functions is not supported") + } readCalendarController(): CalendarController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -10189,6 +10505,9 @@ return; } let value : BadgeStyle = ({color: color_result,fontSize: fontSize_result,badgeSize: badgeSize_result,badgeColor: badgeColor_result,borderColor: borderColor_result,borderWidth: borderWidth_result,fontWeight: fontWeight_result} as BadgeStyle) return value } + readAlphabetIndexerAttribute(): AlphabetIndexerAttribute { + throw new Error("Interface with functions is not supported") + } readAlertDialogParamWithOptions(): AlertDialogParamWithOptions { let valueDeserializer : Deserializer = this const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -12159,14 +12478,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSnapshotOptions(): SnapshotOptions { let valueDeserializer : Deserializer = this @@ -12191,29 +12511,31 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (result: PixelMap):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePixelMap(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (result: PixelMap):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePixelMap(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RangeUpdate(isSync: boolean = false): Callback_RangeUpdate { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: int32, mark: KPointer, end: int32):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(index); -_argsSerializer.writePointer(mark); -_argsSerializer.writeInt32(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: int32, mark: KPointer, end: int32):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(index); + _argsSerializer.writePointer(mark); + _argsSerializer.writeInt32(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDoubleAnimationParam(): DoubleAnimationParam { let valueDeserializer : Deserializer = this @@ -12277,77 +12599,82 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (options: WithThemeOptions):WithThemeAttribute => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWithThemeOptions(options); -let _continuationValue : WithThemeAttribute | undefined; -const _continuationCallback : ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WithThemeAttribute); } + return (options: WithThemeOptions):WithThemeAttribute => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWithThemeOptions(options); + let _continuationValue : WithThemeAttribute | undefined; + const _continuationCallback : ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WithThemeAttribute); } } readType_NavigationAttribute_customNavContentTransition_delegate(isSync: boolean = false): ((from: NavContentInfo,to: NavContentInfo,operation: NavigationOperation) => NavigationAnimatedTransition | undefined) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation):NavigationAnimatedTransition | undefined => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavContentInfo(from); -_argsSerializer.writeNavContentInfo(to); -_argsSerializer.writeInt32((operation.valueOf() as int32)); -let _continuationValue : NavigationAnimatedTransition | undefined; -const _continuationCallback : ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as NavigationAnimatedTransition | undefined); } + return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation):NavigationAnimatedTransition | undefined => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavContentInfo(from); + _argsSerializer.writeNavContentInfo(to); + _argsSerializer.writeInt32((operation.valueOf() as int32)); + let _continuationValue : NavigationAnimatedTransition | undefined; + const _continuationCallback : ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as NavigationAnimatedTransition | undefined); } } readSliderTriggerChangeCallback(isSync: boolean = false): SliderTriggerChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: number, mode: SliderChangeMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(value); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: number, mode: SliderChangeMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(value); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPageTransitionCallback(isSync: boolean = false): PageTransitionCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (type: RouteType, progress: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((type.valueOf() as int32)); -_argsSerializer.writeNumber(progress); -(isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (type: RouteType, progress: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((type.valueOf() as int32)); + _argsSerializer.writeNumber(progress); + (isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnScrollCallback(isSync: boolean = false): OnScrollCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (scrollOffset: number, scrollState: ScrollState):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(scrollOffset); -_argsSerializer.writeInt32((scrollState.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (scrollOffset: number, scrollState: ScrollState):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(scrollOffset); + _argsSerializer.writeInt32((scrollState.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIsolatedOptions(): IsolatedOptions { let valueDeserializer : Deserializer = this @@ -12360,17 +12687,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (options: IsolatedOptions):IsolatedComponentAttribute => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIsolatedOptions(options); -let _continuationValue : IsolatedComponentAttribute | undefined; -const _continuationCallback : ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as IsolatedComponentAttribute); } + return (options: IsolatedOptions):IsolatedComponentAttribute => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIsolatedOptions(options); + let _continuationValue : IsolatedComponentAttribute | undefined; + const _continuationCallback : ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as IsolatedComponentAttribute); } } readWithThemeAttribute(): WithThemeAttribute { let value : WithThemeAttribute = ({} as WithThemeAttribute) @@ -12380,297 +12708,315 @@ return (_continuationValue as IsolatedComponentAttribute); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: WithThemeAttribute):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWithThemeAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WithThemeAttribute):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWithThemeAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_WebResourceResponse_Void(isSync: boolean = false): ((value: WebResourceResponse) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: WebResourceResponse):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebResourceResponse(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WebResourceResponse):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebResourceResponse(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_WebKeyboardOptions_Void(isSync: boolean = false): ((value: WebKeyboardOptions) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: WebKeyboardOptions):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebKeyboardOptions(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WebKeyboardOptions):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebKeyboardOptions(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Union_CustomBuilder_DragItemInfo_Void(isSync: boolean = false): ((value: CustomBuilder | DragItemInfo) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: CustomBuilder | DragItemInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.FUNCTION == value_type))) { - _argsSerializer.writeInt8(0 as int32); - const value_0 = value as CustomBuilder; - _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1 as int32); - const value_1 = value as DragItemInfo; - _argsSerializer.writeDragItemInfo(value_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CustomBuilder | DragItemInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.FUNCTION == value_type) { + _argsSerializer.writeInt8(0 as int32); + const value_0 = value as CustomBuilder; + _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); + } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1 as int32); + const value_1 = value as DragItemInfo; + _argsSerializer.writeDragItemInfo(value_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Tuple_Number_Number_Void(isSync: boolean = false): ((value: [ number, number ]) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: [ number, number ]):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_0 = value[0]; -_argsSerializer.writeNumber(value_0); -const value_1 = value[1]; -_argsSerializer.writeNumber(value_1); -(isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: [ number, number ]):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_0 = value[0]; + _argsSerializer.writeNumber(value_0); + const value_1 = value[1]; + _argsSerializer.writeNumber(value_1); + (isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Tuple_Number_Number_Number_Number_Void(isSync: boolean = false): ((value: [ number, number, number, number ]) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: [ number, number, number, number ]):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_0 = value[0]; -_argsSerializer.writeNumber(value_0); -const value_1 = value[1]; -_argsSerializer.writeNumber(value_1); -const value_2 = value[2]; -_argsSerializer.writeNumber(value_2); -const value_3 = value[3]; -_argsSerializer.writeNumber(value_3); -(isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: [ number, number, number, number ]):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_0 = value[0]; + _argsSerializer.writeNumber(value_0); + const value_1 = value[1]; + _argsSerializer.writeNumber(value_1); + const value_2 = value[2]; + _argsSerializer.writeNumber(value_2); + const value_3 = value[3]; + _argsSerializer.writeNumber(value_3); + (isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_TouchResult_Void(isSync: boolean = false): ((value: TouchResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: TouchResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TouchResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_String_Unknown_Void(isSync: boolean = false): ((name: string,param: object) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (name: string, param: object):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(name); -_argsSerializer.writeCustomObject("Any", param); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (name: string, param: object):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(name); + _argsSerializer.writeCustomObject("Any", param); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Pointer_Void(isSync: boolean = false): ((value: KPointer) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: KPointer):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePointer(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: KPointer):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_TabContentAnimatedTransition_Void(isSync: boolean = false): ((value: TabContentAnimatedTransition | undefined) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value?: TabContentAnimatedTransition | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type as int32); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeTabContentAnimatedTransition(value_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: TabContentAnimatedTransition | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type as int32); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeTabContentAnimatedTransition(value_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_StyledString_Opt_Array_String_Void(isSync: boolean = false): ((value?: StyledString | undefined,error?: Array | undefined) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value?: StyledString | undefined, error?: Array | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type as int32); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeStyledString(value_value); -} -let error_type : int32 = RuntimeType.UNDEFINED; -error_type = runtimeType(error); -_argsSerializer.writeInt8(error_type as int32); -if ((RuntimeType.UNDEFINED) != (error_type)) { - const error_value = error!; - _argsSerializer.writeInt32(error_value.length as int32); - for (let i = 0; i < error_value.length; i++) { - const error_value_element : string = error_value[i]; - _argsSerializer.writeString(error_value_element); - } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: StyledString | undefined, error?: Array | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type as int32); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeStyledString(value_value); + } + let error_type : int32 = RuntimeType.UNDEFINED; + error_type = runtimeType(error); + _argsSerializer.writeInt8(error_type as int32); + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error!; + _argsSerializer.writeInt32(error_value.length as int32); + for (let i = 0; i < error_value.length; i++) { + const error_value_element : string = error_value[i]; + _argsSerializer.writeString(error_value_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_NavigationAnimatedTransition_Void(isSync: boolean = false): ((value: NavigationAnimatedTransition | undefined) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value?: NavigationAnimatedTransition | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type as int32); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeNavigationAnimatedTransition(value_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: NavigationAnimatedTransition | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type as int32); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeNavigationAnimatedTransition(value_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_Array_String_Void(isSync: boolean = false): ((error?: Array | undefined) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (error?: Array | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let error_type : int32 = RuntimeType.UNDEFINED; -error_type = runtimeType(error); -_argsSerializer.writeInt8(error_type as int32); -if ((RuntimeType.UNDEFINED) != (error_type)) { - const error_value = error!; - _argsSerializer.writeInt32(error_value.length as int32); - for (let i = 0; i < error_value.length; i++) { - const error_value_element : string = error_value[i]; - _argsSerializer.writeString(error_value_element); - } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (error?: Array | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let error_type : int32 = RuntimeType.UNDEFINED; + error_type = runtimeType(error); + _argsSerializer.writeInt8(error_type as int32); + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error!; + _argsSerializer.writeInt32(error_value.length as int32); + for (let i = 0; i < error_value.length; i++) { + const error_value_element : string = error_value[i]; + _argsSerializer.writeString(error_value_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_OnScrollFrameBeginHandlerResult_Void(isSync: boolean = false): ((value: OnScrollFrameBeginHandlerResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: OnScrollFrameBeginHandlerResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScrollFrameBeginHandlerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: OnScrollFrameBeginHandlerResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScrollFrameBeginHandlerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_OffsetResult_Void(isSync: boolean = false): ((value: OffsetResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: OffsetResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOffsetResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: OffsetResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOffsetResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (titleMode: NavigationTitleMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((titleMode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (titleMode: NavigationTitleMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((titleMode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationMode_Void(isSync: boolean = false): ((mode: NavigationMode) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (mode: NavigationMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: NavigationMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Number_offsetRemain_Void(isSync: boolean = false): ((value: Literal_Number_offsetRemain) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: Literal_Number_offsetRemain):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_offsetRemain = value.offsetRemain; -_argsSerializer.writeNumber(value_offsetRemain); -(isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: Literal_Number_offsetRemain):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_offsetRemain = value.offsetRemain; + _argsSerializer.writeNumber(value_offsetRemain); + (isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIsolatedComponentAttribute(): IsolatedComponentAttribute { throw new Error("Interface with functions is not supported") @@ -12679,110 +13025,118 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: IsolatedComponentAttribute):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIsolatedComponentAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: IsolatedComponentAttribute):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIsolatedComponentAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_HitTestMode_Void(isSync: boolean = false): ((value: HitTestMode) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: HitTestMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((value.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: HitTestMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((value.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_GestureRecognizer_Void(isSync: boolean = false): ((value: GestureRecognizer) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: GestureRecognizer):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureRecognizer(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: GestureRecognizer):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureRecognizer(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_GestureJudgeResult_Void(isSync: boolean = false): ((value: GestureJudgeResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: GestureJudgeResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((value.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: GestureJudgeResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((value.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_CustomBuilder_Void(isSync: boolean = false): ((value: CustomBuilder) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: CustomBuilder):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CustomBuilder):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ComputedBarAttribute_Void(isSync: boolean = false): ((value: ComputedBarAttribute) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: ComputedBarAttribute):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeComputedBarAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: ComputedBarAttribute):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeComputedBarAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Array_String_Void(isSync: boolean = false): ((value: Array) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value.length as int32); -for (let i = 0; i < value.length; i++) { - const value_element : string = value[i]; - _argsSerializer.writeString(value_element); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value.length as int32); + for (let i = 0; i < value.length; i++) { + const value_element : string = value[i]; + _argsSerializer.writeString(value_element); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readButtonTriggerClickCallback(isSync: boolean = false): ButtonTriggerClickCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (xPos: number, yPos: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xPos); -_argsSerializer.writeNumber(yPos); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (xPos: number, yPos: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xPos); + _argsSerializer.writeNumber(yPos); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLinearIndicatorController(): LinearIndicatorController { let valueDeserializer : Deserializer = this @@ -12823,11 +13177,6 @@ return; } let value : ImageAttachmentInterface = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachmentInterface) return value } - readMutableStyledString(): MutableStyledString { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return MutableStyledStringInternal.fromPtr(ptr) - } readUrlStyle(): UrlStyle { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -13062,23 +13411,24 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: Literal_Number_code_Want_want):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const parameter_code = parameter.code; -_argsSerializer.writeNumber(parameter_code); -const parameter_want = parameter.want; -let parameter_want_type : int32 = RuntimeType.UNDEFINED; -parameter_want_type = runtimeType(parameter_want); -_argsSerializer.writeInt8(parameter_want_type as int32); -if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { - const parameter_want_value = parameter_want!; - _argsSerializer.writeWant(parameter_want_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: Literal_Number_code_Want_want):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const parameter_code = parameter.code; + _argsSerializer.writeNumber(parameter_code); + const parameter_want = parameter.want; + let parameter_want_type : int32 = RuntimeType.UNDEFINED; + parameter_want_type = runtimeType(parameter_want); + _argsSerializer.writeInt8(parameter_want_type as int32); + if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { + const parameter_want_value = parameter_want!; + _argsSerializer.writeWant(parameter_want_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readReceiveCallback(): ReceiveCallback { let valueDeserializer : Deserializer = this @@ -13218,20 +13568,21 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Object | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeCustomObject("Object", event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Object | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeCustomObject("Object", event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readXComponentOptions(): XComponentOptions { let valueDeserializer : Deserializer = this @@ -13263,14 +13614,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (details: AdsBlockedDetails):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeAdsBlockedDetails(details); -(isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (details: AdsBlockedDetails):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeAdsBlockedDetails(details); + (isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWebKeyboardOptions(): WebKeyboardOptions { let valueDeserializer : Deserializer = this @@ -13311,30 +13663,32 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (keyboardCallbackInfo: WebKeyboardCallbackInfo):WebKeyboardOptions => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); -let _continuationValue : WebKeyboardOptions | undefined; -const _continuationCallback : ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WebKeyboardOptions); } + return (keyboardCallbackInfo: WebKeyboardCallbackInfo):WebKeyboardOptions => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); + let _continuationValue : WebKeyboardOptions | undefined; + const _continuationCallback : ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WebKeyboardOptions); } } readOnViewportFitChangedCallback(isSync: boolean = false): OnViewportFitChangedCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (viewportFit: ViewportFit):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((viewportFit.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (viewportFit: ViewportFit):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((viewportFit.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readExpandedMenuItemOptions(): ExpandedMenuItemOptions { let valueDeserializer : Deserializer = this @@ -13376,13 +13730,14 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRenderProcessNotRespondingData(): RenderProcessNotRespondingData { let valueDeserializer : Deserializer = this @@ -13396,14 +13751,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (data: RenderProcessNotRespondingData):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRenderProcessNotRespondingData(data); -(isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (data: RenderProcessNotRespondingData):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRenderProcessNotRespondingData(data); + (isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeMediaPlayerConfig(): NativeMediaPlayerConfig { let valueDeserializer : Deserializer = this @@ -13416,17 +13772,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (webResourceRequest: WebResourceRequest):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebResourceRequest(webResourceRequest); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (webResourceRequest: WebResourceRequest):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebResourceRequest(webResourceRequest); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readNativeEmbedTouchInfo(): NativeEmbedTouchInfo { let valueDeserializer : Deserializer = this @@ -13458,14 +13815,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: NativeEmbedTouchInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedTouchInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: NativeEmbedTouchInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedTouchInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeEmbedVisibilityInfo(): NativeEmbedVisibilityInfo { let valueDeserializer : Deserializer = this @@ -13478,14 +13836,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeEmbedDataInfo(): NativeEmbedDataInfo { let valueDeserializer : Deserializer = this @@ -13524,14 +13883,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: NativeEmbedDataInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedDataInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: NativeEmbedDataInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedDataInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readScriptItem(): ScriptItem { let valueDeserializer : Deserializer = this @@ -13556,14 +13916,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (details: IntelligentTrackingPreventionDetails):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIntelligentTrackingPreventionDetails(details); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (details: IntelligentTrackingPreventionDetails):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIntelligentTrackingPreventionDetails(details); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLoadCommittedDetails(): LoadCommittedDetails { let valueDeserializer : Deserializer = this @@ -13579,27 +13940,29 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (loadCommittedDetails: LoadCommittedDetails):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); -(isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (loadCommittedDetails: LoadCommittedDetails):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); + (isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSafeBrowsingCheckResultCallback(isSync: boolean = false): OnSafeBrowsingCheckResultCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (threatType: ThreatType):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((threatType.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (threatType: ThreatType):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((threatType.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnOverScrollEvent(): OnOverScrollEvent { let valueDeserializer : Deserializer = this @@ -13612,14 +13975,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnOverScrollEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnOverScrollEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnOverScrollEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnOverScrollEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnLoadInterceptEvent(): OnLoadInterceptEvent { let valueDeserializer : Deserializer = this @@ -13631,17 +13995,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnLoadInterceptEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnLoadInterceptEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnLoadInterceptEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnLoadInterceptEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readLargestContentfulPaint(): LargestContentfulPaint { let valueDeserializer : Deserializer = this @@ -13694,14 +14059,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (largestContentfulPaint: LargestContentfulPaint):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); -(isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (largestContentfulPaint: LargestContentfulPaint):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); + (isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFirstMeaningfulPaint(): FirstMeaningfulPaint { let valueDeserializer : Deserializer = this @@ -13726,14 +14092,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (firstMeaningfulPaint: FirstMeaningfulPaint):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); -(isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (firstMeaningfulPaint: FirstMeaningfulPaint):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); + (isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFirstContentfulPaintEvent(): OnFirstContentfulPaintEvent { let valueDeserializer : Deserializer = this @@ -13746,14 +14113,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnFirstContentfulPaintEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFirstContentfulPaintEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnFirstContentfulPaintEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFirstContentfulPaintEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnAudioStateChangedEvent(): OnAudioStateChangedEvent { let valueDeserializer : Deserializer = this @@ -13765,14 +14133,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnAudioStateChangedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnAudioStateChangedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnAudioStateChangedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnAudioStateChangedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnDataResubmittedEvent(): OnDataResubmittedEvent { let valueDeserializer : Deserializer = this @@ -13784,14 +14153,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnDataResubmittedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnDataResubmittedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnDataResubmittedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnDataResubmittedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageVisibleEvent(): OnPageVisibleEvent { let valueDeserializer : Deserializer = this @@ -13803,14 +14173,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPageVisibleEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageVisibleEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageVisibleEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageVisibleEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFaviconReceivedEvent(): OnFaviconReceivedEvent { let valueDeserializer : Deserializer = this @@ -13822,14 +14193,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnFaviconReceivedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFaviconReceivedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnFaviconReceivedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFaviconReceivedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTouchIconUrlReceivedEvent(): OnTouchIconUrlReceivedEvent { let valueDeserializer : Deserializer = this @@ -13842,14 +14214,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnTouchIconUrlReceivedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnTouchIconUrlReceivedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnWindowNewEvent(): OnWindowNewEvent { let valueDeserializer : Deserializer = this @@ -13864,14 +14237,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnWindowNewEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnWindowNewEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnWindowNewEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnWindowNewEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnClientAuthenticationEvent(): OnClientAuthenticationEvent { let valueDeserializer : Deserializer = this @@ -13897,14 +14271,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnClientAuthenticationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnClientAuthenticationEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnClientAuthenticationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnClientAuthenticationEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSslErrorEvent(): SslErrorEvent { let valueDeserializer : Deserializer = this @@ -13922,14 +14297,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (sslErrorEvent: SslErrorEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSslErrorEvent(sslErrorEvent); -(isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (sslErrorEvent: SslErrorEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSslErrorEvent(sslErrorEvent); + (isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSslErrorEventReceiveEvent(): OnSslErrorEventReceiveEvent { let valueDeserializer : Deserializer = this @@ -13954,14 +14330,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnSslErrorEventReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnSslErrorEventReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnScrollEvent(): OnScrollEvent { let valueDeserializer : Deserializer = this @@ -13974,14 +14351,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnScrollEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScrollEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScrollEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScrollEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSearchResultReceiveEvent(): OnSearchResultReceiveEvent { let valueDeserializer : Deserializer = this @@ -13995,26 +14373,28 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnSearchResultReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnSearchResultReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnSearchResultReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnSearchResultReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContextMenuHideCallback(isSync: boolean = false): OnContextMenuHideCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return ():void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContextMenuShowEvent(): OnContextMenuShowEvent { let valueDeserializer : Deserializer = this @@ -14027,17 +14407,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnContextMenuShowEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnContextMenuShowEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnContextMenuShowEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnContextMenuShowEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScreenCaptureRequestEvent(): OnScreenCaptureRequestEvent { let valueDeserializer : Deserializer = this @@ -14049,14 +14430,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnScreenCaptureRequestEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScreenCaptureRequestEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScreenCaptureRequestEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScreenCaptureRequestEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPermissionRequestEvent(): OnPermissionRequestEvent { let valueDeserializer : Deserializer = this @@ -14068,14 +14450,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPermissionRequestEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPermissionRequestEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPermissionRequestEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPermissionRequestEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnInterceptRequestEvent(): OnInterceptRequestEvent { let valueDeserializer : Deserializer = this @@ -14087,17 +14470,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnInterceptRequestEvent):WebResourceResponse => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnInterceptRequestEvent(parameter); -let _continuationValue : WebResourceResponse | undefined; -const _continuationCallback : ((value: WebResourceResponse) => void) = (value: WebResourceResponse):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WebResourceResponse); } + return (parameter: OnInterceptRequestEvent):WebResourceResponse => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnInterceptRequestEvent(parameter); + let _continuationValue : WebResourceResponse | undefined; + const _continuationCallback : ((value: WebResourceResponse) => void) = (value: WebResourceResponse):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WebResourceResponse); } } readOnHttpAuthRequestEvent(): OnHttpAuthRequestEvent { let valueDeserializer : Deserializer = this @@ -14111,17 +14495,18 @@ return (_continuationValue as WebResourceResponse); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnHttpAuthRequestEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnHttpAuthRequestEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnHttpAuthRequestEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnHttpAuthRequestEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScaleChangeEvent(): OnScaleChangeEvent { let valueDeserializer : Deserializer = this @@ -14134,14 +14519,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnScaleChangeEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScaleChangeEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScaleChangeEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScaleChangeEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFullScreenEnterEvent(): FullScreenEnterEvent { let valueDeserializer : Deserializer = this @@ -14167,14 +14553,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: FullScreenEnterEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFullScreenEnterEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: FullScreenEnterEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFullScreenEnterEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnResourceLoadEvent(): OnResourceLoadEvent { let valueDeserializer : Deserializer = this @@ -14186,59 +14573,62 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnResourceLoadEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnResourceLoadEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnResourceLoadEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnResourceLoadEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readType_WebAttribute_onFileSelectorShow_callback(isSync: boolean = false): ((event?: Literal_Function_callback__Object_fileSelector) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Literal_Function_callback__Object_fileSelector | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_callback_ = event_value.callback_; - _argsSerializer.writeFunction(event_value_callback_); - const event_value_fileSelector = event_value.fileSelector; - _argsSerializer.writeCustomObject("Object", event_value_fileSelector); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Literal_Function_callback__Object_fileSelector | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_callback_ = event_value.callback_; + _argsSerializer.writeFunction(event_value_callback_); + const event_value_fileSelector = event_value.fileSelector; + _argsSerializer.writeCustomObject("Object", event_value_fileSelector); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Object_detail_Boolean(isSync: boolean = false): ((event?: Literal_Object_detail) => boolean) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Literal_Object_detail | undefined):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_detail = event_value.detail; - _argsSerializer.writeCustomObject("Object", event_value_detail); -} -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (event?: Literal_Object_detail | undefined):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_detail = event_value.detail; + _argsSerializer.writeCustomObject("Object", event_value_detail); + } + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnShowFileSelectorEvent(): OnShowFileSelectorEvent { let valueDeserializer : Deserializer = this @@ -14251,17 +14641,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnShowFileSelectorEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnShowFileSelectorEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnShowFileSelectorEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnShowFileSelectorEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnRenderExitedEvent(): OnRenderExitedEvent { let valueDeserializer : Deserializer = this @@ -14273,70 +14664,73 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnRenderExitedEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnRenderExitedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnRenderExitedEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnRenderExitedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Function_handler_Object_error_Void(isSync: boolean = false): ((event?: Literal_Function_handler_Object_error) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Literal_Function_handler_Object_error | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_handler = event_value.handler; - _argsSerializer.writeFunction(event_value_handler); - const event_value_error = event_value.error; - _argsSerializer.writeCustomObject("Object", event_value_error); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Literal_Function_handler_Object_error | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_handler = event_value.handler; + _argsSerializer.writeFunction(event_value_handler); + const event_value_error = event_value.error; + _argsSerializer.writeCustomObject("Object", event_value_error); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readType_WebAttribute_onUrlLoadIntercept_callback(isSync: boolean = false): ((event?: Literal_Union_String_WebResourceRequest_data) => boolean) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Literal_Union_String_WebResourceRequest_data | undefined):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_data = event_value.data; - let event_value_data_type : int32 = RuntimeType.UNDEFINED; - event_value_data_type = runtimeType(event_value_data); - if (((RuntimeType.STRING == event_value_data_type))) { - _argsSerializer.writeInt8(0 as int32); - const event_value_data_0 = event_value_data as string; - _argsSerializer.writeString(event_value_data_0); - } - else if (((RuntimeType.OBJECT == event_value_data_type))) { - _argsSerializer.writeInt8(1 as int32); - const event_value_data_1 = event_value_data as WebResourceRequest; - _argsSerializer.writeWebResourceRequest(event_value_data_1); - } -} -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (event?: Literal_Union_String_WebResourceRequest_data | undefined):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_data = event_value.data; + let event_value_data_type : int32 = RuntimeType.UNDEFINED; + event_value_data_type = runtimeType(event_value_data); + if (RuntimeType.STRING == event_value_data_type) { + _argsSerializer.writeInt8(0 as int32); + const event_value_data_0 = event_value_data as string; + _argsSerializer.writeString(event_value_data_0); + } + else if (RuntimeType.OBJECT == event_value_data_type) { + _argsSerializer.writeInt8(1 as int32); + const event_value_data_1 = event_value_data as WebResourceRequest; + _argsSerializer.writeWebResourceRequest(event_value_data_1); + } + } + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnRefreshAccessedHistoryEvent(): OnRefreshAccessedHistoryEvent { let valueDeserializer : Deserializer = this @@ -14349,14 +14743,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnRefreshAccessedHistoryEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnRefreshAccessedHistoryEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnDownloadStartEvent(): OnDownloadStartEvent { let valueDeserializer : Deserializer = this @@ -14372,14 +14767,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnDownloadStartEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnDownloadStartEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnDownloadStartEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnDownloadStartEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnHttpErrorReceiveEvent(): OnHttpErrorReceiveEvent { let valueDeserializer : Deserializer = this @@ -14392,14 +14788,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnHttpErrorReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnHttpErrorReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnHttpErrorReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnHttpErrorReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnErrorReceiveEvent(): OnErrorReceiveEvent { let valueDeserializer : Deserializer = this @@ -14412,14 +14809,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnErrorReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnErrorReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnErrorReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnErrorReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnConsoleEvent(): OnConsoleEvent { let valueDeserializer : Deserializer = this @@ -14431,17 +14829,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnConsoleEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnConsoleEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnConsoleEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnConsoleEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnPromptEvent(): OnPromptEvent { let valueDeserializer : Deserializer = this @@ -14456,17 +14855,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPromptEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPromptEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnPromptEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPromptEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnConfirmEvent(): OnConfirmEvent { let valueDeserializer : Deserializer = this @@ -14480,17 +14880,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnConfirmEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnConfirmEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnConfirmEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnConfirmEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnBeforeUnloadEvent(): OnBeforeUnloadEvent { let valueDeserializer : Deserializer = this @@ -14504,17 +14905,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnBeforeUnloadEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnBeforeUnloadEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnBeforeUnloadEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnBeforeUnloadEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnAlertEvent(): OnAlertEvent { let valueDeserializer : Deserializer = this @@ -14528,17 +14930,18 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnAlertEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnAlertEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnAlertEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnAlertEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnGeolocationShowEvent(): OnGeolocationShowEvent { let valueDeserializer : Deserializer = this @@ -14551,14 +14954,15 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnGeolocationShowEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnGeolocationShowEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnGeolocationShowEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnGeolocationShowEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTitleReceiveEvent(): OnTitleReceiveEvent { let valueDeserializer : Deserializer = this @@ -14570,14 +14974,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnTitleReceiveEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnTitleReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnTitleReceiveEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnTitleReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnProgressChangeEvent(): OnProgressChangeEvent { let valueDeserializer : Deserializer = this @@ -14589,14 +14994,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnProgressChangeEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnProgressChangeEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnProgressChangeEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnProgressChangeEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageBeginEvent(): OnPageBeginEvent { let valueDeserializer : Deserializer = this @@ -14608,14 +15014,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPageBeginEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageBeginEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageBeginEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageBeginEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageEndEvent(): OnPageEndEvent { let valueDeserializer : Deserializer = this @@ -14627,14 +15034,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: OnPageEndEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageEndEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageEndEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageEndEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWebMediaOptions(): WebMediaOptions { let valueDeserializer : Deserializer = this @@ -14749,11 +15157,6 @@ return; } let value : WebOptions = ({src: src_result,controller: controller_result,renderMode: renderMode_result,incognitoMode: incognitoMode_result,sharedRenderProcessToken: sharedRenderProcessToken_result} as WebOptions) return value } - readWebCookie(): WebCookie { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return WebCookieInternal.fromPtr(ptr) - } readHeader(): Header { let valueDeserializer : Deserializer = this const headerKey_result : string = (valueDeserializer.readString() as string) @@ -14771,14 +15174,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: PlaybackInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePlaybackInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PlaybackInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePlaybackInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPreparedInfo(): PreparedInfo { let valueDeserializer : Deserializer = this @@ -14790,14 +15194,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: PreparedInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePreparedInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PreparedInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePreparedInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFullscreenInfo(): FullscreenInfo { let valueDeserializer : Deserializer = this @@ -14809,14 +15214,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: FullscreenInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFullscreenInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: FullscreenInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFullscreenInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readVideoOptions(): VideoOptions { let valueDeserializer : Deserializer = this @@ -15105,59 +15511,61 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string | Array, index: number | Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type : int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0 as int32); - const value_0 = value as string; - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1 as int32); - const value_1 = value as Array; - _argsSerializer.writeInt32(value_1.length as int32); - for (let i = 0; i < value_1.length; i++) { - const value_1_element : string = value_1[i]; - _argsSerializer.writeString(value_1_element); + return (value: string | Array, index: number | Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type : int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0 as int32); + const value_0 = value as string; + _argsSerializer.writeString(value_0); } -} -let index_type : int32 = RuntimeType.UNDEFINED; -index_type = runtimeType(index); -if (((RuntimeType.NUMBER == index_type))) { - _argsSerializer.writeInt8(0 as int32); - const index_0 = index as number; - _argsSerializer.writeNumber(index_0); -} -else if (((RuntimeType.OBJECT == index_type))) { - _argsSerializer.writeInt8(1 as int32); - const index_1 = index as Array; - _argsSerializer.writeInt32(index_1.length as int32); - for (let i = 0; i < index_1.length; i++) { - const index_1_element : number = index_1[i]; - _argsSerializer.writeNumber(index_1_element); + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1 as int32); + const value_1 = value as Array; + _argsSerializer.writeInt32(value_1.length as int32); + for (let i = 0; i < value_1.length; i++) { + const value_1_element : string = value_1[i]; + _argsSerializer.writeString(value_1_element); + } } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + let index_type : int32 = RuntimeType.UNDEFINED; + index_type = runtimeType(index); + if (RuntimeType.NUMBER == index_type) { + _argsSerializer.writeInt8(0 as int32); + const index_0 = index as number; + _argsSerializer.writeNumber(index_0); + } + else if (RuntimeType.OBJECT == index_type) { + _argsSerializer.writeInt8(1 as int32); + const index_1 = index as Array; + _argsSerializer.writeInt32(index_1.length as int32); + for (let i = 0; i < index_1.length; i++) { + const index_1_element : number = index_1[i]; + _argsSerializer.writeNumber(index_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_String_Number_Void(isSync: boolean = false): ((value: string,index: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string, index: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, index: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextCascadePickerRangeContent(): TextCascadePickerRangeContent { let valueDeserializer : Deserializer = this @@ -15365,15 +15773,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (enterKey: EnterKeyType, event: SubmitEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((enterKey.valueOf() as int32)); -_argsSerializer.writeSubmitEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType, event: SubmitEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((enterKey.valueOf() as int32)); + _argsSerializer.writeSubmitEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextInputOptions(): TextInputOptions { let valueDeserializer : Deserializer = this @@ -15423,10 +15832,11 @@ return; } let value : TextInputOptions = ({placeholder: placeholder_result,text: text_result,controller: controller_result} as TextInputOptions) return value } - readLayoutManager(): LayoutManager { + readTextBox(): TextBox { let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return LayoutManagerInternal.fromPtr(ptr) + const _TextBoxStub_result : string = (valueDeserializer.readString() as string) + let value : TextBox = ({_TextBoxStub: _TextBoxStub_result} as TextBox) + return value } readStyledStringController(): StyledStringController { let valueDeserializer : Deserializer = this @@ -15466,48 +15876,51 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string, event: PasteEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -_argsSerializer.writePasteEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, event: PasteEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + _argsSerializer.writePasteEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextAreaSubmitCallback(isSync: boolean = false): TextAreaSubmitCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((enterKeyType.valueOf() as int32)); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeSubmitEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((enterKeyType.valueOf() as int32)); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeSubmitEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_EnterKeyType_Void(isSync: boolean = false): ((enterKey: EnterKeyType) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (enterKey: EnterKeyType):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((enterKey.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((enterKey.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextAreaOptions(): TextAreaOptions { let valueDeserializer : Deserializer = this @@ -15573,18 +15986,19 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (currentIndex: number, comingIndex: number):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(currentIndex); -_argsSerializer.writeNumber(comingIndex); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (currentIndex: number, comingIndex: number):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(currentIndex); + _argsSerializer.writeNumber(comingIndex); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readTabContentTransitionProxy(): TabContentTransitionProxy { let valueDeserializer : Deserializer = this @@ -15595,18 +16009,19 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: number, to: number):TabContentAnimatedTransition | undefined => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -let _continuationValue : TabContentAnimatedTransition | undefined; -const _continuationCallback : ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as TabContentAnimatedTransition | undefined); } + return (from: number, to: number):TabContentAnimatedTransition | undefined => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + let _continuationValue : TabContentAnimatedTransition | undefined; + const _continuationCallback : ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as TabContentAnimatedTransition | undefined); } } readBarGridColumnOptions(): BarGridColumnOptions { let valueDeserializer : Deserializer = this @@ -15652,29 +16067,31 @@ return (_continuationValue as TabContentAnimatedTransition | undefined); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, extraInfo: TabsAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: TabsAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTabsAnimationEndCallback(isSync: boolean = false): OnTabsAnimationEndCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, extraInfo: TabsAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: TabsAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabsAnimationEvent(): TabsAnimationEvent { let valueDeserializer : Deserializer = this @@ -15688,16 +16105,17 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(targetIndex); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(targetIndex); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabsOptions(): TabsOptions { let valueDeserializer : Deserializer = this @@ -15759,17 +16177,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selectedIndex: number, index: number, position: number, mainAxisLength: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(selectedIndex); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(position); -_argsSerializer.writeNumber(mainAxisLength); -(isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selectedIndex: number, index: number, position: number, mainAxisLength: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(selectedIndex); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(position); + _argsSerializer.writeNumber(mainAxisLength); + (isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSwiperContentTransitionProxy(): SwiperContentTransitionProxy { let valueDeserializer : Deserializer = this @@ -15793,29 +16212,31 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, extraInfo: SwiperAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: SwiperAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSwiperAnimationEndCallback(isSync: boolean = false): OnSwiperAnimationEndCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, extraInfo: SwiperAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: SwiperAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSwiperAnimationEvent(): SwiperAnimationEvent { let valueDeserializer : Deserializer = this @@ -15829,16 +16250,17 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(targetIndex); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(targetIndex); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIndicatorComponentController(): IndicatorComponentController { let valueDeserializer : Deserializer = this @@ -15916,15 +16338,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: number, mode: SliderChangeMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(value); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: number, mode: SliderChangeMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(value); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSliderOptions(): SliderOptions { let valueDeserializer : Deserializer = this @@ -16061,15 +16484,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, value: string):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeString(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, value: string):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeString(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSelectOption(): SelectOption { let valueDeserializer : Deserializer = this @@ -16117,14 +16541,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DeleteValue):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDeleteValue(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DeleteValue):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDeleteValue(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDeleteValue(): DeleteValue { let valueDeserializer : Deserializer = this @@ -16138,30 +16563,32 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: DeleteValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDeleteValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: DeleteValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDeleteValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_InsertValue_Void(isSync: boolean = false): ((parameter: InsertValue) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: InsertValue):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInsertValue(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: InsertValue):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInsertValue(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readInsertValue(): InsertValue { let valueDeserializer : Deserializer = this @@ -16174,17 +16601,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: InsertValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInsertValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: InsertValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInsertValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readTextDecorationOptions(): TextDecorationOptions { let valueDeserializer : Deserializer = this @@ -16227,90 +16655,88 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (content: string, event: PasteEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(content); -_argsSerializer.writePasteEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (content: string, event: PasteEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(content); + _argsSerializer.writePasteEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContentScrollCallback(isSync: boolean = false): OnContentScrollCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (totalOffsetX: number, totalOffsetY: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(totalOffsetX); -_argsSerializer.writeNumber(totalOffsetY); -(isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (totalOffsetX: number, totalOffsetY: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(totalOffsetX); + _argsSerializer.writeNumber(totalOffsetY); + (isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTextSelectionChangeCallback(isSync: boolean = false): OnTextSelectionChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (selectionStart: number, selectionEnd: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(selectionStart); -_argsSerializer.writeNumber(selectionEnd); -(isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readPreviewText(): PreviewText { - let valueDeserializer : Deserializer = this - const offset_result : number = (valueDeserializer.readNumber() as number) - const value_result : string = (valueDeserializer.readString() as string) - let value : PreviewText = ({offset: offset_result,value: value_result} as PreviewText) - return value + return (selectionStart: number, selectionEnd: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(selectionStart); + _argsSerializer.writeNumber(selectionEnd); + (isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEditableTextOnChangeCallback(isSync: boolean = false): EditableTextOnChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: string, previewText?: PreviewText | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -let previewText_type : int32 = RuntimeType.UNDEFINED; -previewText_type = runtimeType(previewText); -_argsSerializer.writeInt8(previewText_type as int32); -if ((RuntimeType.UNDEFINED) != (previewText_type)) { - const previewText_value = previewText!; - _argsSerializer.writePreviewText(previewText_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, previewText?: PreviewText | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + let previewText_type : int32 = RuntimeType.UNDEFINED; + previewText_type = runtimeType(previewText); + _argsSerializer.writeInt8(previewText_type as int32); + if ((RuntimeType.UNDEFINED) != (previewText_type)) { + const previewText_value = previewText!; + _argsSerializer.writePreviewText(previewText_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSearchSubmitCallback(isSync: boolean = false): SearchSubmitCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (searchContent: string, event?: SubmitEvent | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(searchContent); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeSubmitEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (searchContent: string, event?: SubmitEvent | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(searchContent); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeSubmitEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCaretStyle(): CaretStyle { let valueDeserializer : Deserializer = this @@ -16484,45 +16910,48 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(offset); -_argsSerializer.writeInt32((state.valueOf() as int32)); -let _continuationValue : OnScrollFrameBeginHandlerResult | undefined; -const _continuationCallback : ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as OnScrollFrameBeginHandlerResult); } + return (offset: number, state: ScrollState):OnScrollFrameBeginHandlerResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(offset); + _argsSerializer.writeInt32((state.valueOf() as int32)); + let _continuationValue : OnScrollFrameBeginHandlerResult | undefined; + const _continuationCallback : ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as OnScrollFrameBeginHandlerResult); } } readOnScrollEdgeCallback(isSync: boolean = false): OnScrollEdgeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (side: Edge):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((side.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (side: Edge):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((side.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ClickEvent_SaveButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent,result: SaveButtonOnClickResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ClickEvent, result: SaveButtonOnClickResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32((result.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: SaveButtonOnClickResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32((result.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSaveButtonOptions(): SaveButtonOptions { let valueDeserializer : Deserializer = this @@ -16610,14 +17039,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: CopyEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCopyEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: CopyEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCopyEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCutEvent(): CutEvent { let valueDeserializer : Deserializer = this @@ -16635,14 +17065,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: CutEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCutEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: CutEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCutEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorChangeValue(): RichEditorChangeValue { let valueDeserializer : Deserializer = this @@ -16672,17 +17103,18 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorChangeValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorChangeValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorChangeValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorChangeValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readSubmitEvent(): SubmitEvent { let valueDeserializer : Deserializer = this @@ -16693,15 +17125,16 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (enterKey: EnterKeyType, event: SubmitEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((enterKey.valueOf() as int32)); -_argsSerializer.writeSubmitEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType, event: SubmitEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((enterKey.valueOf() as int32)); + _argsSerializer.writeSubmitEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextDataDetectorConfig(): TextDataDetectorConfig { let valueDeserializer : Deserializer = this @@ -16768,20 +17201,21 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: PasteEvent | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writePasteEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: PasteEvent | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writePasteEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorDeleteValue(): RichEditorDeleteValue { let valueDeserializer : Deserializer = this @@ -16812,43 +17246,46 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorDeleteValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorDeleteValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorDeleteValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorDeleteValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_TextRange_Void(isSync: boolean = false): ((parameter: TextRange) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: TextRange):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextRange(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TextRange):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextRange(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RichEditorTextSpanResult_Void(isSync: boolean = false): ((parameter: RichEditorTextSpanResult) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorTextSpanResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorTextSpanResult(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: RichEditorTextSpanResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorTextSpanResult(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorInsertValue(): RichEditorInsertValue { let valueDeserializer : Deserializer = this @@ -16868,68 +17305,46 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorInsertValue):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorInsertValue(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorInsertValue):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorInsertValue(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_RichEditorRange_Void(isSync: boolean = false): ((parameter: RichEditorRange) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorRange):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorRange(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readRichEditorSelection(): RichEditorSelection { - let valueDeserializer : Deserializer = this - const selection_buf_value0 : number = (valueDeserializer.readNumber() as number) - const selection_buf_value1 : number = (valueDeserializer.readNumber() as number) - const selection_result : [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) - const spans_buf_length : int32 = valueDeserializer.readInt32() - let spans_buf : Array = new Array() - for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { - const spans_buf_buf_selector : int32 = valueDeserializer.readInt8() - let spans_buf_buf : RichEditorTextSpanResult | RichEditorImageSpanResult | undefined - if (spans_buf_buf_selector == 0) { - spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() - } - else if (spans_buf_buf_selector == 1) { - spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() - } - else { - throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") - } - spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) - } - const spans_result : Array = spans_buf - let value : RichEditorSelection = ({selection: selection_result,spans: spans_result} as RichEditorSelection) - return value + return (parameter: RichEditorRange):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorRange(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RichEditorSelection_Void(isSync: boolean = false): ((parameter: RichEditorSelection) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: RichEditorSelection):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorSelection(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: RichEditorSelection):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorSelection(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readStyledStringChangeValue(): StyledStringChangeValue { let valueDeserializer : Deserializer = this @@ -16945,6 +17360,15 @@ return; } let value : StyledStringChangeValue = ({range: range_result,replacementString: replacementString_result,previewText: previewText_result} as StyledStringChangeValue) return value } + readRichEditorParagraphResult(): RichEditorParagraphResult { + let valueDeserializer : Deserializer = this + const style_result : RichEditorParagraphStyle = valueDeserializer.readRichEditorParagraphStyle() + const range_buf_value0 : number = (valueDeserializer.readNumber() as number) + const range_buf_value1 : number = (valueDeserializer.readNumber() as number) + const range_result : [ number, number ] = ([range_buf_value0, range_buf_value1] as [ number, number ]) + let value : RichEditorParagraphResult = ({style: style_result,range: range_result} as RichEditorParagraphResult) + return value + } readRichEditorBaseController(): RichEditorBaseController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -16988,14 +17412,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (state: RefreshStatus):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((state.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (state: RefreshStatus):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((state.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRefreshOptions(): RefreshOptions { let valueDeserializer : Deserializer = this @@ -17323,14 +17748,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (info: PluginErrorData):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePluginErrorData(info); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: PluginErrorData):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePluginErrorData(info); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPluginComponentOptions(): PluginComponentOptions { let valueDeserializer : Deserializer = this @@ -17343,18 +17769,19 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (input: Array):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(input.length as int32); -for (let i = 0; i < input.length; i++) { - const input_element : number = input[i]; - _argsSerializer.writeNumber(input_element); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (input: Array):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(input.length as int32); + for (let i = 0; i < input.length; i++) { + const input_element : number = input[i]; + _argsSerializer.writeNumber(input_element); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPatternLockController(): PatternLockController { let valueDeserializer : Deserializer = this @@ -17413,15 +17840,16 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ClickEvent, result: PasteButtonOnClickResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32((result.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: PasteButtonOnClickResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32((result.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPasteButtonOptions(): PasteButtonOptions { let valueDeserializer : Deserializer = this @@ -17453,16 +17881,17 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (width: number, height: number, mode: PanelMode):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(width); -_argsSerializer.writeNumber(height); -_argsSerializer.writeInt32((mode.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (width: number, height: number, mode: PanelMode):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(width); + _argsSerializer.writeNumber(height); + _argsSerializer.writeInt32((mode.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNodeController(): NodeController { let value : NodeController = ({} as NodeController) @@ -17571,14 +18000,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: NavDestinationContext):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavDestinationContext(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: NavDestinationContext):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavDestinationContext(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNavigationMenuItem(): NavigationMenuItem { let valueDeserializer : Deserializer = this @@ -17640,16 +18070,17 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return ():boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return ():boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readPopInfo(): PopInfo { let valueDeserializer : Deserializer = this @@ -17753,15 +18184,16 @@ return (_continuationValue as boolean); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ClickEvent, result: LocationButtonOnClickResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32((result.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: LocationButtonOnClickResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32((result.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLocationButtonOptions(): LocationButtonOptions { let valueDeserializer : Deserializer = this @@ -17918,83 +18350,67 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (from: number, to: number):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (from: number, to: number):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_Number_Boolean(isSync: boolean = false): ((index: number) => boolean) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } - } - readVisibleListContentInfo(): VisibleListContentInfo { - let valueDeserializer : Deserializer = this - const index_result : number = (valueDeserializer.readNumber() as number) - const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let itemGroupArea_buf : ListItemGroupArea | undefined - if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) - { - itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) - } - const itemGroupArea_result : ListItemGroupArea | undefined = itemGroupArea_buf - const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let itemIndexInGroup_buf : number | undefined - if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) - { - itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) - } - const itemIndexInGroup_result : number | undefined = itemIndexInGroup_buf - let value : VisibleListContentInfo = ({index: index_result,itemGroupArea: itemGroupArea_result,itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) - return value + return (index: number):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScrollVisibleContentChangeCallback(isSync: boolean = false): OnScrollVisibleContentChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (start: VisibleListContentInfo, end: VisibleListContentInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeVisibleListContentInfo(start); -_argsSerializer.writeVisibleListContentInfo(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: VisibleListContentInfo, end: VisibleListContentInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeVisibleListContentInfo(start); + _argsSerializer.writeVisibleListContentInfo(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Number_Number_Void(isSync: boolean = false): ((start: number,end: number,center: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (start: number, end: number, center: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(start); -_argsSerializer.writeNumber(end); -_argsSerializer.writeNumber(center); -(isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: number, end: number, center: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(start); + _argsSerializer.writeNumber(end); + _argsSerializer.writeNumber(center); + (isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readChainAnimationOptions(): ChainAnimationOptions { let valueDeserializer : Deserializer = this @@ -18139,14 +18555,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (result: ImageLoadResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeImageLoadResult(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (result: ImageLoadResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeImageLoadResult(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readImageFrameInfo(): ImageFrameInfo { let valueDeserializer : Deserializer = this @@ -18265,50 +18682,52 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (error: ImageError):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeImageError(error); -(isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (error: ImageError):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeImageError(error); + (isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Type_ImageAttribute_onComplete_callback_event_Void(isSync: boolean = false): ((event?: Type_ImageAttribute_onComplete_callback_event) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event?: Type_ImageAttribute_onComplete_callback_event | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type : int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type as int32); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_width = event_value.width; - _argsSerializer.writeNumber(event_value_width); - const event_value_height = event_value.height; - _argsSerializer.writeNumber(event_value_height); - const event_value_componentWidth = event_value.componentWidth; - _argsSerializer.writeNumber(event_value_componentWidth); - const event_value_componentHeight = event_value.componentHeight; - _argsSerializer.writeNumber(event_value_componentHeight); - const event_value_loadingStatus = event_value.loadingStatus; - _argsSerializer.writeNumber(event_value_loadingStatus); - const event_value_contentWidth = event_value.contentWidth; - _argsSerializer.writeNumber(event_value_contentWidth); - const event_value_contentHeight = event_value.contentHeight; - _argsSerializer.writeNumber(event_value_contentHeight); - const event_value_contentOffsetX = event_value.contentOffsetX; - _argsSerializer.writeNumber(event_value_contentOffsetX); - const event_value_contentOffsetY = event_value.contentOffsetY; - _argsSerializer.writeNumber(event_value_contentOffsetY); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Type_ImageAttribute_onComplete_callback_event | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type : int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type as int32); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_width = event_value.width; + _argsSerializer.writeNumber(event_value_width); + const event_value_height = event_value.height; + _argsSerializer.writeNumber(event_value_height); + const event_value_componentWidth = event_value.componentWidth; + _argsSerializer.writeNumber(event_value_componentWidth); + const event_value_componentHeight = event_value.componentHeight; + _argsSerializer.writeNumber(event_value_componentHeight); + const event_value_loadingStatus = event_value.loadingStatus; + _argsSerializer.writeNumber(event_value_loadingStatus); + const event_value_contentWidth = event_value.contentWidth; + _argsSerializer.writeNumber(event_value_contentWidth); + const event_value_contentHeight = event_value.contentHeight; + _argsSerializer.writeNumber(event_value_contentHeight); + const event_value_contentOffsetX = event_value.contentOffsetX; + _argsSerializer.writeNumber(event_value_contentOffsetX); + const event_value_contentOffsetY = event_value.contentOffsetY; + _argsSerializer.writeNumber(event_value_contentOffsetY); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readImageSourceSize(): ImageSourceSize { let valueDeserializer : Deserializer = this @@ -18513,76 +18932,81 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (offset: number, state: ScrollState):Literal_Number_offsetRemain => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(offset); -_argsSerializer.writeInt32((state.valueOf() as int32)); -let _continuationValue : Literal_Number_offsetRemain | undefined; -const _continuationCallback : ((value: Literal_Number_offsetRemain) => void) = (value: Literal_Number_offsetRemain):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as Literal_Number_offsetRemain); } + return (offset: number, state: ScrollState):Literal_Number_offsetRemain => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(offset); + _argsSerializer.writeInt32((state.valueOf() as int32)); + let _continuationValue : Literal_Number_offsetRemain | undefined; + const _continuationCallback : ((value: Literal_Number_offsetRemain) => void) = (value: Literal_Number_offsetRemain):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as Literal_Number_offsetRemain); } } readCallback_ItemDragInfo_Number_Number_Boolean_Void(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number,insertIndex: number,isSuccess: boolean) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -_argsSerializer.writeNumber(insertIndex); -_argsSerializer.writeBoolean(isSuccess); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + _argsSerializer.writeNumber(insertIndex); + _argsSerializer.writeBoolean(isSuccess); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Number_Void(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -(isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + (isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Number_Number_Void(isSync: boolean = false): ((event: ItemDragInfo,itemIndex: number,insertIndex: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -_argsSerializer.writeNumber(insertIndex); -(isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number, insertIndex: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + _argsSerializer.writeNumber(insertIndex); + (isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Void(isSync: boolean = false): ((event: ItemDragInfo) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readItemDragInfo(): ItemDragInfo { let valueDeserializer : Deserializer = this @@ -18595,18 +19019,19 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number) => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -let _continuationValue : CustomBuilder | undefined; -const _continuationCallback : ((value: CustomBuilder) => void) = (value: CustomBuilder):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2071721246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2071721246, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as CustomBuilder); } + return (event: ItemDragInfo, itemIndex: number) => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + let _continuationValue : CustomBuilder | undefined; + const _continuationCallback : ((value: CustomBuilder) => void) = (value: CustomBuilder):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2071721246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2071721246, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as CustomBuilder); } } readComputedBarAttribute(): ComputedBarAttribute { let valueDeserializer : Deserializer = this @@ -18619,18 +19044,19 @@ return (_continuationValue as CustomBuilder); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number, offset: number):ComputedBarAttribute => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(offset); -let _continuationValue : ComputedBarAttribute | undefined; -const _continuationCallback : ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as ComputedBarAttribute); } + return (index: number, offset: number):ComputedBarAttribute => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(offset); + let _continuationValue : ComputedBarAttribute | undefined; + const _continuationCallback : ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as ComputedBarAttribute); } } readGridLayoutOptions(): GridLayoutOptions { let valueDeserializer : Deserializer = this @@ -18671,21 +19097,11 @@ return (_continuationValue as ComputedBarAttribute); } let ptr : KPointer = valueDeserializer.readPointer() return PanRecognizerInternal.fromPtr(ptr) } - readEventTargetInfo(): EventTargetInfo { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return EventTargetInfoInternal.fromPtr(ptr) - } readScrollableTargetInfo(): ScrollableTargetInfo { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() return ScrollableTargetInfoInternal.fromPtr(ptr) } - readPanGestureOptions(): PanGestureOptions { - let valueDeserializer : Deserializer = this - let ptr : KPointer = valueDeserializer.readPointer() - return PanGestureOptionsInternal.fromPtr(ptr) - } readGestureEvent(): GestureEvent { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -18875,30 +19291,32 @@ return (_continuationValue as ComputedBarAttribute); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (info: object):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCustomObject("Any", info); -(isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: object):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCustomObject("Any", info); + (isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Number_errcode_String_msg_Void(isSync: boolean = false): ((info: Literal_Number_errcode_String_msg) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (info: Literal_Number_errcode_String_msg):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const info_errcode = info.errcode; -_argsSerializer.writeNumber(info_errcode); -const info_msg = info.msg; -_argsSerializer.writeString(info_msg); -(isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: Literal_Number_errcode_String_msg):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const info_errcode = info.errcode; + _argsSerializer.writeNumber(info_errcode); + const info_msg = info.msg; + _argsSerializer.writeString(info_msg); + (isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFormCallbackInfo(): FormCallbackInfo { let valueDeserializer : Deserializer = this @@ -18911,14 +19329,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: FormCallbackInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFormCallbackInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: FormCallbackInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFormCallbackInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFormInfo(): FormInfo { let valueDeserializer : Deserializer = this @@ -18989,14 +19408,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (param: HoverEventParam):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeHoverEventParam(param); -(isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (param: HoverEventParam):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeHoverEventParam(param); + (isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFoldStatusChangeInfo(): OnFoldStatusChangeInfo { let valueDeserializer : Deserializer = this @@ -19008,14 +19428,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: OnFoldStatusChangeInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFoldStatusChangeInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: OnFoldStatusChangeInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFoldStatusChangeInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFolderStackOptions(): FolderStackOptions { let valueDeserializer : Deserializer = this @@ -19098,14 +19519,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: TerminationInfo):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTerminationInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TerminationInfo):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTerminationInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEllipseOptions(): EllipseOptions { let valueDeserializer : Deserializer = this @@ -19887,37 +20309,32 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (xOffset: number, yOffset: number, scrollState: ScrollState):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xOffset); -_argsSerializer.writeNumber(yOffset); -_argsSerializer.writeInt32((scrollState.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readOffsetResult(): OffsetResult { - let valueDeserializer : Deserializer = this - const xOffset_result : number = (valueDeserializer.readNumber() as number) - const yOffset_result : number = (valueDeserializer.readNumber() as number) - let value : OffsetResult = ({xOffset: xOffset_result,yOffset: yOffset_result} as OffsetResult) - return value + return (xOffset: number, yOffset: number, scrollState: ScrollState):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xOffset); + _argsSerializer.writeNumber(yOffset); + _argsSerializer.writeInt32((scrollState.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Number_Void(isSync: boolean = false): ((first: number,last: number) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (first: number, last: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(first); -_argsSerializer.writeNumber(last); -(isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (first: number, last: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(first); + _argsSerializer.writeNumber(last); + (isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextContentControllerBase(): TextContentControllerBase { let valueDeserializer : Deserializer = this @@ -20021,38 +20438,40 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: TouchEvent):HitTestMode => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchEvent(parameter); -let _continuationValue : HitTestMode | undefined; -const _continuationCallback : ((value: HitTestMode) => void) = (value: HitTestMode):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as HitTestMode); } + return (parameter: TouchEvent):HitTestMode => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchEvent(parameter); + let _continuationValue : HitTestMode | undefined; + const _continuationCallback : ((value: HitTestMode) => void) = (value: HitTestMode):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as HitTestMode); } } readShouldBuiltInRecognizerParallelWithCallback(isSync: boolean = false): ShouldBuiltInRecognizerParallelWithCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (current: GestureRecognizer, others: Array):GestureRecognizer => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureRecognizer(current); -_argsSerializer.writeInt32(others.length as int32); -for (let i = 0; i < others.length; i++) { - const others_element : GestureRecognizer = others[i]; - _argsSerializer.writeGestureRecognizer(others_element); -} -let _continuationValue : GestureRecognizer | undefined; -const _continuationCallback : ((value: GestureRecognizer) => void) = (value: GestureRecognizer):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureRecognizer); } + return (current: GestureRecognizer, others: Array):GestureRecognizer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureRecognizer(current); + _argsSerializer.writeInt32(others.length as int32); + for (let i = 0; i < others.length; i++) { + const others_element : GestureRecognizer = others[i]; + _argsSerializer.writeGestureRecognizer(others_element); + } + let _continuationValue : GestureRecognizer | undefined; + const _continuationCallback : ((value: GestureRecognizer) => void) = (value: GestureRecognizer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureRecognizer); } } readGestureRecognizer(): GestureRecognizer { let valueDeserializer : Deserializer = this @@ -20094,18 +20513,19 @@ return (_continuationValue as GestureRecognizer); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (gestureInfo: GestureInfo, event: BaseGestureEvent):GestureJudgeResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureInfo(gestureInfo); -_argsSerializer.writeBaseGestureEvent(event); -let _continuationValue : GestureJudgeResult | undefined; -const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureJudgeResult); } + return (gestureInfo: GestureInfo, event: BaseGestureEvent):GestureJudgeResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureInfo(gestureInfo); + _argsSerializer.writeBaseGestureEvent(event); + let _continuationValue : GestureJudgeResult | undefined; + const _continuationCallback : ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureJudgeResult); } } readBackgroundBrightnessOptions(): BackgroundBrightnessOptions { let valueDeserializer : Deserializer = this @@ -20203,14 +20623,15 @@ return (_continuationValue as GestureJudgeResult); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: PreDragStatus):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32((parameter.valueOf() as int32)); -(isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PreDragStatus):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32((parameter.valueOf() as int32)); + (isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readUniformDataType(): UniformDataType { let valueDeserializer : Deserializer = this @@ -20222,44 +20643,46 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: DragEvent, extraParams?: string | undefined):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDragEvent(event); -let extraParams_type : int32 = RuntimeType.UNDEFINED; -extraParams_type = runtimeType(extraParams); -_argsSerializer.writeInt8(extraParams_type as int32); -if ((RuntimeType.UNDEFINED) != (extraParams_type)) { - const extraParams_value = extraParams!; - _argsSerializer.writeString(extraParams_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: DragEvent, extraParams?: string | undefined):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDragEvent(event); + let extraParams_type : int32 = RuntimeType.UNDEFINED; + extraParams_type = runtimeType(extraParams); + _argsSerializer.writeInt8(extraParams_type as int32); + if ((RuntimeType.UNDEFINED) != (extraParams_type)) { + const extraParams_value = extraParams!; + _argsSerializer.writeString(extraParams_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DragEvent_String_Union_CustomBuilder_DragItemInfo(isSync: boolean = false): ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: DragEvent, extraParams?: string | undefined):CustomBuilder | DragItemInfo => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDragEvent(event); -let extraParams_type : int32 = RuntimeType.UNDEFINED; -extraParams_type = runtimeType(extraParams); -_argsSerializer.writeInt8(extraParams_type as int32); -if ((RuntimeType.UNDEFINED) != (extraParams_type)) { - const extraParams_value = extraParams!; - _argsSerializer.writeString(extraParams_value); -} -let _continuationValue : CustomBuilder | DragItemInfo | undefined; -const _continuationCallback : ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as CustomBuilder | DragItemInfo); } + return (event: DragEvent, extraParams?: string | undefined):CustomBuilder | DragItemInfo => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDragEvent(event); + let extraParams_type : int32 = RuntimeType.UNDEFINED; + extraParams_type = runtimeType(extraParams); + _argsSerializer.writeInt8(extraParams_type as int32); + if ((RuntimeType.UNDEFINED) != (extraParams_type)) { + const extraParams_value = extraParams!; + _argsSerializer.writeString(extraParams_value); + } + let _continuationValue : CustomBuilder | DragItemInfo | undefined; + const _continuationCallback : ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as CustomBuilder | DragItemInfo); } } readLocalizedAlignRuleOptions(): LocalizedAlignRuleOptions { let valueDeserializer : Deserializer = this @@ -20385,15 +20808,16 @@ return (_continuationValue as CustomBuilder | DragItemInfo); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (oldValue: Area, newValue: Area):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeArea(oldValue); -_argsSerializer.writeArea(newValue); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (oldValue: Area, newValue: Area):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeArea(oldValue); + _argsSerializer.writeArea(newValue); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readMotionBlurOptions(): MotionBlurOptions { let valueDeserializer : Deserializer = this @@ -20432,45 +20856,48 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (parameter: KeyEvent):boolean => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeKeyEvent(parameter); -let _continuationValue : boolean | undefined; -const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: KeyEvent):boolean => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeKeyEvent(parameter); + let _continuationValue : boolean | undefined; + const _continuationCallback : ((parameter: boolean) => void) = (value: boolean):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readAccessibilityCallback(isSync: boolean = false): AccessibilityCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (isHover: boolean, event: AccessibilityHoverEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeAccessibilityHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: AccessibilityHoverEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeAccessibilityHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Boolean_HoverEvent_Void(isSync: boolean = false): ((isHover: boolean,event: HoverEvent) => void) { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (isHover: boolean, event: HoverEvent):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: HoverEvent):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOutlineOptions(): OutlineOptions { let valueDeserializer : Deserializer = this @@ -21553,21 +21980,22 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: Array):TouchResult => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value.length as int32); -for (let i = 0; i < value.length; i++) { - const value_element : TouchTestInfo = value[i]; - _argsSerializer.writeTouchTestInfo(value_element); -} -let _continuationValue : TouchResult | undefined; -const _continuationCallback : ((value: TouchResult) => void) = (value: TouchResult):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as TouchResult); } + return (value: Array):TouchResult => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value.length as int32); + for (let i = 0; i < value.length; i++) { + const value_element : TouchTestInfo = value[i]; + _argsSerializer.writeTouchTestInfo(value_element); + } + let _continuationValue : TouchResult | undefined; + const _continuationCallback : ((value: TouchResult) => void) = (value: TouchResult):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as TouchResult); } } readKeyEvent(): KeyEvent { let valueDeserializer : Deserializer = this @@ -21584,19 +22012,13 @@ return (_continuationValue as TouchResult); } let ptr : KPointer = valueDeserializer.readPointer() return PixelMapMockInternal.fromPtr(ptr) } - readTouchObject(): TouchObject { + readHistoricalPoint(): HistoricalPoint { let valueDeserializer : Deserializer = this - const type_result : TouchType = (valueDeserializer.readInt32() as TouchType) - const id_result : number = (valueDeserializer.readNumber() as number) - const displayX_result : number = (valueDeserializer.readNumber() as number) - const displayY_result : number = (valueDeserializer.readNumber() as number) - const windowX_result : number = (valueDeserializer.readNumber() as number) - const windowY_result : number = (valueDeserializer.readNumber() as number) - const screenX_result : number = (valueDeserializer.readNumber() as number) - const screenY_result : number = (valueDeserializer.readNumber() as number) - const x_result : number = (valueDeserializer.readNumber() as number) - const y_result : number = (valueDeserializer.readNumber() as number) - let value : TouchObject = ({type: type_result,id: id_result,displayX: displayX_result,displayY: displayY_result,windowX: windowX_result,windowY: windowY_result,screenX: screenX_result,screenY: screenY_result,x: x_result,y: y_result} as TouchObject) + const touchObject_result : TouchObject = valueDeserializer.readTouchObject() + const size_result : number = (valueDeserializer.readNumber() as number) + const force_result : number = (valueDeserializer.readNumber() as number) + const timestamp_result : number = (valueDeserializer.readNumber() as number) + let value : HistoricalPoint = ({touchObject: touchObject_result,size: size_result,force: force_result,timestamp: timestamp_result} as HistoricalPoint) return value } readAccessibilityHoverEvent(): AccessibilityHoverEvent { @@ -21725,14 +22147,15 @@ return (_continuationValue as TouchResult); } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: CheckboxGroupResult):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCheckboxGroupResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CheckboxGroupResult):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCheckboxGroupResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCheckboxGroupOptions(): CheckboxGroupOptions { let valueDeserializer : Deserializer = this @@ -21750,14 +22173,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (value: boolean):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: boolean):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readMarkStyle(): MarkStyle { let valueDeserializer : Deserializer = this @@ -21828,15 +22252,15 @@ return; } let value : CheckboxOptions = ({name: name_result,group: group_result,indicatorBuilder: indicatorBuilder_result} as CheckboxOptions) return value } - readCanvasRenderer(): CanvasRenderer { + readOffscreenCanvas(): OffscreenCanvas { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() - return CanvasRendererInternal.fromPtr(ptr) + return OffscreenCanvasInternal.fromPtr(ptr) } - readRenderingContextSettings(): RenderingContextSettings { + readCanvasRenderer(): CanvasRenderer { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() - return RenderingContextSettingsInternal.fromPtr(ptr) + return CanvasRendererInternal.fromPtr(ptr) } readLengthMetricsUnit(): LengthMetricsUnit { let valueDeserializer : Deserializer = this @@ -21898,14 +22322,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: CalendarRequestedData):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCalendarRequestedData(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: CalendarRequestedData):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCalendarRequestedData(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCalendarSelectedDate(): CalendarSelectedDate { let valueDeserializer : Deserializer = this @@ -21919,14 +22344,15 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (event: CalendarSelectedDate):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCalendarSelectedDate(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: CalendarSelectedDate):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCalendarSelectedDate(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWorkStateStyle(): WorkStateStyle { let valueDeserializer : Deserializer = this @@ -22660,43 +23086,46 @@ return; } const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnAlphabetIndexerRequestPopupDataCallback(isSync: boolean = false): OnAlphabetIndexerRequestPopupDataCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):Array => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue : Array | undefined; -const _continuationCallback : ((value: Array) => void) = (value: Array):void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as Array); } + return (index: number):Array => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue : Array | undefined; + const _continuationCallback : ((value: Array) => void) = (value: Array):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as Array); } } readOnAlphabetIndexerSelectCallback(isSync: boolean = false): OnAlphabetIndexerSelectCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() const _callSync : KPointer = this.readPointer() - return (index: number):void => { const _argsSerializer : Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number):void => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readAlphabetIndexerOptions(): AlphabetIndexerOptions { let valueDeserializer : Deserializer = this @@ -22884,6 +23313,11 @@ return; } let value : WebHeader = ({headerKey: headerKey_result,headerValue: headerValue_result} as WebHeader) return value } + readSystemOps(): SystemOps { + let valueDeserializer : Deserializer = this + let ptr : KPointer = valueDeserializer.readPointer() + return SystemOpsInternal.fromPtr(ptr) + } readLazyForEachOps(): LazyForEachOps { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() diff --git a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts index fee711b456a3e765daf88c9b295d6ba21f56cc0a..ade4c2bc95afb6c7f9c5eb594a04aece99e530fb 100644 --- a/arkoala-arkts/arkui/src/generated/peers/Serializer.ts +++ b/arkoala-arkts/arkui/src/generated/peers/Serializer.ts @@ -13,55 +13,54 @@ * limitations under the License. */ -import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, nullptr, KPointer } from "@koalaui/interop" -import { int32, float32, int64 } from "@koalaui/common" -import { unsafeCast } from "./../shared/generated-utils" -import { MaterializedBase } from "./../MaterializedBase" +import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, MaterializedBase, nullptr, KPointer } from "@koalaui/interop" +import { int32, float32, unsafeCast, int64 } from "@koalaui/common" import { TypeChecker } from "#components" import { KUint8ArrayPtr, NativeBuffer, InteropNativeModule } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, InputCounterOptions, SelectionOptions, BackgroundBlurStyleOptions, BlurStyleOptions, EdgeEffectOptions, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, FadingEdgeOptions, RectShape, ContentClipMode, DismissReason, SheetOptions, BindOptions, ContentCoverOptions, ContextMenuOptions, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, BlendApplyType, Blender, BlendMode, OverlayOptions, DragInteractionOptions, DragPreviewOptions, ChainStyle, sharedTransitionOptions, EffectType, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, DragBehavior, LightSource, TouchResult, CommonMethod, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, CaretOffset, MeasureResult, MenuElement, BackgroundBrightnessOptions, PixelStretchEffectOptions, StateStyles, PreDragStatus, UniformDataType, LocalizedAlignRuleOptions, AlignRuleOption, MotionBlurOptions, BorderImageOption, Filter, VisualEffect, ForegroundEffectOptions, BackgroundEffectOptions, PixelRoundPolicy, TouchTestInfo, Summary, LayoutSafeAreaEdge, LayoutSafeAreaType, SafeAreaEdge, SafeAreaType, PointLightStyle } from "./../ArkCommonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, ShadowType, SymbolGlyphModifier, ShadowOptions, SheetSize, ShadowStyle, ComponentContent, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, MenuPreviewMode, DismissPopupAction, DragPreviewMode, OutlineStyle, SourceTool, SourceType, EventTarget, HoverModeAreaType, BlurStyle, Rectangle, PickerTextStyle, PickerDialogButtonStyle, MenuPolicy, BlurStyleActivePolicy, BlurOptions, AdaptiveColor, ThemeColorMode, ExpectedFrameRateRange, FinishCallbackType, SheetKeyboardAvoidMode, UIContext, SheetType, ScrollSizeMode, SheetMode, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ModalTransition, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, TransitionHierarchyStrategy, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, DrawContext, ScrollableCommonMethod, CommonMethod, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, DragItemInfo, UniformDataType, PreDragStatus, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ContentCoverOptions, SheetOptions, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, RectResult, TouchObject, HistoricalPoint, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, BlurStyleOptions, ContentModifier, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, KeyboardAvoidMode, UIGestureEvent, VisibleAreaEventOptions, MeasureResult, SizeResult, DismissReason, BindOptions, FractionStop, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, MotionBlurAnchor, RepeatMode, TouchTestStrategy, IntentionCode, DragResult, Summary, DragBehavior, LightSource, MultiShadowOptions, PointLightStyle } from "./../ArkCommonInterfaces" import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate, PointerStyle } from "./../ArkArkuiCustomInterfaces" -import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent, SwiperNestedScrollMode, SwiperDisplayMode } from "./../ArkSwiperInterfaces" -import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, TextRange, StyledStringChangeValue, TextMenuItem, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, PositionWithAffinity, LineMetrics, TextBox, PreviewText, DeleteValue, InsertValue, CaretStyle, TextDataDetectorType, TextDataDetectorConfig } from "./../ArkTextCommonInterfaces" -import { GetItemMainSizeByIndex, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, MenuType, Affinity, TextRange, StyledStringChangeValue, CaretStyle, InsertValue, DeleteValue, TextMenuItem, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDeleteDirection, StyledStringChangedListener, TextDataDetectorType } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, WaterFlowAttribute, WaterFlowLayoutMode, SectionOptions, WaterFlowOptions } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" -import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode, ResizableOptions } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, NavBarPosition, ToolbarItem, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { ImageErrorCallback, ResizableOptions, DrawableDescriptor, DrawingColorFilter, ImageContent, DrawingLattice, ResolutionQuality, ImageError, ImageSourceSize, ImageInterpolation, DynamicRangeMode, ImageRenderMode } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavigationOptions, NavigationInterception, NavigationMode, NavBar, NavigationOperation, LaunchMode, BarStyle, NavigationAnimatedTransition, NavContentInfo, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, ToolbarItemStatus, NavigationTitleMode, NavBarPosition } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" -import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, PlaceholderStyle, RichEditorResponseType, RichEditorSpanType, RichEditorDeleteDirection, RichEditorSpanStyleOptions, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, PasteEvent, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorAttribute, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorDeleteDirection, RichEditorSpanStyleOptions, RichEditorStyledStringOptions, RichEditorOptions } from "./../ArkRichEditorInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" -import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebCaptureMode, SelectionMenuOptionsExt, WebResponseType, WebElementType, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, NestedScrollOptionsExt, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebKeyboardAvoidMode, WebOptions, ContextMenuEditStateFlags, ProtectedResourceType, WebLayoutMode, WebDarkMode, OverScrollMode, CacheMode, MixedMode } from "./../ArkWebInterfaces" -import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebCaptureMode, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeEmbedDataInfo, NativeEmbedTouchInfo, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, RenderProcessNotRespondingReason, NativeEmbedInfo, NativeEmbedStatus, WebNavigationType, SslError, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, FileSelectorMode, RenderExitReason, MessageLevel, RenderMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, RenderProcessNotRespondingData, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, LoadCommittedDetails, ThreatType, LargestContentfulPaint, FirstMeaningfulPaint, SslErrorEvent, FullScreenEnterEvent, WebOptions, ContextMenuEditStateFlags, ProtectedResourceType } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" import { OnCheckboxGroupChangeCallback, SelectStatus, CheckboxGroupResult, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, TextInputStyle, PasswordIcon, EnterKeyType, TextInputOptions, InputType } from "./../ArkTextInputInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, TextInputAttribute, InputType, EnterKeyType, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions, ScrollDirection } from "./../ArkScrollInterfaces" -import { OnScrollVisibleContentChangeCallback, ScrollSnapAlign, ScrollState, ListDividerOptions, ListItemGroupArea, ChainEdgeEffect, CloseSwipeActionOptions, VisibleListContentInfo, ChainAnimationOptions, ListOptions, StickyStyle, ListItemAlign } from "./../ArkListInterfaces" -import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, LayoutStyle, DividerStyle, ScrollableBarModeOptions, BarMode, TabContentAnimatedTransition, AnimationMode, BarPosition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAttribute, ScrollDirection, ScrollSnapOptions, OffsetOptions, OnScrollFrameBeginHandlerResult } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ListItemGroupArea, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, LayoutStyle, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" import { PageTransitionCallback, RouteType, SlideEffect } from "./../ArkPageTransitionInterfaces" import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { SearchSubmitCallback, CancelButtonStyle, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonOptions, SearchOptions, SearchType } from "./../ArkSearchInterfaces" -import { SliderTriggerChangeCallback, SliderBlockType, SliderStyle, SliderChangeMode, SlideRange, SliderBlockStyle, SliderOptions, SliderInteraction } from "./../ArkSliderInterfaces" -import { TextAreaSubmitCallback, ContentType, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, LengthMetricsUnit, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, DirectionalEdgesT, OutlineOptions, EdgeOutlineWidths, OutlineRadiuses, EdgeOutlineStyles, BorderOptions, ChainWeightOptions, MarkStyle } from "./../ArkUnitsInterfaces" +import { SearchSubmitCallback, CancelButtonStyle, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderAttribute, SliderChangeMode, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderBlockType, SliderStyle, SliderOptions } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, ColorMetrics, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Offset, DividerStyleOptions, LengthMetricsUnit, LengthConstrain, DirectionalEdgesT, Bias, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" -import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, Edge, XComponentType, TextContentStyle, EdgeEffect, OptionWidthMode, BarState, ScrollSource, ResponseType, AppRotation, FoldStatus, FlexAlign, ItemAlign, FlexWrap, FlexDirection, FunctionKey, ImageRepeat, ImageSize, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HitTestMode, HeightBreakpoint, WidthBreakpoint, TextSelectableMode, MarqueeUpdateStrategy, EllipsisMode, CopyOptions, TextCase, RelateType, Week, EmbeddedType, LineJoinStyle, LineCapStyle, ModifierKey, RenderFit, ObscuredReasons, Direction, Visibility, HoverEffect, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" +import { ColoringStrategy, Color, FontWeight, Curve, FontStyle, TextDecorationStyle, TextDecorationType, BorderStyle, TextHeightAdaptivePolicy, TextOverflow, ImageFit, ImageSpanAlignment, LineBreakStrategy, WordBreak, TextAlign, TitleHeight, GradientDirection, DialogButtonStyle, TouchType, NestedScrollMode, VerticalAlign, Axis, PlayMode, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, BarState, EdgeEffect, FlexDirection, Edge, XComponentType, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, AppRotation, FoldStatus, FlexAlign, FlexWrap, PixelRoundCalcPolicy, KeySource, KeyType, AccessibilityHoverType, MouseAction, MouseButton, IlluminatedType, HeightBreakpoint, WidthBreakpoint, MarqueeUpdateStrategy, RelateType, Week, EmbeddedType, CheckBoxShape, FillMode, AnimationStatus } from "./../ArkEnumsInterfaces" import { LengthUnit, WebHeader, TextModifier, Want, RectHeightStyle, RectWidthStyle, PerfMonitorSourceType, PerfMonitorActionType, SnapshotOptions, NodeController } from "./../ArkArkuiExternalInterfaces" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" -import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, CustomNodeBuilder, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Union_Number_Resource_Void, Callback_PanelMode_Void, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Callback_MouseEvent_Void, Callback_KeyEvent_Void, Callback_TouchEvent_Void, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Literal_Number_offsetRemain, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_NativeEmbedTouchInfo_Void, Callback_NativeEmbedDataInfo_Void, Callback_OnOverScrollEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSearchResultReceiveEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnPermissionRequestEvent_Void, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnScaleChangeEvent_Void, Callback_OnResourceLoadEvent_Void, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Callback_OnShowFileSelectorEvent_Boolean, Callback_OnRenderExitedEvent_Void, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_OnRefreshAccessedHistoryEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnErrorReceiveEvent_Void, Callback_OnConsoleEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnAlertEvent_Boolean, Callback_OnGeolocationShowEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnPageEndEvent_Void, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_String_PasteEvent_Void, Callback_EnterKeyType_Void, Callback_Number_SliderChangeMode_Void, Callback_Number_String_Void, Callback_DeleteValue_Void, Callback_DeleteValue_Boolean, Callback_InsertValue_Void, Callback_InsertValue_Boolean, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_CopyEvent_Void, Callback_CutEvent_Void, Callback_RichEditorChangeValue_Boolean, Callback_RichEditorDeleteValue_Boolean, Callback_TextRange_Void, Callback_RichEditorTextSpanResult_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorRange_Void, Callback_RichEditorSelection_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_NavDestinationContext_Void, Callback_Boolean, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Number_Number_Boolean, Callback_Number_Boolean, Callback_Number_Number_Number_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_CustomBuilder, Callback_Number_Number_ComputedBarAttribute, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Callback_Number_Number_Void, Callback_TouchEvent_HitTestMode, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_PreDragStatus_Void, Callback_DragEvent_String_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_Area_Area_Void, Callback_KeyEvent_Boolean, Callback_Boolean_HoverEvent_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" +import { Tuple_Dimension_Dimension, Callback_GestureEvent_Void, Callback_ClickEvent_Void, Callback_PopInfo_Void, Callback_SwipeActionState_Void, Callback_Void, Callback_DismissPopupAction_Void, Callback_NavigationTransitionProxy_Void, Callback_Boolean_Void, Literal_String_script_Callback_String_Void_callback_, Callback_String_Void, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Callback_TimePickerResult_Void, Callback_TextPickerResult_Void, Tuple_Number_Number, Callback_TabContentTransitionProxy_Void, Callback_StyledStringChangeValue_Boolean, Callback_Date_Void, Callback_DatePickerResult_Void, Callback_SheetType_Void, Callback_Number_Void, Callback_SpringBackAction_Void, Callback_DismissSheetAction_Void, Callback_SheetDismiss_Void, Callback_DismissContentCoverAction_Void, Callback_Literal_Boolean_isVisible_Void, Literal_Boolean_isVisible, Literal_Number_angle_fingers, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_duration_fingers_Boolean_repeat, Tuple_ResourceColor_Number, Callback_DismissDialogAction_Void, Callback_UIExtensionProxy_Void, Callback_Array_TouchTestInfo_TouchResult, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Literal_Number_offsetRemain, Literal_Boolean_next_Axis_direction, Literal_Number_surfaceHeight_surfaceWidth, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Literal_Union_String_WebResourceRequest_data, Callback_Literal_Function_handler_Object_error_Void, Literal_Function_handler_Object_error, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Literal_Object_detail, Type_WebAttribute_onFileSelectorShow_callback, Literal_Function_callback__Object_fileSelector, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Callback_Literal_String_plainText_Void, Literal_String_plainText, Callback_Union_String_Array_String_Void, Callback_Union_Number_Array_Number_Void, Callback_ResourceStr_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_SwiperContentTransitionProxy_Void, Callback_Number_SliderChangeMode_Void, Callback_Union_Number_Resource_Void, Callback_Number_String_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_PanelMode_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_Number_ComputedBarAttribute, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Callback_Number_Tuple_Number_Number, Type_SheetOptions_detents, Literal_ResourceColor_color, Literal_String_value_Callback_Void_action, Literal_Number_day_month_year, AsyncCallback_image_PixelMap_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_WithThemeAttribute_Void, Callback_WebResourceResponse_Void, Callback_WebKeyboardOptions_Void, Callback_Union_CustomBuilder_DragItemInfo_Void, Callback_Tuple_Number_Number_Void, Callback_Tuple_Number_Number_Number_Number_Void, Callback_TouchResult_Void, Callback_String_Unknown_Void, Callback_Pointer_Void, Callback_Opt_TabContentAnimatedTransition_Void, Callback_Opt_StyledString_Opt_Array_String_Void, Callback_Opt_NavigationAnimatedTransition_Void, Callback_Opt_Array_String_Void, Callback_OnScrollFrameBeginHandlerResult_Void, Callback_OffsetResult_Void, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_Literal_Number_offsetRemain_Void, Callback_IsolatedComponentAttribute_Void, Callback_HitTestMode_Void, Callback_GestureRecognizer_Void, Callback_GestureJudgeResult_Void, Callback_CustomBuilder_Void, Callback_ComputedBarAttribute_Void, Callback_Array_String_Void, Callback_Literal_Number_code_Want_want_Void, Literal_Number_code_Want_want, Callback_PlaybackInfo_Void, Callback_PreparedInfo_Void, Callback_FullscreenInfo_Void, Type_TextPickerAttribute_onChange_callback, Callback_String_Number_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_RefreshStatus_Void, Callback_Array_Number_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Number_Number_PanelMode_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Any_Void, Callback_Literal_Number_errcode_String_msg_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_TerminationInfo_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Callback_CalendarRequestedData_Void, Callback_CalendarSelectedDate_Void } from "./../SyntheticDeclarations" import { GridRowSizeOption, BreakpointsReference, GridRowColumnOption, GutterOption, GridRowDirection, BreakPoints, GridRowOptions } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, LayoutMode, BoardStyle, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" -import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" -import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMeasureInfo, CustomSpanMetrics, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" +import { SymbolRenderingStrategy, SymbolEffectStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" +import { DecorationStyleInterface, StyledStringValue, StyledStringKey, ImageAttachmentLayoutStyle, StyleOptions, SpanStyle, CustomSpanDrawInfo, CustomSpanMetrics, CustomSpanMeasureInfo, ImageAttachmentInterface, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { SwipeActionState, SwipeActionItem, SwipeEdgeEffect, EditMode, ListItemStyle, SwipeActionOptions, ListItemOptions, Sticky } from "./../ArkListItemInterfaces" @@ -79,11 +78,11 @@ import { WebCookie, WebCookieInternal } from "./../ArkWebCookieMaterialized" import { PlaybackSpeed, SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions } from "./../ArkVideoInterfaces" import { DateTimeOptions, TimePickerResult, TimePickerFormat, TimePickerDialogOptions, TimePickerOptions } from "./../ArkTimePickerInterfaces" import { DialogAlignment, DialogButtonDirection, TextStyle_alert_dialog, AlertDialogButtonBaseOptions, AlertDialogParamWithOptions, AlertDialogParam, AlertDialogButtonOptions, AlertDialogParamWithButtons, AlertDialogParamWithConfirm } from "./../ArkAlertDialogInterfaces" -import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, DividerOptions, TextCascadePickerRangeContent, TextPickerRangeContent } from "./../ArkTextPickerInterfaces" +import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" import { ProgressStatus, ProgressStyleOptions, CommonProgressStyleOptions, CapsuleStyleOptions, ScanEffectOptions, RingStyleOptions, LinearStyleOptions, ProgressType, ProgressStyle, ProgressOptions } from "./../ArkProgressInterfaces" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle, NavigationSystemTransitionType } from "./../ArkNavDestinationInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" import { NavPathStack, NavPathStackInternal } from "./../ArkNavPathStackMaterialized" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { NavDestinationContext, NavDestinationContextInternal } from "./../ArkNavDestinationContextMaterialized" @@ -91,8 +90,8 @@ import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" import { ColorStop, DataPanelType, DataPanelShadowOptions, DataPanelOptions } from "./../ArkDataPanelInterfaces" import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Scene, ModelType, SceneOptions } from "./../ArkComponent3dInterfaces" -import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, FingerInfo, GestureInfo } from "./../ArkGestureInterfaces" +import { Scene, Component3DAttribute, ModelType, SceneOptions } from "./../ArkComponent3dInterfaces" +import { GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, SwipeDirection, PanDirection, TapGestureParameters, GestureInfo, GestureJudgeResult, GestureMask, GestureRecognizerState, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" @@ -105,14 +104,27 @@ import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { DpiFollowStrategy, ReceiveCallback, UIExtensionOptions } from "./../ArkUiExtensionComponentInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" import { ButtonIconOptions, ButtonStyle, SideBarPosition, SideBarContainerType } from "./../ArkSidebarInterfaces" import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" -import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" @@ -126,7 +138,6 @@ import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandle import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" -import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" @@ -136,26 +147,30 @@ import { ToggleType, SwitchStyle, ToggleOptions } from "./../ArkToggleInterfaces import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" -import { TextResponseType, TextSpanType, TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" -import { MenuAlignType, ArrowPosition, SelectOption } from "./../ArkSelectInterfaces" +import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" +import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" import { ScrollBarDirection, ScrollBarOptions } from "./../ArkScrollBarInterfaces" import { SaveDescription, SaveIconStyle, SaveButtonOnClickResult, SaveButtonOptions } from "./../ArkSaveButtonInterfaces" import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" +import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { LocalizedBarrierDirection, BarrierDirection, GuideLinePosition, LocalizedBarrierStyle, BarrierStyle, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" @@ -168,32 +183,28 @@ import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" import { LocationDescription, LocationIconStyle, LocationButtonOnClickResult, LocationButtonOptions } from "./../ArkLocationButtonInterfaces" import { ListItemGroupStyle, ListItemGroupOptions } from "./../ArkListItemGroupInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" import { SizeType, GridContainerOptions } from "./../ArkGridContainerInterfaces" import { GridItemStyle, GridItemOptions } from "./../ArkGridItemInterfaces" -import { GridItemAlignment, ComputedBarAttribute, GridDirection, GridLayoutOptions } from "./../ArkGridInterfaces" +import { GridAttribute, ComputedBarAttribute, GridDirection, GridItemAlignment, GridLayoutOptions } from "./../ArkGridInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" +import { GestureControl_GestureType } from "./../ArkGestureControlNamespace" import { FormShape, FormRenderingMode, FormDimension, FormCallbackInfo, FormInfo } from "./../ArkFormComponentInterfaces" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { FocusPriority, FocusBoxStyle } from "./../ArkFocusInterfaces" -import { GestureControl_GestureType } from "./../ArkGestureControlNamespace" -import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" import { CanvasRenderer, CanvasRendererInternal } from "./../ArkCanvasRendererMaterialized" -import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" +import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialized" -import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" -import { CanvasPath, CanvasPathInternal } from "./../ArkCanvasPathMaterialized" -import { CalendarDialogOptions, CalendarOptions, CalendarAlign } from "./../ArkCalendarPickerInterfaces" +import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" @@ -211,8 +222,6 @@ import { TimePickerDialog, TimePickerDialogInternal } from "./../ArkTimePickerDi import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" -import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" -import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { TextClockOptions } from "./../ArkTextClockInterfaces" import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" @@ -220,16 +229,13 @@ import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDi import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" -import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" import { ItemState } from "./../ArkStepperItemInterfaces" import { LayoutDirection, ColorMode } from "./../ArkStateManagementInterfaces" import { StackOptions } from "./../ArkStackInterfaces" -import { ViewportRect } from "./../ArkShapeInterfaces" import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" import { RowOptions } from "./../ArkRowInterfaces" import { RootSceneSession } from "./../ArkRootSceneInterfaces" -import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" import { PolylineOptions } from "./../ArkPolylineInterfaces" @@ -248,7 +254,6 @@ import { LineOptions } from "./../ArkLineInterfaces" import { DataOperationType } from "./../ArkLazyForEachInterfaces" import { ImageFrameInfo } from "./../ArkImageAnimatorInterfaces" import { PanRecognizer, PanRecognizerInternal } from "./../ArkPanRecognizerMaterialized" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" import { ScrollableTargetInfo, ScrollableTargetInfoInternal } from "./../ArkScrollableTargetInfoMaterialized" import { SwipeGestureEvent, SwipeGestureEventInternal } from "./../ArkSwipeGestureEventMaterialized" import { RotationGestureEvent, RotationGestureEventInternal } from "./../ArkRotationGestureEventMaterialized" @@ -265,15 +270,13 @@ import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInt import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { ContextMenu, ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { View, ViewInternal } from "./../ArkViewMaterialized" import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" -import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ColumnOptions } from "./../ArkColumnInterfaces" import { CircleOptions } from "./../ArkCircleInterfaces" +import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" @@ -285,6 +288,7 @@ import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMater import { NavExtender, NavExtenderInternal } from "./../ArkNavExtenderMaterialized" import { GlobalScope_ohos_arkui_performanceMonitor, GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot, GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" +import { SystemOps, SystemOpsInternal } from "./../ArkSystemOpsMaterialized" import { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" export class Serializer extends SerializerBase { @@ -444,12 +448,12 @@ export class Serializer extends SerializerBase { const value_radius = value.radius let value_radius_type : int32 = RuntimeType.UNDEFINED value_radius_type = runtimeType(value_radius) - if (((RuntimeType.NUMBER == value_radius_type))) { + if (RuntimeType.NUMBER == value_radius_type) { valueSerializer.writeInt8(0 as int32) const value_radius_0 = value_radius as number valueSerializer.writeNumber(value_radius_0) } - else if (((RuntimeType.OBJECT == value_radius_type))) { + else if (RuntimeType.OBJECT == value_radius_type) { valueSerializer.writeInt8(1 as int32) const value_radius_1 = value_radius as Resource valueSerializer.writeResource(value_radius_1) @@ -470,17 +474,17 @@ export class Serializer extends SerializerBase { const value_color_value = value_color! let value_color_value_type : int32 = RuntimeType.UNDEFINED value_color_value_type = runtimeType(value_color_value) - if (((TypeChecker.isColor(value_color_value)))) { + if (TypeChecker.isColor(value_color_value)) { valueSerializer.writeInt8(0 as int32) const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as string valueSerializer.writeString(value_color_value_1) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as Resource valueSerializer.writeResource(value_color_value_2) @@ -499,12 +503,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type : int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetX_value_0 = value_offsetX_value as number valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetX_value_1 = value_offsetX_value as Resource valueSerializer.writeResource(value_offsetX_value_1) @@ -518,12 +522,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type : int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetY_value_0 = value_offsetY_value as number valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetY_value_1 = value_offsetY_value as Resource valueSerializer.writeResource(value_offsetY_value_1) @@ -623,12 +627,12 @@ export class Serializer extends SerializerBase { const value_weight_value_0 = value_weight_value as FontWeight valueSerializer.writeInt32((value_weight_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_weight_value_type))) { + else if (RuntimeType.NUMBER == value_weight_value_type) { valueSerializer.writeInt8(1 as int32) const value_weight_value_1 = value_weight_value as number valueSerializer.writeNumber(value_weight_value_1) } - else if (((RuntimeType.STRING == value_weight_value_type))) { + else if (RuntimeType.STRING == value_weight_value_type) { valueSerializer.writeInt8(2 as int32) const value_weight_value_2 = value_weight_value as string valueSerializer.writeString(value_weight_value_2) @@ -642,12 +646,12 @@ export class Serializer extends SerializerBase { const value_family_value = value_family! let value_family_value_type : int32 = RuntimeType.UNDEFINED value_family_value_type = runtimeType(value_family_value) - if (((RuntimeType.STRING == value_family_value_type))) { + if (RuntimeType.STRING == value_family_value_type) { valueSerializer.writeInt8(0 as int32) const value_family_value_0 = value_family_value as string valueSerializer.writeString(value_family_value_0) } - else if (((RuntimeType.OBJECT == value_family_value_type))) { + else if (RuntimeType.OBJECT == value_family_value_type) { valueSerializer.writeInt8(1 as int32) const value_family_value_1 = value_family_value as Resource valueSerializer.writeResource(value_family_value_1) @@ -703,12 +707,12 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type : int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((TypeChecker.isCurve(value_curve_value)))) { + if (TypeChecker.isCurve(value_curve_value)) { valueSerializer.writeInt8(0 as int32) const value_curve_value_0 = value_curve_value as Curve valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(1 as int32) const value_curve_value_1 = value_curve_value as ICurve valueSerializer.writeICurve(value_curve_value_1) @@ -838,17 +842,17 @@ export class Serializer extends SerializerBase { const value_color_0 = value_color as Color valueSerializer.writeInt32((value_color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_type))) { + else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1 as int32) const value_color_1 = value_color as number valueSerializer.writeNumber(value_color_1) } - else if (((RuntimeType.STRING == value_color_type))) { + else if (RuntimeType.STRING == value_color_type) { valueSerializer.writeInt8(2 as int32) const value_color_2 = value_color as string valueSerializer.writeString(value_color_2) } - else if (((RuntimeType.OBJECT == value_color_type))) { + else if (RuntimeType.OBJECT == value_color_type) { valueSerializer.writeInt8(3 as int32) const value_color_3 = value_color as Resource valueSerializer.writeResource(value_color_3) @@ -879,17 +883,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -919,17 +923,17 @@ export class Serializer extends SerializerBase { const value_top_value_0 = value_top_value as Color valueSerializer.writeInt32((value_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_top_value_type))) { + else if (RuntimeType.NUMBER == value_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_top_value_1 = value_top_value as number valueSerializer.writeNumber(value_top_value_1) } - else if (((RuntimeType.STRING == value_top_value_type))) { + else if (RuntimeType.STRING == value_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_top_value_2 = value_top_value as string valueSerializer.writeString(value_top_value_2) } - else if (((RuntimeType.OBJECT == value_top_value_type))) { + else if (RuntimeType.OBJECT == value_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_top_value_3 = value_top_value as Resource valueSerializer.writeResource(value_top_value_3) @@ -948,17 +952,17 @@ export class Serializer extends SerializerBase { const value_end_value_0 = value_end_value as Color valueSerializer.writeInt32((value_end_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_end_value_type))) { + else if (RuntimeType.NUMBER == value_end_value_type) { valueSerializer.writeInt8(1 as int32) const value_end_value_1 = value_end_value as number valueSerializer.writeNumber(value_end_value_1) } - else if (((RuntimeType.STRING == value_end_value_type))) { + else if (RuntimeType.STRING == value_end_value_type) { valueSerializer.writeInt8(2 as int32) const value_end_value_2 = value_end_value as string valueSerializer.writeString(value_end_value_2) } - else if (((RuntimeType.OBJECT == value_end_value_type))) { + else if (RuntimeType.OBJECT == value_end_value_type) { valueSerializer.writeInt8(3 as int32) const value_end_value_3 = value_end_value as Resource valueSerializer.writeResource(value_end_value_3) @@ -977,17 +981,17 @@ export class Serializer extends SerializerBase { const value_bottom_value_0 = value_bottom_value as Color valueSerializer.writeInt32((value_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_bottom_value_1 = value_bottom_value as number valueSerializer.writeNumber(value_bottom_value_1) } - else if (((RuntimeType.STRING == value_bottom_value_type))) { + else if (RuntimeType.STRING == value_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_bottom_value_2 = value_bottom_value as string valueSerializer.writeString(value_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_bottom_value_3 = value_bottom_value as Resource valueSerializer.writeResource(value_bottom_value_3) @@ -1006,17 +1010,17 @@ export class Serializer extends SerializerBase { const value_start_value_0 = value_start_value as Color valueSerializer.writeInt32((value_start_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_start_value_type))) { + else if (RuntimeType.NUMBER == value_start_value_type) { valueSerializer.writeInt8(1 as int32) const value_start_value_1 = value_start_value as number valueSerializer.writeNumber(value_start_value_1) } - else if (((RuntimeType.STRING == value_start_value_type))) { + else if (RuntimeType.STRING == value_start_value_type) { valueSerializer.writeInt8(2 as int32) const value_start_value_2 = value_start_value as string valueSerializer.writeString(value_start_value_2) } - else if (((RuntimeType.OBJECT == value_start_value_type))) { + else if (RuntimeType.OBJECT == value_start_value_type) { valueSerializer.writeInt8(3 as int32) const value_start_value_3 = value_start_value as Resource valueSerializer.writeResource(value_start_value_3) @@ -1063,12 +1067,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type : int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0 as int32) const value_title_0 = value_title as string valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1 as int32) const value_title_1 = value_title as Resource valueSerializer.writeResource(value_title_1) @@ -1081,12 +1085,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -1489,17 +1493,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -1561,17 +1565,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -1590,12 +1594,12 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_0 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + else if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontWeight_value_1 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) @@ -1617,12 +1621,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type : int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontFamily_value_0 = value_fontFamily_value as Resource valueSerializer.writeResource(value_fontFamily_value_0) } - else if (((RuntimeType.STRING == value_fontFamily_value_type))) { + else if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontFamily_value_1 = value_fontFamily_value as string valueSerializer.writeString(value_fontFamily_value_1) @@ -1641,17 +1645,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -1733,6 +1737,11 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeAffinity(value: Affinity): void { + let valueSerializer : Serializer = this + const value__AffinityStub = value._AffinityStub + valueSerializer.writeString(value__AffinityStub) + } writeTabBarIconStyle(value: TabBarIconStyle): void { let valueSerializer : Serializer = this const value_selectedColor = value.selectedColor @@ -1748,17 +1757,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = value_selectedColor_value as Color valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_selectedColor_value_1 = value_selectedColor_value as number valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_selectedColor_value_2 = value_selectedColor_value as string valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_selectedColor_value_3 = value_selectedColor_value as Resource valueSerializer.writeResource(value_selectedColor_value_3) @@ -1777,17 +1786,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = value_unselectedColor_value as Color valueSerializer.writeInt32((value_unselectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_unselectedColor_value_1 = value_unselectedColor_value as number valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_unselectedColor_value_2 = value_unselectedColor_value as string valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_unselectedColor_value_3 = value_unselectedColor_value as Resource valueSerializer.writeResource(value_unselectedColor_value_3) @@ -1820,22 +1829,22 @@ export class Serializer extends SerializerBase { const value_minFontSize_value = value_minFontSize! let value_minFontSize_value_type : int32 = RuntimeType.UNDEFINED value_minFontSize_value_type = runtimeType(value_minFontSize_value) - if (((RuntimeType.NUMBER == value_minFontSize_value_type))) { + if (RuntimeType.NUMBER == value_minFontSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_minFontSize_value_0 = value_minFontSize_value as number valueSerializer.writeNumber(value_minFontSize_value_0) } - else if (((RuntimeType.STRING == value_minFontSize_value_type)) || ((RuntimeType.OBJECT == value_minFontSize_value_type))) { + else if ((RuntimeType.STRING == value_minFontSize_value_type) || (RuntimeType.OBJECT == value_minFontSize_value_type)) { valueSerializer.writeInt8(1 as int32) const value_minFontSize_value_1 = value_minFontSize_value as ResourceStr let value_minFontSize_value_1_type : int32 = RuntimeType.UNDEFINED value_minFontSize_value_1_type = runtimeType(value_minFontSize_value_1) - if (((RuntimeType.STRING == value_minFontSize_value_1_type))) { + if (RuntimeType.STRING == value_minFontSize_value_1_type) { valueSerializer.writeInt8(0 as int32) const value_minFontSize_value_1_0 = value_minFontSize_value_1 as string valueSerializer.writeString(value_minFontSize_value_1_0) } - else if (((RuntimeType.OBJECT == value_minFontSize_value_1_type))) { + else if (RuntimeType.OBJECT == value_minFontSize_value_1_type) { valueSerializer.writeInt8(1 as int32) const value_minFontSize_value_1_1 = value_minFontSize_value_1 as Resource valueSerializer.writeResource(value_minFontSize_value_1_1) @@ -1850,22 +1859,22 @@ export class Serializer extends SerializerBase { const value_maxFontSize_value = value_maxFontSize! let value_maxFontSize_value_type : int32 = RuntimeType.UNDEFINED value_maxFontSize_value_type = runtimeType(value_maxFontSize_value) - if (((RuntimeType.NUMBER == value_maxFontSize_value_type))) { + if (RuntimeType.NUMBER == value_maxFontSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_maxFontSize_value_0 = value_maxFontSize_value as number valueSerializer.writeNumber(value_maxFontSize_value_0) } - else if (((RuntimeType.STRING == value_maxFontSize_value_type)) || ((RuntimeType.OBJECT == value_maxFontSize_value_type))) { + else if ((RuntimeType.STRING == value_maxFontSize_value_type) || (RuntimeType.OBJECT == value_maxFontSize_value_type)) { valueSerializer.writeInt8(1 as int32) const value_maxFontSize_value_1 = value_maxFontSize_value as ResourceStr let value_maxFontSize_value_1_type : int32 = RuntimeType.UNDEFINED value_maxFontSize_value_1_type = runtimeType(value_maxFontSize_value_1) - if (((RuntimeType.STRING == value_maxFontSize_value_1_type))) { + if (RuntimeType.STRING == value_maxFontSize_value_1_type) { valueSerializer.writeInt8(0 as int32) const value_maxFontSize_value_1_0 = value_maxFontSize_value_1 as string valueSerializer.writeString(value_maxFontSize_value_1_0) } - else if (((RuntimeType.OBJECT == value_maxFontSize_value_1_type))) { + else if (RuntimeType.OBJECT == value_maxFontSize_value_1_type) { valueSerializer.writeInt8(1 as int32) const value_maxFontSize_value_1_1 = value_maxFontSize_value_1 as Resource valueSerializer.writeResource(value_maxFontSize_value_1_1) @@ -1963,17 +1972,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -1992,17 +2001,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = value_selectedColor_value as Color valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_selectedColor_value_1 = value_selectedColor_value as number valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_selectedColor_value_2 = value_selectedColor_value as string valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_selectedColor_value_3 = value_selectedColor_value as Resource valueSerializer.writeResource(value_selectedColor_value_3) @@ -2040,17 +2049,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -2064,12 +2073,12 @@ export class Serializer extends SerializerBase { const value_src_value = value_src! let value_src_value_type : int32 = RuntimeType.UNDEFINED value_src_value_type = runtimeType(value_src_value) - if (((RuntimeType.STRING == value_src_value_type))) { + if (RuntimeType.STRING == value_src_value_type) { valueSerializer.writeInt8(0 as int32) const value_src_value_0 = value_src_value as string valueSerializer.writeString(value_src_value_0) } - else if (((RuntimeType.OBJECT == value_src_value_type))) { + else if (RuntimeType.OBJECT == value_src_value_type) { valueSerializer.writeInt8(1 as int32) const value_src_value_1 = value_src_value as Resource valueSerializer.writeResource(value_src_value_1) @@ -2162,17 +2171,17 @@ export class Serializer extends SerializerBase { const value_fontSize_value = value_fontSize! let value_fontSize_value_type : int32 = RuntimeType.UNDEFINED value_fontSize_value_type = runtimeType(value_fontSize_value) - if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontSize_value_0 = value_fontSize_value as number valueSerializer.writeNumber(value_fontSize_value_0) } - else if (((RuntimeType.STRING == value_fontSize_value_type))) { + else if (RuntimeType.STRING == value_fontSize_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontSize_value_1 = value_fontSize_value as string valueSerializer.writeString(value_fontSize_value_1) } - else if (((RuntimeType.OBJECT == value_fontSize_value_type))) { + else if (RuntimeType.OBJECT == value_fontSize_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontSize_value_2 = value_fontSize_value as Resource valueSerializer.writeResource(value_fontSize_value_2) @@ -2194,17 +2203,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_element_0 = value_fontColor_value_element as Color valueSerializer.writeInt32((value_fontColor_value_element_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_element_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_element_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_element_1 = value_fontColor_value_element as number valueSerializer.writeNumber(value_fontColor_value_element_1) } - else if (((RuntimeType.STRING == value_fontColor_value_element_type))) { + else if (RuntimeType.STRING == value_fontColor_value_element_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_element_2 = value_fontColor_value_element as string valueSerializer.writeString(value_fontColor_value_element_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_element_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_element_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_element_3 = value_fontColor_value_element as Resource valueSerializer.writeResource(value_fontColor_value_element_3) @@ -2219,7 +2228,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type : int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontWeight_value_0 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_0) @@ -2229,7 +2238,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) @@ -2262,17 +2271,17 @@ export class Serializer extends SerializerBase { const value_fontColor_0 = value_fontColor as Color valueSerializer.writeInt32((value_fontColor_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_type))) { + else if (RuntimeType.NUMBER == value_fontColor_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_1 = value_fontColor as number valueSerializer.writeNumber(value_fontColor_1) } - else if (((RuntimeType.STRING == value_fontColor_type))) { + else if (RuntimeType.STRING == value_fontColor_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_2 = value_fontColor as string valueSerializer.writeString(value_fontColor_2) } - else if (((RuntimeType.OBJECT == value_fontColor_type))) { + else if (RuntimeType.OBJECT == value_fontColor_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_3 = value_fontColor as Resource valueSerializer.writeResource(value_fontColor_3) @@ -2377,17 +2386,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -2406,7 +2415,7 @@ export class Serializer extends SerializerBase { const value_fontSize_value_0 = value_fontSize_value as Length valueSerializer.writeLength(value_fontSize_value_0) } - else if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + else if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontSize_value_1 = value_fontSize_value as number valueSerializer.writeNumber(value_fontSize_value_1) @@ -2428,7 +2437,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type : int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontWeight_value_0 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_0) @@ -2438,7 +2447,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) @@ -2452,12 +2461,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type : int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.STRING == value_fontFamily_value_type))) { + if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontFamily_value_0 = value_fontFamily_value as string valueSerializer.writeString(value_fontFamily_value_0) } - else if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + else if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontFamily_value_1 = value_fontFamily_value as Resource valueSerializer.writeResource(value_fontFamily_value_1) @@ -2502,12 +2511,12 @@ export class Serializer extends SerializerBase { const value_letterSpacing_value = value_letterSpacing! let value_letterSpacing_value_type : int32 = RuntimeType.UNDEFINED value_letterSpacing_value_type = runtimeType(value_letterSpacing_value) - if (((RuntimeType.NUMBER == value_letterSpacing_value_type))) { + if (RuntimeType.NUMBER == value_letterSpacing_value_type) { valueSerializer.writeInt8(0 as int32) const value_letterSpacing_value_0 = value_letterSpacing_value as number valueSerializer.writeNumber(value_letterSpacing_value_0) } - else if (((RuntimeType.STRING == value_letterSpacing_value_type))) { + else if (RuntimeType.STRING == value_letterSpacing_value_type) { valueSerializer.writeInt8(1 as int32) const value_letterSpacing_value_1 = value_letterSpacing_value as string valueSerializer.writeString(value_letterSpacing_value_1) @@ -2521,17 +2530,17 @@ export class Serializer extends SerializerBase { const value_lineHeight_value = value_lineHeight! let value_lineHeight_value_type : int32 = RuntimeType.UNDEFINED value_lineHeight_value_type = runtimeType(value_lineHeight_value) - if (((RuntimeType.NUMBER == value_lineHeight_value_type))) { + if (RuntimeType.NUMBER == value_lineHeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_lineHeight_value_0 = value_lineHeight_value as number valueSerializer.writeNumber(value_lineHeight_value_0) } - else if (((RuntimeType.STRING == value_lineHeight_value_type))) { + else if (RuntimeType.STRING == value_lineHeight_value_type) { valueSerializer.writeInt8(1 as int32) const value_lineHeight_value_1 = value_lineHeight_value as string valueSerializer.writeString(value_lineHeight_value_1) } - else if (((RuntimeType.OBJECT == value_lineHeight_value_type))) { + else if (RuntimeType.OBJECT == value_lineHeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_lineHeight_value_2 = value_lineHeight_value as Resource valueSerializer.writeResource(value_lineHeight_value_2) @@ -2827,17 +2836,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = value_selectedColor_value as Color valueSerializer.writeInt32((value_selectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_selectedColor_value_1 = value_selectedColor_value as number valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_selectedColor_value_2 = value_selectedColor_value as string valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_selectedColor_value_3 = value_selectedColor_value as Resource valueSerializer.writeResource(value_selectedColor_value_3) @@ -2856,17 +2865,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = value_unselectedColor_value as Color valueSerializer.writeInt32((value_unselectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_unselectedColor_value_1 = value_unselectedColor_value as number valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_unselectedColor_value_2 = value_unselectedColor_value as string valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_unselectedColor_value_3 = value_unselectedColor_value as Resource valueSerializer.writeResource(value_unselectedColor_value_3) @@ -2885,17 +2894,17 @@ export class Serializer extends SerializerBase { const value_strokeColor_value_0 = value_strokeColor_value as Color valueSerializer.writeInt32((value_strokeColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_strokeColor_value_type))) { + else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_strokeColor_value_1 = value_strokeColor_value as number valueSerializer.writeNumber(value_strokeColor_value_1) } - else if (((RuntimeType.STRING == value_strokeColor_value_type))) { + else if (RuntimeType.STRING == value_strokeColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_strokeColor_value_2 = value_strokeColor_value as string valueSerializer.writeString(value_strokeColor_value_2) } - else if (((RuntimeType.OBJECT == value_strokeColor_value_type))) { + else if (RuntimeType.OBJECT == value_strokeColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_strokeColor_value_3 = value_strokeColor_value as Resource valueSerializer.writeResource(value_strokeColor_value_3) @@ -2963,17 +2972,17 @@ export class Serializer extends SerializerBase { const value_textColor_value_0 = value_textColor_value as Color valueSerializer.writeInt32((value_textColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_textColor_value_type))) { + else if (RuntimeType.NUMBER == value_textColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_textColor_value_1 = value_textColor_value as number valueSerializer.writeNumber(value_textColor_value_1) } - else if (((RuntimeType.STRING == value_textColor_value_type))) { + else if (RuntimeType.STRING == value_textColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_textColor_value_2 = value_textColor_value as string valueSerializer.writeString(value_textColor_value_2) } - else if (((RuntimeType.OBJECT == value_textColor_value_type))) { + else if (RuntimeType.OBJECT == value_textColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_textColor_value_3 = value_textColor_value as Resource valueSerializer.writeResource(value_textColor_value_3) @@ -3089,12 +3098,12 @@ export class Serializer extends SerializerBase { const value_centerX_value = value_centerX! let value_centerX_value_type : int32 = RuntimeType.UNDEFINED value_centerX_value_type = runtimeType(value_centerX_value) - if (((RuntimeType.NUMBER == value_centerX_value_type))) { + if (RuntimeType.NUMBER == value_centerX_value_type) { valueSerializer.writeInt8(0 as int32) const value_centerX_value_0 = value_centerX_value as number valueSerializer.writeNumber(value_centerX_value_0) } - else if (((RuntimeType.STRING == value_centerX_value_type))) { + else if (RuntimeType.STRING == value_centerX_value_type) { valueSerializer.writeInt8(1 as int32) const value_centerX_value_1 = value_centerX_value as string valueSerializer.writeString(value_centerX_value_1) @@ -3108,12 +3117,12 @@ export class Serializer extends SerializerBase { const value_centerY_value = value_centerY! let value_centerY_value_type : int32 = RuntimeType.UNDEFINED value_centerY_value_type = runtimeType(value_centerY_value) - if (((RuntimeType.NUMBER == value_centerY_value_type))) { + if (RuntimeType.NUMBER == value_centerY_value_type) { valueSerializer.writeInt8(0 as int32) const value_centerY_value_0 = value_centerY_value as number valueSerializer.writeNumber(value_centerY_value_0) } - else if (((RuntimeType.STRING == value_centerY_value_type))) { + else if (RuntimeType.STRING == value_centerY_value_type) { valueSerializer.writeInt8(1 as int32) const value_centerY_value_1 = value_centerY_value as string valueSerializer.writeString(value_centerY_value_1) @@ -3138,12 +3147,12 @@ export class Serializer extends SerializerBase { const value_angle = value.angle let value_angle_type : int32 = RuntimeType.UNDEFINED value_angle_type = runtimeType(value_angle) - if (((RuntimeType.NUMBER == value_angle_type))) { + if (RuntimeType.NUMBER == value_angle_type) { valueSerializer.writeInt8(0 as int32) const value_angle_0 = value_angle as number valueSerializer.writeNumber(value_angle_0) } - else if (((RuntimeType.STRING == value_angle_type))) { + else if (RuntimeType.STRING == value_angle_type) { valueSerializer.writeInt8(1 as int32) const value_angle_1 = value_angle as string valueSerializer.writeString(value_angle_1) @@ -3183,12 +3192,12 @@ export class Serializer extends SerializerBase { const value_centerX_value = value_centerX! let value_centerX_value_type : int32 = RuntimeType.UNDEFINED value_centerX_value_type = runtimeType(value_centerX_value) - if (((RuntimeType.NUMBER == value_centerX_value_type))) { + if (RuntimeType.NUMBER == value_centerX_value_type) { valueSerializer.writeInt8(0 as int32) const value_centerX_value_0 = value_centerX_value as number valueSerializer.writeNumber(value_centerX_value_0) } - else if (((RuntimeType.STRING == value_centerX_value_type))) { + else if (RuntimeType.STRING == value_centerX_value_type) { valueSerializer.writeInt8(1 as int32) const value_centerX_value_1 = value_centerX_value as string valueSerializer.writeString(value_centerX_value_1) @@ -3202,12 +3211,12 @@ export class Serializer extends SerializerBase { const value_centerY_value = value_centerY! let value_centerY_value_type : int32 = RuntimeType.UNDEFINED value_centerY_value_type = runtimeType(value_centerY_value) - if (((RuntimeType.NUMBER == value_centerY_value_type))) { + if (RuntimeType.NUMBER == value_centerY_value_type) { valueSerializer.writeInt8(0 as int32) const value_centerY_value_0 = value_centerY_value as number valueSerializer.writeNumber(value_centerY_value_0) } - else if (((RuntimeType.STRING == value_centerY_value_type))) { + else if (RuntimeType.STRING == value_centerY_value_type) { valueSerializer.writeInt8(1 as int32) const value_centerY_value_1 = value_centerY_value as string valueSerializer.writeString(value_centerY_value_1) @@ -3224,12 +3233,12 @@ export class Serializer extends SerializerBase { const value_x_value = value_x! let value_x_value_type : int32 = RuntimeType.UNDEFINED value_x_value_type = runtimeType(value_x_value) - if (((RuntimeType.NUMBER == value_x_value_type))) { + if (RuntimeType.NUMBER == value_x_value_type) { valueSerializer.writeInt8(0 as int32) const value_x_value_0 = value_x_value as number valueSerializer.writeNumber(value_x_value_0) } - else if (((RuntimeType.STRING == value_x_value_type))) { + else if (RuntimeType.STRING == value_x_value_type) { valueSerializer.writeInt8(1 as int32) const value_x_value_1 = value_x_value as string valueSerializer.writeString(value_x_value_1) @@ -3243,12 +3252,12 @@ export class Serializer extends SerializerBase { const value_y_value = value_y! let value_y_value_type : int32 = RuntimeType.UNDEFINED value_y_value_type = runtimeType(value_y_value) - if (((RuntimeType.NUMBER == value_y_value_type))) { + if (RuntimeType.NUMBER == value_y_value_type) { valueSerializer.writeInt8(0 as int32) const value_y_value_0 = value_y_value as number valueSerializer.writeNumber(value_y_value_0) } - else if (((RuntimeType.STRING == value_y_value_type))) { + else if (RuntimeType.STRING == value_y_value_type) { valueSerializer.writeInt8(1 as int32) const value_y_value_1 = value_y_value as string valueSerializer.writeString(value_y_value_1) @@ -3262,12 +3271,12 @@ export class Serializer extends SerializerBase { const value_z_value = value_z! let value_z_value_type : int32 = RuntimeType.UNDEFINED value_z_value_type = runtimeType(value_z_value) - if (((RuntimeType.NUMBER == value_z_value_type))) { + if (RuntimeType.NUMBER == value_z_value_type) { valueSerializer.writeInt8(0 as int32) const value_z_value_0 = value_z_value as number valueSerializer.writeNumber(value_z_value_0) } - else if (((RuntimeType.STRING == value_z_value_type))) { + else if (RuntimeType.STRING == value_z_value_type) { valueSerializer.writeInt8(1 as int32) const value_z_value_1 = value_z_value as string valueSerializer.writeString(value_z_value_1) @@ -3284,12 +3293,12 @@ export class Serializer extends SerializerBase { const value_angle_value = value_angle! let value_angle_value_type : int32 = RuntimeType.UNDEFINED value_angle_value_type = runtimeType(value_angle_value) - if (((RuntimeType.NUMBER == value_angle_value_type))) { + if (RuntimeType.NUMBER == value_angle_value_type) { valueSerializer.writeInt8(0 as int32) const value_angle_value_0 = value_angle_value as number valueSerializer.writeNumber(value_angle_value_0) } - else if (((RuntimeType.STRING == value_angle_value_type))) { + else if (RuntimeType.STRING == value_angle_value_type) { valueSerializer.writeInt8(1 as int32) const value_angle_value_1 = value_angle_value as string valueSerializer.writeString(value_angle_value_1) @@ -3315,17 +3324,17 @@ export class Serializer extends SerializerBase { const value_colors_element_0_0 = value_colors_element_0 as Color valueSerializer.writeInt32((value_colors_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { valueSerializer.writeInt8(1 as int32) const value_colors_element_0_1 = value_colors_element_0 as number valueSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { valueSerializer.writeInt8(2 as int32) const value_colors_element_0_2 = value_colors_element_0 as string valueSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { valueSerializer.writeInt8(3 as int32) const value_colors_element_0_3 = value_colors_element_0 as Resource valueSerializer.writeResource(value_colors_element_0_3) @@ -3423,12 +3432,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -3446,17 +3455,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -3475,17 +3484,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -3499,17 +3508,17 @@ export class Serializer extends SerializerBase { const value_dx = value.dx let value_dx_type : int32 = RuntimeType.UNDEFINED value_dx_type = runtimeType(value_dx) - if (((RuntimeType.NUMBER == value_dx_type))) { + if (RuntimeType.NUMBER == value_dx_type) { valueSerializer.writeInt8(0 as int32) const value_dx_0 = value_dx as number valueSerializer.writeNumber(value_dx_0) } - else if (((RuntimeType.STRING == value_dx_type))) { + else if (RuntimeType.STRING == value_dx_type) { valueSerializer.writeInt8(1 as int32) const value_dx_1 = value_dx as string valueSerializer.writeString(value_dx_1) } - else if (((RuntimeType.OBJECT == value_dx_type))) { + else if (RuntimeType.OBJECT == value_dx_type) { valueSerializer.writeInt8(2 as int32) const value_dx_2 = value_dx as Resource valueSerializer.writeResource(value_dx_2) @@ -3517,17 +3526,17 @@ export class Serializer extends SerializerBase { const value_dy = value.dy let value_dy_type : int32 = RuntimeType.UNDEFINED value_dy_type = runtimeType(value_dy) - if (((RuntimeType.NUMBER == value_dy_type))) { + if (RuntimeType.NUMBER == value_dy_type) { valueSerializer.writeInt8(0 as int32) const value_dy_0 = value_dy as number valueSerializer.writeNumber(value_dy_0) } - else if (((RuntimeType.STRING == value_dy_type))) { + else if (RuntimeType.STRING == value_dy_type) { valueSerializer.writeInt8(1 as int32) const value_dy_1 = value_dy as string valueSerializer.writeString(value_dy_1) } - else if (((RuntimeType.OBJECT == value_dy_type))) { + else if (RuntimeType.OBJECT == value_dy_type) { valueSerializer.writeInt8(2 as int32) const value_dy_2 = value_dy as Resource valueSerializer.writeResource(value_dy_2) @@ -3562,12 +3571,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -3797,6 +3806,19 @@ export class Serializer extends SerializerBase { const value__DrawContextStub = value._DrawContextStub valueSerializer.writeString(value__DrawContextStub) } + writeCustomSpanMetrics(value: CustomSpanMetrics): void { + let valueSerializer : Serializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + let value_height_type : int32 = RuntimeType.UNDEFINED + value_height_type = runtimeType(value_height) + valueSerializer.writeInt8(value_height_type as int32) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeNumber(value_height_value) + } + } writeCustomSpanMeasureInfo(value: CustomSpanMeasureInfo): void { let valueSerializer : Serializer = this const value_fontSize = value.fontSize @@ -3828,17 +3850,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -3929,6 +3951,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeWaterFlowAttribute(value: WaterFlowAttribute): void { + } writeWaterFlowSections(value: WaterFlowSections): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -4080,17 +4104,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -4118,7 +4142,7 @@ export class Serializer extends SerializerBase { const value_shown = value.shown let value_shown_type : int32 = RuntimeType.UNDEFINED value_shown_type = runtimeType(value_shown) - if (((RuntimeType.STRING == value_shown_type))) { + if (RuntimeType.STRING == value_shown_type) { valueSerializer.writeInt8(0 as int32) const value_shown_0 = value_shown as string valueSerializer.writeString(value_shown_0) @@ -4136,7 +4160,7 @@ export class Serializer extends SerializerBase { const value_hidden = value.hidden let value_hidden_type : int32 = RuntimeType.UNDEFINED value_hidden_type = runtimeType(value_hidden) - if (((RuntimeType.STRING == value_hidden_type))) { + if (RuntimeType.STRING == value_hidden_type) { valueSerializer.writeInt8(0 as int32) const value_hidden_0 = value_hidden as string valueSerializer.writeString(value_hidden_0) @@ -4159,7 +4183,7 @@ export class Serializer extends SerializerBase { const value_switching_value = value_switching! let value_switching_value_type : int32 = RuntimeType.UNDEFINED value_switching_value_type = runtimeType(value_switching_value) - if (((RuntimeType.STRING == value_switching_value_type))) { + if (RuntimeType.STRING == value_switching_value_type) { valueSerializer.writeInt8(0 as int32) const value_switching_value_0 = value_switching_value as string valueSerializer.writeString(value_switching_value_0) @@ -4259,6 +4283,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_lock_value) } } + writeWindowSceneAttribute(value: WindowSceneAttribute): void { + } + writeWebAttribute(value: WebAttribute): void { + } writeSelectionMenuOptionsExt(value: SelectionMenuOptionsExt): void { let valueSerializer : Serializer = this const value_onAppear = value.onAppear @@ -4752,6 +4780,23 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeWebCookie(value: WebCookie): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeScreenCaptureConfig(value: ScreenCaptureConfig): void { let valueSerializer : Serializer = this const value_captureMode = value.captureMode @@ -4904,17 +4949,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -4968,12 +5013,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -5079,12 +5124,12 @@ export class Serializer extends SerializerBase { const value_value_value = value_value! let value_value_value_type : int32 = RuntimeType.UNDEFINED value_value_value_type = runtimeType(value_value_value) - if (((RuntimeType.STRING == value_value_value_type))) { + if (RuntimeType.STRING == value_value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_value_0 = value_value_value as string valueSerializer.writeString(value_value_value_0) } - else if (((RuntimeType.OBJECT == value_value_value_type))) { + else if (RuntimeType.OBJECT == value_value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_value_1 = value_value_value as Array valueSerializer.writeInt32(value_value_value_1.length as int32) @@ -5102,12 +5147,12 @@ export class Serializer extends SerializerBase { const value_selected_value = value_selected! let value_selected_value_type : int32 = RuntimeType.UNDEFINED value_selected_value_type = runtimeType(value_selected_value) - if (((RuntimeType.NUMBER == value_selected_value_type))) { + if (RuntimeType.NUMBER == value_selected_value_type) { valueSerializer.writeInt8(0 as int32) const value_selected_value_0 = value_selected_value as number valueSerializer.writeNumber(value_selected_value_0) } - else if (((RuntimeType.OBJECT == value_selected_value_type))) { + else if (RuntimeType.OBJECT == value_selected_value_type) { valueSerializer.writeInt8(1 as int32) const value_selected_value_1 = value_selected_value as Array valueSerializer.writeInt32(value_selected_value_1.length as int32) @@ -5125,12 +5170,12 @@ export class Serializer extends SerializerBase { const value_defaultPickerItemHeight_value = value_defaultPickerItemHeight! let value_defaultPickerItemHeight_value_type : int32 = RuntimeType.UNDEFINED value_defaultPickerItemHeight_value_type = runtimeType(value_defaultPickerItemHeight_value) - if (((RuntimeType.NUMBER == value_defaultPickerItemHeight_value_type))) { + if (RuntimeType.NUMBER == value_defaultPickerItemHeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_defaultPickerItemHeight_value_0 = value_defaultPickerItemHeight_value as number valueSerializer.writeNumber(value_defaultPickerItemHeight_value_0) } - else if (((RuntimeType.STRING == value_defaultPickerItemHeight_value_type))) { + else if (RuntimeType.STRING == value_defaultPickerItemHeight_value_type) { valueSerializer.writeInt8(1 as int32) const value_defaultPickerItemHeight_value_1 = value_defaultPickerItemHeight_value as string valueSerializer.writeString(value_defaultPickerItemHeight_value_1) @@ -5248,17 +5293,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -5312,12 +5357,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -5363,17 +5408,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -5396,6 +5441,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_endMargin_value) } } + writeTextInputAttribute(value: TextInputAttribute): void { + } writeInputCounterOptions(value: InputCounterOptions): void { let valueSerializer : Serializer = this const value_thresholdPercentage = value.thresholdPercentage @@ -5441,17 +5488,17 @@ export class Serializer extends SerializerBase { const value_typing_value_0 = value_typing_value as Color valueSerializer.writeInt32((value_typing_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_typing_value_type))) { + else if (RuntimeType.NUMBER == value_typing_value_type) { valueSerializer.writeInt8(1 as int32) const value_typing_value_1 = value_typing_value as number valueSerializer.writeNumber(value_typing_value_1) } - else if (((RuntimeType.STRING == value_typing_value_type))) { + else if (RuntimeType.STRING == value_typing_value_type) { valueSerializer.writeInt8(2 as int32) const value_typing_value_2 = value_typing_value as string valueSerializer.writeString(value_typing_value_2) } - else if (((RuntimeType.OBJECT == value_typing_value_type))) { + else if (RuntimeType.OBJECT == value_typing_value_type) { valueSerializer.writeInt8(3 as int32) const value_typing_value_3 = value_typing_value as Resource valueSerializer.writeResource(value_typing_value_3) @@ -5470,17 +5517,17 @@ export class Serializer extends SerializerBase { const value_normal_value_0 = value_normal_value as Color valueSerializer.writeInt32((value_normal_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_normal_value_type))) { + else if (RuntimeType.NUMBER == value_normal_value_type) { valueSerializer.writeInt8(1 as int32) const value_normal_value_1 = value_normal_value as number valueSerializer.writeNumber(value_normal_value_1) } - else if (((RuntimeType.STRING == value_normal_value_type))) { + else if (RuntimeType.STRING == value_normal_value_type) { valueSerializer.writeInt8(2 as int32) const value_normal_value_2 = value_normal_value as string valueSerializer.writeString(value_normal_value_2) } - else if (((RuntimeType.OBJECT == value_normal_value_type))) { + else if (RuntimeType.OBJECT == value_normal_value_type) { valueSerializer.writeInt8(3 as int32) const value_normal_value_3 = value_normal_value as Resource valueSerializer.writeResource(value_normal_value_3) @@ -5499,17 +5546,17 @@ export class Serializer extends SerializerBase { const value_error_value_0 = value_error_value as Color valueSerializer.writeInt32((value_error_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_error_value_type))) { + else if (RuntimeType.NUMBER == value_error_value_type) { valueSerializer.writeInt8(1 as int32) const value_error_value_1 = value_error_value as number valueSerializer.writeNumber(value_error_value_1) } - else if (((RuntimeType.STRING == value_error_value_type))) { + else if (RuntimeType.STRING == value_error_value_type) { valueSerializer.writeInt8(2 as int32) const value_error_value_2 = value_error_value as string valueSerializer.writeString(value_error_value_2) } - else if (((RuntimeType.OBJECT == value_error_value_type))) { + else if (RuntimeType.OBJECT == value_error_value_type) { valueSerializer.writeInt8(3 as int32) const value_error_value_3 = value_error_value as Resource valueSerializer.writeResource(value_error_value_3) @@ -5528,17 +5575,17 @@ export class Serializer extends SerializerBase { const value_disable_value_0 = value_disable_value as Color valueSerializer.writeInt32((value_disable_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_disable_value_type))) { + else if (RuntimeType.NUMBER == value_disable_value_type) { valueSerializer.writeInt8(1 as int32) const value_disable_value_1 = value_disable_value as number valueSerializer.writeNumber(value_disable_value_1) } - else if (((RuntimeType.STRING == value_disable_value_type))) { + else if (RuntimeType.STRING == value_disable_value_type) { valueSerializer.writeInt8(2 as int32) const value_disable_value_2 = value_disable_value as string valueSerializer.writeString(value_disable_value_2) } - else if (((RuntimeType.OBJECT == value_disable_value_type))) { + else if (RuntimeType.OBJECT == value_disable_value_type) { valueSerializer.writeInt8(3 as int32) const value_disable_value_3 = value_disable_value as Resource valueSerializer.writeResource(value_disable_value_3) @@ -5597,12 +5644,12 @@ export class Serializer extends SerializerBase { const value_content = value.content let value_content_type : int32 = RuntimeType.UNDEFINED value_content_type = runtimeType(value_content) - if (((RuntimeType.STRING == value_content_type))) { + if (RuntimeType.STRING == value_content_type) { valueSerializer.writeInt8(0 as int32) const value_content_0 = value_content as string valueSerializer.writeString(value_content_0) } - else if (((RuntimeType.OBJECT == value_content_type))) { + else if (RuntimeType.OBJECT == value_content_type) { valueSerializer.writeInt8(1 as int32) const value_content_1 = value_content as Resource valueSerializer.writeResource(value_content_1) @@ -5615,12 +5662,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -5629,6 +5676,59 @@ export class Serializer extends SerializerBase { const value_id = value.id valueSerializer.writeTextMenuItemId(value_id) } + writeLineMetrics(value: LineMetrics): void { + let valueSerializer : Serializer = this + const value__LineMetricsStub = value._LineMetricsStub + valueSerializer.writeString(value__LineMetricsStub) + } + writePositionWithAffinity(value: PositionWithAffinity): void { + let valueSerializer : Serializer = this + const value_position = value.position + valueSerializer.writeNumber(value_position) + const value_affinity = value.affinity + valueSerializer.writeAffinity(value_affinity) + } + writeMutableStyledString(value: MutableStyledString): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writePreviewText(value: PreviewText): void { + let valueSerializer : Serializer = this + const value_offset = value.offset + valueSerializer.writeNumber(value_offset) + const value_value = value.value + valueSerializer.writeString(value_value) + } + writeLayoutManager(value: LayoutManager): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeTextClockController(value: TextClockController): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -5646,6 +5746,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextAreaAttribute(value: TextAreaAttribute): void { + } writeTextAreaController(value: TextAreaController): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -5663,6 +5765,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextAttribute(value: TextAttribute): void { + } writeSelectionMenuOptions(value: SelectionMenuOptions): void { let valueSerializer : Serializer = this const value_onAppear = value.onAppear @@ -5728,17 +5832,17 @@ export class Serializer extends SerializerBase { const value__icon_value = value__icon! let value__icon_value_type : int32 = RuntimeType.UNDEFINED value__icon_value_type = runtimeType(value__icon_value) - if ((((RuntimeType.STRING == value__icon_value_type))) || (((RuntimeType.OBJECT == value__icon_value_type)))) { + if ((RuntimeType.STRING == value__icon_value_type) || (RuntimeType.OBJECT == value__icon_value_type)) { valueSerializer.writeInt8(0 as int32) const value__icon_value_0 = value__icon_value as ResourceStr let value__icon_value_0_type : int32 = RuntimeType.UNDEFINED value__icon_value_0_type = runtimeType(value__icon_value_0) - if (((RuntimeType.STRING == value__icon_value_0_type))) { + if (RuntimeType.STRING == value__icon_value_0_type) { valueSerializer.writeInt8(0 as int32) const value__icon_value_0_0 = value__icon_value_0 as string valueSerializer.writeString(value__icon_value_0_0) } - else if (((RuntimeType.OBJECT == value__icon_value_0_type))) { + else if (RuntimeType.OBJECT == value__icon_value_0_type) { valueSerializer.writeInt8(1 as int32) const value__icon_value_0_1 = value__icon_value_0 as Resource valueSerializer.writeResource(value__icon_value_0_1) @@ -5758,12 +5862,12 @@ export class Serializer extends SerializerBase { const value__text_value = value__text! let value__text_value_type : int32 = RuntimeType.UNDEFINED value__text_value_type = runtimeType(value__text_value) - if (((RuntimeType.STRING == value__text_value_type))) { + if (RuntimeType.STRING == value__text_value_type) { valueSerializer.writeInt8(0 as int32) const value__text_value_0 = value__text_value as string valueSerializer.writeString(value__text_value_0) } - else if (((RuntimeType.OBJECT == value__text_value_type))) { + else if (RuntimeType.OBJECT == value__text_value_type) { valueSerializer.writeInt8(1 as int32) const value__text_value_1 = value__text_value as Resource valueSerializer.writeResource(value__text_value_1) @@ -5883,7 +5987,7 @@ export class Serializer extends SerializerBase { const value__content_value = value__content! let value__content_value_type : int32 = RuntimeType.UNDEFINED value__content_value_type = runtimeType(value__content_value) - if (((RuntimeType.STRING == value__content_value_type))) { + if (RuntimeType.STRING == value__content_value_type) { valueSerializer.writeInt8(0 as int32) const value__content_value_0 = value__content_value as string valueSerializer.writeString(value__content_value_0) @@ -6011,12 +6115,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -6030,18 +6134,20 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type : int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0 as int32) const value_text_value_0 = value_text_value as string valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1 as int32) const value_text_value_1 = value_text_value as Resource valueSerializer.writeResource(value_text_value_1) } } } + writeTabsAttribute(value: TabsAttribute): void { + } writeBackgroundBlurStyleOptions(value: BackgroundBlurStyleOptions): void { let valueSerializer : Serializer = this const value_colorMode = value.colorMode @@ -6097,17 +6203,17 @@ export class Serializer extends SerializerBase { const value_inactiveColor_value_0 = value_inactiveColor_value as Color valueSerializer.writeInt32((value_inactiveColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { + else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_inactiveColor_value_1 = value_inactiveColor_value as number valueSerializer.writeNumber(value_inactiveColor_value_1) } - else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + else if (RuntimeType.STRING == value_inactiveColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_inactiveColor_value_2 = value_inactiveColor_value as string valueSerializer.writeString(value_inactiveColor_value_2) } - else if (((RuntimeType.OBJECT == value_inactiveColor_value_type))) { + else if (RuntimeType.OBJECT == value_inactiveColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_inactiveColor_value_3 = value_inactiveColor_value as Resource valueSerializer.writeResource(value_inactiveColor_value_3) @@ -6163,6 +6269,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeSymbolGlyphAttribute(value: SymbolGlyphAttribute): void { + } writeSymbolEffect(value: SymbolEffect): void { } writeDigitIndicator(value: DigitIndicator): void { @@ -6228,17 +6336,17 @@ export class Serializer extends SerializerBase { const value__fontColor_value_0 = value__fontColor_value as Color valueSerializer.writeInt32((value__fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value__fontColor_value_type))) { + else if (RuntimeType.NUMBER == value__fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value__fontColor_value_1 = value__fontColor_value as number valueSerializer.writeNumber(value__fontColor_value_1) } - else if (((RuntimeType.STRING == value__fontColor_value_type))) { + else if (RuntimeType.STRING == value__fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value__fontColor_value_2 = value__fontColor_value as string valueSerializer.writeString(value__fontColor_value_2) } - else if (((RuntimeType.OBJECT == value__fontColor_value_type))) { + else if (RuntimeType.OBJECT == value__fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value__fontColor_value_3 = value__fontColor_value as Resource valueSerializer.writeResource(value__fontColor_value_3) @@ -6257,17 +6365,17 @@ export class Serializer extends SerializerBase { const value__selectedFontColor_value_0 = value__selectedFontColor_value as Color valueSerializer.writeInt32((value__selectedFontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value__selectedFontColor_value_type))) { + else if (RuntimeType.NUMBER == value__selectedFontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value__selectedFontColor_value_1 = value__selectedFontColor_value as number valueSerializer.writeNumber(value__selectedFontColor_value_1) } - else if (((RuntimeType.STRING == value__selectedFontColor_value_type))) { + else if (RuntimeType.STRING == value__selectedFontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value__selectedFontColor_value_2 = value__selectedFontColor_value as string valueSerializer.writeString(value__selectedFontColor_value_2) } - else if (((RuntimeType.OBJECT == value__selectedFontColor_value_type))) { + else if (RuntimeType.OBJECT == value__selectedFontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value__selectedFontColor_value_3 = value__selectedFontColor_value as Resource valueSerializer.writeResource(value__selectedFontColor_value_3) @@ -6393,17 +6501,17 @@ export class Serializer extends SerializerBase { const value__color_value_0 = value__color_value as Color valueSerializer.writeInt32((value__color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value__color_value_type))) { + else if (RuntimeType.NUMBER == value__color_value_type) { valueSerializer.writeInt8(1 as int32) const value__color_value_1 = value__color_value as number valueSerializer.writeNumber(value__color_value_1) } - else if (((RuntimeType.STRING == value__color_value_type))) { + else if (RuntimeType.STRING == value__color_value_type) { valueSerializer.writeInt8(2 as int32) const value__color_value_2 = value__color_value as string valueSerializer.writeString(value__color_value_2) } - else if (((RuntimeType.OBJECT == value__color_value_type))) { + else if (RuntimeType.OBJECT == value__color_value_type) { valueSerializer.writeInt8(3 as int32) const value__color_value_3 = value__color_value as Resource valueSerializer.writeResource(value__color_value_3) @@ -6422,17 +6530,17 @@ export class Serializer extends SerializerBase { const value__selectedColor_value_0 = value__selectedColor_value as Color valueSerializer.writeInt32((value__selectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value__selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value__selectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value__selectedColor_value_1 = value__selectedColor_value as number valueSerializer.writeNumber(value__selectedColor_value_1) } - else if (((RuntimeType.STRING == value__selectedColor_value_type))) { + else if (RuntimeType.STRING == value__selectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value__selectedColor_value_2 = value__selectedColor_value as string valueSerializer.writeString(value__selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value__selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value__selectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value__selectedColor_value_3 = value__selectedColor_value as Resource valueSerializer.writeResource(value__selectedColor_value_3) @@ -6447,17 +6555,19 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value__maxDisplayCount_value) } } + writeSwiperAttribute(value: SwiperAttribute): void { + } writeSwiperAutoFill(value: SwiperAutoFill): void { let valueSerializer : Serializer = this const value_minSize = value.minSize let value_minSize_type : int32 = RuntimeType.UNDEFINED value_minSize_type = runtimeType(value_minSize) - if (((RuntimeType.STRING == value_minSize_type))) { + if (RuntimeType.STRING == value_minSize_type) { valueSerializer.writeInt8(0 as int32) const value_minSize_0 = value_minSize as string valueSerializer.writeString(value_minSize_0) } - else if (((RuntimeType.NUMBER == value_minSize_type))) { + else if (RuntimeType.NUMBER == value_minSize_type) { valueSerializer.writeInt8(1 as int32) const value_minSize_1 = value_minSize as number valueSerializer.writeNumber(value_minSize_1) @@ -6502,17 +6612,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -6539,23 +6649,29 @@ export class Serializer extends SerializerBase { const value_arrowColor_value_0 = value_arrowColor_value as Color valueSerializer.writeInt32((value_arrowColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_arrowColor_value_type))) { + else if (RuntimeType.NUMBER == value_arrowColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_arrowColor_value_1 = value_arrowColor_value as number valueSerializer.writeNumber(value_arrowColor_value_1) } - else if (((RuntimeType.STRING == value_arrowColor_value_type))) { + else if (RuntimeType.STRING == value_arrowColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_arrowColor_value_2 = value_arrowColor_value as string valueSerializer.writeString(value_arrowColor_value_2) } - else if (((RuntimeType.OBJECT == value_arrowColor_value_type))) { + else if (RuntimeType.OBJECT == value_arrowColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_arrowColor_value_3 = value_arrowColor_value as Resource valueSerializer.writeResource(value_arrowColor_value_3) } } } + writeSliderAttribute(value: SliderAttribute): void { + } + writeShapeAttribute(value: ShapeAttribute): void { + } + writeSelectAttribute(value: SelectAttribute): void { + } writeLocalizedEdges(value: LocalizedEdges): void { let valueSerializer : Serializer = this const value_top = value.top @@ -6626,6 +6742,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_right_value) } } + writeSearchAttribute(value: SearchAttribute): void { + } writeSearchButtonOptions(value: SearchButtonOptions): void { let valueSerializer : Serializer = this const value_fontSize = value.fontSize @@ -6649,17 +6767,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -6729,11 +6847,24 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeScrollAttribute(value: ScrollAttribute): void { + } writeEdgeEffectOptions(value: EdgeEffectOptions): void { let valueSerializer : Serializer = this const value_alwaysEnabled = value.alwaysEnabled valueSerializer.writeBoolean(value_alwaysEnabled) } + writeRectResult(value: RectResult): void { + let valueSerializer : Serializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeScrollToIndexOptions(value: ScrollToIndexOptions): void { let valueSerializer : Serializer = this const value_extraOffset = value.extraOffset @@ -6745,6 +6876,13 @@ export class Serializer extends SerializerBase { valueSerializer.writeLengthMetrics(value_extraOffset_value) } } + writeOffsetResult(value: OffsetResult): void { + let valueSerializer : Serializer = this + const value_xOffset = value.xOffset + valueSerializer.writeNumber(value_xOffset) + const value_yOffset = value.yOffset + valueSerializer.writeNumber(value_yOffset) + } writeScrollPageOptions(value: ScrollPageOptions): void { let valueSerializer : Serializer = this const value_next = value.next @@ -6774,12 +6912,12 @@ export class Serializer extends SerializerBase { const value_xOffset = value.xOffset let value_xOffset_type : int32 = RuntimeType.UNDEFINED value_xOffset_type = runtimeType(value_xOffset) - if (((RuntimeType.NUMBER == value_xOffset_type))) { + if (RuntimeType.NUMBER == value_xOffset_type) { valueSerializer.writeInt8(0 as int32) const value_xOffset_0 = value_xOffset as number valueSerializer.writeNumber(value_xOffset_0) } - else if (((RuntimeType.STRING == value_xOffset_type))) { + else if (RuntimeType.STRING == value_xOffset_type) { valueSerializer.writeInt8(1 as int32) const value_xOffset_1 = value_xOffset as string valueSerializer.writeString(value_xOffset_1) @@ -6787,12 +6925,12 @@ export class Serializer extends SerializerBase { const value_yOffset = value.yOffset let value_yOffset_type : int32 = RuntimeType.UNDEFINED value_yOffset_type = runtimeType(value_yOffset) - if (((RuntimeType.NUMBER == value_yOffset_type))) { + if (RuntimeType.NUMBER == value_yOffset_type) { valueSerializer.writeInt8(0 as int32) const value_yOffset_0 = value_yOffset as number valueSerializer.writeNumber(value_yOffset_0) } - else if (((RuntimeType.STRING == value_yOffset_type))) { + else if (RuntimeType.STRING == value_yOffset_type) { valueSerializer.writeInt8(1 as int32) const value_yOffset_1 = value_yOffset as string valueSerializer.writeString(value_yOffset_1) @@ -6805,12 +6943,12 @@ export class Serializer extends SerializerBase { const value_animation_value = value_animation! let value_animation_value_type : int32 = RuntimeType.UNDEFINED value_animation_value_type = runtimeType(value_animation_value) - if (((RuntimeType.OBJECT == value_animation_value_type))) { + if (RuntimeType.OBJECT == value_animation_value_type) { valueSerializer.writeInt8(0 as int32) const value_animation_value_0 = value_animation_value as ScrollAnimationOptions valueSerializer.writeScrollAnimationOptions(value_animation_value_0) } - else if (((RuntimeType.BOOLEAN == value_animation_value_type))) { + else if (RuntimeType.BOOLEAN == value_animation_value_type) { valueSerializer.writeInt8(1 as int32) const value_animation_value_1 = value_animation_value as boolean valueSerializer.writeBoolean(value_animation_value_1) @@ -6851,6 +6989,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeRichEditorAttribute(value: RichEditorAttribute): void { + } writePlaceholderStyle(value: PlaceholderStyle): void { let valueSerializer : Serializer = this const value_font = value.font @@ -6874,17 +7014,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -6911,12 +7051,12 @@ export class Serializer extends SerializerBase { const value_valueResourceStr_value = value_valueResourceStr! let value_valueResourceStr_value_type : int32 = RuntimeType.UNDEFINED value_valueResourceStr_value_type = runtimeType(value_valueResourceStr_value) - if (((RuntimeType.STRING == value_valueResourceStr_value_type))) { + if (RuntimeType.STRING == value_valueResourceStr_value_type) { valueSerializer.writeInt8(0 as int32) const value_valueResourceStr_value_0 = value_valueResourceStr_value as string valueSerializer.writeString(value_valueResourceStr_value_0) } - else if (((RuntimeType.OBJECT == value_valueResourceStr_value_type))) { + else if (RuntimeType.OBJECT == value_valueResourceStr_value_type) { valueSerializer.writeInt8(1 as int32) const value_valueResourceStr_value_1 = value_valueResourceStr_value as Resource valueSerializer.writeResource(value_valueResourceStr_value_1) @@ -7014,6 +7154,31 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_end_value) } } + writeRichEditorSelection(value: RichEditorSelection): void { + let valueSerializer : Serializer = this + const value_selection = value.selection + const value_selection_0 = value_selection[0] + valueSerializer.writeNumber(value_selection_0) + const value_selection_1 = value_selection[1] + valueSerializer.writeNumber(value_selection_1) + const value_spans = value.spans + valueSerializer.writeInt32(value_spans.length as int32) + for (let i = 0; i < value_spans.length; i++) { + const value_spans_element : RichEditorTextSpanResult | RichEditorImageSpanResult = value_spans[i] + let value_spans_element_type : int32 = RuntimeType.UNDEFINED + value_spans_element_type = runtimeType(value_spans_element) + if (TypeChecker.isRichEditorTextSpanResult(value_spans_element, true, false, false, true, false, false, false, false)) { + valueSerializer.writeInt8(0 as int32) + const value_spans_element_0 = value_spans_element as RichEditorTextSpanResult + valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0) + } + else if (TypeChecker.isRichEditorImageSpanResult(value_spans_element, true, false, false, false, true)) { + valueSerializer.writeInt8(1 as int32) + const value_spans_element_1 = value_spans_element as RichEditorImageSpanResult + valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1) + } + } + } writeRichEditorParagraphStyleOptions(value: RichEditorParagraphStyleOptions): void { let valueSerializer : Serializer = this const value_start = value.start @@ -7219,12 +7384,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -7238,12 +7403,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -7257,12 +7422,12 @@ export class Serializer extends SerializerBase { const value_radiusWidth_value = value_radiusWidth! let value_radiusWidth_value_type : int32 = RuntimeType.UNDEFINED value_radiusWidth_value_type = runtimeType(value_radiusWidth_value) - if (((RuntimeType.NUMBER == value_radiusWidth_value_type))) { + if (RuntimeType.NUMBER == value_radiusWidth_value_type) { valueSerializer.writeInt8(0 as int32) const value_radiusWidth_value_0 = value_radiusWidth_value as number valueSerializer.writeNumber(value_radiusWidth_value_0) } - else if (((RuntimeType.STRING == value_radiusWidth_value_type))) { + else if (RuntimeType.STRING == value_radiusWidth_value_type) { valueSerializer.writeInt8(1 as int32) const value_radiusWidth_value_1 = value_radiusWidth_value as string valueSerializer.writeString(value_radiusWidth_value_1) @@ -7276,12 +7441,12 @@ export class Serializer extends SerializerBase { const value_radiusHeight_value = value_radiusHeight! let value_radiusHeight_value_type : int32 = RuntimeType.UNDEFINED value_radiusHeight_value_type = runtimeType(value_radiusHeight_value) - if (((RuntimeType.NUMBER == value_radiusHeight_value_type))) { + if (RuntimeType.NUMBER == value_radiusHeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_radiusHeight_value_0 = value_radiusHeight_value as number valueSerializer.writeNumber(value_radiusHeight_value_0) } - else if (((RuntimeType.STRING == value_radiusHeight_value_type))) { + else if (RuntimeType.STRING == value_radiusHeight_value_type) { valueSerializer.writeInt8(1 as int32) const value_radiusHeight_value_1 = value_radiusHeight_value as string valueSerializer.writeString(value_radiusHeight_value_1) @@ -7298,12 +7463,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -7317,12 +7482,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -7336,17 +7501,17 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type : int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0 as int32) const value_radius_value_0 = value_radius_value as number valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.STRING == value_radius_value_type))) { + else if (RuntimeType.STRING == value_radius_value_type) { valueSerializer.writeInt8(1 as int32) const value_radius_value_1 = value_radius_value as string valueSerializer.writeString(value_radius_value_1) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(2 as int32) const value_radius_value_2 = value_radius_value as Array valueSerializer.writeInt32(value_radius_value_2.length as int32) @@ -7354,12 +7519,12 @@ export class Serializer extends SerializerBase { const value_radius_value_2_element : number | string = value_radius_value_2[i] let value_radius_value_2_element_type : int32 = RuntimeType.UNDEFINED value_radius_value_2_element_type = runtimeType(value_radius_value_2_element) - if (((RuntimeType.NUMBER == value_radius_value_2_element_type))) { + if (RuntimeType.NUMBER == value_radius_value_2_element_type) { valueSerializer.writeInt8(0 as int32) const value_radius_value_2_element_0 = value_radius_value_2_element as number valueSerializer.writeNumber(value_radius_value_2_element_0) } - else if (((RuntimeType.STRING == value_radius_value_2_element_type))) { + else if (RuntimeType.STRING == value_radius_value_2_element_type) { valueSerializer.writeInt8(1 as int32) const value_radius_value_2_element_1 = value_radius_value_2_element as string valueSerializer.writeString(value_radius_value_2_element_1) @@ -7426,17 +7591,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0 = value_borderColor_value as Color valueSerializer.writeInt32((value_borderColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1 = value_borderColor_value as number valueSerializer.writeNumber(value_borderColor_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_2 = value_borderColor_value as string valueSerializer.writeString(value_borderColor_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_3 = value_borderColor_value as Resource valueSerializer.writeResource(value_borderColor_value_3) @@ -7479,17 +7644,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -7565,17 +7730,17 @@ export class Serializer extends SerializerBase { const value_strokeRadius_value = value_strokeRadius! let value_strokeRadius_value_type : int32 = RuntimeType.UNDEFINED value_strokeRadius_value_type = runtimeType(value_strokeRadius_value) - if (((RuntimeType.STRING == value_strokeRadius_value_type))) { + if (RuntimeType.STRING == value_strokeRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_strokeRadius_value_0 = value_strokeRadius_value as string valueSerializer.writeString(value_strokeRadius_value_0) } - else if (((RuntimeType.NUMBER == value_strokeRadius_value_type))) { + else if (RuntimeType.NUMBER == value_strokeRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_strokeRadius_value_1 = value_strokeRadius_value as number valueSerializer.writeNumber(value_strokeRadius_value_1) } - else if (((RuntimeType.OBJECT == value_strokeRadius_value_type))) { + else if (RuntimeType.OBJECT == value_strokeRadius_value_type) { valueSerializer.writeInt8(2 as int32) const value_strokeRadius_value_2 = value_strokeRadius_value as Resource valueSerializer.writeResource(value_strokeRadius_value_2) @@ -7604,17 +7769,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -7737,6 +7902,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_animated_value) } } + writeNavDestinationAttribute(value: NavDestinationAttribute): void { + } writeNavigationToolbarOptions(value: NavigationToolbarOptions): void { let valueSerializer : Serializer = this const value_backgroundColor = value.backgroundColor @@ -7752,17 +7919,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -7800,17 +7967,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -7896,12 +8063,12 @@ export class Serializer extends SerializerBase { const value_main = value.main let value_main_type : int32 = RuntimeType.UNDEFINED value_main_type = runtimeType(value_main) - if (((RuntimeType.STRING == value_main_type))) { + if (RuntimeType.STRING == value_main_type) { valueSerializer.writeInt8(0 as int32) const value_main_0 = value_main as string valueSerializer.writeString(value_main_0) } - else if (((RuntimeType.OBJECT == value_main_type))) { + else if (RuntimeType.OBJECT == value_main_type) { valueSerializer.writeInt8(1 as int32) const value_main_1 = value_main as Resource valueSerializer.writeResource(value_main_1) @@ -7909,12 +8076,12 @@ export class Serializer extends SerializerBase { const value_sub = value.sub let value_sub_type : int32 = RuntimeType.UNDEFINED value_sub_type = runtimeType(value_sub) - if (((RuntimeType.STRING == value_sub_type))) { + if (RuntimeType.STRING == value_sub_type) { valueSerializer.writeInt8(0 as int32) const value_sub_0 = value_sub as string valueSerializer.writeString(value_sub_0) } - else if (((RuntimeType.OBJECT == value_sub_type))) { + else if (RuntimeType.OBJECT == value_sub_type) { valueSerializer.writeInt8(1 as int32) const value_sub_1 = value_sub as Resource valueSerializer.writeResource(value_sub_1) @@ -7925,6 +8092,15 @@ export class Serializer extends SerializerBase { const value__SystemBarStyleStub = value._SystemBarStyleStub valueSerializer.writeString(value__SystemBarStyleStub) } + writeRouteMapConfig(value: RouteMapConfig): void { + let valueSerializer : Serializer = this + const value_name = value.name + valueSerializer.writeString(value_name) + const value_pageSourceFile = value.pageSourceFile + valueSerializer.writeString(value_pageSourceFile) + const value_data = value.data + valueSerializer.writeCustomObject("Object", value_data) + } writeMenuItemOptions(value: MenuItemOptions): void { let valueSerializer : Serializer = this const value_startIcon = value.startIcon @@ -7935,12 +8111,12 @@ export class Serializer extends SerializerBase { const value_startIcon_value = value_startIcon! let value_startIcon_value_type : int32 = RuntimeType.UNDEFINED value_startIcon_value_type = runtimeType(value_startIcon_value) - if (((RuntimeType.STRING == value_startIcon_value_type))) { + if (RuntimeType.STRING == value_startIcon_value_type) { valueSerializer.writeInt8(0 as int32) const value_startIcon_value_0 = value_startIcon_value as string valueSerializer.writeString(value_startIcon_value_0) } - else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + else if (RuntimeType.OBJECT == value_startIcon_value_type) { valueSerializer.writeInt8(1 as int32) const value_startIcon_value_1 = value_startIcon_value as Resource valueSerializer.writeResource(value_startIcon_value_1) @@ -7962,12 +8138,12 @@ export class Serializer extends SerializerBase { const value_content_value = value_content! let value_content_value_type : int32 = RuntimeType.UNDEFINED value_content_value_type = runtimeType(value_content_value) - if (((RuntimeType.STRING == value_content_value_type))) { + if (RuntimeType.STRING == value_content_value_type) { valueSerializer.writeInt8(0 as int32) const value_content_value_0 = value_content_value as string valueSerializer.writeString(value_content_value_0) } - else if (((RuntimeType.OBJECT == value_content_value_type))) { + else if (RuntimeType.OBJECT == value_content_value_type) { valueSerializer.writeInt8(1 as int32) const value_content_value_1 = value_content_value as Resource valueSerializer.writeResource(value_content_value_1) @@ -7981,12 +8157,12 @@ export class Serializer extends SerializerBase { const value_endIcon_value = value_endIcon! let value_endIcon_value_type : int32 = RuntimeType.UNDEFINED value_endIcon_value_type = runtimeType(value_endIcon_value) - if (((RuntimeType.STRING == value_endIcon_value_type))) { + if (RuntimeType.STRING == value_endIcon_value_type) { valueSerializer.writeInt8(0 as int32) const value_endIcon_value_0 = value_endIcon_value as string valueSerializer.writeString(value_endIcon_value_0) } - else if (((RuntimeType.OBJECT == value_endIcon_value_type))) { + else if (RuntimeType.OBJECT == value_endIcon_value_type) { valueSerializer.writeInt8(1 as int32) const value_endIcon_value_1 = value_endIcon_value as Resource valueSerializer.writeResource(value_endIcon_value_1) @@ -8008,12 +8184,12 @@ export class Serializer extends SerializerBase { const value_labelInfo_value = value_labelInfo! let value_labelInfo_value_type : int32 = RuntimeType.UNDEFINED value_labelInfo_value_type = runtimeType(value_labelInfo_value) - if (((RuntimeType.STRING == value_labelInfo_value_type))) { + if (RuntimeType.STRING == value_labelInfo_value_type) { valueSerializer.writeInt8(0 as int32) const value_labelInfo_value_0 = value_labelInfo_value as string valueSerializer.writeString(value_labelInfo_value_0) } - else if (((RuntimeType.OBJECT == value_labelInfo_value_type))) { + else if (RuntimeType.OBJECT == value_labelInfo_value_type) { valueSerializer.writeInt8(1 as int32) const value_labelInfo_value_1 = value_labelInfo_value as Resource valueSerializer.writeResource(value_labelInfo_value_1) @@ -8051,17 +8227,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -8134,17 +8310,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -8167,6 +8343,29 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_endMargin_value) } } + writeListAttribute(value: ListAttribute): void { + } + writeVisibleListContentInfo(value: VisibleListContentInfo): void { + let valueSerializer : Serializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_itemGroupArea = value.itemGroupArea + let value_itemGroupArea_type : int32 = RuntimeType.UNDEFINED + value_itemGroupArea_type = runtimeType(value_itemGroupArea) + valueSerializer.writeInt8(value_itemGroupArea_type as int32) + if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { + const value_itemGroupArea_value = (value_itemGroupArea as ListItemGroupArea) + valueSerializer.writeInt32((value_itemGroupArea_value.valueOf() as int32)) + } + const value_itemIndexInGroup = value.itemIndexInGroup + let value_itemIndexInGroup_type : int32 = RuntimeType.UNDEFINED + value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup) + valueSerializer.writeInt8(value_itemIndexInGroup_type as int32) + if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { + const value_itemIndexInGroup_value = value_itemIndexInGroup! + valueSerializer.writeNumber(value_itemIndexInGroup_value) + } + } writeCloseSwipeActionOptions(value: CloseSwipeActionOptions): void { let valueSerializer : Serializer = this const value_onFinish = value.onFinish @@ -8223,6 +8422,42 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_reference_value.valueOf() as int32)) } } + writeGridAttribute(value: GridAttribute): void { + } + writePanGestureOptions(value: PanGestureOptions): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeEventTargetInfo(value: EventTargetInfo): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeWindowStatusType(value: WindowStatusType): void { let valueSerializer : Serializer = this const value__WindowStatusTypeStub = value._WindowStatusTypeStub @@ -8433,17 +8668,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -8497,12 +8732,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -8559,17 +8794,17 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type : int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((TypeChecker.isCurve(value_curve_value)))) { + if (TypeChecker.isCurve(value_curve_value)) { valueSerializer.writeInt8(0 as int32) const value_curve_value_0 = value_curve_value as Curve valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_curve_value_type))) { + else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1 as int32) const value_curve_value_1 = value_curve_value as string valueSerializer.writeString(value_curve_value_1) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(2 as int32) const value_curve_value_2 = value_curve_value as ICurve valueSerializer.writeICurve(value_curve_value_2) @@ -8624,6 +8859,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value) } } + writeComponent3DAttribute(value: Component3DAttribute): void { + } writeUIGestureEvent(value: UIGestureEvent): void { } writeVisibleAreaEventOptions(value: VisibleAreaEventOptions): void { @@ -8659,6 +8896,33 @@ export class Serializer extends SerializerBase { const value__RectShapeStub = value._RectShapeStub valueSerializer.writeString(value__RectShapeStub) } + writeCaretOffset(value: CaretOffset): void { + let valueSerializer : Serializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } + writeDirectionalEdgesT(value: DirectionalEdgesT): void { + let valueSerializer : Serializer = this + const value_start = value.start + valueSerializer.writeNumber(value_start) + const value_end = value.end + valueSerializer.writeNumber(value_end) + const value_top = value.top + valueSerializer.writeNumber(value_top) + const value_bottom = value.bottom + valueSerializer.writeNumber(value_bottom) + } + writeMeasureResult(value: MeasureResult): void { + let valueSerializer : Serializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeConstraintSizeOptions(value: ConstraintSizeOptions): void { let valueSerializer : Serializer = this const value_minWidth = value.minWidth @@ -8720,17 +8984,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -8808,17 +9072,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = value_maskColor_value as Color valueSerializer.writeInt32((value_maskColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_maskColor_value_1 = value_maskColor_value as number valueSerializer.writeNumber(value_maskColor_value_1) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_maskColor_value_2 = value_maskColor_value as string valueSerializer.writeString(value_maskColor_value_2) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_maskColor_value_3 = value_maskColor_value as Resource valueSerializer.writeResource(value_maskColor_value_3) @@ -8898,12 +9162,12 @@ export class Serializer extends SerializerBase { const value_showClose_value = value_showClose! let value_showClose_value_type : int32 = RuntimeType.UNDEFINED value_showClose_value_type = runtimeType(value_showClose_value) - if (((RuntimeType.BOOLEAN == value_showClose_value_type))) { + if (RuntimeType.BOOLEAN == value_showClose_value_type) { valueSerializer.writeInt8(0 as int32) const value_showClose_value_0 = value_showClose_value as boolean valueSerializer.writeBoolean(value_showClose_value_0) } - else if (((RuntimeType.OBJECT == value_showClose_value_type))) { + else if (RuntimeType.OBJECT == value_showClose_value_type) { valueSerializer.writeInt8(1 as int32) const value_showClose_value_1 = value_showClose_value as Resource valueSerializer.writeResource(value_showClose_value_1) @@ -8925,12 +9189,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.OBJECT == value_title_value_type))) { + if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as SheetTitleOptions valueSerializer.writeSheetTitleOptions(value_title_value_0) } - else if (((RuntimeType.FUNCTION == value_title_value_type))) { + else if (RuntimeType.FUNCTION == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_title_value_1)) @@ -9039,7 +9303,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -9049,17 +9313,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -9081,17 +9345,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -9110,17 +9374,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -9139,17 +9403,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -9168,17 +9432,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -9199,12 +9463,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -9249,12 +9513,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -9340,17 +9604,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9455,12 +9719,12 @@ export class Serializer extends SerializerBase { const value_preview_value = value_preview! let value_preview_value_type : int32 = RuntimeType.UNDEFINED value_preview_value_type = runtimeType(value_preview_value) - if (((TypeChecker.isMenuPreviewMode(value_preview_value)))) { + if (TypeChecker.isMenuPreviewMode(value_preview_value)) { valueSerializer.writeInt8(0 as int32) const value_preview_value_0 = value_preview_value as MenuPreviewMode valueSerializer.writeInt32((value_preview_value_0.valueOf() as int32)) } - else if (((RuntimeType.FUNCTION == value_preview_value_type))) { + else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1 as int32) const value_preview_value_1 = value_preview_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_preview_value_1)) @@ -9613,17 +9877,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9696,12 +9960,12 @@ export class Serializer extends SerializerBase { const value_preview_value = value_preview! let value_preview_value_type : int32 = RuntimeType.UNDEFINED value_preview_value_type = runtimeType(value_preview_value) - if (((TypeChecker.isMenuPreviewMode(value_preview_value)))) { + if (TypeChecker.isMenuPreviewMode(value_preview_value)) { valueSerializer.writeInt8(0 as int32) const value_preview_value_0 = value_preview_value as MenuPreviewMode valueSerializer.writeInt32((value_preview_value_0.valueOf() as int32)) } - else if (((RuntimeType.FUNCTION == value_preview_value_type))) { + else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1 as int32) const value_preview_value_1 = value_preview_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_preview_value_1)) @@ -9854,17 +10118,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9902,12 +10166,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as string valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as Resource valueSerializer.writeResource(value_title_value_1) @@ -9947,17 +10211,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = value_maskColor_value as Color valueSerializer.writeInt32((value_maskColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_maskColor_value_1 = value_maskColor_value as string valueSerializer.writeString(value_maskColor_value_1) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_maskColor_value_2 = value_maskColor_value as Resource valueSerializer.writeResource(value_maskColor_value_2) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_maskColor_value_3 = value_maskColor_value as number valueSerializer.writeNumber(value_maskColor_value_3) @@ -9976,17 +10240,17 @@ export class Serializer extends SerializerBase { const value_popupColor_value_0 = value_popupColor_value as Color valueSerializer.writeInt32((value_popupColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_popupColor_value_type))) { + else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_popupColor_value_1 = value_popupColor_value as string valueSerializer.writeString(value_popupColor_value_1) } - else if (((RuntimeType.OBJECT == value_popupColor_value_type))) { + else if (RuntimeType.OBJECT == value_popupColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_popupColor_value_2 = value_popupColor_value as Resource valueSerializer.writeResource(value_popupColor_value_2) } - else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + else if (RuntimeType.NUMBER == value_popupColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_popupColor_value_3 = value_popupColor_value as number valueSerializer.writeNumber(value_popupColor_value_3) @@ -10040,12 +10304,12 @@ export class Serializer extends SerializerBase { const value_mask_value = value_mask! let value_mask_value_type : int32 = RuntimeType.UNDEFINED value_mask_value_type = runtimeType(value_mask_value) - if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + if (RuntimeType.BOOLEAN == value_mask_value_type) { valueSerializer.writeInt8(0 as int32) const value_mask_value_0 = value_mask_value as boolean valueSerializer.writeBoolean(value_mask_value_0) } - else if (((RuntimeType.OBJECT == value_mask_value_type))) { + else if (RuntimeType.OBJECT == value_mask_value_type) { valueSerializer.writeInt8(1 as int32) const value_mask_value_1 = value_mask_value as Literal_ResourceColor_color const value_mask_value_1_color = value_mask_value_1.color @@ -10056,17 +10320,17 @@ export class Serializer extends SerializerBase { const value_mask_value_1_color_0 = value_mask_value_1_color as Color valueSerializer.writeInt32((value_mask_value_1_color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1 as int32) const value_mask_value_1_color_1 = value_mask_value_1_color as number valueSerializer.writeNumber(value_mask_value_1_color_1) } - else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + else if (RuntimeType.STRING == value_mask_value_1_color_type) { valueSerializer.writeInt8(2 as int32) const value_mask_value_1_color_2 = value_mask_value_1_color as string valueSerializer.writeString(value_mask_value_1_color_2) } - else if (((RuntimeType.OBJECT == value_mask_value_1_color_type))) { + else if (RuntimeType.OBJECT == value_mask_value_1_color_type) { valueSerializer.writeInt8(3 as int32) const value_mask_value_1_color_3 = value_mask_value_1_color as Resource valueSerializer.writeResource(value_mask_value_1_color_3) @@ -10137,12 +10401,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -10180,12 +10444,12 @@ export class Serializer extends SerializerBase { const value_onWillDismiss_value = value_onWillDismiss! let value_onWillDismiss_value_type : int32 = RuntimeType.UNDEFINED value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) - if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + if (RuntimeType.BOOLEAN == value_onWillDismiss_value_type) { valueSerializer.writeInt8(0 as int32) const value_onWillDismiss_value_0 = value_onWillDismiss_value as boolean valueSerializer.writeBoolean(value_onWillDismiss_value_0) } - else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + else if (RuntimeType.FUNCTION == value_onWillDismiss_value_type) { valueSerializer.writeInt8(1 as int32) const value_onWillDismiss_value_1 = value_onWillDismiss_value as ((parameter: DismissPopupAction) => void) valueSerializer.holdAndWriteCallback(value_onWillDismiss_value_1) @@ -10282,12 +10546,12 @@ export class Serializer extends SerializerBase { const value_mask_value = value_mask! let value_mask_value_type : int32 = RuntimeType.UNDEFINED value_mask_value_type = runtimeType(value_mask_value) - if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + if (RuntimeType.BOOLEAN == value_mask_value_type) { valueSerializer.writeInt8(0 as int32) const value_mask_value_0 = value_mask_value as boolean valueSerializer.writeBoolean(value_mask_value_0) } - else if (((RuntimeType.OBJECT == value_mask_value_type))) { + else if (RuntimeType.OBJECT == value_mask_value_type) { valueSerializer.writeInt8(1 as int32) const value_mask_value_1 = value_mask_value as Literal_ResourceColor_color const value_mask_value_1_color = value_mask_value_1.color @@ -10298,17 +10562,17 @@ export class Serializer extends SerializerBase { const value_mask_value_1_color_0 = value_mask_value_1_color as Color valueSerializer.writeInt32((value_mask_value_1_color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1 as int32) const value_mask_value_1_color_1 = value_mask_value_1_color as number valueSerializer.writeNumber(value_mask_value_1_color_1) } - else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + else if (RuntimeType.STRING == value_mask_value_1_color_type) { valueSerializer.writeInt8(2 as int32) const value_mask_value_1_color_2 = value_mask_value_1_color as string valueSerializer.writeString(value_mask_value_1_color_2) } - else if (((RuntimeType.OBJECT == value_mask_value_1_color_type))) { + else if (RuntimeType.OBJECT == value_mask_value_1_color_type) { valueSerializer.writeInt8(3 as int32) const value_mask_value_1_color_3 = value_mask_value_1_color as Resource valueSerializer.writeResource(value_mask_value_1_color_3) @@ -10360,17 +10624,17 @@ export class Serializer extends SerializerBase { const value_popupColor_value_0 = value_popupColor_value as Color valueSerializer.writeInt32((value_popupColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_popupColor_value_type))) { + else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_popupColor_value_1 = value_popupColor_value as string valueSerializer.writeString(value_popupColor_value_1) } - else if (((RuntimeType.OBJECT == value_popupColor_value_type))) { + else if (RuntimeType.OBJECT == value_popupColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_popupColor_value_2 = value_popupColor_value as Resource valueSerializer.writeResource(value_popupColor_value_2) } - else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + else if (RuntimeType.NUMBER == value_popupColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_popupColor_value_3 = value_popupColor_value as number valueSerializer.writeNumber(value_popupColor_value_3) @@ -10432,12 +10696,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -10467,12 +10731,12 @@ export class Serializer extends SerializerBase { const value_onWillDismiss_value = value_onWillDismiss! let value_onWillDismiss_value_type : int32 = RuntimeType.UNDEFINED value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) - if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + if (RuntimeType.BOOLEAN == value_onWillDismiss_value_type) { valueSerializer.writeInt8(0 as int32) const value_onWillDismiss_value_0 = value_onWillDismiss_value as boolean valueSerializer.writeBoolean(value_onWillDismiss_value_0) } - else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + else if (RuntimeType.FUNCTION == value_onWillDismiss_value_type) { valueSerializer.writeInt8(1 as int32) const value_onWillDismiss_value_1 = value_onWillDismiss_value as ((parameter: DismissPopupAction) => void) valueSerializer.holdAndWriteCallback(value_onWillDismiss_value_1) @@ -10567,12 +10831,12 @@ export class Serializer extends SerializerBase { const value_mode_value = value_mode! let value_mode_value_type : int32 = RuntimeType.UNDEFINED value_mode_value_type = runtimeType(value_mode_value) - if (((TypeChecker.isDragPreviewMode(value_mode_value)))) { + if (TypeChecker.isDragPreviewMode(value_mode_value)) { valueSerializer.writeInt8(0 as int32) const value_mode_value_0 = value_mode_value as DragPreviewMode valueSerializer.writeInt32((value_mode_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_mode_value_type))) { + else if (RuntimeType.OBJECT == value_mode_value_type) { valueSerializer.writeInt8(1 as int32) const value_mode_value_1 = value_mode_value as Array valueSerializer.writeInt32(value_mode_value_1.length as int32) @@ -10598,12 +10862,12 @@ export class Serializer extends SerializerBase { const value_numberBadge_value = value_numberBadge! let value_numberBadge_value_type : int32 = RuntimeType.UNDEFINED value_numberBadge_value_type = runtimeType(value_numberBadge_value) - if (((RuntimeType.BOOLEAN == value_numberBadge_value_type))) { + if (RuntimeType.BOOLEAN == value_numberBadge_value_type) { valueSerializer.writeInt8(0 as int32) const value_numberBadge_value_0 = value_numberBadge_value as boolean valueSerializer.writeBoolean(value_numberBadge_value_0) } - else if (((RuntimeType.NUMBER == value_numberBadge_value_type))) { + else if (RuntimeType.NUMBER == value_numberBadge_value_type) { valueSerializer.writeInt8(1 as int32) const value_numberBadge_value_1 = value_numberBadge_value as number valueSerializer.writeNumber(value_numberBadge_value_1) @@ -10628,17 +10892,17 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type : int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((TypeChecker.isCurve(value_curve_value)))) { + if (TypeChecker.isCurve(value_curve_value)) { valueSerializer.writeInt8(0 as int32) const value_curve_value_0 = value_curve_value as Curve valueSerializer.writeInt32((value_curve_value_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_curve_value_type))) { + else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1 as int32) const value_curve_value_1 = value_curve_value as string valueSerializer.writeString(value_curve_value_1) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(2 as int32) const value_curve_value_2 = value_curve_value as ICurve valueSerializer.writeICurve(value_curve_value_2) @@ -10913,19 +11177,8 @@ export class Serializer extends SerializerBase { } writeDrawingLattice(value: DrawingLattice): void { let valueSerializer : Serializer = this - const value__DrawingLatticeStub = value._DrawingLatticeStub - valueSerializer.writeString(value__DrawingLatticeStub) - } - writeRectResult(value: RectResult): void { - let valueSerializer : Serializer = this - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) - const value_width = value.width - valueSerializer.writeNumber(value_width) - const value_height = value.height - valueSerializer.writeNumber(value_height) + const value__DrawingLatticeStub = value._DrawingLatticeStub + valueSerializer.writeString(value__DrawingLatticeStub) } writeDrawModifier(value: DrawModifier): void { let valueSerializer : Serializer = this @@ -10949,6 +11202,11 @@ export class Serializer extends SerializerBase { const value__IntentionCodeStub = value._IntentionCodeStub valueSerializer.writeString(value__IntentionCodeStub) } + writeSummary(value: Summary): void { + let valueSerializer : Serializer = this + const value__SummaryStub = value._SummaryStub + valueSerializer.writeString(value__SummaryStub) + } writeUnifiedData(value: UnifiedData): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -10966,6 +11224,29 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTouchObject(value: TouchObject): void { + let valueSerializer : Serializer = this + const value_type = value.type + valueSerializer.writeInt32((value_type.valueOf() as int32)) + const value_id = value.id + valueSerializer.writeNumber(value_id) + const value_displayX = value.displayX + valueSerializer.writeNumber(value_displayX) + const value_displayY = value.displayY + valueSerializer.writeNumber(value_displayY) + const value_windowX = value.windowX + valueSerializer.writeNumber(value_windowX) + const value_windowY = value.windowY + valueSerializer.writeNumber(value_windowY) + const value_screenX = value.screenX + valueSerializer.writeNumber(value_screenX) + const value_screenY = value.screenY + valueSerializer.writeNumber(value_screenY) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } writeColumnSplitDividerStyle(value: ColumnSplitDividerStyle): void { let valueSerializer : Serializer = this const value_startMargin = value.startMargin @@ -11008,17 +11289,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -11059,6 +11340,40 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeOffscreenCanvasRenderingContext2D(value: OffscreenCanvasRenderingContext2D): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeRenderingContextSettings(value: RenderingContextSettings): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeImageBitmap(value: ImageBitmap): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -11076,6 +11391,35 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextMetrics(value: TextMetrics): void { + let valueSerializer : Serializer = this + const value_actualBoundingBoxAscent = value.actualBoundingBoxAscent + valueSerializer.writeNumber(value_actualBoundingBoxAscent) + const value_actualBoundingBoxDescent = value.actualBoundingBoxDescent + valueSerializer.writeNumber(value_actualBoundingBoxDescent) + const value_actualBoundingBoxLeft = value.actualBoundingBoxLeft + valueSerializer.writeNumber(value_actualBoundingBoxLeft) + const value_actualBoundingBoxRight = value.actualBoundingBoxRight + valueSerializer.writeNumber(value_actualBoundingBoxRight) + const value_alphabeticBaseline = value.alphabeticBaseline + valueSerializer.writeNumber(value_alphabeticBaseline) + const value_emHeightAscent = value.emHeightAscent + valueSerializer.writeNumber(value_emHeightAscent) + const value_emHeightDescent = value.emHeightDescent + valueSerializer.writeNumber(value_emHeightDescent) + const value_fontBoundingBoxAscent = value.fontBoundingBoxAscent + valueSerializer.writeNumber(value_fontBoundingBoxAscent) + const value_fontBoundingBoxDescent = value.fontBoundingBoxDescent + valueSerializer.writeNumber(value_fontBoundingBoxDescent) + const value_hangingBaseline = value.hangingBaseline + valueSerializer.writeNumber(value_hangingBaseline) + const value_ideographicBaseline = value.ideographicBaseline + valueSerializer.writeNumber(value_ideographicBaseline) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeImageData(value: ImageData): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -11120,12 +11464,12 @@ export class Serializer extends SerializerBase { const value_hintRadius_value = value_hintRadius! let value_hintRadius_value_type : int32 = RuntimeType.UNDEFINED value_hintRadius_value_type = runtimeType(value_hintRadius_value) - if (((RuntimeType.NUMBER == value_hintRadius_value_type))) { + if (RuntimeType.NUMBER == value_hintRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_hintRadius_value_0 = value_hintRadius_value as number valueSerializer.writeNumber(value_hintRadius_value_0) } - else if (((RuntimeType.OBJECT == value_hintRadius_value_type))) { + else if (RuntimeType.OBJECT == value_hintRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_hintRadius_value_1 = value_hintRadius_value as Resource valueSerializer.writeResource(value_hintRadius_value_1) @@ -11176,17 +11520,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -11256,12 +11600,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -11284,6 +11628,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_hoverModeArea_value.valueOf() as int32)) } } + writeCalendarPickerAttribute(value: CalendarPickerAttribute): void { + } writeCalendarController(value: CalendarController): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -11329,17 +11675,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -11353,12 +11699,12 @@ export class Serializer extends SerializerBase { const value_fontSize_value = value_fontSize! let value_fontSize_value_type : int32 = RuntimeType.UNDEFINED value_fontSize_value_type = runtimeType(value_fontSize_value) - if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontSize_value_0 = value_fontSize_value as number valueSerializer.writeNumber(value_fontSize_value_0) } - else if (((RuntimeType.STRING == value_fontSize_value_type))) { + else if (RuntimeType.STRING == value_fontSize_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontSize_value_1 = value_fontSize_value as string valueSerializer.writeString(value_fontSize_value_1) @@ -11372,12 +11718,12 @@ export class Serializer extends SerializerBase { const value_badgeSize_value = value_badgeSize! let value_badgeSize_value_type : int32 = RuntimeType.UNDEFINED value_badgeSize_value_type = runtimeType(value_badgeSize_value) - if (((RuntimeType.NUMBER == value_badgeSize_value_type))) { + if (RuntimeType.NUMBER == value_badgeSize_value_type) { valueSerializer.writeInt8(0 as int32) const value_badgeSize_value_0 = value_badgeSize_value as number valueSerializer.writeNumber(value_badgeSize_value_0) } - else if (((RuntimeType.STRING == value_badgeSize_value_type))) { + else if (RuntimeType.STRING == value_badgeSize_value_type) { valueSerializer.writeInt8(1 as int32) const value_badgeSize_value_1 = value_badgeSize_value as string valueSerializer.writeString(value_badgeSize_value_1) @@ -11396,17 +11742,17 @@ export class Serializer extends SerializerBase { const value_badgeColor_value_0 = value_badgeColor_value as Color valueSerializer.writeInt32((value_badgeColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_badgeColor_value_type))) { + else if (RuntimeType.NUMBER == value_badgeColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_badgeColor_value_1 = value_badgeColor_value as number valueSerializer.writeNumber(value_badgeColor_value_1) } - else if (((RuntimeType.STRING == value_badgeColor_value_type))) { + else if (RuntimeType.STRING == value_badgeColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_badgeColor_value_2 = value_badgeColor_value as string valueSerializer.writeString(value_badgeColor_value_2) } - else if (((RuntimeType.OBJECT == value_badgeColor_value_type))) { + else if (RuntimeType.OBJECT == value_badgeColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_badgeColor_value_3 = value_badgeColor_value as Resource valueSerializer.writeResource(value_badgeColor_value_3) @@ -11425,17 +11771,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0 = value_borderColor_value as Color valueSerializer.writeInt32((value_borderColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1 = value_borderColor_value as number valueSerializer.writeNumber(value_borderColor_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_2 = value_borderColor_value as string valueSerializer.writeString(value_borderColor_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_3 = value_borderColor_value as Resource valueSerializer.writeResource(value_borderColor_value_3) @@ -11457,7 +11803,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type : int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontWeight_value_0 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_0) @@ -11467,13 +11813,15 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) } } } + writeAlphabetIndexerAttribute(value: AlphabetIndexerAttribute): void { + } writeAlertDialogParamWithOptions(value: AlertDialogParamWithOptions): void { let valueSerializer : Serializer = this const value_title = value.title @@ -11484,12 +11832,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as string valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as Resource valueSerializer.writeResource(value_title_value_1) @@ -11503,12 +11851,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -11517,12 +11865,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type : int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0 as int32) const value_message_0 = value_message as string valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1 as int32) const value_message_1 = value_message as Resource valueSerializer.writeResource(value_message_1) @@ -11607,17 +11955,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -11781,7 +12129,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -11791,17 +12139,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -11823,17 +12171,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -11852,17 +12200,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -11881,17 +12229,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -11910,17 +12258,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -11941,12 +12289,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -11991,12 +12339,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -12051,12 +12399,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as string valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as Resource valueSerializer.writeResource(value_title_value_1) @@ -12070,12 +12418,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -12084,12 +12432,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type : int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0 as int32) const value_message_0 = value_message as string valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1 as int32) const value_message_1 = value_message as Resource valueSerializer.writeResource(value_message_1) @@ -12174,17 +12522,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -12348,7 +12696,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -12358,17 +12706,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -12390,17 +12738,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -12419,17 +12767,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -12448,17 +12796,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -12477,17 +12825,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -12508,12 +12856,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -12558,12 +12906,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -12608,12 +12956,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type : int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0 as int32) const value_title_value_0 = value_title_value as string valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1 as int32) const value_title_value_1 = value_title_value as Resource valueSerializer.writeResource(value_title_value_1) @@ -12627,12 +12975,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -12641,12 +12989,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type : int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0 as int32) const value_message_0 = value_message as string valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1 as int32) const value_message_1 = value_message as Resource valueSerializer.writeResource(value_message_1) @@ -12731,17 +13079,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -12905,7 +13253,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -12915,17 +13263,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -12947,17 +13295,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -12976,17 +13324,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -13005,17 +13353,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -13034,17 +13382,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -13065,12 +13413,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -13115,12 +13463,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -13164,12 +13512,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type : int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0 as int32) const value_title_0 = value_title as string valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1 as int32) const value_title_1 = value_title as Resource valueSerializer.writeResource(value_title_1) @@ -13182,12 +13530,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type : int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0 as int32) const value_subtitle_value_0 = value_subtitle_value as string valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1 as int32) const value_subtitle_value_1 = value_subtitle_value as Resource valueSerializer.writeResource(value_subtitle_value_1) @@ -13196,12 +13544,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type : int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0 as int32) const value_message_0 = value_message as string valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1 as int32) const value_message_1 = value_message as Resource valueSerializer.writeResource(value_message_1) @@ -13289,17 +13637,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -13463,7 +13811,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -13473,17 +13821,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -13505,17 +13853,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -13534,17 +13882,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -13563,17 +13911,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -13592,17 +13940,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -13623,12 +13971,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -13673,12 +14021,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -13752,17 +14100,17 @@ export class Serializer extends SerializerBase { const value_curve = value.curve let value_curve_type : int32 = RuntimeType.UNDEFINED value_curve_type = runtimeType(value_curve) - if (((TypeChecker.isCurve(value_curve)))) { + if (TypeChecker.isCurve(value_curve)) { valueSerializer.writeInt8(0 as int32) const value_curve_0 = value_curve as Curve valueSerializer.writeInt32((value_curve_0.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_curve_type))) { + else if (RuntimeType.STRING == value_curve_type) { valueSerializer.writeInt8(1 as int32) const value_curve_1 = value_curve as string valueSerializer.writeString(value_curve_1) } - else if (((RuntimeType.OBJECT == value_curve_type))) { + else if (RuntimeType.OBJECT == value_curve_type) { valueSerializer.writeInt8(2 as int32) const value_curve_2 = value_curve as ICurve valueSerializer.writeICurve(value_curve_2) @@ -13868,23 +14216,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) } } - writeMutableStyledString(value: MutableStyledString): void { - let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeUrlStyle(value: UrlStyle): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -14134,17 +14465,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -14158,12 +14489,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type : int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.STRING == value_fontFamily_value_type))) { + if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontFamily_value_0 = value_fontFamily_value as string valueSerializer.writeString(value_fontFamily_value_0) } - else if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + else if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontFamily_value_1 = value_fontFamily_value as Resource valueSerializer.writeResource(value_fontFamily_value_1) @@ -14185,7 +14516,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type : int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0 as int32) const value_fontWeight_value_0 = value_fontWeight_value as number valueSerializer.writeNumber(value_fontWeight_value_0) @@ -14195,7 +14526,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = value_fontWeight_value as FontWeight valueSerializer.writeInt32((value_fontWeight_value_1.valueOf() as int32)) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontWeight_value_2 = value_fontWeight_value as string valueSerializer.writeString(value_fontWeight_value_2) @@ -14457,12 +14788,12 @@ export class Serializer extends SerializerBase { const value_content = value.content let value_content_type : int32 = RuntimeType.UNDEFINED value_content_type = runtimeType(value_content) - if (((RuntimeType.STRING == value_content_type))) { + if (RuntimeType.STRING == value_content_type) { valueSerializer.writeInt8(0 as int32) const value_content_0 = value_content as string valueSerializer.writeString(value_content_0) } - else if (((RuntimeType.OBJECT == value_content_type))) { + else if (RuntimeType.OBJECT == value_content_type) { valueSerializer.writeInt8(1 as int32) const value_content_1 = value_content as Resource valueSerializer.writeResource(value_content_1) @@ -14475,12 +14806,12 @@ export class Serializer extends SerializerBase { const value_startIcon_value = value_startIcon! let value_startIcon_value_type : int32 = RuntimeType.UNDEFINED value_startIcon_value_type = runtimeType(value_startIcon_value) - if (((RuntimeType.STRING == value_startIcon_value_type))) { + if (RuntimeType.STRING == value_startIcon_value_type) { valueSerializer.writeInt8(0 as int32) const value_startIcon_value_0 = value_startIcon_value as string valueSerializer.writeString(value_startIcon_value_0) } - else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + else if (RuntimeType.OBJECT == value_startIcon_value_type) { valueSerializer.writeInt8(1 as int32) const value_startIcon_value_1 = value_startIcon_value as Resource valueSerializer.writeResource(value_startIcon_value_1) @@ -15055,12 +15386,12 @@ export class Serializer extends SerializerBase { const value_src = value.src let value_src_type : int32 = RuntimeType.UNDEFINED value_src_type = runtimeType(value_src) - if (((RuntimeType.STRING == value_src_type))) { + if (RuntimeType.STRING == value_src_type) { valueSerializer.writeInt8(0 as int32) const value_src_0 = value_src as string valueSerializer.writeString(value_src_0) } - else if (((RuntimeType.OBJECT == value_src_type))) { + else if (RuntimeType.OBJECT == value_src_type) { valueSerializer.writeInt8(1 as int32) const value_src_1 = value_src as Resource valueSerializer.writeResource(value_src_1) @@ -15103,23 +15434,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_sharedRenderProcessToken_value) } } - writeWebCookie(value: WebCookie): void { - let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeHeader(value: Header): void { let valueSerializer : Serializer = this const value_headerKey = value.headerKey @@ -15152,12 +15466,12 @@ export class Serializer extends SerializerBase { const value_src_value = value_src! let value_src_value_type : int32 = RuntimeType.UNDEFINED value_src_value_type = runtimeType(value_src_value) - if (((RuntimeType.STRING == value_src_value_type))) { + if (RuntimeType.STRING == value_src_value_type) { valueSerializer.writeInt8(0 as int32) const value_src_value_0 = value_src_value as string valueSerializer.writeString(value_src_value_0) } - else if (((RuntimeType.OBJECT == value_src_value_type))) { + else if (RuntimeType.OBJECT == value_src_value_type) { valueSerializer.writeInt8(1 as int32) const value_src_value_1 = value_src_value as Resource valueSerializer.writeResource(value_src_value_1) @@ -15171,12 +15485,12 @@ export class Serializer extends SerializerBase { const value_currentProgressRate_value = value_currentProgressRate! let value_currentProgressRate_value_type : int32 = RuntimeType.UNDEFINED value_currentProgressRate_value_type = runtimeType(value_currentProgressRate_value) - if (((RuntimeType.NUMBER == value_currentProgressRate_value_type))) { + if (RuntimeType.NUMBER == value_currentProgressRate_value_type) { valueSerializer.writeInt8(0 as int32) const value_currentProgressRate_value_0 = value_currentProgressRate_value as number valueSerializer.writeNumber(value_currentProgressRate_value_0) } - else if (((RuntimeType.STRING == value_currentProgressRate_value_type))) { + else if (RuntimeType.STRING == value_currentProgressRate_value_type) { valueSerializer.writeInt8(1 as int32) const value_currentProgressRate_value_1 = value_currentProgressRate_value as string valueSerializer.writeString(value_currentProgressRate_value_1) @@ -15195,7 +15509,7 @@ export class Serializer extends SerializerBase { const value_previewUri_value = value_previewUri! let value_previewUri_value_type : int32 = RuntimeType.UNDEFINED value_previewUri_value_type = runtimeType(value_previewUri_value) - if (((RuntimeType.STRING == value_previewUri_value_type))) { + if (RuntimeType.STRING == value_previewUri_value_type) { valueSerializer.writeInt8(0 as int32) const value_previewUri_value_0 = value_previewUri_value as string valueSerializer.writeString(value_previewUri_value_0) @@ -15238,12 +15552,12 @@ export class Serializer extends SerializerBase { const value_pointRadius_value = value_pointRadius! let value_pointRadius_value_type : int32 = RuntimeType.UNDEFINED value_pointRadius_value_type = runtimeType(value_pointRadius_value) - if (((RuntimeType.NUMBER == value_pointRadius_value_type))) { + if (RuntimeType.NUMBER == value_pointRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_pointRadius_value_0 = value_pointRadius_value as number valueSerializer.writeNumber(value_pointRadius_value_0) } - else if (((RuntimeType.OBJECT == value_pointRadius_value_type))) { + else if (RuntimeType.OBJECT == value_pointRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_pointRadius_value_1 = value_pointRadius_value as Resource valueSerializer.writeResource(value_pointRadius_value_1) @@ -15262,17 +15576,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = value_unselectedColor_value as Color valueSerializer.writeInt32((value_unselectedColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_unselectedColor_value_1 = value_unselectedColor_value as number valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_unselectedColor_value_2 = value_unselectedColor_value as string valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_unselectedColor_value_3 = value_unselectedColor_value as Resource valueSerializer.writeResource(value_unselectedColor_value_3) @@ -15291,17 +15605,17 @@ export class Serializer extends SerializerBase { const value_pointColor_value_0 = value_pointColor_value as Color valueSerializer.writeInt32((value_pointColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_pointColor_value_type))) { + else if (RuntimeType.NUMBER == value_pointColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_pointColor_value_1 = value_pointColor_value as number valueSerializer.writeNumber(value_pointColor_value_1) } - else if (((RuntimeType.STRING == value_pointColor_value_type))) { + else if (RuntimeType.STRING == value_pointColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_pointColor_value_2 = value_pointColor_value as string valueSerializer.writeString(value_pointColor_value_2) } - else if (((RuntimeType.OBJECT == value_pointColor_value_type))) { + else if (RuntimeType.OBJECT == value_pointColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_pointColor_value_3 = value_pointColor_value as Resource valueSerializer.writeResource(value_pointColor_value_3) @@ -15315,12 +15629,12 @@ export class Serializer extends SerializerBase { const value_trackBorderRadius_value = value_trackBorderRadius! let value_trackBorderRadius_value_type : int32 = RuntimeType.UNDEFINED value_trackBorderRadius_value_type = runtimeType(value_trackBorderRadius_value) - if (((RuntimeType.NUMBER == value_trackBorderRadius_value_type))) { + if (RuntimeType.NUMBER == value_trackBorderRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_trackBorderRadius_value_0 = value_trackBorderRadius_value as number valueSerializer.writeNumber(value_trackBorderRadius_value_0) } - else if (((RuntimeType.OBJECT == value_trackBorderRadius_value_type))) { + else if (RuntimeType.OBJECT == value_trackBorderRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_trackBorderRadius_value_1 = value_trackBorderRadius_value as Resource valueSerializer.writeResource(value_trackBorderRadius_value_1) @@ -15417,12 +15731,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Array valueSerializer.writeInt32(value_value_1.length as int32) @@ -15434,12 +15748,12 @@ export class Serializer extends SerializerBase { const value_index = value.index let value_index_type : int32 = RuntimeType.UNDEFINED value_index_type = runtimeType(value_index) - if (((RuntimeType.NUMBER == value_index_type))) { + if (RuntimeType.NUMBER == value_index_type) { valueSerializer.writeInt8(0 as int32) const value_index_0 = value_index as number valueSerializer.writeNumber(value_index_0) } - else if (((RuntimeType.OBJECT == value_index_type))) { + else if (RuntimeType.OBJECT == value_index_type) { valueSerializer.writeInt8(1 as int32) const value_index_1 = value_index as Array valueSerializer.writeInt32(value_index_1.length as int32) @@ -15471,12 +15785,12 @@ export class Serializer extends SerializerBase { const value_text = value.text let value_text_type : int32 = RuntimeType.UNDEFINED value_text_type = runtimeType(value_text) - if (((RuntimeType.STRING == value_text_type))) { + if (RuntimeType.STRING == value_text_type) { valueSerializer.writeInt8(0 as int32) const value_text_0 = value_text as string valueSerializer.writeString(value_text_0) } - else if (((RuntimeType.OBJECT == value_text_type))) { + else if (RuntimeType.OBJECT == value_text_type) { valueSerializer.writeInt8(1 as int32) const value_text_1 = value_text as Resource valueSerializer.writeResource(value_text_1) @@ -15499,12 +15813,12 @@ export class Serializer extends SerializerBase { const value_icon = value.icon let value_icon_type : int32 = RuntimeType.UNDEFINED value_icon_type = runtimeType(value_icon) - if (((RuntimeType.STRING == value_icon_type))) { + if (RuntimeType.STRING == value_icon_type) { valueSerializer.writeInt8(0 as int32) const value_icon_0 = value_icon as string valueSerializer.writeString(value_icon_0) } - else if (((RuntimeType.OBJECT == value_icon_type))) { + else if (RuntimeType.OBJECT == value_icon_type) { valueSerializer.writeInt8(1 as int32) const value_icon_1 = value_icon as Resource valueSerializer.writeResource(value_icon_1) @@ -15517,12 +15831,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type : int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0 as int32) const value_text_value_0 = value_text_value as string valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1 as int32) const value_text_value_1 = value_text_value as Resource valueSerializer.writeResource(value_text_value_1) @@ -15587,12 +15901,12 @@ export class Serializer extends SerializerBase { const value_value_value = value_value! let value_value_value_type : int32 = RuntimeType.UNDEFINED value_value_value_type = runtimeType(value_value_value) - if (((RuntimeType.STRING == value_value_value_type))) { + if (RuntimeType.STRING == value_value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_value_0 = value_value_value as string valueSerializer.writeString(value_value_value_0) } - else if (((RuntimeType.OBJECT == value_value_value_type))) { + else if (RuntimeType.OBJECT == value_value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_value_1 = value_value_value as Array valueSerializer.writeInt32(value_value_value_1.length as int32) @@ -15610,12 +15924,12 @@ export class Serializer extends SerializerBase { const value_selected_value = value_selected! let value_selected_value_type : int32 = RuntimeType.UNDEFINED value_selected_value_type = runtimeType(value_selected_value) - if (((RuntimeType.NUMBER == value_selected_value_type))) { + if (RuntimeType.NUMBER == value_selected_value_type) { valueSerializer.writeInt8(0 as int32) const value_selected_value_0 = value_selected_value as number valueSerializer.writeNumber(value_selected_value_0) } - else if (((RuntimeType.OBJECT == value_selected_value_type))) { + else if (RuntimeType.OBJECT == value_selected_value_type) { valueSerializer.writeInt8(1 as int32) const value_selected_value_1 = value_selected_value as Array valueSerializer.writeInt32(value_selected_value_1.length as int32) @@ -15636,12 +15950,12 @@ export class Serializer extends SerializerBase { const value_onIconSrc_value = value_onIconSrc! let value_onIconSrc_value_type : int32 = RuntimeType.UNDEFINED value_onIconSrc_value_type = runtimeType(value_onIconSrc_value) - if (((RuntimeType.STRING == value_onIconSrc_value_type))) { + if (RuntimeType.STRING == value_onIconSrc_value_type) { valueSerializer.writeInt8(0 as int32) const value_onIconSrc_value_0 = value_onIconSrc_value as string valueSerializer.writeString(value_onIconSrc_value_0) } - else if (((RuntimeType.OBJECT == value_onIconSrc_value_type))) { + else if (RuntimeType.OBJECT == value_onIconSrc_value_type) { valueSerializer.writeInt8(1 as int32) const value_onIconSrc_value_1 = value_onIconSrc_value as Resource valueSerializer.writeResource(value_onIconSrc_value_1) @@ -15655,12 +15969,12 @@ export class Serializer extends SerializerBase { const value_offIconSrc_value = value_offIconSrc! let value_offIconSrc_value_type : int32 = RuntimeType.UNDEFINED value_offIconSrc_value_type = runtimeType(value_offIconSrc_value) - if (((RuntimeType.STRING == value_offIconSrc_value_type))) { + if (RuntimeType.STRING == value_offIconSrc_value_type) { valueSerializer.writeInt8(0 as int32) const value_offIconSrc_value_0 = value_offIconSrc_value as string valueSerializer.writeString(value_offIconSrc_value_0) } - else if (((RuntimeType.OBJECT == value_offIconSrc_value_type))) { + else if (RuntimeType.OBJECT == value_offIconSrc_value_type) { valueSerializer.writeInt8(1 as int32) const value_offIconSrc_value_1 = value_offIconSrc_value as Resource valueSerializer.writeResource(value_offIconSrc_value_1) @@ -15677,12 +15991,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type : int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0 as int32) const value_placeholder_value_0 = value_placeholder_value as string valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1 as int32) const value_placeholder_value_1 = value_placeholder_value as Resource valueSerializer.writeResource(value_placeholder_value_1) @@ -15696,12 +16010,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type : int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0 as int32) const value_text_value_0 = value_text_value as string valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1 as int32) const value_text_value_1 = value_text_value as Resource valueSerializer.writeResource(value_text_value_1) @@ -15716,22 +16030,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeTextInputController(value_controller_value) } } - writeLayoutManager(value: LayoutManager): void { + writeTextBox(value: TextBox): void { let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } + const value__TextBoxStub = value._TextBoxStub + valueSerializer.writeString(value__TextBoxStub) } writeStyledStringController(value: StyledStringController): void { let valueSerializer : Serializer = this @@ -15813,12 +16115,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type : int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0 as int32) const value_placeholder_value_0 = value_placeholder_value as string valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1 as int32) const value_placeholder_value_1 = value_placeholder_value as Resource valueSerializer.writeResource(value_placeholder_value_1) @@ -15832,12 +16134,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type : int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0 as int32) const value_text_value_0 = value_text_value as string valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1 as int32) const value_text_value_1 = value_text_value as Resource valueSerializer.writeResource(value_text_value_1) @@ -16175,12 +16477,12 @@ export class Serializer extends SerializerBase { const value_image_value = value_image! let value_image_value_type : int32 = RuntimeType.UNDEFINED value_image_value_type = runtimeType(value_image_value) - if (((RuntimeType.STRING == value_image_value_type))) { + if (RuntimeType.STRING == value_image_value_type) { valueSerializer.writeInt8(0 as int32) const value_image_value_0 = value_image_value as string valueSerializer.writeString(value_image_value_0) } - else if (((RuntimeType.OBJECT == value_image_value_type))) { + else if (RuntimeType.OBJECT == value_image_value_type) { valueSerializer.writeInt8(1 as int32) const value_image_value_1 = value_image_value as Resource valueSerializer.writeResource(value_image_value_1) @@ -16264,12 +16566,12 @@ export class Serializer extends SerializerBase { const value_x_value = value_x! let value_x_value_type : int32 = RuntimeType.UNDEFINED value_x_value_type = runtimeType(value_x_value) - if (((RuntimeType.NUMBER == value_x_value_type))) { + if (RuntimeType.NUMBER == value_x_value_type) { valueSerializer.writeInt8(0 as int32) const value_x_value_0 = value_x_value as number valueSerializer.writeNumber(value_x_value_0) } - else if (((RuntimeType.STRING == value_x_value_type))) { + else if (RuntimeType.STRING == value_x_value_type) { valueSerializer.writeInt8(1 as int32) const value_x_value_1 = value_x_value as string valueSerializer.writeString(value_x_value_1) @@ -16283,12 +16585,12 @@ export class Serializer extends SerializerBase { const value_y_value = value_y! let value_y_value_type : int32 = RuntimeType.UNDEFINED value_y_value_type = runtimeType(value_y_value) - if (((RuntimeType.NUMBER == value_y_value_type))) { + if (RuntimeType.NUMBER == value_y_value_type) { valueSerializer.writeInt8(0 as int32) const value_y_value_0 = value_y_value as number valueSerializer.writeNumber(value_y_value_0) } - else if (((RuntimeType.STRING == value_y_value_type))) { + else if (RuntimeType.STRING == value_y_value_type) { valueSerializer.writeInt8(1 as int32) const value_y_value_1 = value_y_value as string valueSerializer.writeString(value_y_value_1) @@ -16302,12 +16604,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -16321,12 +16623,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -16338,12 +16640,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -16356,12 +16658,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -16409,17 +16711,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -16434,13 +16736,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_style_value.valueOf() as int32)) } } - writePreviewText(value: PreviewText): void { - let valueSerializer : Serializer = this - const value_offset = value.offset - valueSerializer.writeNumber(value_offset) - const value_value = value.value - valueSerializer.writeString(value_value) - } writeCaretStyle(value: CaretStyle): void { let valueSerializer : Serializer = this const value_width = value.width @@ -16464,17 +16759,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -16499,12 +16794,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type : int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0 as int32) const value_placeholder_value_0 = value_placeholder_value as string valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1 as int32) const value_placeholder_value_1 = value_placeholder_value as Resource valueSerializer.writeResource(value_placeholder_value_1) @@ -16653,12 +16948,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type : int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.STRING == value_space_value_type))) { + if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(0 as int32) const value_space_value_0 = value_space_value as string valueSerializer.writeString(value_space_value_0) } - else if (((RuntimeType.NUMBER == value_space_value_type))) { + else if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(1 as int32) const value_space_value_1 = value_space_value as number valueSerializer.writeNumber(value_space_value_1) @@ -16785,17 +17080,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -16862,31 +17157,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_previewText_value) } } - writeRichEditorSelection(value: RichEditorSelection): void { - let valueSerializer : Serializer = this - const value_selection = value.selection - const value_selection_0 = value_selection[0] - valueSerializer.writeNumber(value_selection_0) - const value_selection_1 = value_selection[1] - valueSerializer.writeNumber(value_selection_1) - const value_spans = value.spans - valueSerializer.writeInt32(value_spans.length as int32) - for (let i = 0; i < value_spans.length; i++) { - const value_spans_element : RichEditorTextSpanResult | RichEditorImageSpanResult = value_spans[i] - let value_spans_element_type : int32 = RuntimeType.UNDEFINED - value_spans_element_type = runtimeType(value_spans_element) - if (TypeChecker.isRichEditorTextSpanResult(value_spans_element, true, false, false, true, false, false, false, false)) { - valueSerializer.writeInt8(0 as int32) - const value_spans_element_0 = value_spans_element as RichEditorTextSpanResult - valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0) - } - else if (TypeChecker.isRichEditorImageSpanResult(value_spans_element, true, false, false, false, true)) { - valueSerializer.writeInt8(1 as int32) - const value_spans_element_1 = value_spans_element as RichEditorImageSpanResult - valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1) - } - } - } writeStyledStringChangeValue(value: StyledStringChangeValue): void { let valueSerializer : Serializer = this const value_range = value.range @@ -16902,6 +17172,16 @@ export class Serializer extends SerializerBase { valueSerializer.writeStyledString(value_previewText_value) } } + writeRichEditorParagraphResult(value: RichEditorParagraphResult): void { + let valueSerializer : Serializer = this + const value_style = value.style + valueSerializer.writeRichEditorParagraphStyle(value_style) + const value_range = value.range + const value_range_0 = value_range[0] + valueSerializer.writeNumber(value_range_0) + const value_range_1 = value_range[1] + valueSerializer.writeNumber(value_range_1) + } writeRichEditorBaseController(value: RichEditorBaseController): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -16966,12 +17246,12 @@ export class Serializer extends SerializerBase { const value_offset_value = value_offset! let value_offset_value_type : int32 = RuntimeType.UNDEFINED value_offset_value_type = runtimeType(value_offset_value) - if (((RuntimeType.NUMBER == value_offset_value_type))) { + if (RuntimeType.NUMBER == value_offset_value_type) { valueSerializer.writeInt8(0 as int32) const value_offset_value_0 = value_offset_value as number valueSerializer.writeNumber(value_offset_value_0) } - else if (((RuntimeType.STRING == value_offset_value_type))) { + else if (RuntimeType.STRING == value_offset_value_type) { valueSerializer.writeInt8(1 as int32) const value_offset_value_1 = value_offset_value as string valueSerializer.writeString(value_offset_value_1) @@ -16985,12 +17265,12 @@ export class Serializer extends SerializerBase { const value_friction_value = value_friction! let value_friction_value_type : int32 = RuntimeType.UNDEFINED value_friction_value_type = runtimeType(value_friction_value) - if (((RuntimeType.NUMBER == value_friction_value_type))) { + if (RuntimeType.NUMBER == value_friction_value_type) { valueSerializer.writeInt8(0 as int32) const value_friction_value_0 = value_friction_value as number valueSerializer.writeNumber(value_friction_value_0) } - else if (((RuntimeType.STRING == value_friction_value_type))) { + else if (RuntimeType.STRING == value_friction_value_type) { valueSerializer.writeInt8(1 as int32) const value_friction_value_1 = value_friction_value as string valueSerializer.writeString(value_friction_value_1) @@ -17004,12 +17284,12 @@ export class Serializer extends SerializerBase { const value_promptText_value = value_promptText! let value_promptText_value_type : int32 = RuntimeType.UNDEFINED value_promptText_value_type = runtimeType(value_promptText_value) - if (((RuntimeType.STRING == value_promptText_value_type))) { + if (RuntimeType.STRING == value_promptText_value_type) { valueSerializer.writeInt8(0 as int32) const value_promptText_value_0 = value_promptText_value as string valueSerializer.writeString(value_promptText_value_0) } - else if (((RuntimeType.OBJECT == value_promptText_value_type))) { + else if (RuntimeType.OBJECT == value_promptText_value_type) { valueSerializer.writeInt8(1 as int32) const value_promptText_value_1 = value_promptText_value as Resource valueSerializer.writeResource(value_promptText_value_1) @@ -17075,17 +17355,17 @@ export class Serializer extends SerializerBase { const value_checkedBackgroundColor_value_0 = value_checkedBackgroundColor_value as Color valueSerializer.writeInt32((value_checkedBackgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_checkedBackgroundColor_value_1 = value_checkedBackgroundColor_value as number valueSerializer.writeNumber(value_checkedBackgroundColor_value_1) } - else if (((RuntimeType.STRING == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.STRING == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_checkedBackgroundColor_value_2 = value_checkedBackgroundColor_value as string valueSerializer.writeString(value_checkedBackgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_checkedBackgroundColor_value_3 = value_checkedBackgroundColor_value as Resource valueSerializer.writeResource(value_checkedBackgroundColor_value_3) @@ -17104,17 +17384,17 @@ export class Serializer extends SerializerBase { const value_uncheckedBorderColor_value_0 = value_uncheckedBorderColor_value as Color valueSerializer.writeInt32((value_uncheckedBorderColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.NUMBER == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_uncheckedBorderColor_value_1 = value_uncheckedBorderColor_value as number valueSerializer.writeNumber(value_uncheckedBorderColor_value_1) } - else if (((RuntimeType.STRING == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.STRING == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_uncheckedBorderColor_value_2 = value_uncheckedBorderColor_value as string valueSerializer.writeString(value_uncheckedBorderColor_value_2) } - else if (((RuntimeType.OBJECT == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.OBJECT == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_uncheckedBorderColor_value_3 = value_uncheckedBorderColor_value as Resource valueSerializer.writeResource(value_uncheckedBorderColor_value_3) @@ -17133,17 +17413,17 @@ export class Serializer extends SerializerBase { const value_indicatorColor_value_0 = value_indicatorColor_value as Color valueSerializer.writeInt32((value_indicatorColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_indicatorColor_value_type))) { + else if (RuntimeType.NUMBER == value_indicatorColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_indicatorColor_value_1 = value_indicatorColor_value as number valueSerializer.writeNumber(value_indicatorColor_value_1) } - else if (((RuntimeType.STRING == value_indicatorColor_value_type))) { + else if (RuntimeType.STRING == value_indicatorColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_indicatorColor_value_2 = value_indicatorColor_value as string valueSerializer.writeString(value_indicatorColor_value_2) } - else if (((RuntimeType.OBJECT == value_indicatorColor_value_type))) { + else if (RuntimeType.OBJECT == value_indicatorColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_indicatorColor_value_3 = value_indicatorColor_value as Resource valueSerializer.writeResource(value_indicatorColor_value_3) @@ -17212,12 +17492,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -17231,12 +17511,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -17260,12 +17540,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -17279,12 +17559,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -17332,12 +17612,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -17351,12 +17631,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -17435,12 +17715,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -17453,12 +17733,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -17496,12 +17776,12 @@ export class Serializer extends SerializerBase { const value_activeIcon_value = value_activeIcon! let value_activeIcon_value_type : int32 = RuntimeType.UNDEFINED value_activeIcon_value_type = runtimeType(value_activeIcon_value) - if (((RuntimeType.STRING == value_activeIcon_value_type))) { + if (RuntimeType.STRING == value_activeIcon_value_type) { valueSerializer.writeInt8(0 as int32) const value_activeIcon_value_0 = value_activeIcon_value as string valueSerializer.writeString(value_activeIcon_value_0) } - else if (((RuntimeType.OBJECT == value_activeIcon_value_type))) { + else if (RuntimeType.OBJECT == value_activeIcon_value_type) { valueSerializer.writeInt8(1 as int32) const value_activeIcon_value_1 = value_activeIcon_value as Resource valueSerializer.writeResource(value_activeIcon_value_1) @@ -17521,12 +17801,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -17539,12 +17819,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -17592,23 +17872,23 @@ export class Serializer extends SerializerBase { const value_header_value = value_header! let value_header_value_type : int32 = RuntimeType.UNDEFINED value_header_value_type = runtimeType(value_header_value) - if (((RuntimeType.STRING == value_header_value_type)) || ((RuntimeType.OBJECT == value_header_value_type))) { + if ((RuntimeType.STRING == value_header_value_type) || (RuntimeType.OBJECT == value_header_value_type)) { valueSerializer.writeInt8(0 as int32) const value_header_value_0 = value_header_value as ResourceStr let value_header_value_0_type : int32 = RuntimeType.UNDEFINED value_header_value_0_type = runtimeType(value_header_value_0) - if (((RuntimeType.STRING == value_header_value_0_type))) { + if (RuntimeType.STRING == value_header_value_0_type) { valueSerializer.writeInt8(0 as int32) const value_header_value_0_0 = value_header_value_0 as string valueSerializer.writeString(value_header_value_0_0) } - else if (((RuntimeType.OBJECT == value_header_value_0_type))) { + else if (RuntimeType.OBJECT == value_header_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_header_value_0_1 = value_header_value_0 as Resource valueSerializer.writeResource(value_header_value_0_1) } } - else if (((RuntimeType.FUNCTION == value_header_value_type))) { + else if (RuntimeType.FUNCTION == value_header_value_type) { valueSerializer.writeInt8(1 as int32) const value_header_value_1 = value_header_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_header_value_1)) @@ -17622,23 +17902,23 @@ export class Serializer extends SerializerBase { const value_footer_value = value_footer! let value_footer_value_type : int32 = RuntimeType.UNDEFINED value_footer_value_type = runtimeType(value_footer_value) - if (((RuntimeType.STRING == value_footer_value_type)) || ((RuntimeType.OBJECT == value_footer_value_type))) { + if ((RuntimeType.STRING == value_footer_value_type) || (RuntimeType.OBJECT == value_footer_value_type)) { valueSerializer.writeInt8(0 as int32) const value_footer_value_0 = value_footer_value as ResourceStr let value_footer_value_0_type : int32 = RuntimeType.UNDEFINED value_footer_value_0_type = runtimeType(value_footer_value_0) - if (((RuntimeType.STRING == value_footer_value_0_type))) { + if (RuntimeType.STRING == value_footer_value_0_type) { valueSerializer.writeInt8(0 as int32) const value_footer_value_0_0 = value_footer_value_0 as string valueSerializer.writeString(value_footer_value_0_0) } - else if (((RuntimeType.OBJECT == value_footer_value_0_type))) { + else if (RuntimeType.OBJECT == value_footer_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_footer_value_0_1 = value_footer_value_0 as Resource valueSerializer.writeResource(value_footer_value_0_1) } } - else if (((RuntimeType.FUNCTION == value_footer_value_type))) { + else if (RuntimeType.FUNCTION == value_footer_value_type) { valueSerializer.writeInt8(1 as int32) const value_footer_value_1 = value_footer_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_footer_value_1)) @@ -17745,12 +18025,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type : int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.NUMBER == value_space_value_type))) { + if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(0 as int32) const value_space_value_0 = value_space_value as number valueSerializer.writeNumber(value_space_value_0) } - else if (((RuntimeType.STRING == value_space_value_type))) { + else if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(1 as int32) const value_space_value_1 = value_space_value as string valueSerializer.writeString(value_space_value_1) @@ -17775,12 +18055,12 @@ export class Serializer extends SerializerBase { const value_start_value = value_start! let value_start_value_type : int32 = RuntimeType.UNDEFINED value_start_value_type = runtimeType(value_start_value) - if (((RuntimeType.FUNCTION == value_start_value_type))) { + if (RuntimeType.FUNCTION == value_start_value_type) { valueSerializer.writeInt8(0 as int32) const value_start_value_0 = value_start_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_start_value_0)) } - else if (((RuntimeType.OBJECT == value_start_value_type))) { + else if (RuntimeType.OBJECT == value_start_value_type) { valueSerializer.writeInt8(1 as int32) const value_start_value_1 = value_start_value as SwipeActionItem valueSerializer.writeSwipeActionItem(value_start_value_1) @@ -17794,12 +18074,12 @@ export class Serializer extends SerializerBase { const value_end_value = value_end! let value_end_value_type : int32 = RuntimeType.UNDEFINED value_end_value_type = runtimeType(value_end_value) - if (((RuntimeType.FUNCTION == value_end_value_type))) { + if (RuntimeType.FUNCTION == value_end_value_type) { valueSerializer.writeInt8(0 as int32) const value_end_value_0 = value_end_value as CustomBuilder valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_end_value_0)) } - else if (((RuntimeType.OBJECT == value_end_value_type))) { + else if (RuntimeType.OBJECT == value_end_value_type) { valueSerializer.writeInt8(1 as int32) const value_end_value_1 = value_end_value as SwipeActionItem valueSerializer.writeSwipeActionItem(value_end_value_1) @@ -17833,27 +18113,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_style_value.valueOf() as int32)) } } - writeVisibleListContentInfo(value: VisibleListContentInfo): void { - let valueSerializer : Serializer = this - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_itemGroupArea = value.itemGroupArea - let value_itemGroupArea_type : int32 = RuntimeType.UNDEFINED - value_itemGroupArea_type = runtimeType(value_itemGroupArea) - valueSerializer.writeInt8(value_itemGroupArea_type as int32) - if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { - const value_itemGroupArea_value = (value_itemGroupArea as ListItemGroupArea) - valueSerializer.writeInt32((value_itemGroupArea_value.valueOf() as int32)) - } - const value_itemIndexInGroup = value.itemIndexInGroup - let value_itemIndexInGroup_type : int32 = RuntimeType.UNDEFINED - value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup) - valueSerializer.writeInt8(value_itemIndexInGroup_type as int32) - if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { - const value_itemIndexInGroup_value = value_itemIndexInGroup! - valueSerializer.writeNumber(value_itemIndexInGroup_value) - } - } writeChainAnimationOptions(value: ChainAnimationOptions): void { let valueSerializer : Serializer = this const value_minSpace = value.minSpace @@ -17919,12 +18178,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type : int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.NUMBER == value_space_value_type))) { + if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(0 as int32) const value_space_value_0 = value_space_value as number valueSerializer.writeNumber(value_space_value_0) } - else if (((RuntimeType.STRING == value_space_value_type))) { + else if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(1 as int32) const value_space_value_1 = value_space_value as string valueSerializer.writeString(value_space_value_1) @@ -17966,12 +18225,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -17985,12 +18244,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -18023,7 +18282,7 @@ export class Serializer extends SerializerBase { const value_src = value.src let value_src_type : int32 = RuntimeType.UNDEFINED value_src_type = runtimeType(value_src) - if (((RuntimeType.STRING == value_src_type))) { + if (RuntimeType.STRING == value_src_type) { valueSerializer.writeInt8(0 as int32) const value_src_0 = value_src as string valueSerializer.writeString(value_src_0) @@ -18046,12 +18305,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as number valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as string valueSerializer.writeString(value_width_value_1) @@ -18065,12 +18324,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as number valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as string valueSerializer.writeString(value_height_value_1) @@ -18084,12 +18343,12 @@ export class Serializer extends SerializerBase { const value_top_value = value_top! let value_top_value_type : int32 = RuntimeType.UNDEFINED value_top_value_type = runtimeType(value_top_value) - if (((RuntimeType.NUMBER == value_top_value_type))) { + if (RuntimeType.NUMBER == value_top_value_type) { valueSerializer.writeInt8(0 as int32) const value_top_value_0 = value_top_value as number valueSerializer.writeNumber(value_top_value_0) } - else if (((RuntimeType.STRING == value_top_value_type))) { + else if (RuntimeType.STRING == value_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_top_value_1 = value_top_value as string valueSerializer.writeString(value_top_value_1) @@ -18103,12 +18362,12 @@ export class Serializer extends SerializerBase { const value_left_value = value_left! let value_left_value_type : int32 = RuntimeType.UNDEFINED value_left_value_type = runtimeType(value_left_value) - if (((RuntimeType.NUMBER == value_left_value_type))) { + if (RuntimeType.NUMBER == value_left_value_type) { valueSerializer.writeInt8(0 as int32) const value_left_value_0 = value_left_value as number valueSerializer.writeNumber(value_left_value_0) } - else if (((RuntimeType.STRING == value_left_value_type))) { + else if (RuntimeType.STRING == value_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_left_value_1 = value_left_value as string valueSerializer.writeString(value_left_value_1) @@ -18173,12 +18432,12 @@ export class Serializer extends SerializerBase { const value_columns_value = value_columns! let value_columns_value_type : int32 = RuntimeType.UNDEFINED value_columns_value_type = runtimeType(value_columns_value) - if (((RuntimeType.NUMBER == value_columns_value_type))) { + if (RuntimeType.NUMBER == value_columns_value_type) { valueSerializer.writeInt8(0 as int32) const value_columns_value_0 = value_columns_value as number valueSerializer.writeNumber(value_columns_value_0) } - else if (((RuntimeType.OBJECT == value_columns_value_type))) { + else if (RuntimeType.OBJECT == value_columns_value_type) { valueSerializer.writeInt8(1 as int32) const value_columns_value_1 = value_columns_value as GridRowColumnOption valueSerializer.writeGridRowColumnOption(value_columns_value_1) @@ -18211,12 +18470,12 @@ export class Serializer extends SerializerBase { const value_columns_value = value_columns! let value_columns_value_type : int32 = RuntimeType.UNDEFINED value_columns_value_type = runtimeType(value_columns_value) - if (((RuntimeType.NUMBER == value_columns_value_type))) { + if (RuntimeType.NUMBER == value_columns_value_type) { valueSerializer.writeInt8(0 as int32) const value_columns_value_0 = value_columns_value as number valueSerializer.writeNumber(value_columns_value_0) } - else if (((RuntimeType.STRING == value_columns_value_type))) { + else if (RuntimeType.STRING == value_columns_value_type) { valueSerializer.writeInt8(1 as int32) const value_columns_value_1 = value_columns_value as string valueSerializer.writeString(value_columns_value_1) @@ -18238,12 +18497,12 @@ export class Serializer extends SerializerBase { const value_gutter_value = value_gutter! let value_gutter_value_type : int32 = RuntimeType.UNDEFINED value_gutter_value_type = runtimeType(value_gutter_value) - if (((RuntimeType.NUMBER == value_gutter_value_type))) { + if (RuntimeType.NUMBER == value_gutter_value_type) { valueSerializer.writeInt8(0 as int32) const value_gutter_value_0 = value_gutter_value as number valueSerializer.writeNumber(value_gutter_value_0) } - else if (((RuntimeType.STRING == value_gutter_value_type))) { + else if (RuntimeType.STRING == value_gutter_value_type) { valueSerializer.writeInt8(1 as int32) const value_gutter_value_1 = value_gutter_value as string valueSerializer.writeString(value_gutter_value_1) @@ -18257,12 +18516,12 @@ export class Serializer extends SerializerBase { const value_margin_value = value_margin! let value_margin_value_type : int32 = RuntimeType.UNDEFINED value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.NUMBER == value_margin_value_type))) { + if (RuntimeType.NUMBER == value_margin_value_type) { valueSerializer.writeInt8(0 as int32) const value_margin_value_0 = value_margin_value as number valueSerializer.writeNumber(value_margin_value_0) } - else if (((RuntimeType.STRING == value_margin_value_type))) { + else if (RuntimeType.STRING == value_margin_value_type) { valueSerializer.writeInt8(1 as int32) const value_margin_value_1 = value_margin_value as string valueSerializer.writeString(value_margin_value_1) @@ -18279,12 +18538,12 @@ export class Serializer extends SerializerBase { const value_span_value = value_span! let value_span_value_type : int32 = RuntimeType.UNDEFINED value_span_value_type = runtimeType(value_span_value) - if (((RuntimeType.NUMBER == value_span_value_type))) { + if (RuntimeType.NUMBER == value_span_value_type) { valueSerializer.writeInt8(0 as int32) const value_span_value_0 = value_span_value as number valueSerializer.writeNumber(value_span_value_0) } - else if (((RuntimeType.OBJECT == value_span_value_type))) { + else if (RuntimeType.OBJECT == value_span_value_type) { valueSerializer.writeInt8(1 as int32) const value_span_value_1 = value_span_value as GridColColumnOption valueSerializer.writeGridColColumnOption(value_span_value_1) @@ -18298,12 +18557,12 @@ export class Serializer extends SerializerBase { const value_offset_value = value_offset! let value_offset_value_type : int32 = RuntimeType.UNDEFINED value_offset_value_type = runtimeType(value_offset_value) - if (((RuntimeType.NUMBER == value_offset_value_type))) { + if (RuntimeType.NUMBER == value_offset_value_type) { valueSerializer.writeInt8(0 as int32) const value_offset_value_0 = value_offset_value as number valueSerializer.writeNumber(value_offset_value_0) } - else if (((RuntimeType.OBJECT == value_offset_value_type))) { + else if (RuntimeType.OBJECT == value_offset_value_type) { valueSerializer.writeInt8(1 as int32) const value_offset_value_1 = value_offset_value as GridColColumnOption valueSerializer.writeGridColColumnOption(value_offset_value_1) @@ -18317,12 +18576,12 @@ export class Serializer extends SerializerBase { const value_order_value = value_order! let value_order_value_type : int32 = RuntimeType.UNDEFINED value_order_value_type = runtimeType(value_order_value) - if (((RuntimeType.NUMBER == value_order_value_type))) { + if (RuntimeType.NUMBER == value_order_value_type) { valueSerializer.writeInt8(0 as int32) const value_order_value_0 = value_order_value as number valueSerializer.writeNumber(value_order_value_0) } - else if (((RuntimeType.OBJECT == value_order_value_type))) { + else if (RuntimeType.OBJECT == value_order_value_type) { valueSerializer.writeInt8(1 as int32) const value_order_value_1 = value_order_value as GridColColumnOption valueSerializer.writeGridColColumnOption(value_order_value_1) @@ -18407,23 +18666,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeEventTargetInfo(value: EventTargetInfo): void { - let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeScrollableTargetInfo(value: ScrollableTargetInfo): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -18441,23 +18683,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writePanGestureOptions(value: PanGestureOptions): void { - let valueSerializer : Serializer = this - if (TypeChecker.typeInstanceOf(value, "peer")) - { - const base : MaterializedBase = TypeChecker.typeCast(value) - const peer = base.getPeer() - let ptr : KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeGestureEvent(value: GestureEvent): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -18587,12 +18812,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -18617,12 +18842,12 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type : int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0 as int32) const value_radius_value_0 = value_radius_value as number valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(1 as int32) const value_radius_value_1 = value_radius_value as Resource valueSerializer.writeResource(value_radius_value_1) @@ -18636,12 +18861,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type : int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetX_value_0 = value_offsetX_value as number valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetX_value_1 = value_offsetX_value as Resource valueSerializer.writeResource(value_offsetX_value_1) @@ -18655,12 +18880,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type : int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetY_value_0 = value_offsetY_value as number valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetY_value_1 = value_offsetY_value as Resource valueSerializer.writeResource(value_offsetY_value_1) @@ -18745,12 +18970,12 @@ export class Serializer extends SerializerBase { const value_id = value.id let value_id_type : int32 = RuntimeType.UNDEFINED value_id_type = runtimeType(value_id) - if (((RuntimeType.NUMBER == value_id_type))) { + if (RuntimeType.NUMBER == value_id_type) { valueSerializer.writeInt8(0 as int32) const value_id_0 = value_id as number valueSerializer.writeNumber(value_id_0) } - else if (((RuntimeType.STRING == value_id_type))) { + else if (RuntimeType.STRING == value_id_type) { valueSerializer.writeInt8(1 as int32) const value_id_1 = value_id as string valueSerializer.writeString(value_id_1) @@ -18909,12 +19134,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -18928,12 +19153,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -19021,12 +19246,12 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type : int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0 as int32) const value_radius_value_0 = value_radius_value as number valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(1 as int32) const value_radius_value_1 = value_radius_value as Resource valueSerializer.writeResource(value_radius_value_1) @@ -19040,12 +19265,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type : int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetX_value_0 = value_offsetX_value as number valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetX_value_1 = value_offsetX_value as Resource valueSerializer.writeResource(value_offsetX_value_1) @@ -19059,12 +19284,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type : int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0 as int32) const value_offsetY_value_0 = value_offsetY_value as number valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1 as int32) const value_offsetY_value_1 = value_offsetY_value as Resource valueSerializer.writeResource(value_offsetY_value_1) @@ -19081,7 +19306,7 @@ export class Serializer extends SerializerBase { const value_colors_value_element : ResourceColor | LinearGradient = value_colors_value[i] let value_colors_value_element_type : int32 = RuntimeType.UNDEFINED value_colors_value_element_type = runtimeType(value_colors_value_element) - if ((TypeChecker.isColor(value_colors_value_element)) || (((RuntimeType.NUMBER == value_colors_value_element_type))) || (((RuntimeType.STRING == value_colors_value_element_type))) || (((RuntimeType.OBJECT == value_colors_value_element_type)))) { + if ((TypeChecker.isColor(value_colors_value_element)) || (RuntimeType.NUMBER == value_colors_value_element_type) || (RuntimeType.STRING == value_colors_value_element_type) || (RuntimeType.OBJECT == value_colors_value_element_type)) { valueSerializer.writeInt8(0 as int32) const value_colors_value_element_0 = value_colors_value_element as ResourceColor let value_colors_value_element_0_type : int32 = RuntimeType.UNDEFINED @@ -19091,17 +19316,17 @@ export class Serializer extends SerializerBase { const value_colors_value_element_0_0 = value_colors_value_element_0 as Color valueSerializer.writeInt32((value_colors_value_element_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_colors_value_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_value_element_0_type) { valueSerializer.writeInt8(1 as int32) const value_colors_value_element_0_1 = value_colors_value_element_0 as number valueSerializer.writeNumber(value_colors_value_element_0_1) } - else if (((RuntimeType.STRING == value_colors_value_element_0_type))) { + else if (RuntimeType.STRING == value_colors_value_element_0_type) { valueSerializer.writeInt8(2 as int32) const value_colors_value_element_0_2 = value_colors_value_element_0 as string valueSerializer.writeString(value_colors_value_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_value_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_value_element_0_type) { valueSerializer.writeInt8(3 as int32) const value_colors_value_element_0_3 = value_colors_value_element_0 as Resource valueSerializer.writeResource(value_colors_value_element_0_3) @@ -19150,17 +19375,17 @@ export class Serializer extends SerializerBase { const value_color_0 = value_color as Color valueSerializer.writeInt32((value_color_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_type))) { + else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1 as int32) const value_color_1 = value_color as number valueSerializer.writeNumber(value_color_1) } - else if (((RuntimeType.STRING == value_color_type))) { + else if (RuntimeType.STRING == value_color_type) { valueSerializer.writeInt8(2 as int32) const value_color_2 = value_color as string valueSerializer.writeString(value_color_2) } - else if (((RuntimeType.OBJECT == value_color_type))) { + else if (RuntimeType.OBJECT == value_color_type) { valueSerializer.writeInt8(3 as int32) const value_color_3 = value_color as Resource valueSerializer.writeResource(value_color_3) @@ -19236,17 +19461,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = value_maskColor_value as Color valueSerializer.writeInt32((value_maskColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_maskColor_value_1 = value_maskColor_value as number valueSerializer.writeNumber(value_maskColor_value_1) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_maskColor_value_2 = value_maskColor_value as string valueSerializer.writeString(value_maskColor_value_2) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_maskColor_value_3 = value_maskColor_value as Resource valueSerializer.writeResource(value_maskColor_value_3) @@ -19297,17 +19522,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -19453,7 +19678,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type : int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((TypeChecker.isColor(value_borderColor_value)) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((TypeChecker.isColor(value_borderColor_value)) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0 as int32) const value_borderColor_value_0 = value_borderColor_value as ResourceColor let value_borderColor_value_0_type : int32 = RuntimeType.UNDEFINED @@ -19463,17 +19688,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = value_borderColor_value_0 as Color valueSerializer.writeInt32((value_borderColor_value_0_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_0_1 = value_borderColor_value_0 as number valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_0_2 = value_borderColor_value_0 as string valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_0_3 = value_borderColor_value_0 as Resource valueSerializer.writeResource(value_borderColor_value_0_3) @@ -19495,17 +19720,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value as Color valueSerializer.writeInt32((value_borderColor_value_1_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value as number valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value as string valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value as Resource valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -19524,17 +19749,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value as Color valueSerializer.writeInt32((value_borderColor_value_1_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value as number valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value as string valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value as Resource valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -19553,17 +19778,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value as Color valueSerializer.writeInt32((value_borderColor_value_1_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value as number valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value as string valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value as Resource valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -19582,17 +19807,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value as Color valueSerializer.writeInt32((value_borderColor_value_1_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value as number valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value as string valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value as Resource valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -19608,12 +19833,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type : int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((TypeChecker.isBorderStyle(value_borderStyle_value)))) { + if (TypeChecker.isBorderStyle(value_borderStyle_value)) { valueSerializer.writeInt8(0 as int32) const value_borderStyle_value_0 = value_borderStyle_value as BorderStyle valueSerializer.writeInt32((value_borderStyle_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1 as int32) const value_borderStyle_value_1 = value_borderStyle_value as EdgeStyles const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -19658,12 +19883,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type : int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0 as int32) const value_shadow_value_0 = value_shadow_value as ShadowOptions valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((TypeChecker.isShadowStyle(value_shadow_value)))) { + else if (TypeChecker.isShadowStyle(value_shadow_value)) { valueSerializer.writeInt8(1 as int32) const value_shadow_value_1 = value_shadow_value as ShadowStyle valueSerializer.writeInt32((value_shadow_value_1.valueOf() as int32)) @@ -19746,17 +19971,17 @@ export class Serializer extends SerializerBase { const value_scene_value = value_scene! let value_scene_value_type : int32 = RuntimeType.UNDEFINED value_scene_value_type = runtimeType(value_scene_value) - if ((((RuntimeType.STRING == value_scene_value_type))) || (((RuntimeType.OBJECT == value_scene_value_type)))) { + if ((RuntimeType.STRING == value_scene_value_type) || (RuntimeType.OBJECT == value_scene_value_type)) { valueSerializer.writeInt8(0 as int32) const value_scene_value_0 = value_scene_value as ResourceStr let value_scene_value_0_type : int32 = RuntimeType.UNDEFINED value_scene_value_0_type = runtimeType(value_scene_value_0) - if (((RuntimeType.STRING == value_scene_value_0_type))) { + if (RuntimeType.STRING == value_scene_value_0_type) { valueSerializer.writeInt8(0 as int32) const value_scene_value_0_0 = value_scene_value_0 as string valueSerializer.writeString(value_scene_value_0_0) } - else if (((RuntimeType.OBJECT == value_scene_value_0_type))) { + else if (RuntimeType.OBJECT == value_scene_value_0_type) { valueSerializer.writeInt8(1 as int32) const value_scene_value_0_1 = value_scene_value_0 as Resource valueSerializer.writeResource(value_scene_value_0_1) @@ -19811,13 +20036,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeOffsetResult(value: OffsetResult): void { - let valueSerializer : Serializer = this - const value_xOffset = value.xOffset - valueSerializer.writeNumber(value_xOffset) - const value_yOffset = value.yOffset - valueSerializer.writeNumber(value_yOffset) - } writeTextContentControllerBase(value: TextContentControllerBase): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) @@ -19898,12 +20116,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -19916,12 +20134,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -20380,17 +20598,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_top_value_0 = value_color_value_0_top_value as Color valueSerializer.writeInt32((value_color_value_0_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_top_value_1 = value_color_value_0_top_value as number valueSerializer.writeNumber(value_color_value_0_top_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_top_value_2 = value_color_value_0_top_value as string valueSerializer.writeString(value_color_value_0_top_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_top_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_top_value_3 = value_color_value_0_top_value as Resource valueSerializer.writeResource(value_color_value_0_top_value_3) @@ -20409,17 +20627,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_right_value_0 = value_color_value_0_right_value as Color valueSerializer.writeInt32((value_color_value_0_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_right_value_1 = value_color_value_0_right_value as number valueSerializer.writeNumber(value_color_value_0_right_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_right_value_2 = value_color_value_0_right_value as string valueSerializer.writeString(value_color_value_0_right_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_right_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_right_value_3 = value_color_value_0_right_value as Resource valueSerializer.writeResource(value_color_value_0_right_value_3) @@ -20438,17 +20656,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value as Color valueSerializer.writeInt32((value_color_value_0_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value as number valueSerializer.writeNumber(value_color_value_0_bottom_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value as string valueSerializer.writeString(value_color_value_0_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value as Resource valueSerializer.writeResource(value_color_value_0_bottom_value_3) @@ -20467,24 +20685,24 @@ export class Serializer extends SerializerBase { const value_color_value_0_left_value_0 = value_color_value_0_left_value as Color valueSerializer.writeInt32((value_color_value_0_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_left_value_1 = value_color_value_0_left_value as number valueSerializer.writeNumber(value_color_value_0_left_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_left_value_2 = value_color_value_0_left_value as string valueSerializer.writeString(value_color_value_0_left_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_left_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_left_value_3 = value_color_value_0_left_value as Resource valueSerializer.writeResource(value_color_value_0_left_value_3) } } } - else if ((TypeChecker.isColor(value_color_value)) || (((RuntimeType.NUMBER == value_color_value_type))) || (((RuntimeType.STRING == value_color_value_type))) || (((RuntimeType.OBJECT == value_color_value_type)))) { + else if ((TypeChecker.isColor(value_color_value)) || (RuntimeType.NUMBER == value_color_value_type) || (RuntimeType.STRING == value_color_value_type) || (RuntimeType.OBJECT == value_color_value_type)) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as ResourceColor let value_color_value_1_type : int32 = RuntimeType.UNDEFINED @@ -20494,17 +20712,17 @@ export class Serializer extends SerializerBase { const value_color_value_1_0 = value_color_value_1 as Color valueSerializer.writeInt32((value_color_value_1_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_1_type))) { + else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1_1 = value_color_value_1 as number valueSerializer.writeNumber(value_color_value_1_1) } - else if (((RuntimeType.STRING == value_color_value_1_type))) { + else if (RuntimeType.STRING == value_color_value_1_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_1_2 = value_color_value_1 as string valueSerializer.writeString(value_color_value_1_2) } - else if (((RuntimeType.OBJECT == value_color_value_1_type))) { + else if (RuntimeType.OBJECT == value_color_value_1_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_1_3 = value_color_value_1 as Resource valueSerializer.writeResource(value_color_value_1_3) @@ -20574,7 +20792,7 @@ export class Serializer extends SerializerBase { const value_style_value = value_style! let value_style_value_type : int32 = RuntimeType.UNDEFINED value_style_value_type = runtimeType(value_style_value) - if (((RuntimeType.OBJECT == value_style_value_type))) { + if (RuntimeType.OBJECT == value_style_value_type) { valueSerializer.writeInt8(0 as int32) const value_style_value_0 = value_style_value as EdgeOutlineStyles const value_style_value_0_top = value_style_value_0.top @@ -20610,7 +20828,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_style_value_0_left_value.valueOf() as int32)) } } - else if (((TypeChecker.isOutlineStyle(value_style_value)))) { + else if (TypeChecker.isOutlineStyle(value_style_value)) { valueSerializer.writeInt8(1 as int32) const value_style_value_1 = value_style_value as OutlineStyle valueSerializer.writeInt32((value_style_value_1.valueOf() as int32)) @@ -20690,7 +20908,7 @@ export class Serializer extends SerializerBase { const value_source_value = value_source! let value_source_value_type : int32 = RuntimeType.UNDEFINED value_source_value_type = runtimeType(value_source_value) - if (((RuntimeType.STRING == value_source_value_type))) { + if (RuntimeType.STRING == value_source_value_type) { valueSerializer.writeInt8(0 as int32) const value_source_value_0 = value_source_value as string valueSerializer.writeString(value_source_value_0) @@ -20906,17 +21124,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_top_value_0 = value_color_value_0_top_value as Color valueSerializer.writeInt32((value_color_value_0_top_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_top_value_1 = value_color_value_0_top_value as number valueSerializer.writeNumber(value_color_value_0_top_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_top_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_top_value_2 = value_color_value_0_top_value as string valueSerializer.writeString(value_color_value_0_top_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_top_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_top_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_top_value_3 = value_color_value_0_top_value as Resource valueSerializer.writeResource(value_color_value_0_top_value_3) @@ -20935,17 +21153,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_right_value_0 = value_color_value_0_right_value as Color valueSerializer.writeInt32((value_color_value_0_right_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_right_value_1 = value_color_value_0_right_value as number valueSerializer.writeNumber(value_color_value_0_right_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_right_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_right_value_2 = value_color_value_0_right_value as string valueSerializer.writeString(value_color_value_0_right_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_right_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_right_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_right_value_3 = value_color_value_0_right_value as Resource valueSerializer.writeResource(value_color_value_0_right_value_3) @@ -20964,17 +21182,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value as Color valueSerializer.writeInt32((value_color_value_0_bottom_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value as number valueSerializer.writeNumber(value_color_value_0_bottom_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value as string valueSerializer.writeString(value_color_value_0_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value as Resource valueSerializer.writeResource(value_color_value_0_bottom_value_3) @@ -20993,24 +21211,24 @@ export class Serializer extends SerializerBase { const value_color_value_0_left_value_0 = value_color_value_0_left_value as Color valueSerializer.writeInt32((value_color_value_0_left_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_0_left_value_1 = value_color_value_0_left_value as number valueSerializer.writeNumber(value_color_value_0_left_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_left_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_0_left_value_2 = value_color_value_0_left_value as string valueSerializer.writeString(value_color_value_0_left_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_left_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_left_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_0_left_value_3 = value_color_value_0_left_value as Resource valueSerializer.writeResource(value_color_value_0_left_value_3) } } } - else if ((TypeChecker.isColor(value_color_value)) || (((RuntimeType.NUMBER == value_color_value_type))) || (((RuntimeType.STRING == value_color_value_type))) || (((RuntimeType.OBJECT == value_color_value_type)))) { + else if ((TypeChecker.isColor(value_color_value)) || (RuntimeType.NUMBER == value_color_value_type) || (RuntimeType.STRING == value_color_value_type) || (RuntimeType.OBJECT == value_color_value_type)) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as ResourceColor let value_color_value_1_type : int32 = RuntimeType.UNDEFINED @@ -21020,17 +21238,17 @@ export class Serializer extends SerializerBase { const value_color_value_1_0 = value_color_value_1 as Color valueSerializer.writeInt32((value_color_value_1_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_1_type))) { + else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1_1 = value_color_value_1 as number valueSerializer.writeNumber(value_color_value_1_1) } - else if (((RuntimeType.STRING == value_color_value_1_type))) { + else if (RuntimeType.STRING == value_color_value_1_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_1_2 = value_color_value_1 as string valueSerializer.writeString(value_color_value_1_2) } - else if (((RuntimeType.OBJECT == value_color_value_1_type))) { + else if (RuntimeType.OBJECT == value_color_value_1_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_1_3 = value_color_value_1 as Resource valueSerializer.writeResource(value_color_value_1_3) @@ -21105,7 +21323,7 @@ export class Serializer extends SerializerBase { const value_style_value = value_style! let value_style_value_type : int32 = RuntimeType.UNDEFINED value_style_value_type = runtimeType(value_style_value) - if (((RuntimeType.OBJECT == value_style_value_type))) { + if (RuntimeType.OBJECT == value_style_value_type) { valueSerializer.writeInt8(0 as int32) const value_style_value_0 = value_style_value as EdgeStyles const value_style_value_0_top = value_style_value_0.top @@ -21141,7 +21359,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32((value_style_value_0_left_value.valueOf() as int32)) } } - else if (((TypeChecker.isBorderStyle(value_style_value)))) { + else if (TypeChecker.isBorderStyle(value_style_value)) { valueSerializer.writeInt8(1 as int32) const value_style_value_1 = value_style_value as BorderStyle valueSerializer.writeInt32((value_style_value_1.valueOf() as int32)) @@ -21356,17 +21574,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = value_color_value as Color valueSerializer.writeInt32((value_color_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1 as int32) const value_color_value_1 = value_color_value as number valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2 as int32) const value_color_value_2 = value_color_value as string valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3 as int32) const value_color_value_3 = value_color_value as Resource valueSerializer.writeResource(value_color_value_3) @@ -21409,17 +21627,17 @@ export class Serializer extends SerializerBase { const value_inactiveColor_value_0 = value_inactiveColor_value as Color valueSerializer.writeInt32((value_inactiveColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { + else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_inactiveColor_value_1 = value_inactiveColor_value as number valueSerializer.writeNumber(value_inactiveColor_value_1) } - else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + else if (RuntimeType.STRING == value_inactiveColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_inactiveColor_value_2 = value_inactiveColor_value as string valueSerializer.writeString(value_inactiveColor_value_2) } - else if (((RuntimeType.OBJECT == value_inactiveColor_value_type))) { + else if (RuntimeType.OBJECT == value_inactiveColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_inactiveColor_value_3 = value_inactiveColor_value as Resource valueSerializer.writeResource(value_inactiveColor_value_3) @@ -21563,28 +21781,16 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeTouchObject(value: TouchObject): void { + writeHistoricalPoint(value: HistoricalPoint): void { let valueSerializer : Serializer = this - const value_type = value.type - valueSerializer.writeInt32((value_type.valueOf() as int32)) - const value_id = value.id - valueSerializer.writeNumber(value_id) - const value_displayX = value.displayX - valueSerializer.writeNumber(value_displayX) - const value_displayY = value.displayY - valueSerializer.writeNumber(value_displayY) - const value_windowX = value.windowX - valueSerializer.writeNumber(value_windowX) - const value_windowY = value.windowY - valueSerializer.writeNumber(value_windowY) - const value_screenX = value.screenX - valueSerializer.writeNumber(value_screenX) - const value_screenY = value.screenY - valueSerializer.writeNumber(value_screenY) - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) + const value_touchObject = value.touchObject + valueSerializer.writeTouchObject(value_touchObject) + const value_size = value.size + valueSerializer.writeNumber(value_size) + const value_force = value.force + valueSerializer.writeNumber(value_force) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) } writeAccessibilityHoverEvent(value: AccessibilityHoverEvent): void { let valueSerializer : Serializer = this @@ -21691,12 +21897,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type : int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.STRING == value_space_value_type))) { + if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(0 as int32) const value_space_value_0 = value_space_value as string valueSerializer.writeString(value_space_value_0) } - else if (((RuntimeType.NUMBER == value_space_value_type))) { + else if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(1 as int32) const value_space_value_1 = value_space_value as number valueSerializer.writeNumber(value_space_value_1) @@ -21713,12 +21919,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type : int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0 as int32) const value_width_value_0 = value_width_value as string valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1 as int32) const value_width_value_1 = value_width_value as number valueSerializer.writeNumber(value_width_value_1) @@ -21732,12 +21938,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type : int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0 as int32) const value_height_value_0 = value_height_value as string valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1 as int32) const value_height_value_1 = value_height_value as number valueSerializer.writeNumber(value_height_value_1) @@ -21781,17 +21987,17 @@ export class Serializer extends SerializerBase { const value_strokeColor_value_0 = value_strokeColor_value as Color valueSerializer.writeInt32((value_strokeColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_strokeColor_value_type))) { + else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_strokeColor_value_1 = value_strokeColor_value as number valueSerializer.writeNumber(value_strokeColor_value_1) } - else if (((RuntimeType.STRING == value_strokeColor_value_type))) { + else if (RuntimeType.STRING == value_strokeColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_strokeColor_value_2 = value_strokeColor_value as string valueSerializer.writeString(value_strokeColor_value_2) } - else if (((RuntimeType.OBJECT == value_strokeColor_value_type))) { + else if (RuntimeType.OBJECT == value_strokeColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_strokeColor_value_3 = value_strokeColor_value as Resource valueSerializer.writeResource(value_strokeColor_value_3) @@ -21841,7 +22047,7 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_indicatorBuilder_value)) } } - writeCanvasRenderer(value: CanvasRenderer): void { + writeOffscreenCanvas(value: OffscreenCanvas): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -21858,7 +22064,7 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeRenderingContextSettings(value: RenderingContextSettings): void { + writeCanvasRenderer(value: CanvasRenderer): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) { @@ -21924,12 +22130,12 @@ export class Serializer extends SerializerBase { const value_hintRadius_value = value_hintRadius! let value_hintRadius_value_type : int32 = RuntimeType.UNDEFINED value_hintRadius_value_type = runtimeType(value_hintRadius_value) - if (((RuntimeType.NUMBER == value_hintRadius_value_type))) { + if (RuntimeType.NUMBER == value_hintRadius_value_type) { valueSerializer.writeInt8(0 as int32) const value_hintRadius_value_0 = value_hintRadius_value as number valueSerializer.writeNumber(value_hintRadius_value_0) } - else if (((RuntimeType.OBJECT == value_hintRadius_value_type))) { + else if (RuntimeType.OBJECT == value_hintRadius_value_type) { valueSerializer.writeInt8(1 as int32) const value_hintRadius_value_1 = value_hintRadius_value as Resource valueSerializer.writeResource(value_hintRadius_value_1) @@ -21981,17 +22187,17 @@ export class Serializer extends SerializerBase { const value_workDayMarkColor_value_0 = value_workDayMarkColor_value as Color valueSerializer.writeInt32((value_workDayMarkColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_workDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_workDayMarkColor_value_1 = value_workDayMarkColor_value as number valueSerializer.writeNumber(value_workDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_workDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_workDayMarkColor_value_2 = value_workDayMarkColor_value as string valueSerializer.writeString(value_workDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_workDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_workDayMarkColor_value_3 = value_workDayMarkColor_value as Resource valueSerializer.writeResource(value_workDayMarkColor_value_3) @@ -22010,17 +22216,17 @@ export class Serializer extends SerializerBase { const value_offDayMarkColor_value_0 = value_offDayMarkColor_value as Color valueSerializer.writeInt32((value_offDayMarkColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_offDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_offDayMarkColor_value_1 = value_offDayMarkColor_value as number valueSerializer.writeNumber(value_offDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_offDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_offDayMarkColor_value_2 = value_offDayMarkColor_value as string valueSerializer.writeString(value_offDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_offDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_offDayMarkColor_value_3 = value_offDayMarkColor_value as Resource valueSerializer.writeResource(value_offDayMarkColor_value_3) @@ -22082,17 +22288,17 @@ export class Serializer extends SerializerBase { const value_weekColor_value_0 = value_weekColor_value as Color valueSerializer.writeInt32((value_weekColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_weekColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_weekColor_value_1 = value_weekColor_value as number valueSerializer.writeNumber(value_weekColor_value_1) } - else if (((RuntimeType.STRING == value_weekColor_value_type))) { + else if (RuntimeType.STRING == value_weekColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_weekColor_value_2 = value_weekColor_value as string valueSerializer.writeString(value_weekColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_weekColor_value_3 = value_weekColor_value as Resource valueSerializer.writeResource(value_weekColor_value_3) @@ -22111,17 +22317,17 @@ export class Serializer extends SerializerBase { const value_weekendDayColor_value_0 = value_weekendDayColor_value as Color valueSerializer.writeInt32((value_weekendDayColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_weekendDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekendDayColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_weekendDayColor_value_1 = value_weekendDayColor_value as number valueSerializer.writeNumber(value_weekendDayColor_value_1) } - else if (((RuntimeType.STRING == value_weekendDayColor_value_type))) { + else if (RuntimeType.STRING == value_weekendDayColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_weekendDayColor_value_2 = value_weekendDayColor_value as string valueSerializer.writeString(value_weekendDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekendDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekendDayColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_weekendDayColor_value_3 = value_weekendDayColor_value as Resource valueSerializer.writeResource(value_weekendDayColor_value_3) @@ -22140,17 +22346,17 @@ export class Serializer extends SerializerBase { const value_weekendLunarColor_value_0 = value_weekendLunarColor_value as Color valueSerializer.writeInt32((value_weekendLunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_weekendLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_weekendLunarColor_value_1 = value_weekendLunarColor_value as number valueSerializer.writeNumber(value_weekendLunarColor_value_1) } - else if (((RuntimeType.STRING == value_weekendLunarColor_value_type))) { + else if (RuntimeType.STRING == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_weekendLunarColor_value_2 = value_weekendLunarColor_value as string valueSerializer.writeString(value_weekendLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekendLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_weekendLunarColor_value_3 = value_weekendLunarColor_value as Resource valueSerializer.writeResource(value_weekendLunarColor_value_3) @@ -22204,17 +22410,17 @@ export class Serializer extends SerializerBase { const value_focusedDayColor_value_0 = value_focusedDayColor_value as Color valueSerializer.writeInt32((value_focusedDayColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_focusedDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedDayColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_focusedDayColor_value_1 = value_focusedDayColor_value as number valueSerializer.writeNumber(value_focusedDayColor_value_1) } - else if (((RuntimeType.STRING == value_focusedDayColor_value_type))) { + else if (RuntimeType.STRING == value_focusedDayColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_focusedDayColor_value_2 = value_focusedDayColor_value as string valueSerializer.writeString(value_focusedDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedDayColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_focusedDayColor_value_3 = value_focusedDayColor_value as Resource valueSerializer.writeResource(value_focusedDayColor_value_3) @@ -22233,17 +22439,17 @@ export class Serializer extends SerializerBase { const value_focusedLunarColor_value_0 = value_focusedLunarColor_value as Color valueSerializer.writeInt32((value_focusedLunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_focusedLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_focusedLunarColor_value_1 = value_focusedLunarColor_value as number valueSerializer.writeNumber(value_focusedLunarColor_value_1) } - else if (((RuntimeType.STRING == value_focusedLunarColor_value_type))) { + else if (RuntimeType.STRING == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_focusedLunarColor_value_2 = value_focusedLunarColor_value as string valueSerializer.writeString(value_focusedLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_focusedLunarColor_value_3 = value_focusedLunarColor_value as Resource valueSerializer.writeResource(value_focusedLunarColor_value_3) @@ -22262,17 +22468,17 @@ export class Serializer extends SerializerBase { const value_focusedAreaBackgroundColor_value_0 = value_focusedAreaBackgroundColor_value as Color valueSerializer.writeInt32((value_focusedAreaBackgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_focusedAreaBackgroundColor_value_1 = value_focusedAreaBackgroundColor_value as number valueSerializer.writeNumber(value_focusedAreaBackgroundColor_value_1) } - else if (((RuntimeType.STRING == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.STRING == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_focusedAreaBackgroundColor_value_2 = value_focusedAreaBackgroundColor_value as string valueSerializer.writeString(value_focusedAreaBackgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_focusedAreaBackgroundColor_value_3 = value_focusedAreaBackgroundColor_value as Resource valueSerializer.writeResource(value_focusedAreaBackgroundColor_value_3) @@ -22302,17 +22508,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthDayColor_value_0 = value_nonCurrentMonthDayColor_value as Color valueSerializer.writeInt32((value_nonCurrentMonthDayColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_nonCurrentMonthDayColor_value_1 = value_nonCurrentMonthDayColor_value as number valueSerializer.writeNumber(value_nonCurrentMonthDayColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_nonCurrentMonthDayColor_value_2 = value_nonCurrentMonthDayColor_value as string valueSerializer.writeString(value_nonCurrentMonthDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_nonCurrentMonthDayColor_value_3 = value_nonCurrentMonthDayColor_value as Resource valueSerializer.writeResource(value_nonCurrentMonthDayColor_value_3) @@ -22331,17 +22537,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthLunarColor_value_0 = value_nonCurrentMonthLunarColor_value as Color valueSerializer.writeInt32((value_nonCurrentMonthLunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_nonCurrentMonthLunarColor_value_1 = value_nonCurrentMonthLunarColor_value as number valueSerializer.writeNumber(value_nonCurrentMonthLunarColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_nonCurrentMonthLunarColor_value_2 = value_nonCurrentMonthLunarColor_value as string valueSerializer.writeString(value_nonCurrentMonthLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_nonCurrentMonthLunarColor_value_3 = value_nonCurrentMonthLunarColor_value as Resource valueSerializer.writeResource(value_nonCurrentMonthLunarColor_value_3) @@ -22360,17 +22566,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthWorkDayMarkColor_value_0 = value_nonCurrentMonthWorkDayMarkColor_value as Color valueSerializer.writeInt32((value_nonCurrentMonthWorkDayMarkColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_nonCurrentMonthWorkDayMarkColor_value_1 = value_nonCurrentMonthWorkDayMarkColor_value as number valueSerializer.writeNumber(value_nonCurrentMonthWorkDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_nonCurrentMonthWorkDayMarkColor_value_2 = value_nonCurrentMonthWorkDayMarkColor_value as string valueSerializer.writeString(value_nonCurrentMonthWorkDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_nonCurrentMonthWorkDayMarkColor_value_3 = value_nonCurrentMonthWorkDayMarkColor_value as Resource valueSerializer.writeResource(value_nonCurrentMonthWorkDayMarkColor_value_3) @@ -22389,17 +22595,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthOffDayMarkColor_value_0 = value_nonCurrentMonthOffDayMarkColor_value as Color valueSerializer.writeInt32((value_nonCurrentMonthOffDayMarkColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_nonCurrentMonthOffDayMarkColor_value_1 = value_nonCurrentMonthOffDayMarkColor_value as number valueSerializer.writeNumber(value_nonCurrentMonthOffDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_nonCurrentMonthOffDayMarkColor_value_2 = value_nonCurrentMonthOffDayMarkColor_value as string valueSerializer.writeString(value_nonCurrentMonthOffDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_nonCurrentMonthOffDayMarkColor_value_3 = value_nonCurrentMonthOffDayMarkColor_value as Resource valueSerializer.writeResource(value_nonCurrentMonthOffDayMarkColor_value_3) @@ -22421,17 +22627,17 @@ export class Serializer extends SerializerBase { const value_dayColor_value_0 = value_dayColor_value as Color valueSerializer.writeInt32((value_dayColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_dayColor_value_type))) { + else if (RuntimeType.NUMBER == value_dayColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_dayColor_value_1 = value_dayColor_value as number valueSerializer.writeNumber(value_dayColor_value_1) } - else if (((RuntimeType.STRING == value_dayColor_value_type))) { + else if (RuntimeType.STRING == value_dayColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_dayColor_value_2 = value_dayColor_value as string valueSerializer.writeString(value_dayColor_value_2) } - else if (((RuntimeType.OBJECT == value_dayColor_value_type))) { + else if (RuntimeType.OBJECT == value_dayColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_dayColor_value_3 = value_dayColor_value as Resource valueSerializer.writeResource(value_dayColor_value_3) @@ -22450,17 +22656,17 @@ export class Serializer extends SerializerBase { const value_lunarColor_value_0 = value_lunarColor_value as Color valueSerializer.writeInt32((value_lunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_lunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_lunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_lunarColor_value_1 = value_lunarColor_value as number valueSerializer.writeNumber(value_lunarColor_value_1) } - else if (((RuntimeType.STRING == value_lunarColor_value_type))) { + else if (RuntimeType.STRING == value_lunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_lunarColor_value_2 = value_lunarColor_value as string valueSerializer.writeString(value_lunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_lunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_lunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_lunarColor_value_3 = value_lunarColor_value as Resource valueSerializer.writeResource(value_lunarColor_value_3) @@ -22479,17 +22685,17 @@ export class Serializer extends SerializerBase { const value_markLunarColor_value_0 = value_markLunarColor_value as Color valueSerializer.writeInt32((value_markLunarColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_markLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_markLunarColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_markLunarColor_value_1 = value_markLunarColor_value as number valueSerializer.writeNumber(value_markLunarColor_value_1) } - else if (((RuntimeType.STRING == value_markLunarColor_value_type))) { + else if (RuntimeType.STRING == value_markLunarColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_markLunarColor_value_2 = value_markLunarColor_value as string valueSerializer.writeString(value_markLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_markLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_markLunarColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_markLunarColor_value_3 = value_markLunarColor_value as Resource valueSerializer.writeResource(value_markLunarColor_value_3) @@ -22734,12 +22940,12 @@ export class Serializer extends SerializerBase { const value_position_value = value_position! let value_position_value_type : int32 = RuntimeType.UNDEFINED value_position_value_type = runtimeType(value_position_value) - if (((TypeChecker.isBadgePosition(value_position_value)))) { + if (TypeChecker.isBadgePosition(value_position_value)) { valueSerializer.writeInt8(0 as int32) const value_position_value_0 = value_position_value as BadgePosition valueSerializer.writeInt32((value_position_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_position_value_type))) { + else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1 as int32) const value_position_value_1 = value_position_value as Position valueSerializer.writePosition(value_position_value_1) @@ -22760,12 +22966,12 @@ export class Serializer extends SerializerBase { const value_position_value = value_position! let value_position_value_type : int32 = RuntimeType.UNDEFINED value_position_value_type = runtimeType(value_position_value) - if (((TypeChecker.isBadgePosition(value_position_value)))) { + if (TypeChecker.isBadgePosition(value_position_value)) { valueSerializer.writeInt8(0 as int32) const value_position_value_0 = value_position_value as BadgePosition valueSerializer.writeInt32((value_position_value_0.valueOf() as int32)) } - else if (((RuntimeType.OBJECT == value_position_value_type))) { + else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1 as int32) const value_position_value_1 = value_position_value as Position valueSerializer.writePosition(value_position_value_1) @@ -22892,12 +23098,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type : int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0 as int32) const value_value_0 = value_value as string valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1 as int32) const value_value_1 = value_value as Resource valueSerializer.writeResource(value_value_1) @@ -22915,17 +23121,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = value_fontColor_value as Color valueSerializer.writeInt32((value_fontColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_fontColor_value_1 = value_fontColor_value as number valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_fontColor_value_2 = value_fontColor_value as string valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_fontColor_value_3 = value_fontColor_value as Resource valueSerializer.writeResource(value_fontColor_value_3) @@ -22944,17 +23150,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = value_backgroundColor_value as Color valueSerializer.writeInt32((value_backgroundColor_value_0.valueOf() as int32)) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1 as int32) const value_backgroundColor_value_1 = value_backgroundColor_value as number valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2 as int32) const value_backgroundColor_value_2 = value_backgroundColor_value as string valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3 as int32) const value_backgroundColor_value_3 = value_backgroundColor_value as Resource valueSerializer.writeResource(value_backgroundColor_value_3) @@ -23000,12 +23206,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type : int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0 as int32) const value_title_0 = value_title as string valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1 as int32) const value_title_1 = value_title as Resource valueSerializer.writeResource(value_title_1) @@ -23018,12 +23224,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type : int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0 as int32) const value_icon_value_0 = value_icon_value as string valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1 as int32) const value_icon_value_1 = value_icon_value as Resource valueSerializer.writeResource(value_icon_value_1) @@ -23124,6 +23330,23 @@ export class Serializer extends SerializerBase { const value_headerValue = value.headerValue valueSerializer.writeString(value_headerValue) } + writeSystemOps(value: SystemOps): void { + let valueSerializer : Serializer = this + if (TypeChecker.typeInstanceOf(value, "peer")) + { + const base : MaterializedBase = TypeChecker.typeCast(value) + const peer = base.getPeer() + let ptr : KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeLazyForEachOps(value: LazyForEachOps): void { let valueSerializer : Serializer = this if (TypeChecker.typeInstanceOf(value, "peer")) diff --git a/arkoala-arkts/arkui/src/generated/shared/generated-utils.ts b/arkoala-arkts/arkui/src/generated/shared/generated-utils.ts deleted file mode 100644 index 1e2ceb4b3962a7207a8bcd1c7b915b49d31ea865..0000000000000000000000000000000000000000 --- a/arkoala-arkts/arkui/src/generated/shared/generated-utils.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function unsafeCast(value: Object): T { - return value as T -} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/generated/ts/type_check.ts b/arkoala-arkts/arkui/src/generated/ts/type_check.ts index 59ba7bca8c20cd8cc5cc828c045b37bf90925d5f..b0cef0c7b9288ac39a24222f5d9deca8d5a9ca55 100644 --- a/arkoala-arkts/arkui/src/generated/ts/type_check.ts +++ b/arkoala-arkts/arkui/src/generated/ts/type_check.ts @@ -1,13 +1,13 @@ -import { KBoolean, KStringPtr, NativeBuffer } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" +import { KBoolean, KStringPtr, NativeBuffer, MaterializedBase } from "@koalaui/interop" import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./../ArkAnimationExtenderInterfaces" -import { Curve, DialogButtonStyle, BorderStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, Axis, CheckBoxShape, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, Color, ColoringStrategy, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, GradientDirection, Alignment, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" +import { Curve, HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, DialogButtonStyle, WordBreak, AnimationStatus, FillMode, PlayMode, FontWeight, TextOverflow, TextHeightAdaptivePolicy, FontStyle, CheckBoxShape, LineCapStyle, LineJoinStyle, HorizontalAlign, FlexAlign, TextDecorationType, TextDecorationStyle, SharedTransitionEffectType, VerticalAlign, TransitionType, MouseButton, MouseAction, AccessibilityHoverType, TouchType, KeyType, KeySource, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, PixelRoundCalcPolicy, BarState, EdgeEffect, IlluminatedType, EmbeddedType, ImageFit, Edge, Week, RelateType, FlexDirection, FlexWrap, TextAlign, TextCase, CopyOptions, TitleHeight, ImageSpanAlignment, TextContentStyle, XComponentType, ScrollSource, LineBreakStrategy, EllipsisMode, OptionWidthMode, FoldStatus, AppRotation, MarqueeUpdateStrategy, TextSelectableMode, WidthBreakpoint, HeightBreakpoint } from "./../ArkEnumsInterfaces" import { ICurve } from "./../ArkICurveMaterialized" import { AnimationExtender } from "./../ArkAnimationExtenderMaterialized" -import { AnimateParam, TranslateOptions, UIContext, CommonMethod, DismissReason, Rectangle, BlurStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CustomBuilder, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, MotionPathOptions, sharedTransitionOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, ScaleOptions, AlignRuleOption, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, LocalizedAlignRuleOptions, ChainStyle, RotateOptions, TransitionOptions, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EffectType, PreDragStatus, DragItemInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, ModalTransition, BackgroundBlurStyleOptions, BlurStyleOptions, ForegroundBlurStyleOptions, BlurOptions, BackgroundEffectOptions, ForegroundEffectOptions, ShadowType, MultiShadowOptions, SafeAreaType, SafeAreaEdge, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, BorderImageOption, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, UniformDataType, DragResult, BlendMode, BlendApplyType, IntentionCode, BindOptions, DismissContentCoverAction, ContentCoverOptions, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, SheetOptions, StateStyles, PopupMessageOptions, DismissPopupAction, PopupOptions, CustomPopupOptions, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, ContextMenuOptions, MenuOptions, TouchTestInfo, RectResult, TouchResult, PixelStretchEffectOptions, ClickEffect, FadingEdgeOptions, NestedScrollOptions, MenuElement, SymbolGlyphModifier, OutlineStyle, DragPreviewMode, MenuPolicy, ImageModifier, DragPreviewOptions, DragInteractionOptions, InvertOptions, CircleShape, EllipseShape, PathShape, RectShape, PixelRoundPolicy, VisualEffect, Filter, AccessibilityCallback, MotionBlurOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, LinearGradientBlurOptions, ComponentContent, OverlayOptions, Blender, VisibleAreaChangeCallback, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" +import { AnimateParam, TranslateOptions, UIContext, CommonMethod, Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, TransitionOptions, MotionBlurOptions, InvertOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DismissReason, HoverModeAreaType, CommonConfiguration, ContentModifier, PickerTextStyle, PickerDialogButtonStyle, CommonShapeMethod, PointLightStyle, ComponentOptions, InputCounterOptions, TextDecorationOptions, ProvideOptions, AnimatableArithmetic, Context, Configuration, ExpectedFrameRateRange, FinishCallbackType, TouchTestStrategy, TransitionHierarchyStrategy, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, TransitionEdge, TransitionEffects, DrawContext, PreviewParams, ItemDragInfo, EventTarget, SourceType, SourceTool, RepeatMode, BlurStyleActivePolicy, ThemeColorMode, AdaptiveColor, BlurStyleOptions, ShadowType, MultiShadowOptions, LayoutSafeAreaType, LayoutSafeAreaEdge, SheetSize, LinearGradient_common, TouchObject, HistoricalPoint, DragBehavior, Summary, DragResult, IntentionCode, BindOptions, DismissContentCoverAction, SheetTitleOptions, SheetType, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, SheetDismiss, DismissSheetAction, SpringBackAction, PopupMessageOptions, DismissPopupAction, MenuPreviewMode, ContextMenuAnimationOptions, AnimationRange, RectResult, FadingEdgeOptions, NestedScrollOptions, SymbolGlyphModifier, DragPreviewMode, MenuPolicy, ImageModifier, CommonAttribute, CommonInterface, OverlayOffset, FractionStop, MotionBlurAnchor, LayoutBorderInfo, LayoutInfo, LayoutChild, GeometryInfo, SizeResult, Layoutable, MeasureResult, NavDestinationInfo, NavigationInfo, RouterPageInfo, Theme, CaretOffset, ContentClipMode, ScrollableCommonMethod, EdgeEffectOptions, ScrollResult, OnWillScrollCallback, OnMoveHandler, LightSource, KeyframeAnimateParam, KeyframeState, Callback, VisibleAreaEventOptions, HoverCallback, UIGestureEvent, SelectionOptions, KeyboardAvoidMode } from "./../ArkCommonInterfaces" import { PointerStyle, Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { LazyForEachOps } from "./../ArkLazyForEachOpsMaterialized" +import { SystemOps } from "./../ArkSystemOpsMaterialized" import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { NodeController, TextModifier, RectWidthStyle, RectHeightStyle, Want, LengthUnit, WebHeader, SnapshotOptions, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" @@ -15,10 +15,10 @@ import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" import { Resource } from "./../ArkResourceInterfaces" import { WebviewController } from "./../ArkWebviewControllerMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" -import { AsyncCallback_image_PixelMap_Void, Literal_Want_want, Callback_Void, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Number_offset_span, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Literal_Alignment_align, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Area_Area_Void, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Empty, Callback_Number_Number_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Literal_Boolean_next_Axis_direction, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback_, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback__Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Type_WebAttribute_onFileSelectorShow_callback, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" +import { AsyncCallback_image_PixelMap_Void, Literal_Want_want, Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_DismissDialogAction_Void, Callback_Number_Void, Literal_Number_day_month_year, Type_CalendarInterface_value, Callback_CalendarSelectedDate_Void, Callback_CalendarRequestedData_Void, Callback_Date_Void, Callback_Boolean_Void, Literal_String_anchor_HorizontalAlign_align, Literal_String_anchor_VerticalAlign_align, Literal_TransitionEffect_appear_disappear, Tuple_Number_Number, Callback_DismissContentCoverAction_Void, Type_SheetOptions_detents, Callback_SheetDismiss_Void, Callback_DismissSheetAction_Void, Callback_SpringBackAction_Void, Callback_SheetType_Void, Literal_String_value_Callback_Void_action, Literal_Boolean_isVisible, Literal_ResourceColor_color, Callback_Literal_Boolean_isVisible_Void, Callback_DismissPopupAction_Void, Literal_Empty, Callback_Number_Number_Void, Literal_String_key_Any_defaultValue, Callback_DatePickerResult_Void, Callback_TerminationInfo_Void, Literal_Number_errcode_String_msg, Callback_FormCallbackInfo_Void, Callback_Literal_Number_errcode_String_msg_Void, Callback_Any_Void, Tuple_Union_ResourceColor_LinearGradient_Number, Callback_GestureEvent_Void, Literal_Number_duration_fingers_Boolean_repeat, Literal_Number_distance_fingers_PanDirection_direction, Literal_Number_fingers_speed_SwipeDirection_direction, Literal_Number_distance_fingers, Literal_Number_angle_fingers, Callback_Number_Tuple_Number_Number, Callback_Number_Tuple_Number_Number_Number_Number, Tuple_Number_Number_Number_Number, Literal_Number_offsetRemain, Callback_Number_Number_ComputedBarAttribute, Callback_ItemDragInfo_Number_CustomBuilder, Callback_ItemDragInfo_Void, Callback_ItemDragInfo_Number_Number_Void, Callback_ItemDragInfo_Number_Void, Callback_ItemDragInfo_Number_Number_Boolean_Void, Callback_Number_ScrollState_Literal_Number_offsetRemain, Callback_String_Void, Type_ImageAttribute_onComplete_callback_event, Callback_Type_ImageAttribute_onComplete_callback_event_Void, Literal_Boolean_next_Axis_direction, Callback_Number_Number_Number_Void, Callback_Number_Boolean, Callback_Number_Number_Boolean, Callback_SwipeActionState_Void, Callback_ClickEvent_LocationButtonOnClickResult_Void, Callback_Boolean, Callback_NavDestinationContext_Void, Callback_PopInfo_Void, Tuple_Dimension_Dimension, Callback_NavigationTitleMode_Void, Callback_NavigationMode_Void, Callback_String_Unknown_Void, Type_NavigationAttribute_customNavContentTransition_delegate, Callback_NavigationTransitionProxy_Void, Literal_String_target_NavigationType_type, Callback_Number_Number_PanelMode_Void, Callback_PanelMode_Void, Callback_ClickEvent_PasteButtonOnClickResult_Void, Callback_Array_Number_Void, Callback_RefreshStatus_Void, Callback_RichEditorSelection_Void, Callback_RichEditorRange_Void, Callback_RichEditorInsertValue_Boolean, Callback_RichEditorTextSpanResult_Void, Callback_TextRange_Void, Callback_RichEditorDeleteValue_Boolean, Callback_RichEditorChangeValue_Boolean, Callback_CutEvent_Void, Callback_CopyEvent_Void, Callback_ClickEvent_SaveButtonOnClickResult_Void, Callback_InsertValue_Boolean, Callback_InsertValue_Void, Callback_DeleteValue_Boolean, Callback_DeleteValue_Void, Callback_Number_String_Void, Callback_Union_Number_Resource_Void, Callback_ResourceStr_Void, Callback_Number_SliderChangeMode_Void, Literal_Number_index, Callback_SwiperContentTransitionProxy_Void, Callback_TabContentTransitionProxy_Void, Callback_EnterKeyType_Void, Callback_String_PasteEvent_Void, Callback_StyledStringChangeValue_Boolean, Callback_String_Number_Void, Type_TextPickerAttribute_onChange_callback, Callback_Union_Number_Array_Number_Void, Callback_Union_String_Array_String_Void, Callback_TextPickerResult_Void, Callback_TimePickerResult_Void, Callback_FullscreenInfo_Void, Callback_PreparedInfo_Void, Callback_PlaybackInfo_Void, Literal_String_script_Callback_String_Void_callback_, Literal_String_baseUrl_data_encoding_historyUrl_mimeType, Literal_Union_String_Resource_url_Array_Header_headers, Literal_Object_object__String_name_Array_String_methodList, Literal_Union_String_WebResourceRequest_data, Literal_Function_handler_Object_error, Literal_Object_detail, Literal_Function_callback__Object_fileSelector, Callback_OnPageEndEvent_Void, Callback_OnPageBeginEvent_Void, Callback_OnProgressChangeEvent_Void, Callback_OnTitleReceiveEvent_Void, Callback_OnGeolocationShowEvent_Void, Callback_OnAlertEvent_Boolean, Callback_OnBeforeUnloadEvent_Boolean, Callback_OnConfirmEvent_Boolean, Callback_OnPromptEvent_Boolean, Callback_OnConsoleEvent_Boolean, Callback_OnErrorReceiveEvent_Void, Callback_OnHttpErrorReceiveEvent_Void, Callback_OnDownloadStartEvent_Void, Callback_OnRefreshAccessedHistoryEvent_Void, Type_WebAttribute_onUrlLoadIntercept_callback, Callback_Literal_Function_handler_Object_error_Void, Callback_OnRenderExitedEvent_Void, Callback_OnShowFileSelectorEvent_Boolean, Callback_Literal_Object_detail_Boolean, Type_WebAttribute_onFileSelectorShow_callback, Callback_OnResourceLoadEvent_Void, Callback_OnScaleChangeEvent_Void, Callback_OnHttpAuthRequestEvent_Boolean, Callback_OnInterceptRequestEvent_WebResourceResponse, Callback_OnPermissionRequestEvent_Void, Callback_OnScreenCaptureRequestEvent_Void, Callback_OnContextMenuShowEvent_Boolean, Callback_OnSearchResultReceiveEvent_Void, Callback_OnScrollEvent_Void, Callback_OnSslErrorEventReceiveEvent_Void, Callback_OnClientAuthenticationEvent_Void, Callback_OnWindowNewEvent_Void, Callback_OnTouchIconUrlReceivedEvent_Void, Callback_OnFaviconReceivedEvent_Void, Callback_OnPageVisibleEvent_Void, Callback_OnDataResubmittedEvent_Void, Callback_OnAudioStateChangedEvent_Void, Callback_OnFirstContentfulPaintEvent_Void, Callback_OnLoadInterceptEvent_Boolean, Callback_OnOverScrollEvent_Void, Callback_NativeEmbedDataInfo_Void, Callback_NativeEmbedTouchInfo_Void, Literal_String_plainText, Callback_Literal_String_plainText_Void, Literal_Number_surfaceHeight_surfaceWidth, Type_XComponentInterface_value, Callback_UIExtensionProxy_Void, Literal_Number_code_Want_want, Callback_Literal_Number_code_Want_want_Void } from "./../SyntheticDeclarations" import { GlobalScope_ohos_arkui_performanceMonitor } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { FrameNode } from "./../ArkFrameNodeMaterialized" -import { Position, VoidCallback, ResourceStr, ResourceColor, Dimension, BorderRadiuses, LocalizedBorderRadiuses, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, EdgeStyles, Offset, Font, Length, LengthMetricsUnit, MarkStyle, Bias, Area, Margin, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, EdgeWidth, DirectionalEdgesT, ColorMetrics, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" +import { Position, Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, VoidCallback, Offset, Font, LengthMetricsUnit, MarkStyle, Bias, EdgeWidth, DirectionalEdgesT, ColorMetrics, LengthConstrain, DividerStyleOptions, VP, PX, LPX, TouchPoint } from "./../ArkUnitsInterfaces" import { NavExtender } from "./../ArkNavExtenderMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -27,9 +27,22 @@ import { Root, ComponentRoot } from "./../ArkStaticComponentsInterfaces" import { EventEmulator } from "./../ArkEventEmulatorMaterialized" import { ClickEvent } from "./../ArkClickEventMaterialized" import { AbilityComponentInterface, AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" +import { DrawModifier } from "./../ArkDrawModifierMaterialized" +import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" +import { HoverEvent } from "./../ArkHoverEventMaterialized" +import { MouseEvent } from "./../ArkMouseEventMaterialized" +import { TouchEvent } from "./../ArkTouchEventMaterialized" +import { KeyEvent } from "./../ArkKeyEventMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" +import { DragEvent } from "./../ArkDragEventMaterialized" +import { ProgressMask } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier, CustomComponent, AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, NavigationAttribute, CommonTransition, PageTransitionEnterInterface, PageTransitionExitInterface } from "./../../handwritten" +import { GestureModifier } from "./../ArkGestureModifierMaterialized" +import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode, FingerInfo, GestureInterface, TapGestureParameters, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, SwipeGestureInterface, PinchGestureInterface, RotationGestureInterface, GestureGroupInterface, TapGestureHandlerOptions, TapGestureHandler, LongPressGestureHandlerOptions, LongPressGestureHandler, PanGestureHandlerOptions, PanGestureHandler, SwipeGestureHandlerOptions, SwipeGestureHandler, PinchGestureHandlerOptions, PinchGestureHandler, RotationGestureHandlerOptions, RotationGestureHandler, GestureGroupGestureHandlerOptions, GestureRecognizerState } from "./../ArkGestureInterfaces" +import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { SheetInfo, DismissDialogAction, ActionSheetButtonOptions, ActionSheetOffset, ActionSheetOptions } from "./../ArkActionSheetInterfaces" import { DialogAlignment, DialogButtonDirection, AlertDialogButtonBaseOptions, AlertDialogButtonOptions, TextStyle_alert_dialog, AlertDialogParam, AlertDialogParamWithConfirm, AlertDialogParamWithButtons, AlertDialogParamWithOptions } from "./../ArkAlertDialogInterfaces" -import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ActionSheet } from "./../ArkActionSheetMaterialized" import { AlertDialog } from "./../ArkAlertDialogMaterialized" import { IndexerAlign, AlphabetIndexerOptions, AlphabetIndexerInterface, AlphabetIndexerAttribute, OnAlphabetIndexerSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerPopupSelectCallback } from "./../ArkAlphabetIndexerInterfaces" @@ -57,32 +70,21 @@ import { RenderingContextSettings } from "./../ArkRenderingContextSettingsMateri import { CanvasRenderer } from "./../ArkCanvasRendererMaterialized" import { CanvasRenderingContext2D } from "./../ArkCanvasRenderingContext2DMaterialized" import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" +import { OffscreenCanvasRenderingContext2D } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { OffscreenCanvas } from "./../ArkOffscreenCanvasMaterialized" import { DrawingRenderingContext } from "./../ArkDrawingRenderingContextMaterialized" import { CheckboxOptions, CheckBoxConfiguration, CheckboxInterface, CheckboxAttribute, OnCheckboxChangeCallback } from "./../ArkCheckboxInterfaces" import { SelectStatus, CheckboxGroupOptions, CheckboxGroupResult, CheckboxGroupInterface, CheckboxGroupAttribute, OnCheckboxGroupChangeCallback } from "./../ArkCheckboxgroupInterfaces" import { CircleOptions, CircleInterface, CircleAttribute } from "./../ArkCircleInterfaces" import { ColumnOptions, ColumnInterface, ColumnAttribute } from "./../ArkColumnInterfaces" import { ColumnSplitInterface, ColumnSplitAttribute, ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" -import { DrawModifier } from "./../ArkDrawModifierMaterialized" import { BaseEvent } from "./../ArkBaseEventMaterialized" -import { HoverEvent } from "./../ArkHoverEventMaterialized" -import { MouseEvent } from "./../ArkMouseEventMaterialized" import { AccessibilityHoverEvent } from "./../ArkAccessibilityHoverEventMaterialized" -import { TouchEvent } from "./../ArkTouchEventMaterialized" import { PixelMapMock } from "./../ArkPixelMapMockMaterialized" -import { DragEvent } from "./../ArkDragEventMaterialized" -import { KeyEvent } from "./../ArkKeyEventMaterialized" -import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier, CustomComponent, AbstractProperty, IPropertySubscriber, ISinglePropertyChangeSubscriber, SubscribaleAbstract, NavigationAttribute, CommonTransition, PageTransitionEnterInterface, PageTransitionExitInterface } from "./../../handwritten" -import { ResizableOptions, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, DrawingLattice, ImageRenderMode, ImageContent, DynamicRangeMode, ImageInterpolation, ImageInterface, ImageAttribute, ImageSourceSize, ImageErrorCallback, ImageError } from "./../ArkImageInterfaces" -import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" -import { GestureModifier } from "./../ArkGestureModifierMaterialized" -import { GestureInfo, GestureJudgeResult, GestureType, GestureMask, GestureHandler, GesturePriority, PanDirection, SwipeDirection, GestureMode, FingerInfo, GestureInterface, TapGestureParameters, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, SwipeGestureInterface, PinchGestureInterface, RotationGestureInterface, GestureGroupInterface, TapGestureHandlerOptions, TapGestureHandler, LongPressGestureHandlerOptions, LongPressGestureHandler, PanGestureHandlerOptions, PanGestureHandler, SwipeGestureHandlerOptions, SwipeGestureHandler, PinchGestureHandlerOptions, PinchGestureHandler, RotationGestureHandlerOptions, RotationGestureHandler, GestureGroupGestureHandlerOptions, GestureRecognizerState } from "./../ArkGestureInterfaces" -import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" import { Measurable } from "./../ArkMeasurableMaterialized" import { View } from "./../ArkViewMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollAlign, ScrollDirection, OffsetResult, ScrollEdgeOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollOptions, ScrollPageOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" +import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollDirection, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions, ScrollInterface, ScrollAttribute, OnScrollFrameBeginHandlerResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback } from "./../ArkScrollInterfaces" import { DynamicNode } from "./../ArkDynamicNodeMaterialized" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { UICommonEvent } from "./../ArkUICommonEventMaterialized" @@ -183,6 +185,7 @@ import { RichEditorController } from "./../ArkRichEditorControllerMaterialized" import { RichEditorStyledStringController } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController } from "./../ArkRichEditorBaseControllerMaterialized" import { TextEditControllerEx } from "./../ArkTextEditControllerExMaterialized" +import { TextBaseController } from "./../ArkTextBaseControllerMaterialized" import { LayoutManager } from "./../ArkLayoutManagerMaterialized" import { StyledString } from "./../ArkStyledStringMaterialized" import { StyledStringController } from "./../ArkStyledStringControllerMaterialized" @@ -233,7 +236,6 @@ import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" import { TextAreaOptions, TextAreaInterface, TextAreaAttribute, TextAreaType, ContentType, TextAreaSubmitCallback } from "./../ArkTextAreaInterfaces" import { TextClockController } from "./../ArkTextClockControllerMaterialized" import { TextClockConfiguration, TextClockOptions, TextClockInterface, TextClockAttribute } from "./../ArkTextClockInterfaces" -import { TextBaseController } from "./../ArkTextBaseControllerMaterialized" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { SubmitEvent } from "./../ArkSubmitEventMaterialized" import { TextInputController } from "./../ArkTextInputControllerMaterialized" @@ -343,16 +345,16 @@ export class TypeChecker { } } static isAccessibilityHoverType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AccessibilityHoverType.HOVER_ENTER))) { + if ((value) === (AccessibilityHoverType.HOVER_ENTER)) { return true } - else if (((value) === (AccessibilityHoverType.HOVER_MOVE))) { + else if ((value) === (AccessibilityHoverType.HOVER_MOVE)) { return true } - else if (((value) === (AccessibilityHoverType.HOVER_EXIT))) { + else if ((value) === (AccessibilityHoverType.HOVER_EXIT)) { return true } - else if (((value) === (AccessibilityHoverType.HOVER_CANCEL))) { + else if ((value) === (AccessibilityHoverType.HOVER_CANCEL)) { return true } else { @@ -482,10 +484,10 @@ export class TypeChecker { } } static isAdaptiveColor(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AdaptiveColor.DEFAULT))) { + if ((value) === (AdaptiveColor.DEFAULT)) { return true } - else if (((value) === (AdaptiveColor.AVERAGE))) { + else if ((value) === (AdaptiveColor.AVERAGE)) { return true } else { @@ -659,31 +661,31 @@ export class TypeChecker { } } static isAlignment(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Alignment.TopStart))) { + if ((value) === (Alignment.TopStart)) { return true } - else if (((value) === (Alignment.Top))) { + else if ((value) === (Alignment.Top)) { return true } - else if (((value) === (Alignment.TopEnd))) { + else if ((value) === (Alignment.TopEnd)) { return true } - else if (((value) === (Alignment.Start))) { + else if ((value) === (Alignment.Start)) { return true } - else if (((value) === (Alignment.Center))) { + else if ((value) === (Alignment.Center)) { return true } - else if (((value) === (Alignment.End))) { + else if ((value) === (Alignment.End)) { return true } - else if (((value) === (Alignment.BottomStart))) { + else if ((value) === (Alignment.BottomStart)) { return true } - else if (((value) === (Alignment.Bottom))) { + else if ((value) === (Alignment.Bottom)) { return true } - else if (((value) === (Alignment.BottomEnd))) { + else if ((value) === (Alignment.BottomEnd)) { return true } else { @@ -852,13 +854,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof AnimationExtender") } static isAnimationMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AnimationMode.CONTENT_FIRST))) { + if ((value) === (AnimationMode.CONTENT_FIRST)) { return true } - else if (((value) === (AnimationMode.ACTION_FIRST))) { + else if ((value) === (AnimationMode.ACTION_FIRST)) { return true } - else if (((value) === (AnimationMode.NO_ANIMATION))) { + else if ((value) === (AnimationMode.NO_ANIMATION)) { return true } else { @@ -866,16 +868,16 @@ export class TypeChecker { } } static isAnimationStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AnimationStatus.Initial))) { + if ((value) === (AnimationStatus.Initial)) { return true } - else if (((value) === (AnimationStatus.Running))) { + else if ((value) === (AnimationStatus.Running)) { return true } - else if (((value) === (AnimationStatus.Paused))) { + else if ((value) === (AnimationStatus.Paused)) { return true } - else if (((value) === (AnimationStatus.Stopped))) { + else if ((value) === (AnimationStatus.Stopped)) { return true } else { @@ -941,16 +943,16 @@ export class TypeChecker { } } static isAppRotation(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (AppRotation.ROTATION_0))) { + if ((value) === (AppRotation.ROTATION_0)) { return true } - else if (((value) === (AppRotation.ROTATION_90))) { + else if ((value) === (AppRotation.ROTATION_90)) { return true } - else if (((value) === (AppRotation.ROTATION_180))) { + else if ((value) === (AppRotation.ROTATION_180)) { return true } - else if (((value) === (AppRotation.ROTATION_270))) { + else if ((value) === (AppRotation.ROTATION_270)) { return true } else { @@ -975,13 +977,13 @@ export class TypeChecker { } } static isArrowPointPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ArrowPointPosition.START))) { + if ((value) === (ArrowPointPosition.START)) { return true } - else if (((value) === (ArrowPointPosition.CENTER))) { + else if ((value) === (ArrowPointPosition.CENTER)) { return true } - else if (((value) === (ArrowPointPosition.END))) { + else if ((value) === (ArrowPointPosition.END)) { return true } else { @@ -989,10 +991,10 @@ export class TypeChecker { } } static isArrowPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ArrowPosition.END))) { + if ((value) === (ArrowPosition.END)) { return true } - else if (((value) === (ArrowPosition.START))) { + else if ((value) === (ArrowPosition.START)) { return true } else { @@ -1037,10 +1039,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof AttributeModifier") } static isAxis(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Axis.Vertical))) { + if ((value) === (Axis.Vertical)) { return true } - else if (((value) === (Axis.Horizontal))) { + else if ((value) === (Axis.Horizontal)) { return true } else { @@ -1143,13 +1145,13 @@ export class TypeChecker { } } static isBadgePosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BadgePosition.RightTop))) { + if ((value) === (BadgePosition.RightTop)) { return true } - else if (((value) === (BadgePosition.Right))) { + else if ((value) === (BadgePosition.Right)) { return true } - else if (((value) === (BadgePosition.Left))) { + else if ((value) === (BadgePosition.Left)) { return true } else { @@ -1203,10 +1205,10 @@ export class TypeChecker { } } static isBarMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarMode.Scrollable))) { + if ((value) === (BarMode.Scrollable)) { return true } - else if (((value) === (BarMode.Fixed))) { + else if ((value) === (BarMode.Fixed)) { return true } else { @@ -1214,10 +1216,10 @@ export class TypeChecker { } } static isBarPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarPosition.Start))) { + if ((value) === (BarPosition.Start)) { return true } - else if (((value) === (BarPosition.End))) { + else if ((value) === (BarPosition.End)) { return true } else { @@ -1225,16 +1227,16 @@ export class TypeChecker { } } static isBarrierDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarrierDirection.LEFT))) { + if ((value) === (BarrierDirection.LEFT)) { return true } - else if (((value) === (BarrierDirection.RIGHT))) { + else if ((value) === (BarrierDirection.RIGHT)) { return true } - else if (((value) === (BarrierDirection.TOP))) { + else if ((value) === (BarrierDirection.TOP)) { return true } - else if (((value) === (BarrierDirection.BOTTOM))) { + else if ((value) === (BarrierDirection.BOTTOM)) { return true } else { @@ -1256,13 +1258,13 @@ export class TypeChecker { } } static isBarState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarState.Off))) { + if ((value) === (BarState.Off)) { return true } - else if (((value) === (BarState.Auto))) { + else if ((value) === (BarState.Auto)) { return true } - else if (((value) === (BarState.On))) { + else if ((value) === (BarState.On)) { return true } else { @@ -1270,13 +1272,13 @@ export class TypeChecker { } } static isBarStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BarStyle.STANDARD))) { + if ((value) === (BarStyle.STANDARD)) { return true } - else if (((value) === (BarStyle.STACK))) { + else if ((value) === (BarStyle.STACK)) { return true } - else if (((value) === (BarStyle.SAFE_AREA_PADDING))) { + else if ((value) === (BarStyle.SAFE_AREA_PADDING)) { return true } else { @@ -1388,10 +1390,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof BlankInterface") } static isBlendApplyType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BlendApplyType.FAST))) { + if ((value) === (BlendApplyType.FAST)) { return true } - else if (((value) === (BlendApplyType.OFFSCREEN))) { + else if ((value) === (BlendApplyType.OFFSCREEN)) { return true } else { @@ -1407,94 +1409,94 @@ export class TypeChecker { } } static isBlendMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BlendMode.NONE))) { + if ((value) === (BlendMode.NONE)) { return true } - else if (((value) === (BlendMode.CLEAR))) { + else if ((value) === (BlendMode.CLEAR)) { return true } - else if (((value) === (BlendMode.SRC))) { + else if ((value) === (BlendMode.SRC)) { return true } - else if (((value) === (BlendMode.DST))) { + else if ((value) === (BlendMode.DST)) { return true } - else if (((value) === (BlendMode.SRC_OVER))) { + else if ((value) === (BlendMode.SRC_OVER)) { return true } - else if (((value) === (BlendMode.DST_OVER))) { + else if ((value) === (BlendMode.DST_OVER)) { return true } - else if (((value) === (BlendMode.SRC_IN))) { + else if ((value) === (BlendMode.SRC_IN)) { return true } - else if (((value) === (BlendMode.DST_IN))) { + else if ((value) === (BlendMode.DST_IN)) { return true } - else if (((value) === (BlendMode.SRC_OUT))) { + else if ((value) === (BlendMode.SRC_OUT)) { return true } - else if (((value) === (BlendMode.DST_OUT))) { + else if ((value) === (BlendMode.DST_OUT)) { return true } - else if (((value) === (BlendMode.SRC_ATOP))) { + else if ((value) === (BlendMode.SRC_ATOP)) { return true } - else if (((value) === (BlendMode.DST_ATOP))) { + else if ((value) === (BlendMode.DST_ATOP)) { return true } - else if (((value) === (BlendMode.XOR))) { + else if ((value) === (BlendMode.XOR)) { return true } - else if (((value) === (BlendMode.PLUS))) { + else if ((value) === (BlendMode.PLUS)) { return true } - else if (((value) === (BlendMode.MODULATE))) { + else if ((value) === (BlendMode.MODULATE)) { return true } - else if (((value) === (BlendMode.SCREEN))) { + else if ((value) === (BlendMode.SCREEN)) { return true } - else if (((value) === (BlendMode.OVERLAY))) { + else if ((value) === (BlendMode.OVERLAY)) { return true } - else if (((value) === (BlendMode.DARKEN))) { + else if ((value) === (BlendMode.DARKEN)) { return true } - else if (((value) === (BlendMode.LIGHTEN))) { + else if ((value) === (BlendMode.LIGHTEN)) { return true } - else if (((value) === (BlendMode.COLOR_DODGE))) { + else if ((value) === (BlendMode.COLOR_DODGE)) { return true } - else if (((value) === (BlendMode.COLOR_BURN))) { + else if ((value) === (BlendMode.COLOR_BURN)) { return true } - else if (((value) === (BlendMode.HARD_LIGHT))) { + else if ((value) === (BlendMode.HARD_LIGHT)) { return true } - else if (((value) === (BlendMode.SOFT_LIGHT))) { + else if ((value) === (BlendMode.SOFT_LIGHT)) { return true } - else if (((value) === (BlendMode.DIFFERENCE))) { + else if ((value) === (BlendMode.DIFFERENCE)) { return true } - else if (((value) === (BlendMode.EXCLUSION))) { + else if ((value) === (BlendMode.EXCLUSION)) { return true } - else if (((value) === (BlendMode.MULTIPLY))) { + else if ((value) === (BlendMode.MULTIPLY)) { return true } - else if (((value) === (BlendMode.HUE))) { + else if ((value) === (BlendMode.HUE)) { return true } - else if (((value) === (BlendMode.SATURATION))) { + else if ((value) === (BlendMode.SATURATION)) { return true } - else if (((value) === (BlendMode.COLOR))) { + else if ((value) === (BlendMode.COLOR)) { return true } - else if (((value) === (BlendMode.LUMINOSITY))) { + else if ((value) === (BlendMode.LUMINOSITY)) { return true } else { @@ -1510,43 +1512,43 @@ export class TypeChecker { } } static isBlurStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BlurStyle.Thin))) { + if ((value) === (BlurStyle.Thin)) { return true } - else if (((value) === (BlurStyle.Regular))) { + else if ((value) === (BlurStyle.Regular)) { return true } - else if (((value) === (BlurStyle.Thick))) { + else if ((value) === (BlurStyle.Thick)) { return true } - else if (((value) === (BlurStyle.BACKGROUND_THIN))) { + else if ((value) === (BlurStyle.BACKGROUND_THIN)) { return true } - else if (((value) === (BlurStyle.BACKGROUND_REGULAR))) { + else if ((value) === (BlurStyle.BACKGROUND_REGULAR)) { return true } - else if (((value) === (BlurStyle.BACKGROUND_THICK))) { + else if ((value) === (BlurStyle.BACKGROUND_THICK)) { return true } - else if (((value) === (BlurStyle.BACKGROUND_ULTRA_THICK))) { + else if ((value) === (BlurStyle.BACKGROUND_ULTRA_THICK)) { return true } - else if (((value) === (BlurStyle.NONE))) { + else if ((value) === (BlurStyle.NONE)) { return true } - else if (((value) === (BlurStyle.COMPONENT_ULTRA_THIN))) { + else if ((value) === (BlurStyle.COMPONENT_ULTRA_THIN)) { return true } - else if (((value) === (BlurStyle.COMPONENT_THIN))) { + else if ((value) === (BlurStyle.COMPONENT_THIN)) { return true } - else if (((value) === (BlurStyle.COMPONENT_REGULAR))) { + else if ((value) === (BlurStyle.COMPONENT_REGULAR)) { return true } - else if (((value) === (BlurStyle.COMPONENT_THICK))) { + else if ((value) === (BlurStyle.COMPONENT_THICK)) { return true } - else if (((value) === (BlurStyle.COMPONENT_ULTRA_THICK))) { + else if ((value) === (BlurStyle.COMPONENT_ULTRA_THICK)) { return true } else { @@ -1554,13 +1556,13 @@ export class TypeChecker { } } static isBlurStyleActivePolicy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE))) { + if ((value) === (BlurStyleActivePolicy.FOLLOWS_WINDOW_ACTIVE_STATE)) { return true } - else if (((value) === (BlurStyleActivePolicy.ALWAYS_ACTIVE))) { + else if ((value) === (BlurStyleActivePolicy.ALWAYS_ACTIVE)) { return true } - else if (((value) === (BlurStyleActivePolicy.ALWAYS_INACTIVE))) { + else if ((value) === (BlurStyleActivePolicy.ALWAYS_INACTIVE)) { return true } else { @@ -1656,13 +1658,13 @@ export class TypeChecker { } } static isBorderStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BorderStyle.Dotted))) { + if ((value) === (BorderStyle.Dotted)) { return true } - else if (((value) === (BorderStyle.Dashed))) { + else if ((value) === (BorderStyle.Dashed)) { return true } - else if (((value) === (BorderStyle.Solid))) { + else if ((value) === (BorderStyle.Solid)) { return true } else { @@ -1695,10 +1697,10 @@ export class TypeChecker { } } static isBreakpointsReference(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (BreakpointsReference.WindowSize))) { + if ((value) === (BreakpointsReference.WindowSize)) { return true } - else if (((value) === (BreakpointsReference.ComponentSize))) { + else if ((value) === (BreakpointsReference.ComponentSize)) { return true } else { @@ -1798,10 +1800,10 @@ export class TypeChecker { } } static isButtonRole(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ButtonRole.NORMAL))) { + if ((value) === (ButtonRole.NORMAL)) { return true } - else if (((value) === (ButtonRole.ERROR))) { + else if ((value) === (ButtonRole.ERROR)) { return true } else { @@ -1829,13 +1831,13 @@ export class TypeChecker { } } static isButtonStyleMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ButtonStyleMode.NORMAL))) { + if ((value) === (ButtonStyleMode.NORMAL)) { return true } - else if (((value) === (ButtonStyleMode.EMPHASIZED))) { + else if ((value) === (ButtonStyleMode.EMPHASIZED)) { return true } - else if (((value) === (ButtonStyleMode.TEXTUAL))) { + else if ((value) === (ButtonStyleMode.TEXTUAL)) { return true } else { @@ -1843,16 +1845,16 @@ export class TypeChecker { } } static isButtonType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ButtonType.Capsule))) { + if ((value) === (ButtonType.Capsule)) { return true } - else if (((value) === (ButtonType.Circle))) { + else if ((value) === (ButtonType.Circle)) { return true } - else if (((value) === (ButtonType.Normal))) { + else if ((value) === (ButtonType.Normal)) { return true } - else if (((value) === (ButtonType.ROUNDED_RECTANGLE))) { + else if ((value) === (ButtonType.ROUNDED_RECTANGLE)) { return true } else { @@ -1860,16 +1862,16 @@ export class TypeChecker { } } static isCacheMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CacheMode.Default))) { + if ((value) === (CacheMode.Default)) { return true } - else if (((value) === (CacheMode.None))) { + else if ((value) === (CacheMode.None)) { return true } - else if (((value) === (CacheMode.Online))) { + else if ((value) === (CacheMode.Online)) { return true } - else if (((value) === (CacheMode.Only))) { + else if ((value) === (CacheMode.Only)) { return true } else { @@ -1877,13 +1879,13 @@ export class TypeChecker { } } static isCalendarAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CalendarAlign.START))) { + if ((value) === (CalendarAlign.START)) { return true } - else if (((value) === (CalendarAlign.CENTER))) { + else if ((value) === (CalendarAlign.CENTER)) { return true } - else if (((value) === (CalendarAlign.END))) { + else if ((value) === (CalendarAlign.END)) { return true } else { @@ -2102,13 +2104,13 @@ export class TypeChecker { } } static isCancelButtonStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CancelButtonStyle.CONSTANT))) { + if ((value) === (CancelButtonStyle.CONSTANT)) { return true } - else if (((value) === (CancelButtonStyle.INVISIBLE))) { + else if ((value) === (CancelButtonStyle.INVISIBLE)) { return true } - else if (((value) === (CancelButtonStyle.INPUT))) { + else if ((value) === (CancelButtonStyle.INPUT)) { return true } else { @@ -2303,10 +2305,10 @@ export class TypeChecker { } } static isChainEdgeEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ChainEdgeEffect.DEFAULT))) { + if ((value) === (ChainEdgeEffect.DEFAULT)) { return true } - else if (((value) === (ChainEdgeEffect.STRETCH))) { + else if ((value) === (ChainEdgeEffect.STRETCH)) { return true } else { @@ -2314,13 +2316,13 @@ export class TypeChecker { } } static isChainStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ChainStyle.SPREAD))) { + if ((value) === (ChainStyle.SPREAD)) { return true } - else if (((value) === (ChainStyle.SPREAD_INSIDE))) { + else if ((value) === (ChainStyle.SPREAD_INSIDE)) { return true } - else if (((value) === (ChainStyle.PACKED))) { + else if ((value) === (ChainStyle.PACKED)) { return true } else { @@ -2441,10 +2443,10 @@ export class TypeChecker { } } static isCheckBoxShape(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CheckBoxShape.CIRCLE))) { + if ((value) === (CheckBoxShape.CIRCLE)) { return true } - else if (((value) === (CheckBoxShape.ROUNDED_SQUARE))) { + else if ((value) === (CheckBoxShape.ROUNDED_SQUARE)) { return true } else { @@ -2510,13 +2512,13 @@ export class TypeChecker { } } static isClickEffectLevel(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ClickEffectLevel.LIGHT))) { + if ((value) === (ClickEffectLevel.LIGHT)) { return true } - else if (((value) === (ClickEffectLevel.MIDDLE))) { + else if ((value) === (ClickEffectLevel.MIDDLE)) { return true } - else if (((value) === (ClickEffectLevel.HEAVY))) { + else if ((value) === (ClickEffectLevel.HEAVY)) { return true } else { @@ -2567,40 +2569,40 @@ export class TypeChecker { } } static isColor(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Color.White))) { + if ((value) === (Color.White)) { return true } - else if (((value) === (Color.Black))) { + else if ((value) === (Color.Black)) { return true } - else if (((value) === (Color.Blue))) { + else if ((value) === (Color.Blue)) { return true } - else if (((value) === (Color.Brown))) { + else if ((value) === (Color.Brown)) { return true } - else if (((value) === (Color.Gray))) { + else if ((value) === (Color.Gray)) { return true } - else if (((value) === (Color.Green))) { + else if ((value) === (Color.Green)) { return true } - else if (((value) === (Color.Grey))) { + else if ((value) === (Color.Grey)) { return true } - else if (((value) === (Color.Orange))) { + else if ((value) === (Color.Orange)) { return true } - else if (((value) === (Color.Pink))) { + else if ((value) === (Color.Pink)) { return true } - else if (((value) === (Color.Red))) { + else if ((value) === (Color.Red)) { return true } - else if (((value) === (Color.Yellow))) { + else if ((value) === (Color.Yellow)) { return true } - else if (((value) === (Color.Transparent))) { + else if ((value) === (Color.Transparent)) { return true } else { @@ -2611,13 +2613,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ColorFilter") } static isColoringStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ColoringStrategy.INVERT))) { + if ((value) === (ColoringStrategy.INVERT)) { return true } - else if (((value) === (ColoringStrategy.AVERAGE))) { + else if ((value) === (ColoringStrategy.AVERAGE)) { return true } - else if (((value) === (ColoringStrategy.PRIMARY))) { + else if ((value) === (ColoringStrategy.PRIMARY)) { return true } else { @@ -2633,10 +2635,10 @@ export class TypeChecker { } } static isColorMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ColorMode.LIGHT))) { + if ((value) === (ColorMode.LIGHT)) { return true } - else if (((value) === (ColorMode.DARK))) { + else if ((value) === (ColorMode.DARK)) { return true } else { @@ -3337,13 +3339,13 @@ export class TypeChecker { } } static isContentClipMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContentClipMode.CONTENT_ONLY))) { + if ((value) === (ContentClipMode.CONTENT_ONLY)) { return true } - else if (((value) === (ContentClipMode.BOUNDARY))) { + else if ((value) === (ContentClipMode.BOUNDARY)) { return true } - else if (((value) === (ContentClipMode.SAFE_AREA))) { + else if ((value) === (ContentClipMode.SAFE_AREA)) { return true } else { @@ -3379,67 +3381,67 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ContentSlotInterface") } static isContentType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContentType.USER_NAME))) { + if ((value) === (ContentType.USER_NAME)) { return true } - else if (((value) === (ContentType.PASSWORD))) { + else if ((value) === (ContentType.PASSWORD)) { return true } - else if (((value) === (ContentType.NEW_PASSWORD))) { + else if ((value) === (ContentType.NEW_PASSWORD)) { return true } - else if (((value) === (ContentType.FULL_STREET_ADDRESS))) { + else if ((value) === (ContentType.FULL_STREET_ADDRESS)) { return true } - else if (((value) === (ContentType.HOUSE_NUMBER))) { + else if ((value) === (ContentType.HOUSE_NUMBER)) { return true } - else if (((value) === (ContentType.DISTRICT_ADDRESS))) { + else if ((value) === (ContentType.DISTRICT_ADDRESS)) { return true } - else if (((value) === (ContentType.CITY_ADDRESS))) { + else if ((value) === (ContentType.CITY_ADDRESS)) { return true } - else if (((value) === (ContentType.PROVINCE_ADDRESS))) { + else if ((value) === (ContentType.PROVINCE_ADDRESS)) { return true } - else if (((value) === (ContentType.COUNTRY_ADDRESS))) { + else if ((value) === (ContentType.COUNTRY_ADDRESS)) { return true } - else if (((value) === (ContentType.PERSON_FULL_NAME))) { + else if ((value) === (ContentType.PERSON_FULL_NAME)) { return true } - else if (((value) === (ContentType.PERSON_LAST_NAME))) { + else if ((value) === (ContentType.PERSON_LAST_NAME)) { return true } - else if (((value) === (ContentType.PERSON_FIRST_NAME))) { + else if ((value) === (ContentType.PERSON_FIRST_NAME)) { return true } - else if (((value) === (ContentType.PHONE_NUMBER))) { + else if ((value) === (ContentType.PHONE_NUMBER)) { return true } - else if (((value) === (ContentType.PHONE_COUNTRY_CODE))) { + else if ((value) === (ContentType.PHONE_COUNTRY_CODE)) { return true } - else if (((value) === (ContentType.FULL_PHONE_NUMBER))) { + else if ((value) === (ContentType.FULL_PHONE_NUMBER)) { return true } - else if (((value) === (ContentType.EMAIL_ADDRESS))) { + else if ((value) === (ContentType.EMAIL_ADDRESS)) { return true } - else if (((value) === (ContentType.BANK_CARD_NUMBER))) { + else if ((value) === (ContentType.BANK_CARD_NUMBER)) { return true } - else if (((value) === (ContentType.ID_CARD_NUMBER))) { + else if ((value) === (ContentType.ID_CARD_NUMBER)) { return true } - else if (((value) === (ContentType.NICKNAME))) { + else if ((value) === (ContentType.NICKNAME)) { return true } - else if (((value) === (ContentType.DETAIL_INFO_WITHOUT_STREET))) { + else if ((value) === (ContentType.DETAIL_INFO_WITHOUT_STREET)) { return true } - else if (((value) === (ContentType.FORMAT_ADDRESS))) { + else if ((value) === (ContentType.FORMAT_ADDRESS)) { return true } else { @@ -3472,19 +3474,19 @@ export class TypeChecker { } } static isContextMenuEditStateFlags(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContextMenuEditStateFlags.NONE))) { + if ((value) === (ContextMenuEditStateFlags.NONE)) { return true } - else if (((value) === (ContextMenuEditStateFlags.CAN_CUT))) { + else if ((value) === (ContextMenuEditStateFlags.CAN_CUT)) { return true } - else if (((value) === (ContextMenuEditStateFlags.CAN_COPY))) { + else if ((value) === (ContextMenuEditStateFlags.CAN_COPY)) { return true } - else if (((value) === (ContextMenuEditStateFlags.CAN_PASTE))) { + else if ((value) === (ContextMenuEditStateFlags.CAN_PASTE)) { return true } - else if (((value) === (ContextMenuEditStateFlags.CAN_SELECT_ALL))) { + else if ((value) === (ContextMenuEditStateFlags.CAN_SELECT_ALL)) { return true } else { @@ -3492,22 +3494,22 @@ export class TypeChecker { } } static isContextMenuInputFieldType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContextMenuInputFieldType.None))) { + if ((value) === (ContextMenuInputFieldType.None)) { return true } - else if (((value) === (ContextMenuInputFieldType.PlainText))) { + else if ((value) === (ContextMenuInputFieldType.PlainText)) { return true } - else if (((value) === (ContextMenuInputFieldType.Password))) { + else if ((value) === (ContextMenuInputFieldType.Password)) { return true } - else if (((value) === (ContextMenuInputFieldType.Number))) { + else if ((value) === (ContextMenuInputFieldType.Number)) { return true } - else if (((value) === (ContextMenuInputFieldType.Telephone))) { + else if ((value) === (ContextMenuInputFieldType.Telephone)) { return true } - else if (((value) === (ContextMenuInputFieldType.Other))) { + else if ((value) === (ContextMenuInputFieldType.Other)) { return true } else { @@ -3515,10 +3517,10 @@ export class TypeChecker { } } static isContextMenuMediaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContextMenuMediaType.None))) { + if ((value) === (ContextMenuMediaType.None)) { return true } - else if (((value) === (ContextMenuMediaType.Image))) { + else if ((value) === (ContextMenuMediaType.Image)) { return true } else { @@ -3579,13 +3581,13 @@ export class TypeChecker { } } static isContextMenuSourceType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ContextMenuSourceType.None))) { + if ((value) === (ContextMenuSourceType.None)) { return true } - else if (((value) === (ContextMenuSourceType.Mouse))) { + else if ((value) === (ContextMenuSourceType.Mouse)) { return true } - else if (((value) === (ContextMenuSourceType.LongPress))) { + else if ((value) === (ContextMenuSourceType.LongPress)) { return true } else { @@ -3596,10 +3598,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ControllerHandler") } static isControlSize(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ControlSize.SMALL))) { + if ((value) === (ControlSize.SMALL)) { return true } - else if (((value) === (ControlSize.NORMAL))) { + else if ((value) === (ControlSize.NORMAL)) { return true } else { @@ -3615,16 +3617,16 @@ export class TypeChecker { } } static isCopyOptions(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (CopyOptions.None))) { + if ((value) === (CopyOptions.None)) { return true } - else if (((value) === (CopyOptions.InApp))) { + else if ((value) === (CopyOptions.InApp)) { return true } - else if (((value) === (CopyOptions.LocalDevice))) { + else if ((value) === (CopyOptions.LocalDevice)) { return true } - else if (((value) === (CopyOptions.CROSS_DEVICE))) { + else if ((value) === (CopyOptions.CROSS_DEVICE)) { return true } else { @@ -3726,43 +3728,43 @@ export class TypeChecker { } } static isCurve(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Curve.Linear))) { + if ((value) === (Curve.Linear)) { return true } - else if (((value) === (Curve.Ease))) { + else if ((value) === (Curve.Ease)) { return true } - else if (((value) === (Curve.EaseIn))) { + else if ((value) === (Curve.EaseIn)) { return true } - else if (((value) === (Curve.EaseOut))) { + else if ((value) === (Curve.EaseOut)) { return true } - else if (((value) === (Curve.EaseInOut))) { + else if ((value) === (Curve.EaseInOut)) { return true } - else if (((value) === (Curve.FastOutSlowIn))) { + else if ((value) === (Curve.FastOutSlowIn)) { return true } - else if (((value) === (Curve.LinearOutSlowIn))) { + else if ((value) === (Curve.LinearOutSlowIn)) { return true } - else if (((value) === (Curve.FastOutLinearIn))) { + else if ((value) === (Curve.FastOutLinearIn)) { return true } - else if (((value) === (Curve.ExtremeDeceleration))) { + else if ((value) === (Curve.ExtremeDeceleration)) { return true } - else if (((value) === (Curve.Sharp))) { + else if ((value) === (Curve.Sharp)) { return true } - else if (((value) === (Curve.Rhythm))) { + else if ((value) === (Curve.Rhythm)) { return true } - else if (((value) === (Curve.Smooth))) { + else if ((value) === (Curve.Smooth)) { return true } - else if (((value) === (Curve.Friction))) { + else if ((value) === (Curve.Friction)) { return true } else { @@ -4041,22 +4043,22 @@ export class TypeChecker { } } static isDataOperationType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DataOperationType.ADD))) { + if ((value) === (DataOperationType.ADD)) { return true } - else if (((value) === (DataOperationType.DELETE))) { + else if ((value) === (DataOperationType.DELETE)) { return true } - else if (((value) === (DataOperationType.EXCHANGE))) { + else if ((value) === (DataOperationType.EXCHANGE)) { return true } - else if (((value) === (DataOperationType.MOVE))) { + else if ((value) === (DataOperationType.MOVE)) { return true } - else if (((value) === (DataOperationType.CHANGE))) { + else if ((value) === (DataOperationType.CHANGE)) { return true } - else if (((value) === (DataOperationType.RELOAD))) { + else if ((value) === (DataOperationType.RELOAD)) { return true } else { @@ -4123,10 +4125,10 @@ export class TypeChecker { } } static isDataPanelType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DataPanelType.Line))) { + if ((value) === (DataPanelType.Line)) { return true } - else if (((value) === (DataPanelType.Circle))) { + else if ((value) === (DataPanelType.Circle)) { return true } else { @@ -4347,34 +4349,34 @@ export class TypeChecker { } } static isDialogAlignment(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DialogAlignment.Top))) { + if ((value) === (DialogAlignment.Top)) { return true } - else if (((value) === (DialogAlignment.Center))) { + else if ((value) === (DialogAlignment.Center)) { return true } - else if (((value) === (DialogAlignment.Bottom))) { + else if ((value) === (DialogAlignment.Bottom)) { return true } - else if (((value) === (DialogAlignment.Default))) { + else if ((value) === (DialogAlignment.Default)) { return true } - else if (((value) === (DialogAlignment.TopStart))) { + else if ((value) === (DialogAlignment.TopStart)) { return true } - else if (((value) === (DialogAlignment.TopEnd))) { + else if ((value) === (DialogAlignment.TopEnd)) { return true } - else if (((value) === (DialogAlignment.CenterStart))) { + else if ((value) === (DialogAlignment.CenterStart)) { return true } - else if (((value) === (DialogAlignment.CenterEnd))) { + else if ((value) === (DialogAlignment.CenterEnd)) { return true } - else if (((value) === (DialogAlignment.BottomStart))) { + else if ((value) === (DialogAlignment.BottomStart)) { return true } - else if (((value) === (DialogAlignment.BottomEnd))) { + else if ((value) === (DialogAlignment.BottomEnd)) { return true } else { @@ -4382,13 +4384,13 @@ export class TypeChecker { } } static isDialogButtonDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DialogButtonDirection.AUTO))) { + if ((value) === (DialogButtonDirection.AUTO)) { return true } - else if (((value) === (DialogButtonDirection.HORIZONTAL))) { + else if ((value) === (DialogButtonDirection.HORIZONTAL)) { return true } - else if (((value) === (DialogButtonDirection.VERTICAL))) { + else if ((value) === (DialogButtonDirection.VERTICAL)) { return true } else { @@ -4396,10 +4398,10 @@ export class TypeChecker { } } static isDialogButtonStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DialogButtonStyle.DEFAULT))) { + if ((value) === (DialogButtonStyle.DEFAULT)) { return true } - else if (((value) === (DialogButtonStyle.HIGHLIGHT))) { + else if ((value) === (DialogButtonStyle.HIGHLIGHT)) { return true } else { @@ -4410,13 +4412,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof DigitIndicator") } static isDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Direction.Ltr))) { + if ((value) === (Direction.Ltr)) { return true } - else if (((value) === (Direction.Rtl))) { + else if ((value) === (Direction.Rtl)) { return true } - else if (((value) === (Direction.Auto))) { + else if ((value) === (Direction.Auto)) { return true } else { @@ -4482,16 +4484,16 @@ export class TypeChecker { } } static isDismissReason(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DismissReason.PRESS_BACK))) { + if ((value) === (DismissReason.PRESS_BACK)) { return true } - else if (((value) === (DismissReason.TOUCH_OUTSIDE))) { + else if ((value) === (DismissReason.TOUCH_OUTSIDE)) { return true } - else if (((value) === (DismissReason.CLOSE_BUTTON))) { + else if ((value) === (DismissReason.CLOSE_BUTTON)) { return true } - else if (((value) === (DismissReason.SLIDE_DOWN))) { + else if ((value) === (DismissReason.SLIDE_DOWN)) { return true } else { @@ -4510,10 +4512,10 @@ export class TypeChecker { } } static isDistributionType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DistributionType.UNIFORM))) { + if ((value) === (DistributionType.UNIFORM)) { return true } - else if (((value) === (DistributionType.GAUSSIAN))) { + else if ((value) === (DistributionType.GAUSSIAN)) { return true } else { @@ -4521,13 +4523,13 @@ export class TypeChecker { } } static isDisturbanceFieldShape(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DisturbanceFieldShape.RECT))) { + if ((value) === (DisturbanceFieldShape.RECT)) { return true } - else if (((value) === (DisturbanceFieldShape.CIRCLE))) { + else if ((value) === (DisturbanceFieldShape.CIRCLE)) { return true } - else if (((value) === (DisturbanceFieldShape.ELLIPSE))) { + else if ((value) === (DisturbanceFieldShape.ELLIPSE)) { return true } else { @@ -4638,10 +4640,10 @@ export class TypeChecker { } } static isDpiFollowStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DpiFollowStrategy.FOLLOW_HOST_DPI))) { + if ((value) === (DpiFollowStrategy.FOLLOW_HOST_DPI)) { return true } - else if (((value) === (DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI))) { + else if ((value) === (DpiFollowStrategy.FOLLOW_UI_EXTENSION_ABILITY_DPI)) { return true } else { @@ -4649,10 +4651,10 @@ export class TypeChecker { } } static isDragBehavior(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DragBehavior.COPY))) { + if ((value) === (DragBehavior.COPY)) { return true } - else if (((value) === (DragBehavior.MOVE))) { + else if ((value) === (DragBehavior.MOVE)) { return true } else { @@ -4696,16 +4698,16 @@ export class TypeChecker { } } static isDragPreviewMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DragPreviewMode.AUTO))) { + if ((value) === (DragPreviewMode.AUTO)) { return true } - else if (((value) === (DragPreviewMode.DISABLE_SCALE))) { + else if ((value) === (DragPreviewMode.DISABLE_SCALE)) { return true } - else if (((value) === (DragPreviewMode.ENABLE_DEFAULT_SHADOW))) { + else if ((value) === (DragPreviewMode.ENABLE_DEFAULT_SHADOW)) { return true } - else if (((value) === (DragPreviewMode.ENABLE_DEFAULT_RADIUS))) { + else if ((value) === (DragPreviewMode.ENABLE_DEFAULT_RADIUS)) { return true } else { @@ -4727,19 +4729,19 @@ export class TypeChecker { } } static isDragResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DragResult.DRAG_SUCCESSFUL))) { + if ((value) === (DragResult.DRAG_SUCCESSFUL)) { return true } - else if (((value) === (DragResult.DRAG_FAILED))) { + else if ((value) === (DragResult.DRAG_FAILED)) { return true } - else if (((value) === (DragResult.DRAG_CANCELED))) { + else if ((value) === (DragResult.DRAG_CANCELED)) { return true } - else if (((value) === (DragResult.DROP_ENABLED))) { + else if ((value) === (DragResult.DROP_ENABLED)) { return true } - else if (((value) === (DragResult.DROP_DISABLED))) { + else if ((value) === (DragResult.DROP_DISABLED)) { return true } else { @@ -4799,13 +4801,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof DynamicNode") } static isDynamicRangeMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (DynamicRangeMode.HIGH))) { + if ((value) === (DynamicRangeMode.HIGH)) { return true } - else if (((value) === (DynamicRangeMode.CONSTRAINT))) { + else if ((value) === (DynamicRangeMode.CONSTRAINT)) { return true } - else if (((value) === (DynamicRangeMode.STANDARD))) { + else if ((value) === (DynamicRangeMode.STANDARD)) { return true } else { @@ -4816,25 +4818,25 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EclipseStyleOptions") } static isEdge(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Edge.Top))) { + if ((value) === (Edge.Top)) { return true } - else if (((value) === (Edge.Center))) { + else if ((value) === (Edge.Center)) { return true } - else if (((value) === (Edge.Bottom))) { + else if ((value) === (Edge.Bottom)) { return true } - else if (((value) === (Edge.Baseline))) { + else if ((value) === (Edge.Baseline)) { return true } - else if (((value) === (Edge.Start))) { + else if ((value) === (Edge.Start)) { return true } - else if (((value) === (Edge.Middle))) { + else if ((value) === (Edge.Middle)) { return true } - else if (((value) === (Edge.End))) { + else if ((value) === (Edge.End)) { return true } else { @@ -4859,13 +4861,13 @@ export class TypeChecker { } } static isEdgeEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EdgeEffect.Spring))) { + if ((value) === (EdgeEffect.Spring)) { return true } - else if (((value) === (EdgeEffect.Fade))) { + else if ((value) === (EdgeEffect.Fade)) { return true } - else if (((value) === (EdgeEffect.None))) { + else if ((value) === (EdgeEffect.None)) { return true } else { @@ -4969,13 +4971,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EditMenuOptions") } static isEditMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EditMode.None))) { + if ((value) === (EditMode.None)) { return true } - else if (((value) === (EditMode.Deletable))) { + else if ((value) === (EditMode.Deletable)) { return true } - else if (((value) === (EditMode.Movable))) { + else if ((value) === (EditMode.Movable)) { return true } else { @@ -4989,10 +4991,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EffectComponentInterface") } static isEffectDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EffectDirection.DOWN))) { + if ((value) === (EffectDirection.DOWN)) { return true } - else if (((value) === (EffectDirection.UP))) { + else if ((value) === (EffectDirection.UP)) { return true } else { @@ -5000,10 +5002,10 @@ export class TypeChecker { } } static isEffectFillStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EffectFillStyle.CUMULATIVE))) { + if ((value) === (EffectFillStyle.CUMULATIVE)) { return true } - else if (((value) === (EffectFillStyle.ITERATIVE))) { + else if ((value) === (EffectFillStyle.ITERATIVE)) { return true } else { @@ -5011,10 +5013,10 @@ export class TypeChecker { } } static isEffectScope(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EffectScope.LAYER))) { + if ((value) === (EffectScope.LAYER)) { return true } - else if (((value) === (EffectScope.WHOLE))) { + else if ((value) === (EffectScope.WHOLE)) { return true } else { @@ -5022,10 +5024,10 @@ export class TypeChecker { } } static isEffectType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EffectType.DEFAULT))) { + if ((value) === (EffectType.DEFAULT)) { return true } - else if (((value) === (EffectType.WINDOW_EFFECT))) { + else if ((value) === (EffectType.WINDOW_EFFECT)) { return true } else { @@ -5058,13 +5060,13 @@ export class TypeChecker { } } static isEllipsisMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EllipsisMode.START))) { + if ((value) === (EllipsisMode.START)) { return true } - else if (((value) === (EllipsisMode.CENTER))) { + else if ((value) === (EllipsisMode.CENTER)) { return true } - else if (((value) === (EllipsisMode.END))) { + else if ((value) === (EllipsisMode.END)) { return true } else { @@ -5086,7 +5088,7 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof EmbeddedComponentInterface") } static isEmbeddedType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EmbeddedType.EMBEDDED_UI_EXTENSION))) { + if ((value) === (EmbeddedType.EMBEDDED_UI_EXTENSION)) { return true } else { @@ -5122,25 +5124,25 @@ export class TypeChecker { } } static isEnterKeyType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (EnterKeyType.Go))) { + if ((value) === (EnterKeyType.Go)) { return true } - else if (((value) === (EnterKeyType.Search))) { + else if ((value) === (EnterKeyType.Search)) { return true } - else if (((value) === (EnterKeyType.Send))) { + else if ((value) === (EnterKeyType.Send)) { return true } - else if (((value) === (EnterKeyType.Next))) { + else if ((value) === (EnterKeyType.Next)) { return true } - else if (((value) === (EnterKeyType.Done))) { + else if ((value) === (EnterKeyType.Done)) { return true } - else if (((value) === (EnterKeyType.PREVIOUS))) { + else if ((value) === (EnterKeyType.PREVIOUS)) { return true } - else if (((value) === (EnterKeyType.NEW_LINE))) { + else if ((value) === (EnterKeyType.NEW_LINE)) { return true } else { @@ -5242,16 +5244,16 @@ export class TypeChecker { } } static isFileSelectorMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FileSelectorMode.FileOpenMode))) { + if ((value) === (FileSelectorMode.FileOpenMode)) { return true } - else if (((value) === (FileSelectorMode.FileOpenMultipleMode))) { + else if ((value) === (FileSelectorMode.FileOpenMultipleMode)) { return true } - else if (((value) === (FileSelectorMode.FileOpenFolderMode))) { + else if ((value) === (FileSelectorMode.FileOpenFolderMode)) { return true } - else if (((value) === (FileSelectorMode.FileSaveMode))) { + else if ((value) === (FileSelectorMode.FileSaveMode)) { return true } else { @@ -5265,16 +5267,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof FileSelectorResult") } static isFillMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FillMode.None))) { + if ((value) === (FillMode.None)) { return true } - else if (((value) === (FillMode.Forwards))) { + else if ((value) === (FillMode.Forwards)) { return true } - else if (((value) === (FillMode.Backwards))) { + else if ((value) === (FillMode.Backwards)) { return true } - else if (((value) === (FillMode.Both))) { + else if ((value) === (FillMode.Both)) { return true } else { @@ -5316,10 +5318,10 @@ export class TypeChecker { } } static isFinishCallbackType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FinishCallbackType.REMOVED))) { + if ((value) === (FinishCallbackType.REMOVED)) { return true } - else if (((value) === (FinishCallbackType.LOGICALLY))) { + else if ((value) === (FinishCallbackType.LOGICALLY)) { return true } else { @@ -5338,22 +5340,22 @@ export class TypeChecker { } } static isFlexAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FlexAlign.Start))) { + if ((value) === (FlexAlign.Start)) { return true } - else if (((value) === (FlexAlign.Center))) { + else if ((value) === (FlexAlign.Center)) { return true } - else if (((value) === (FlexAlign.End))) { + else if ((value) === (FlexAlign.End)) { return true } - else if (((value) === (FlexAlign.SpaceBetween))) { + else if ((value) === (FlexAlign.SpaceBetween)) { return true } - else if (((value) === (FlexAlign.SpaceAround))) { + else if ((value) === (FlexAlign.SpaceAround)) { return true } - else if (((value) === (FlexAlign.SpaceEvenly))) { + else if ((value) === (FlexAlign.SpaceEvenly)) { return true } else { @@ -5369,16 +5371,16 @@ export class TypeChecker { } } static isFlexDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FlexDirection.Row))) { + if ((value) === (FlexDirection.Row)) { return true } - else if (((value) === (FlexDirection.Column))) { + else if ((value) === (FlexDirection.Column)) { return true } - else if (((value) === (FlexDirection.RowReverse))) { + else if ((value) === (FlexDirection.RowReverse)) { return true } - else if (((value) === (FlexDirection.ColumnReverse))) { + else if ((value) === (FlexDirection.ColumnReverse)) { return true } else { @@ -5423,13 +5425,13 @@ export class TypeChecker { } } static isFlexWrap(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FlexWrap.NoWrap))) { + if ((value) === (FlexWrap.NoWrap)) { return true } - else if (((value) === (FlexWrap.Wrap))) { + else if ((value) === (FlexWrap.Wrap)) { return true } - else if (((value) === (FlexWrap.WrapReverse))) { + else if ((value) === (FlexWrap.WrapReverse)) { return true } else { @@ -5457,13 +5459,13 @@ export class TypeChecker { } } static isFocusPriority(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FocusPriority.AUTO))) { + if ((value) === (FocusPriority.AUTO)) { return true } - else if (((value) === (FocusPriority.PRIOR))) { + else if ((value) === (FocusPriority.PRIOR)) { return true } - else if (((value) === (FocusPriority.PREVIOUS))) { + else if ((value) === (FocusPriority.PREVIOUS)) { return true } else { @@ -5502,16 +5504,16 @@ export class TypeChecker { } } static isFoldStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FoldStatus.FOLD_STATUS_UNKNOWN))) { + if ((value) === (FoldStatus.FOLD_STATUS_UNKNOWN)) { return true } - else if (((value) === (FoldStatus.FOLD_STATUS_EXPANDED))) { + else if ((value) === (FoldStatus.FOLD_STATUS_EXPANDED)) { return true } - else if (((value) === (FoldStatus.FOLD_STATUS_FOLDED))) { + else if ((value) === (FoldStatus.FOLD_STATUS_FOLDED)) { return true } - else if (((value) === (FoldStatus.FOLD_STATUS_HALF_FOLDED))) { + else if ((value) === (FoldStatus.FOLD_STATUS_HALF_FOLDED)) { return true } else { @@ -5544,10 +5546,10 @@ export class TypeChecker { } } static isFontStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FontStyle.Normal))) { + if ((value) === (FontStyle.Normal)) { return true } - else if (((value) === (FontStyle.Italic))) { + else if ((value) === (FontStyle.Italic)) { return true } else { @@ -5555,22 +5557,22 @@ export class TypeChecker { } } static isFontWeight(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FontWeight.Lighter))) { + if ((value) === (FontWeight.Lighter)) { return true } - else if (((value) === (FontWeight.Normal))) { + else if ((value) === (FontWeight.Normal)) { return true } - else if (((value) === (FontWeight.Regular))) { + else if ((value) === (FontWeight.Regular)) { return true } - else if (((value) === (FontWeight.Medium))) { + else if ((value) === (FontWeight.Medium)) { return true } - else if (((value) === (FontWeight.Bold))) { + else if ((value) === (FontWeight.Bold)) { return true } - else if (((value) === (FontWeight.Bolder))) { + else if ((value) === (FontWeight.Bolder)) { return true } else { @@ -5638,25 +5640,25 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof FormComponentInterface") } static isFormDimension(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FormDimension.Dimension_1_2))) { + if ((value) === (FormDimension.Dimension_1_2)) { return true } - else if (((value) === (FormDimension.Dimension_2_2))) { + else if ((value) === (FormDimension.Dimension_2_2)) { return true } - else if (((value) === (FormDimension.Dimension_2_4))) { + else if ((value) === (FormDimension.Dimension_2_4)) { return true } - else if (((value) === (FormDimension.Dimension_4_4))) { + else if ((value) === (FormDimension.Dimension_4_4)) { return true } - else if (((value) === (FormDimension.Dimension_2_1))) { + else if ((value) === (FormDimension.Dimension_2_1)) { return true } - else if (((value) === (FormDimension.DIMENSION_1_1))) { + else if ((value) === (FormDimension.DIMENSION_1_1)) { return true } - else if (((value) === (FormDimension.DIMENSION_6_4))) { + else if ((value) === (FormDimension.DIMENSION_6_4)) { return true } else { @@ -5728,10 +5730,10 @@ export class TypeChecker { } } static isFormRenderingMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FormRenderingMode.FULL_COLOR))) { + if ((value) === (FormRenderingMode.FULL_COLOR)) { return true } - else if (((value) === (FormRenderingMode.SINGLE_COLOR))) { + else if ((value) === (FormRenderingMode.SINGLE_COLOR)) { return true } else { @@ -5739,10 +5741,10 @@ export class TypeChecker { } } static isFormShape(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FormShape.RECT))) { + if ((value) === (FormShape.RECT)) { return true } - else if (((value) === (FormShape.CIRCLE))) { + else if ((value) === (FormShape.CIRCLE)) { return true } else { @@ -5781,58 +5783,58 @@ export class TypeChecker { } } static isFunctionKey(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (FunctionKey.ESC))) { + if ((value) === (FunctionKey.ESC)) { return true } - else if (((value) === (FunctionKey.F1))) { + else if ((value) === (FunctionKey.F1)) { return true } - else if (((value) === (FunctionKey.F2))) { + else if ((value) === (FunctionKey.F2)) { return true } - else if (((value) === (FunctionKey.F3))) { + else if ((value) === (FunctionKey.F3)) { return true } - else if (((value) === (FunctionKey.F4))) { + else if ((value) === (FunctionKey.F4)) { return true } - else if (((value) === (FunctionKey.F5))) { + else if ((value) === (FunctionKey.F5)) { return true } - else if (((value) === (FunctionKey.F6))) { + else if ((value) === (FunctionKey.F6)) { return true } - else if (((value) === (FunctionKey.F7))) { + else if ((value) === (FunctionKey.F7)) { return true } - else if (((value) === (FunctionKey.F8))) { + else if ((value) === (FunctionKey.F8)) { return true } - else if (((value) === (FunctionKey.F9))) { + else if ((value) === (FunctionKey.F9)) { return true } - else if (((value) === (FunctionKey.F10))) { + else if ((value) === (FunctionKey.F10)) { return true } - else if (((value) === (FunctionKey.F11))) { + else if ((value) === (FunctionKey.F11)) { return true } - else if (((value) === (FunctionKey.F12))) { + else if ((value) === (FunctionKey.F12)) { return true } - else if (((value) === (FunctionKey.TAB))) { + else if ((value) === (FunctionKey.TAB)) { return true } - else if (((value) === (FunctionKey.DPAD_UP))) { + else if ((value) === (FunctionKey.DPAD_UP)) { return true } - else if (((value) === (FunctionKey.DPAD_DOWN))) { + else if ((value) === (FunctionKey.DPAD_DOWN)) { return true } - else if (((value) === (FunctionKey.DPAD_LEFT))) { + else if ((value) === (FunctionKey.DPAD_LEFT)) { return true } - else if (((value) === (FunctionKey.DPAD_RIGHT))) { + else if ((value) === (FunctionKey.DPAD_RIGHT)) { return true } else { @@ -5945,28 +5947,28 @@ export class TypeChecker { } } static isGestureControl_GestureType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureControl_GestureType.TAP_GESTURE))) { + if ((value) === (GestureControl_GestureType.TAP_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.LONG_PRESS_GESTURE))) { + else if ((value) === (GestureControl_GestureType.LONG_PRESS_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.PAN_GESTURE))) { + else if ((value) === (GestureControl_GestureType.PAN_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.PINCH_GESTURE))) { + else if ((value) === (GestureControl_GestureType.PINCH_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.SWIPE_GESTURE))) { + else if ((value) === (GestureControl_GestureType.SWIPE_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.ROTATION_GESTURE))) { + else if ((value) === (GestureControl_GestureType.ROTATION_GESTURE)) { return true } - else if (((value) === (GestureControl_GestureType.DRAG))) { + else if ((value) === (GestureControl_GestureType.DRAG)) { return true } - else if (((value) === (GestureControl_GestureType.CLICK))) { + else if ((value) === (GestureControl_GestureType.CLICK)) { return true } else { @@ -6046,10 +6048,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GestureInterface") } static isGestureJudgeResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureJudgeResult.CONTINUE))) { + if ((value) === (GestureJudgeResult.CONTINUE)) { return true } - else if (((value) === (GestureJudgeResult.REJECT))) { + else if ((value) === (GestureJudgeResult.REJECT)) { return true } else { @@ -6057,10 +6059,10 @@ export class TypeChecker { } } static isGestureMask(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureMask.Normal))) { + if ((value) === (GestureMask.Normal)) { return true } - else if (((value) === (GestureMask.IgnoreInternal))) { + else if ((value) === (GestureMask.IgnoreInternal)) { return true } else { @@ -6068,13 +6070,13 @@ export class TypeChecker { } } static isGestureMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureMode.Sequence))) { + if ((value) === (GestureMode.Sequence)) { return true } - else if (((value) === (GestureMode.Parallel))) { + else if ((value) === (GestureMode.Parallel)) { return true } - else if (((value) === (GestureMode.Exclusive))) { + else if ((value) === (GestureMode.Exclusive)) { return true } else { @@ -6085,10 +6087,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GestureModifier") } static isGesturePriority(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GesturePriority.NORMAL))) { + if ((value) === (GesturePriority.NORMAL)) { return true } - else if (((value) === (GesturePriority.PRIORITY))) { + else if ((value) === (GesturePriority.PRIORITY)) { return true } else { @@ -6099,22 +6101,22 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GestureRecognizer") } static isGestureRecognizerState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GestureRecognizerState.READY))) { + if ((value) === (GestureRecognizerState.READY)) { return true } - else if (((value) === (GestureRecognizerState.DETECTING))) { + else if ((value) === (GestureRecognizerState.DETECTING)) { return true } - else if (((value) === (GestureRecognizerState.PENDING))) { + else if ((value) === (GestureRecognizerState.PENDING)) { return true } - else if (((value) === (GestureRecognizerState.BLOCKED))) { + else if ((value) === (GestureRecognizerState.BLOCKED)) { return true } - else if (((value) === (GestureRecognizerState.SUCCESSFUL))) { + else if ((value) === (GestureRecognizerState.SUCCESSFUL)) { return true } - else if (((value) === (GestureRecognizerState.FAILED))) { + else if ((value) === (GestureRecognizerState.FAILED)) { return true } else { @@ -6142,31 +6144,31 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GlobalScope_ohos_arkui_performanceMonitor") } static isGradientDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GradientDirection.Left))) { + if ((value) === (GradientDirection.Left)) { return true } - else if (((value) === (GradientDirection.Top))) { + else if ((value) === (GradientDirection.Top)) { return true } - else if (((value) === (GradientDirection.Right))) { + else if ((value) === (GradientDirection.Right)) { return true } - else if (((value) === (GradientDirection.Bottom))) { + else if ((value) === (GradientDirection.Bottom)) { return true } - else if (((value) === (GradientDirection.LeftTop))) { + else if ((value) === (GradientDirection.LeftTop)) { return true } - else if (((value) === (GradientDirection.LeftBottom))) { + else if ((value) === (GradientDirection.LeftBottom)) { return true } - else if (((value) === (GradientDirection.RightTop))) { + else if ((value) === (GradientDirection.RightTop)) { return true } - else if (((value) === (GradientDirection.RightBottom))) { + else if ((value) === (GradientDirection.RightBottom)) { return true } - else if (((value) === (GradientDirection.None))) { + else if ((value) === (GradientDirection.None)) { return true } else { @@ -6352,16 +6354,16 @@ export class TypeChecker { } } static isGridDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GridDirection.Row))) { + if ((value) === (GridDirection.Row)) { return true } - else if (((value) === (GridDirection.Column))) { + else if ((value) === (GridDirection.Column)) { return true } - else if (((value) === (GridDirection.RowReverse))) { + else if ((value) === (GridDirection.RowReverse)) { return true } - else if (((value) === (GridDirection.ColumnReverse))) { + else if ((value) === (GridDirection.ColumnReverse)) { return true } else { @@ -6372,10 +6374,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof GridInterface") } static isGridItemAlignment(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GridItemAlignment.DEFAULT))) { + if ((value) === (GridItemAlignment.DEFAULT)) { return true } - else if (((value) === (GridItemAlignment.STRETCH))) { + else if ((value) === (GridItemAlignment.STRETCH)) { return true } else { @@ -6423,10 +6425,10 @@ export class TypeChecker { } } static isGridItemStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GridItemStyle.NONE))) { + if ((value) === (GridItemStyle.NONE)) { return true } - else if (((value) === (GridItemStyle.PLAIN))) { + else if ((value) === (GridItemStyle.PLAIN)) { return true } else { @@ -6485,10 +6487,10 @@ export class TypeChecker { } } static isGridRowDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (GridRowDirection.Row))) { + if ((value) === (GridRowDirection.Row)) { return true } - else if (((value) === (GridRowDirection.RowReverse))) { + else if ((value) === (GridRowDirection.RowReverse)) { return true } else { @@ -6586,13 +6588,13 @@ export class TypeChecker { } } static isHeightBreakpoint(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HeightBreakpoint.HEIGHT_SM))) { + if ((value) === (HeightBreakpoint.HEIGHT_SM)) { return true } - else if (((value) === (HeightBreakpoint.HEIGHT_MD))) { + else if ((value) === (HeightBreakpoint.HEIGHT_MD)) { return true } - else if (((value) === (HeightBreakpoint.HEIGHT_LG))) { + else if ((value) === (HeightBreakpoint.HEIGHT_LG)) { return true } else { @@ -6625,16 +6627,16 @@ export class TypeChecker { } } static isHitTestMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HitTestMode.Default))) { + if ((value) === (HitTestMode.Default)) { return true } - else if (((value) === (HitTestMode.Block))) { + else if ((value) === (HitTestMode.Block)) { return true } - else if (((value) === (HitTestMode.Transparent))) { + else if ((value) === (HitTestMode.Transparent)) { return true } - else if (((value) === (HitTestMode.None))) { + else if ((value) === (HitTestMode.None)) { return true } else { @@ -6642,28 +6644,28 @@ export class TypeChecker { } } static isHitTestType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HitTestType.EditText))) { + if ((value) === (HitTestType.EditText)) { return true } - else if (((value) === (HitTestType.Email))) { + else if ((value) === (HitTestType.Email)) { return true } - else if (((value) === (HitTestType.HttpAnchor))) { + else if ((value) === (HitTestType.HttpAnchor)) { return true } - else if (((value) === (HitTestType.HttpAnchorImg))) { + else if ((value) === (HitTestType.HttpAnchorImg)) { return true } - else if (((value) === (HitTestType.Img))) { + else if ((value) === (HitTestType.Img)) { return true } - else if (((value) === (HitTestType.Map))) { + else if ((value) === (HitTestType.Map)) { return true } - else if (((value) === (HitTestType.Phone))) { + else if ((value) === (HitTestType.Phone)) { return true } - else if (((value) === (HitTestType.Unknown))) { + else if ((value) === (HitTestType.Unknown)) { return true } else { @@ -6671,13 +6673,13 @@ export class TypeChecker { } } static isHorizontalAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HorizontalAlign.Start))) { + if ((value) === (HorizontalAlign.Start)) { return true } - else if (((value) === (HorizontalAlign.Center))) { + else if ((value) === (HorizontalAlign.Center)) { return true } - else if (((value) === (HorizontalAlign.End))) { + else if ((value) === (HorizontalAlign.End)) { return true } else { @@ -6685,16 +6687,16 @@ export class TypeChecker { } } static isHoverEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HoverEffect.Auto))) { + if ((value) === (HoverEffect.Auto)) { return true } - else if (((value) === (HoverEffect.Scale))) { + else if ((value) === (HoverEffect.Scale)) { return true } - else if (((value) === (HoverEffect.Highlight))) { + else if ((value) === (HoverEffect.Highlight)) { return true } - else if (((value) === (HoverEffect.None))) { + else if ((value) === (HoverEffect.None)) { return true } else { @@ -6727,10 +6729,10 @@ export class TypeChecker { } } static isHoverModeAreaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (HoverModeAreaType.TOP_SCREEN))) { + if ((value) === (HoverModeAreaType.TOP_SCREEN)) { return true } - else if (((value) === (HoverModeAreaType.BOTTOM_SCREEN))) { + else if ((value) === (HoverModeAreaType.BOTTOM_SCREEN)) { return true } else { @@ -6769,22 +6771,22 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ICurve") } static isIlluminatedType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (IlluminatedType.NONE))) { + if ((value) === (IlluminatedType.NONE)) { return true } - else if (((value) === (IlluminatedType.BORDER))) { + else if ((value) === (IlluminatedType.BORDER)) { return true } - else if (((value) === (IlluminatedType.CONTENT))) { + else if ((value) === (IlluminatedType.CONTENT)) { return true } - else if (((value) === (IlluminatedType.BORDER_CONTENT))) { + else if ((value) === (IlluminatedType.BORDER_CONTENT)) { return true } - else if (((value) === (IlluminatedType.BLOOM_BORDER))) { + else if ((value) === (IlluminatedType.BLOOM_BORDER)) { return true } - else if (((value) === (IlluminatedType.BLOOM_BORDER_CONTENT))) { + else if ((value) === (IlluminatedType.BLOOM_BORDER_CONTENT)) { return true } else { @@ -6814,13 +6816,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ImageAnalyzerController") } static isImageAnalyzerType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageAnalyzerType.SUBJECT))) { + if ((value) === (ImageAnalyzerType.SUBJECT)) { return true } - else if (((value) === (ImageAnalyzerType.TEXT))) { + else if ((value) === (ImageAnalyzerType.TEXT)) { return true } - else if (((value) === (ImageAnalyzerType.OBJECT_LOOKUP))) { + else if ((value) === (ImageAnalyzerType.OBJECT_LOOKUP)) { return true } else { @@ -7020,7 +7022,7 @@ export class TypeChecker { } } static isImageContent(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageContent.EMPTY))) { + if ((value) === (ImageContent.EMPTY)) { return true } else { @@ -7056,49 +7058,49 @@ export class TypeChecker { } } static isImageFit(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageFit.Contain))) { + if ((value) === (ImageFit.Contain)) { return true } - else if (((value) === (ImageFit.Cover))) { + else if ((value) === (ImageFit.Cover)) { return true } - else if (((value) === (ImageFit.Auto))) { + else if ((value) === (ImageFit.Auto)) { return true } - else if (((value) === (ImageFit.Fill))) { + else if ((value) === (ImageFit.Fill)) { return true } - else if (((value) === (ImageFit.ScaleDown))) { + else if ((value) === (ImageFit.ScaleDown)) { return true } - else if (((value) === (ImageFit.None))) { + else if ((value) === (ImageFit.None)) { return true } - else if (((value) === (ImageFit.TOP_START))) { + else if ((value) === (ImageFit.TOP_START)) { return true } - else if (((value) === (ImageFit.TOP))) { + else if ((value) === (ImageFit.TOP)) { return true } - else if (((value) === (ImageFit.TOP_END))) { + else if ((value) === (ImageFit.TOP_END)) { return true } - else if (((value) === (ImageFit.START))) { + else if ((value) === (ImageFit.START)) { return true } - else if (((value) === (ImageFit.CENTER))) { + else if ((value) === (ImageFit.CENTER)) { return true } - else if (((value) === (ImageFit.END))) { + else if ((value) === (ImageFit.END)) { return true } - else if (((value) === (ImageFit.BOTTOM_START))) { + else if ((value) === (ImageFit.BOTTOM_START)) { return true } - else if (((value) === (ImageFit.BOTTOM))) { + else if ((value) === (ImageFit.BOTTOM)) { return true } - else if (((value) === (ImageFit.BOTTOM_END))) { + else if ((value) === (ImageFit.BOTTOM_END)) { return true } else { @@ -7132,16 +7134,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ImageInterface") } static isImageInterpolation(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageInterpolation.None))) { + if ((value) === (ImageInterpolation.None)) { return true } - else if (((value) === (ImageInterpolation.Low))) { + else if ((value) === (ImageInterpolation.Low)) { return true } - else if (((value) === (ImageInterpolation.Medium))) { + else if ((value) === (ImageInterpolation.Medium)) { return true } - else if (((value) === (ImageInterpolation.High))) { + else if ((value) === (ImageInterpolation.High)) { return true } else { @@ -7203,10 +7205,10 @@ export class TypeChecker { } } static isImageRenderMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageRenderMode.Original))) { + if ((value) === (ImageRenderMode.Original)) { return true } - else if (((value) === (ImageRenderMode.Template))) { + else if ((value) === (ImageRenderMode.Template)) { return true } else { @@ -7214,16 +7216,16 @@ export class TypeChecker { } } static isImageRepeat(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageRepeat.NoRepeat))) { + if ((value) === (ImageRepeat.NoRepeat)) { return true } - else if (((value) === (ImageRepeat.X))) { + else if ((value) === (ImageRepeat.X)) { return true } - else if (((value) === (ImageRepeat.Y))) { + else if ((value) === (ImageRepeat.Y)) { return true } - else if (((value) === (ImageRepeat.XY))) { + else if ((value) === (ImageRepeat.XY)) { return true } else { @@ -7231,16 +7233,16 @@ export class TypeChecker { } } static isImageSize(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageSize.Auto))) { + if ((value) === (ImageSize.Auto)) { return true } - else if (((value) === (ImageSize.Cover))) { + else if ((value) === (ImageSize.Cover)) { return true } - else if (((value) === (ImageSize.Contain))) { + else if ((value) === (ImageSize.Contain)) { return true } - else if (((value) === (ImageSize.FILL))) { + else if ((value) === (ImageSize.FILL)) { return true } else { @@ -7259,16 +7261,16 @@ export class TypeChecker { } } static isImageSpanAlignment(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ImageSpanAlignment.BASELINE))) { + if ((value) === (ImageSpanAlignment.BASELINE)) { return true } - else if (((value) === (ImageSpanAlignment.BOTTOM))) { + else if ((value) === (ImageSpanAlignment.BOTTOM)) { return true } - else if (((value) === (ImageSpanAlignment.CENTER))) { + else if ((value) === (ImageSpanAlignment.CENTER)) { return true } - else if (((value) === (ImageSpanAlignment.TOP))) { + else if ((value) === (ImageSpanAlignment.TOP)) { return true } else { @@ -7302,16 +7304,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ImageSpanInterface") } static isIndexerAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (IndexerAlign.Left))) { + if ((value) === (IndexerAlign.Left)) { return true } - else if (((value) === (IndexerAlign.Right))) { + else if ((value) === (IndexerAlign.Right)) { return true } - else if (((value) === (IndexerAlign.START))) { + else if ((value) === (IndexerAlign.START)) { return true } - else if (((value) === (IndexerAlign.END))) { + else if ((value) === (IndexerAlign.END)) { return true } else { @@ -7391,37 +7393,37 @@ export class TypeChecker { } } static isInputType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (InputType.Normal))) { + if ((value) === (InputType.Normal)) { return true } - else if (((value) === (InputType.Number))) { + else if ((value) === (InputType.Number)) { return true } - else if (((value) === (InputType.PhoneNumber))) { + else if ((value) === (InputType.PhoneNumber)) { return true } - else if (((value) === (InputType.Email))) { + else if ((value) === (InputType.Email)) { return true } - else if (((value) === (InputType.Password))) { + else if ((value) === (InputType.Password)) { return true } - else if (((value) === (InputType.NUMBER_PASSWORD))) { + else if ((value) === (InputType.NUMBER_PASSWORD)) { return true } - else if (((value) === (InputType.SCREEN_LOCK_PASSWORD))) { + else if ((value) === (InputType.SCREEN_LOCK_PASSWORD)) { return true } - else if (((value) === (InputType.USER_NAME))) { + else if ((value) === (InputType.USER_NAME)) { return true } - else if (((value) === (InputType.NEW_PASSWORD))) { + else if ((value) === (InputType.NEW_PASSWORD)) { return true } - else if (((value) === (InputType.NUMBER_DECIMAL))) { + else if ((value) === (InputType.NUMBER_DECIMAL)) { return true } - else if (((value) === (InputType.URL))) { + else if ((value) === (InputType.URL)) { return true } else { @@ -7501,22 +7503,22 @@ export class TypeChecker { } } static isItemAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ItemAlign.Auto))) { + if ((value) === (ItemAlign.Auto)) { return true } - else if (((value) === (ItemAlign.Start))) { + else if ((value) === (ItemAlign.Start)) { return true } - else if (((value) === (ItemAlign.Center))) { + else if ((value) === (ItemAlign.Center)) { return true } - else if (((value) === (ItemAlign.End))) { + else if ((value) === (ItemAlign.End)) { return true } - else if (((value) === (ItemAlign.Baseline))) { + else if ((value) === (ItemAlign.Baseline)) { return true } - else if (((value) === (ItemAlign.Stretch))) { + else if ((value) === (ItemAlign.Stretch)) { return true } else { @@ -7535,16 +7537,16 @@ export class TypeChecker { } } static isItemState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ItemState.Normal))) { + if ((value) === (ItemState.Normal)) { return true } - else if (((value) === (ItemState.Disabled))) { + else if ((value) === (ItemState.Disabled)) { return true } - else if (((value) === (ItemState.Waiting))) { + else if ((value) === (ItemState.Waiting)) { return true } - else if (((value) === (ItemState.Skip))) { + else if ((value) === (ItemState.Skip)) { return true } else { @@ -7581,10 +7583,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof JsResult") } static isKeyboardAvoidMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (KeyboardAvoidMode.DEFAULT))) { + if ((value) === (KeyboardAvoidMode.DEFAULT)) { return true } - else if (((value) === (KeyboardAvoidMode.NONE))) { + else if ((value) === (KeyboardAvoidMode.NONE)) { return true } else { @@ -7663,10 +7665,10 @@ export class TypeChecker { } } static isKeySource(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (KeySource.Unknown))) { + if ((value) === (KeySource.Unknown)) { return true } - else if (((value) === (KeySource.Keyboard))) { + else if ((value) === (KeySource.Keyboard)) { return true } else { @@ -7674,10 +7676,10 @@ export class TypeChecker { } } static isKeyType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (KeyType.Down))) { + if ((value) === (KeyType.Down)) { return true } - else if (((value) === (KeyType.Up))) { + else if ((value) === (KeyType.Up)) { return true } else { @@ -7731,16 +7733,16 @@ export class TypeChecker { } } static isLaunchMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LaunchMode.STANDARD))) { + if ((value) === (LaunchMode.STANDARD)) { return true } - else if (((value) === (LaunchMode.MOVE_TO_TOP_SINGLETON))) { + else if ((value) === (LaunchMode.MOVE_TO_TOP_SINGLETON)) { return true } - else if (((value) === (LaunchMode.POP_TO_SINGLETON))) { + else if ((value) === (LaunchMode.POP_TO_SINGLETON)) { return true } - else if (((value) === (LaunchMode.NEW_INSTANCE))) { + else if ((value) === (LaunchMode.NEW_INSTANCE)) { return true } else { @@ -7778,13 +7780,13 @@ export class TypeChecker { } } static isLayoutDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutDirection.LTR))) { + if ((value) === (LayoutDirection.LTR)) { return true } - else if (((value) === (LayoutDirection.RTL))) { + else if ((value) === (LayoutDirection.RTL)) { return true } - else if (((value) === (LayoutDirection.Auto))) { + else if ((value) === (LayoutDirection.Auto)) { return true } else { @@ -7806,13 +7808,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LayoutManager") } static isLayoutMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutMode.AUTO))) { + if ((value) === (LayoutMode.AUTO)) { return true } - else if (((value) === (LayoutMode.VERTICAL))) { + else if ((value) === (LayoutMode.VERTICAL)) { return true } - else if (((value) === (LayoutMode.HORIZONTAL))) { + else if ((value) === (LayoutMode.HORIZONTAL)) { return true } else { @@ -7820,10 +7822,10 @@ export class TypeChecker { } } static isLayoutSafeAreaEdge(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutSafeAreaEdge.TOP))) { + if ((value) === (LayoutSafeAreaEdge.TOP)) { return true } - else if (((value) === (LayoutSafeAreaEdge.BOTTOM))) { + else if ((value) === (LayoutSafeAreaEdge.BOTTOM)) { return true } else { @@ -7831,7 +7833,7 @@ export class TypeChecker { } } static isLayoutSafeAreaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutSafeAreaType.SYSTEM))) { + if ((value) === (LayoutSafeAreaType.SYSTEM)) { return true } else { @@ -7839,13 +7841,13 @@ export class TypeChecker { } } static isLayoutStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LayoutStyle.ALWAYS_CENTER))) { + if ((value) === (LayoutStyle.ALWAYS_CENTER)) { return true } - else if (((value) === (LayoutStyle.ALWAYS_AVERAGE_SPLIT))) { + else if ((value) === (LayoutStyle.ALWAYS_AVERAGE_SPLIT)) { return true } - else if (((value) === (LayoutStyle.SPACE_BETWEEN_OR_CENTER))) { + else if ((value) === (LayoutStyle.SPACE_BETWEEN_OR_CENTER)) { return true } else { @@ -7897,19 +7899,19 @@ export class TypeChecker { } } static isLengthUnit(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LengthUnit.PX))) { + if ((value) === (LengthUnit.PX)) { return true } - else if (((value) === (LengthUnit.VP))) { + else if ((value) === (LengthUnit.VP)) { return true } - else if (((value) === (LengthUnit.FP))) { + else if ((value) === (LengthUnit.FP)) { return true } - else if (((value) === (LengthUnit.PERCENT))) { + else if ((value) === (LengthUnit.PERCENT)) { return true } - else if (((value) === (LengthUnit.LPX))) { + else if ((value) === (LengthUnit.LPX)) { return true } else { @@ -8049,13 +8051,13 @@ export class TypeChecker { } } static isLineBreakStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LineBreakStrategy.GREEDY))) { + if ((value) === (LineBreakStrategy.GREEDY)) { return true } - else if (((value) === (LineBreakStrategy.HIGH_QUALITY))) { + else if ((value) === (LineBreakStrategy.HIGH_QUALITY)) { return true } - else if (((value) === (LineBreakStrategy.BALANCED))) { + else if ((value) === (LineBreakStrategy.BALANCED)) { return true } else { @@ -8063,13 +8065,13 @@ export class TypeChecker { } } static isLineCapStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LineCapStyle.Butt))) { + if ((value) === (LineCapStyle.Butt)) { return true } - else if (((value) === (LineCapStyle.Round))) { + else if ((value) === (LineCapStyle.Round)) { return true } - else if (((value) === (LineCapStyle.Square))) { + else if ((value) === (LineCapStyle.Square)) { return true } else { @@ -8088,13 +8090,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LineInterface") } static isLineJoinStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LineJoinStyle.Miter))) { + if ((value) === (LineJoinStyle.Miter)) { return true } - else if (((value) === (LineJoinStyle.Round))) { + else if ((value) === (LineJoinStyle.Round)) { return true } - else if (((value) === (LineJoinStyle.Bevel))) { + else if ((value) === (LineJoinStyle.Bevel)) { return true } else { @@ -8245,13 +8247,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ListInterface") } static isListItemAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ListItemAlign.Start))) { + if ((value) === (ListItemAlign.Start)) { return true } - else if (((value) === (ListItemAlign.Center))) { + else if ((value) === (ListItemAlign.Center)) { return true } - else if (((value) === (ListItemAlign.End))) { + else if ((value) === (ListItemAlign.End)) { return true } else { @@ -8282,16 +8284,16 @@ export class TypeChecker { } } static isListItemGroupArea(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ListItemGroupArea.NONE))) { + if ((value) === (ListItemGroupArea.NONE)) { return true } - else if (((value) === (ListItemGroupArea.IN_LIST_ITEM_AREA))) { + else if ((value) === (ListItemGroupArea.IN_LIST_ITEM_AREA)) { return true } - else if (((value) === (ListItemGroupArea.IN_HEADER_AREA))) { + else if ((value) === (ListItemGroupArea.IN_HEADER_AREA)) { return true } - else if (((value) === (ListItemGroupArea.IN_FOOTER_AREA))) { + else if ((value) === (ListItemGroupArea.IN_FOOTER_AREA)) { return true } else { @@ -8336,10 +8338,10 @@ export class TypeChecker { } } static isListItemGroupStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ListItemGroupStyle.NONE))) { + if ((value) === (ListItemGroupStyle.NONE)) { return true } - else if (((value) === (ListItemGroupStyle.CARD))) { + else if ((value) === (ListItemGroupStyle.CARD)) { return true } else { @@ -8358,10 +8360,10 @@ export class TypeChecker { } } static isListItemStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ListItemStyle.NONE))) { + if ((value) === (ListItemStyle.NONE)) { return true } - else if (((value) === (ListItemStyle.CARD))) { + else if ((value) === (ListItemStyle.CARD)) { return true } else { @@ -8800,13 +8802,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LoadingProgressInterface") } static isLoadingProgressStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LoadingProgressStyle.Default))) { + if ((value) === (LoadingProgressStyle.Default)) { return true } - else if (((value) === (LoadingProgressStyle.Circular))) { + else if ((value) === (LoadingProgressStyle.Circular)) { return true } - else if (((value) === (LoadingProgressStyle.Orbital))) { + else if ((value) === (LoadingProgressStyle.Orbital)) { return true } else { @@ -8840,16 +8842,16 @@ export class TypeChecker { } } static isLocalizedBarrierDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LocalizedBarrierDirection.START))) { + if ((value) === (LocalizedBarrierDirection.START)) { return true } - else if (((value) === (LocalizedBarrierDirection.END))) { + else if ((value) === (LocalizedBarrierDirection.END)) { return true } - else if (((value) === (LocalizedBarrierDirection.TOP))) { + else if ((value) === (LocalizedBarrierDirection.TOP)) { return true } - else if (((value) === (LocalizedBarrierDirection.BOTTOM))) { + else if ((value) === (LocalizedBarrierDirection.BOTTOM)) { return true } else { @@ -8991,10 +8993,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof LocationButtonInterface") } static isLocationButtonOnClickResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LocationButtonOnClickResult.SUCCESS))) { + if ((value) === (LocationButtonOnClickResult.SUCCESS)) { return true } - else if (((value) === (LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED))) { + else if ((value) === (LocationButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED)) { return true } else { @@ -9016,37 +9018,37 @@ export class TypeChecker { } } static isLocationDescription(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LocationDescription.CURRENT_LOCATION))) { + if ((value) === (LocationDescription.CURRENT_LOCATION)) { return true } - else if (((value) === (LocationDescription.ADD_LOCATION))) { + else if ((value) === (LocationDescription.ADD_LOCATION)) { return true } - else if (((value) === (LocationDescription.SELECT_LOCATION))) { + else if ((value) === (LocationDescription.SELECT_LOCATION)) { return true } - else if (((value) === (LocationDescription.SHARE_LOCATION))) { + else if ((value) === (LocationDescription.SHARE_LOCATION)) { return true } - else if (((value) === (LocationDescription.SEND_LOCATION))) { + else if ((value) === (LocationDescription.SEND_LOCATION)) { return true } - else if (((value) === (LocationDescription.LOCATING))) { + else if ((value) === (LocationDescription.LOCATING)) { return true } - else if (((value) === (LocationDescription.LOCATION))) { + else if ((value) === (LocationDescription.LOCATION)) { return true } - else if (((value) === (LocationDescription.SEND_CURRENT_LOCATION))) { + else if ((value) === (LocationDescription.SEND_CURRENT_LOCATION)) { return true } - else if (((value) === (LocationDescription.RELOCATION))) { + else if ((value) === (LocationDescription.RELOCATION)) { return true } - else if (((value) === (LocationDescription.PUNCH_IN))) { + else if ((value) === (LocationDescription.PUNCH_IN)) { return true } - else if (((value) === (LocationDescription.CURRENT_POSITION))) { + else if ((value) === (LocationDescription.CURRENT_POSITION)) { return true } else { @@ -9054,10 +9056,10 @@ export class TypeChecker { } } static isLocationIconStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (LocationIconStyle.FULL_FILLED))) { + if ((value) === (LocationIconStyle.FULL_FILLED)) { return true } - else if (((value) === (LocationIconStyle.LINES))) { + else if ((value) === (LocationIconStyle.LINES)) { return true } else { @@ -9176,10 +9178,10 @@ export class TypeChecker { } } static isMarqueeUpdateStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MarqueeUpdateStrategy.DEFAULT))) { + if ((value) === (MarqueeUpdateStrategy.DEFAULT)) { return true } - else if (((value) === (MarqueeUpdateStrategy.PRESERVE_POSITION))) { + else if ((value) === (MarqueeUpdateStrategy.PRESERVE_POSITION)) { return true } else { @@ -9222,13 +9224,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof MediaCachedImageInterface") } static isMenuAlignType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MenuAlignType.START))) { + if ((value) === (MenuAlignType.START)) { return true } - else if (((value) === (MenuAlignType.CENTER))) { + else if ((value) === (MenuAlignType.CENTER)) { return true } - else if (((value) === (MenuAlignType.END))) { + else if ((value) === (MenuAlignType.END)) { return true } else { @@ -9388,13 +9390,13 @@ export class TypeChecker { } } static isMenuPolicy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MenuPolicy.DEFAULT))) { + if ((value) === (MenuPolicy.DEFAULT)) { return true } - else if (((value) === (MenuPolicy.HIDE))) { + else if ((value) === (MenuPolicy.HIDE)) { return true } - else if (((value) === (MenuPolicy.SHOW))) { + else if ((value) === (MenuPolicy.SHOW)) { return true } else { @@ -9402,10 +9404,10 @@ export class TypeChecker { } } static isMenuPreviewMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MenuPreviewMode.NONE))) { + if ((value) === (MenuPreviewMode.NONE)) { return true } - else if (((value) === (MenuPreviewMode.IMAGE))) { + else if ((value) === (MenuPreviewMode.IMAGE)) { return true } else { @@ -9413,10 +9415,10 @@ export class TypeChecker { } } static isMenuType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MenuType.SELECTION_MENU))) { + if ((value) === (MenuType.SELECTION_MENU)) { return true } - else if (((value) === (MenuType.PREVIEW_MENU))) { + else if ((value) === (MenuType.PREVIEW_MENU)) { return true } else { @@ -9424,19 +9426,19 @@ export class TypeChecker { } } static isMessageLevel(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MessageLevel.Debug))) { + if ((value) === (MessageLevel.Debug)) { return true } - else if (((value) === (MessageLevel.Error))) { + else if ((value) === (MessageLevel.Error)) { return true } - else if (((value) === (MessageLevel.Info))) { + else if ((value) === (MessageLevel.Info)) { return true } - else if (((value) === (MessageLevel.Log))) { + else if ((value) === (MessageLevel.Log)) { return true } - else if (((value) === (MessageLevel.Warn))) { + else if ((value) === (MessageLevel.Warn)) { return true } else { @@ -9444,13 +9446,13 @@ export class TypeChecker { } } static isMixedMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MixedMode.All))) { + if ((value) === (MixedMode.All)) { return true } - else if (((value) === (MixedMode.Compatible))) { + else if ((value) === (MixedMode.Compatible)) { return true } - else if (((value) === (MixedMode.None))) { + else if ((value) === (MixedMode.None)) { return true } else { @@ -9458,13 +9460,13 @@ export class TypeChecker { } } static isModalTransition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ModalTransition.DEFAULT))) { + if ((value) === (ModalTransition.DEFAULT)) { return true } - else if (((value) === (ModalTransition.NONE))) { + else if ((value) === (ModalTransition.NONE)) { return true } - else if (((value) === (ModalTransition.ALPHA))) { + else if ((value) === (ModalTransition.ALPHA)) { return true } else { @@ -9472,10 +9474,10 @@ export class TypeChecker { } } static isModelType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ModelType.TEXTURE))) { + if ((value) === (ModelType.TEXTURE)) { return true } - else if (((value) === (ModelType.SURFACE))) { + else if ((value) === (ModelType.SURFACE)) { return true } else { @@ -9483,13 +9485,13 @@ export class TypeChecker { } } static isModifierKey(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ModifierKey.CTRL))) { + if ((value) === (ModifierKey.CTRL)) { return true } - else if (((value) === (ModifierKey.SHIFT))) { + else if ((value) === (ModifierKey.SHIFT)) { return true } - else if (((value) === (ModifierKey.ALT))) { + else if ((value) === (ModifierKey.ALT)) { return true } else { @@ -9550,16 +9552,16 @@ export class TypeChecker { } } static isMouseAction(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MouseAction.Press))) { + if ((value) === (MouseAction.Press)) { return true } - else if (((value) === (MouseAction.Release))) { + else if ((value) === (MouseAction.Release)) { return true } - else if (((value) === (MouseAction.Move))) { + else if ((value) === (MouseAction.Move)) { return true } - else if (((value) === (MouseAction.Hover))) { + else if ((value) === (MouseAction.Hover)) { return true } else { @@ -9567,22 +9569,22 @@ export class TypeChecker { } } static isMouseButton(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (MouseButton.Left))) { + if ((value) === (MouseButton.Left)) { return true } - else if (((value) === (MouseButton.Right))) { + else if ((value) === (MouseButton.Right)) { return true } - else if (((value) === (MouseButton.Middle))) { + else if ((value) === (MouseButton.Middle)) { return true } - else if (((value) === (MouseButton.Back))) { + else if ((value) === (MouseButton.Back)) { return true } - else if (((value) === (MouseButton.Forward))) { + else if ((value) === (MouseButton.Forward)) { return true } - else if (((value) === (MouseButton.None))) { + else if ((value) === (MouseButton.None)) { return true } else { @@ -9705,19 +9707,19 @@ export class TypeChecker { } } static isNativeEmbedStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NativeEmbedStatus.CREATE))) { + if ((value) === (NativeEmbedStatus.CREATE)) { return true } - else if (((value) === (NativeEmbedStatus.UPDATE))) { + else if ((value) === (NativeEmbedStatus.UPDATE)) { return true } - else if (((value) === (NativeEmbedStatus.DESTROY))) { + else if ((value) === (NativeEmbedStatus.DESTROY)) { return true } - else if (((value) === (NativeEmbedStatus.ENTER_BFCACHE))) { + else if ((value) === (NativeEmbedStatus.ENTER_BFCACHE)) { return true } - else if (((value) === (NativeEmbedStatus.LEAVE_BFCACHE))) { + else if ((value) === (NativeEmbedStatus.LEAVE_BFCACHE)) { return true } else { @@ -9761,10 +9763,10 @@ export class TypeChecker { } } static isNavBarPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavBarPosition.Start))) { + if ((value) === (NavBarPosition.Start)) { return true } - else if (((value) === (NavBarPosition.End))) { + else if ((value) === (NavBarPosition.End)) { return true } else { @@ -9889,10 +9891,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof NavDestinationInterface") } static isNavDestinationMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavDestinationMode.STANDARD))) { + if ((value) === (NavDestinationMode.STANDARD)) { return true } - else if (((value) === (NavDestinationMode.DIALOG))) { + else if ((value) === (NavDestinationMode.DIALOG)) { return true } else { @@ -10058,13 +10060,13 @@ export class TypeChecker { } } static isNavigationMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationMode.Stack))) { + if ((value) === (NavigationMode.Stack)) { return true } - else if (((value) === (NavigationMode.Split))) { + else if ((value) === (NavigationMode.Split)) { return true } - else if (((value) === (NavigationMode.Auto))) { + else if ((value) === (NavigationMode.Auto)) { return true } else { @@ -10072,13 +10074,13 @@ export class TypeChecker { } } static isNavigationOperation(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationOperation.PUSH))) { + if ((value) === (NavigationOperation.PUSH)) { return true } - else if (((value) === (NavigationOperation.POP))) { + else if ((value) === (NavigationOperation.POP)) { return true } - else if (((value) === (NavigationOperation.REPLACE))) { + else if ((value) === (NavigationOperation.REPLACE)) { return true } else { @@ -10097,16 +10099,16 @@ export class TypeChecker { } } static isNavigationSystemTransitionType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationSystemTransitionType.DEFAULT))) { + if ((value) === (NavigationSystemTransitionType.DEFAULT)) { return true } - else if (((value) === (NavigationSystemTransitionType.NONE))) { + else if ((value) === (NavigationSystemTransitionType.NONE)) { return true } - else if (((value) === (NavigationSystemTransitionType.TITLE))) { + else if ((value) === (NavigationSystemTransitionType.TITLE)) { return true } - else if (((value) === (NavigationSystemTransitionType.CONTENT))) { + else if ((value) === (NavigationSystemTransitionType.CONTENT)) { return true } else { @@ -10114,13 +10116,13 @@ export class TypeChecker { } } static isNavigationTitleMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationTitleMode.Free))) { + if ((value) === (NavigationTitleMode.Free)) { return true } - else if (((value) === (NavigationTitleMode.Full))) { + else if ((value) === (NavigationTitleMode.Full)) { return true } - else if (((value) === (NavigationTitleMode.Mini))) { + else if ((value) === (NavigationTitleMode.Mini)) { return true } else { @@ -10185,13 +10187,13 @@ export class TypeChecker { } } static isNavigationType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavigationType.Push))) { + if ((value) === (NavigationType.Push)) { return true } - else if (((value) === (NavigationType.Back))) { + else if ((value) === (NavigationType.Back)) { return true } - else if (((value) === (NavigationType.Replace))) { + else if ((value) === (NavigationType.Replace)) { return true } else { @@ -10239,13 +10241,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof NavPathStack") } static isNavRouteMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NavRouteMode.PUSH_WITH_RECREATE))) { + if ((value) === (NavRouteMode.PUSH_WITH_RECREATE)) { return true } - else if (((value) === (NavRouteMode.PUSH))) { + else if ((value) === (NavRouteMode.PUSH)) { return true } - else if (((value) === (NavRouteMode.REPLACE))) { + else if ((value) === (NavRouteMode.REPLACE)) { return true } else { @@ -10267,16 +10269,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof NavRouterInterface") } static isNestedScrollMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (NestedScrollMode.SELF_ONLY))) { + if ((value) === (NestedScrollMode.SELF_ONLY)) { return true } - else if (((value) === (NestedScrollMode.SELF_FIRST))) { + else if ((value) === (NestedScrollMode.SELF_FIRST)) { return true } - else if (((value) === (NestedScrollMode.PARENT_FIRST))) { + else if ((value) === (NestedScrollMode.PARENT_FIRST)) { return true } - else if (((value) === (NestedScrollMode.PARALLEL))) { + else if ((value) === (NestedScrollMode.PARALLEL)) { return true } else { @@ -10338,13 +10340,27 @@ export class TypeChecker { } } static isObscuredReasons(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ObscuredReasons.PLACEHOLDER))) { + if ((value) === (ObscuredReasons.PLACEHOLDER)) { return true } else { throw new Error("Can not discriminate value typeof ObscuredReasons") } } + static isOffscreenCanvas(value: object|string|number|undefined|null|boolean, duplicated_height: boolean, duplicated_width: boolean): boolean { + if ((!duplicated_height) && (value?.hasOwnProperty("height"))) { + return true + } + else if ((!duplicated_width) && (value?.hasOwnProperty("width"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof OffscreenCanvas") + } + } + static isOffscreenCanvasRenderingContext2D(value: object|string|number|undefined|null|boolean): boolean { + throw new Error("Can not discriminate value typeof OffscreenCanvasRenderingContext2D") + } static isOffset(value: object|string|number|undefined|null|boolean, duplicated_dx: boolean, duplicated_dy: boolean): boolean { if ((!duplicated_dx) && (value?.hasOwnProperty("dx"))) { return true @@ -10802,10 +10818,10 @@ export class TypeChecker { } } static isOptionWidthMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (OptionWidthMode.FIT_CONTENT))) { + if ((value) === (OptionWidthMode.FIT_CONTENT)) { return true } - else if (((value) === (OptionWidthMode.FIT_TRIGGER))) { + else if ((value) === (OptionWidthMode.FIT_TRIGGER)) { return true } else { @@ -10847,13 +10863,13 @@ export class TypeChecker { } } static isOutlineStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (OutlineStyle.SOLID))) { + if ((value) === (OutlineStyle.SOLID)) { return true } - else if (((value) === (OutlineStyle.DASHED))) { + else if ((value) === (OutlineStyle.DASHED)) { return true } - else if (((value) === (OutlineStyle.DOTTED))) { + else if ((value) === (OutlineStyle.DOTTED)) { return true } else { @@ -10883,10 +10899,10 @@ export class TypeChecker { } } static isOverScrollMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (OverScrollMode.NEVER))) { + if ((value) === (OverScrollMode.NEVER)) { return true } - else if (((value) === (OverScrollMode.ALWAYS))) { + else if ((value) === (OverScrollMode.ALWAYS)) { return true } else { @@ -10934,28 +10950,28 @@ export class TypeChecker { } } static isPanDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PanDirection.None))) { + if ((value) === (PanDirection.None)) { return true } - else if (((value) === (PanDirection.Horizontal))) { + else if ((value) === (PanDirection.Horizontal)) { return true } - else if (((value) === (PanDirection.Left))) { + else if ((value) === (PanDirection.Left)) { return true } - else if (((value) === (PanDirection.Right))) { + else if ((value) === (PanDirection.Right)) { return true } - else if (((value) === (PanDirection.Vertical))) { + else if ((value) === (PanDirection.Vertical)) { return true } - else if (((value) === (PanDirection.Up))) { + else if ((value) === (PanDirection.Up)) { return true } - else if (((value) === (PanDirection.Down))) { + else if ((value) === (PanDirection.Down)) { return true } - else if (((value) === (PanDirection.All))) { + else if ((value) === (PanDirection.All)) { return true } else { @@ -11004,7 +11020,7 @@ export class TypeChecker { } } static isPanelHeight(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PanelHeight.WRAP_CONTENT))) { + if ((value) === (PanelHeight.WRAP_CONTENT)) { return true } else { @@ -11015,13 +11031,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PanelInterface") } static isPanelMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PanelMode.Mini))) { + if ((value) === (PanelMode.Mini)) { return true } - else if (((value) === (PanelMode.Half))) { + else if ((value) === (PanelMode.Half)) { return true } - else if (((value) === (PanelMode.Full))) { + else if ((value) === (PanelMode.Full)) { return true } else { @@ -11029,16 +11045,16 @@ export class TypeChecker { } } static isPanelType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PanelType.Minibar))) { + if ((value) === (PanelType.Minibar)) { return true } - else if (((value) === (PanelType.Foldable))) { + else if ((value) === (PanelType.Foldable)) { return true } - else if (((value) === (PanelType.Temporary))) { + else if ((value) === (PanelType.Temporary)) { return true } - else if (((value) === (PanelType.CUSTOM))) { + else if ((value) === (PanelType.CUSTOM)) { return true } else { @@ -11172,13 +11188,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ParticleConfigs") } static isParticleEmitterShape(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ParticleEmitterShape.RECTANGLE))) { + if ((value) === (ParticleEmitterShape.RECTANGLE)) { return true } - else if (((value) === (ParticleEmitterShape.CIRCLE))) { + else if ((value) === (ParticleEmitterShape.CIRCLE)) { return true } - else if (((value) === (ParticleEmitterShape.ELLIPSE))) { + else if ((value) === (ParticleEmitterShape.ELLIPSE)) { return true } else { @@ -11209,10 +11225,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ParticlePropertyUpdaterConfigs") } static isParticleType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ParticleType.POINT))) { + if ((value) === (ParticleType.POINT)) { return true } - else if (((value) === (ParticleType.IMAGE))) { + else if ((value) === (ParticleType.IMAGE)) { return true } else { @@ -11220,13 +11236,13 @@ export class TypeChecker { } } static isParticleUpdater(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ParticleUpdater.NONE))) { + if ((value) === (ParticleUpdater.NONE)) { return true } - else if (((value) === (ParticleUpdater.RANDOM))) { + else if ((value) === (ParticleUpdater.RANDOM)) { return true } - else if (((value) === (ParticleUpdater.CURVE))) { + else if ((value) === (ParticleUpdater.CURVE)) { return true } else { @@ -11267,10 +11283,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PasteButtonInterface") } static isPasteButtonOnClickResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PasteButtonOnClickResult.SUCCESS))) { + if ((value) === (PasteButtonOnClickResult.SUCCESS)) { return true } - else if (((value) === (PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED))) { + else if ((value) === (PasteButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED)) { return true } else { @@ -11292,7 +11308,7 @@ export class TypeChecker { } } static isPasteDescription(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PasteDescription.PASTE))) { + if ((value) === (PasteDescription.PASTE)) { return true } else { @@ -11308,7 +11324,7 @@ export class TypeChecker { } } static isPasteIconStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PasteIconStyle.LINES))) { + if ((value) === (PasteIconStyle.LINES)) { return true } else { @@ -11393,10 +11409,10 @@ export class TypeChecker { } } static isPatternLockChallengeResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PatternLockChallengeResult.CORRECT))) { + if ((value) === (PatternLockChallengeResult.CORRECT)) { return true } - else if (((value) === (PatternLockChallengeResult.WRONG))) { + else if ((value) === (PatternLockChallengeResult.WRONG)) { return true } else { @@ -11410,13 +11426,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PatternLockInterface") } static isPerfMonitorActionType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PerfMonitorActionType.LAST_DOWN))) { + if ((value) === (PerfMonitorActionType.LAST_DOWN)) { return true } - else if (((value) === (PerfMonitorActionType.LAST_UP))) { + else if ((value) === (PerfMonitorActionType.LAST_UP)) { return true } - else if (((value) === (PerfMonitorActionType.FIRST_MOVE))) { + else if ((value) === (PerfMonitorActionType.FIRST_MOVE)) { return true } else { @@ -11424,19 +11440,19 @@ export class TypeChecker { } } static isPerfMonitorSourceType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PerfMonitorSourceType.PERF_TOUCH_EVENT))) { + if ((value) === (PerfMonitorSourceType.PERF_TOUCH_EVENT)) { return true } - else if (((value) === (PerfMonitorSourceType.PERF_MOUSE_EVENT))) { + else if ((value) === (PerfMonitorSourceType.PERF_MOUSE_EVENT)) { return true } - else if (((value) === (PerfMonitorSourceType.PERF_TOUCHPAD_EVENT))) { + else if ((value) === (PerfMonitorSourceType.PERF_TOUCHPAD_EVENT)) { return true } - else if (((value) === (PerfMonitorSourceType.PERF_JOYSTICK_EVENT))) { + else if ((value) === (PerfMonitorSourceType.PERF_JOYSTICK_EVENT)) { return true } - else if (((value) === (PerfMonitorSourceType.PERF_KEY_EVENT))) { + else if ((value) === (PerfMonitorSourceType.PERF_KEY_EVENT)) { return true } else { @@ -11552,13 +11568,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PixelMapMock") } static isPixelRoundCalcPolicy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PixelRoundCalcPolicy.NO_FORCE_ROUND))) { + if ((value) === (PixelRoundCalcPolicy.NO_FORCE_ROUND)) { return true } - else if (((value) === (PixelRoundCalcPolicy.FORCE_CEIL))) { + else if ((value) === (PixelRoundCalcPolicy.FORCE_CEIL)) { return true } - else if (((value) === (PixelRoundCalcPolicy.FORCE_FLOOR))) { + else if ((value) === (PixelRoundCalcPolicy.FORCE_FLOOR)) { return true } else { @@ -11611,40 +11627,40 @@ export class TypeChecker { } } static isPlacement(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Placement.Left))) { + if ((value) === (Placement.Left)) { return true } - else if (((value) === (Placement.Right))) { + else if ((value) === (Placement.Right)) { return true } - else if (((value) === (Placement.Top))) { + else if ((value) === (Placement.Top)) { return true } - else if (((value) === (Placement.Bottom))) { + else if ((value) === (Placement.Bottom)) { return true } - else if (((value) === (Placement.TopLeft))) { + else if ((value) === (Placement.TopLeft)) { return true } - else if (((value) === (Placement.TopRight))) { + else if ((value) === (Placement.TopRight)) { return true } - else if (((value) === (Placement.BottomLeft))) { + else if ((value) === (Placement.BottomLeft)) { return true } - else if (((value) === (Placement.BottomRight))) { + else if ((value) === (Placement.BottomRight)) { return true } - else if (((value) === (Placement.LeftTop))) { + else if ((value) === (Placement.LeftTop)) { return true } - else if (((value) === (Placement.LeftBottom))) { + else if ((value) === (Placement.LeftBottom)) { return true } - else if (((value) === (Placement.RightTop))) { + else if ((value) === (Placement.RightTop)) { return true } - else if (((value) === (Placement.RightBottom))) { + else if ((value) === (Placement.RightBottom)) { return true } else { @@ -11660,19 +11676,19 @@ export class TypeChecker { } } static isPlaybackSpeed(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PlaybackSpeed.Speed_Forward_0_75_X))) { + if ((value) === (PlaybackSpeed.Speed_Forward_0_75_X)) { return true } - else if (((value) === (PlaybackSpeed.Speed_Forward_1_00_X))) { + else if ((value) === (PlaybackSpeed.Speed_Forward_1_00_X)) { return true } - else if (((value) === (PlaybackSpeed.Speed_Forward_1_25_X))) { + else if ((value) === (PlaybackSpeed.Speed_Forward_1_25_X)) { return true } - else if (((value) === (PlaybackSpeed.Speed_Forward_1_75_X))) { + else if ((value) === (PlaybackSpeed.Speed_Forward_1_75_X)) { return true } - else if (((value) === (PlaybackSpeed.Speed_Forward_2_00_X))) { + else if ((value) === (PlaybackSpeed.Speed_Forward_2_00_X)) { return true } else { @@ -11680,16 +11696,16 @@ export class TypeChecker { } } static isPlayMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PlayMode.Normal))) { + if ((value) === (PlayMode.Normal)) { return true } - else if (((value) === (PlayMode.Reverse))) { + else if ((value) === (PlayMode.Reverse)) { return true } - else if (((value) === (PlayMode.Alternate))) { + else if ((value) === (PlayMode.Alternate)) { return true } - else if (((value) === (PlayMode.AlternateReverse))) { + else if ((value) === (PlayMode.AlternateReverse)) { return true } else { @@ -11755,136 +11771,136 @@ export class TypeChecker { } } static isPointerStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PointerStyle.DEFAULT))) { + if ((value) === (PointerStyle.DEFAULT)) { return true } - else if (((value) === (PointerStyle.EAST))) { + else if ((value) === (PointerStyle.EAST)) { return true } - else if (((value) === (PointerStyle.WEST))) { + else if ((value) === (PointerStyle.WEST)) { return true } - else if (((value) === (PointerStyle.SOUTH))) { + else if ((value) === (PointerStyle.SOUTH)) { return true } - else if (((value) === (PointerStyle.NORTH))) { + else if ((value) === (PointerStyle.NORTH)) { return true } - else if (((value) === (PointerStyle.WEST_EAST))) { + else if ((value) === (PointerStyle.WEST_EAST)) { return true } - else if (((value) === (PointerStyle.NORTH_SOUTH))) { + else if ((value) === (PointerStyle.NORTH_SOUTH)) { return true } - else if (((value) === (PointerStyle.NORTH_EAST))) { + else if ((value) === (PointerStyle.NORTH_EAST)) { return true } - else if (((value) === (PointerStyle.NORTH_WEST))) { + else if ((value) === (PointerStyle.NORTH_WEST)) { return true } - else if (((value) === (PointerStyle.SOUTH_EAST))) { + else if ((value) === (PointerStyle.SOUTH_EAST)) { return true } - else if (((value) === (PointerStyle.SOUTH_WEST))) { + else if ((value) === (PointerStyle.SOUTH_WEST)) { return true } - else if (((value) === (PointerStyle.NORTH_EAST_SOUTH_WEST))) { + else if ((value) === (PointerStyle.NORTH_EAST_SOUTH_WEST)) { return true } - else if (((value) === (PointerStyle.NORTH_WEST_SOUTH_EAST))) { + else if ((value) === (PointerStyle.NORTH_WEST_SOUTH_EAST)) { return true } - else if (((value) === (PointerStyle.CROSS))) { + else if ((value) === (PointerStyle.CROSS)) { return true } - else if (((value) === (PointerStyle.CURSOR_COPY))) { + else if ((value) === (PointerStyle.CURSOR_COPY)) { return true } - else if (((value) === (PointerStyle.CURSOR_FORBID))) { + else if ((value) === (PointerStyle.CURSOR_FORBID)) { return true } - else if (((value) === (PointerStyle.COLOR_SUCKER))) { + else if ((value) === (PointerStyle.COLOR_SUCKER)) { return true } - else if (((value) === (PointerStyle.HAND_GRABBING))) { + else if ((value) === (PointerStyle.HAND_GRABBING)) { return true } - else if (((value) === (PointerStyle.HAND_OPEN))) { + else if ((value) === (PointerStyle.HAND_OPEN)) { return true } - else if (((value) === (PointerStyle.HAND_POINTING))) { + else if ((value) === (PointerStyle.HAND_POINTING)) { return true } - else if (((value) === (PointerStyle.HELP))) { + else if ((value) === (PointerStyle.HELP)) { return true } - else if (((value) === (PointerStyle.MOVE))) { + else if ((value) === (PointerStyle.MOVE)) { return true } - else if (((value) === (PointerStyle.RESIZE_LEFT_RIGHT))) { + else if ((value) === (PointerStyle.RESIZE_LEFT_RIGHT)) { return true } - else if (((value) === (PointerStyle.RESIZE_UP_DOWN))) { + else if ((value) === (PointerStyle.RESIZE_UP_DOWN)) { return true } - else if (((value) === (PointerStyle.SCREENSHOT_CHOOSE))) { + else if ((value) === (PointerStyle.SCREENSHOT_CHOOSE)) { return true } - else if (((value) === (PointerStyle.SCREENSHOT_CURSOR))) { + else if ((value) === (PointerStyle.SCREENSHOT_CURSOR)) { return true } - else if (((value) === (PointerStyle.TEXT_CURSOR))) { + else if ((value) === (PointerStyle.TEXT_CURSOR)) { return true } - else if (((value) === (PointerStyle.ZOOM_IN))) { + else if ((value) === (PointerStyle.ZOOM_IN)) { return true } - else if (((value) === (PointerStyle.ZOOM_OUT))) { + else if ((value) === (PointerStyle.ZOOM_OUT)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_EAST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_EAST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_WEST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_WEST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_SOUTH))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_SOUTH)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH_SOUTH))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH_SOUTH)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH_EAST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH_EAST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH_WEST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH_WEST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_SOUTH_EAST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_SOUTH_EAST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_SOUTH_WEST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_SOUTH_WEST)) { return true } - else if (((value) === (PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST))) { + else if ((value) === (PointerStyle.MIDDLE_BTN_NORTH_SOUTH_WEST_EAST)) { return true } - else if (((value) === (PointerStyle.HORIZONTAL_TEXT_CURSOR))) { + else if ((value) === (PointerStyle.HORIZONTAL_TEXT_CURSOR)) { return true } - else if (((value) === (PointerStyle.CURSOR_CROSS))) { + else if ((value) === (PointerStyle.CURSOR_CROSS)) { return true } - else if (((value) === (PointerStyle.CURSOR_CIRCLE))) { + else if ((value) === (PointerStyle.CURSOR_CIRCLE)) { return true } - else if (((value) === (PointerStyle.LOADING))) { + else if ((value) === (PointerStyle.LOADING)) { return true } - else if (((value) === (PointerStyle.RUNNING))) { + else if ((value) === (PointerStyle.RUNNING)) { return true } else { @@ -12085,25 +12101,25 @@ export class TypeChecker { } } static isPreDragStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (PreDragStatus.ACTION_DETECTING_STATUS))) { + if ((value) === (PreDragStatus.ACTION_DETECTING_STATUS)) { return true } - else if (((value) === (PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION))) { + else if ((value) === (PreDragStatus.READY_TO_TRIGGER_DRAG_ACTION)) { return true } - else if (((value) === (PreDragStatus.PREVIEW_LIFT_STARTED))) { + else if ((value) === (PreDragStatus.PREVIEW_LIFT_STARTED)) { return true } - else if (((value) === (PreDragStatus.PREVIEW_LIFT_FINISHED))) { + else if ((value) === (PreDragStatus.PREVIEW_LIFT_FINISHED)) { return true } - else if (((value) === (PreDragStatus.PREVIEW_LANDING_STARTED))) { + else if ((value) === (PreDragStatus.PREVIEW_LANDING_STARTED)) { return true } - else if (((value) === (PreDragStatus.PREVIEW_LANDING_FINISHED))) { + else if ((value) === (PreDragStatus.PREVIEW_LANDING_FINISHED)) { return true } - else if (((value) === (PreDragStatus.ACTION_CANCELED_BEFORE_DRAG))) { + else if ((value) === (PreDragStatus.ACTION_CANCELED_BEFORE_DRAG)) { return true } else { @@ -12216,10 +12232,10 @@ export class TypeChecker { } } static isProgressStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ProgressStatus.LOADING))) { + if ((value) === (ProgressStatus.LOADING)) { return true } - else if (((value) === (ProgressStatus.PROGRESSING))) { + else if ((value) === (ProgressStatus.PROGRESSING)) { return true } else { @@ -12227,19 +12243,19 @@ export class TypeChecker { } } static isProgressStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ProgressStyle.Linear))) { + if ((value) === (ProgressStyle.Linear)) { return true } - else if (((value) === (ProgressStyle.Ring))) { + else if ((value) === (ProgressStyle.Ring)) { return true } - else if (((value) === (ProgressStyle.Eclipse))) { + else if ((value) === (ProgressStyle.Eclipse)) { return true } - else if (((value) === (ProgressStyle.ScaleRing))) { + else if ((value) === (ProgressStyle.ScaleRing)) { return true } - else if (((value) === (ProgressStyle.Capsule))) { + else if ((value) === (ProgressStyle.Capsule)) { return true } else { @@ -12264,19 +12280,19 @@ export class TypeChecker { } } static isProgressType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ProgressType.Linear))) { + if ((value) === (ProgressType.Linear)) { return true } - else if (((value) === (ProgressType.Ring))) { + else if ((value) === (ProgressType.Ring)) { return true } - else if (((value) === (ProgressType.Eclipse))) { + else if ((value) === (ProgressType.Eclipse)) { return true } - else if (((value) === (ProgressType.ScaleRing))) { + else if ((value) === (ProgressType.ScaleRing)) { return true } - else if (((value) === (ProgressType.Capsule))) { + else if ((value) === (ProgressType.Capsule)) { return true } else { @@ -12284,16 +12300,16 @@ export class TypeChecker { } } static isProtectedResourceType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ProtectedResourceType.MidiSysex))) { + if ((value) === (ProtectedResourceType.MidiSysex)) { return true } - else if (((value) === (ProtectedResourceType.VIDEO_CAPTURE))) { + else if ((value) === (ProtectedResourceType.VIDEO_CAPTURE)) { return true } - else if (((value) === (ProtectedResourceType.AUDIO_CAPTURE))) { + else if ((value) === (ProtectedResourceType.AUDIO_CAPTURE)) { return true } - else if (((value) === (ProtectedResourceType.SENSOR))) { + else if ((value) === (ProtectedResourceType.SENSOR)) { return true } else { @@ -12360,13 +12376,13 @@ export class TypeChecker { } } static isRadioIndicatorType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RadioIndicatorType.TICK))) { + if ((value) === (RadioIndicatorType.TICK)) { return true } - else if (((value) === (RadioIndicatorType.DOT))) { + else if ((value) === (RadioIndicatorType.DOT)) { return true } - else if (((value) === (RadioIndicatorType.CUSTOM))) { + else if ((value) === (RadioIndicatorType.CUSTOM)) { return true } else { @@ -12515,22 +12531,22 @@ export class TypeChecker { } } static isRectHeightStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RectHeightStyle.TIGHT))) { + if ((value) === (RectHeightStyle.TIGHT)) { return true } - else if (((value) === (RectHeightStyle.MAX))) { + else if ((value) === (RectHeightStyle.MAX)) { return true } - else if (((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE))) { + else if ((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_MIDDLE)) { return true } - else if (((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_TOP))) { + else if ((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_TOP)) { return true } - else if (((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM))) { + else if ((value) === (RectHeightStyle.INCLUDE_LINE_SPACE_BOTTOM)) { return true } - else if (((value) === (RectHeightStyle.STRUT))) { + else if ((value) === (RectHeightStyle.STRUT)) { return true } else { @@ -12580,10 +12596,10 @@ export class TypeChecker { } } static isRectWidthStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RectWidthStyle.TIGHT))) { + if ((value) === (RectWidthStyle.TIGHT)) { return true } - else if (((value) === (RectWidthStyle.MAX))) { + else if ((value) === (RectWidthStyle.MAX)) { return true } else { @@ -12640,19 +12656,19 @@ export class TypeChecker { } } static isRefreshStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RefreshStatus.Inactive))) { + if ((value) === (RefreshStatus.Inactive)) { return true } - else if (((value) === (RefreshStatus.Drag))) { + else if ((value) === (RefreshStatus.Drag)) { return true } - else if (((value) === (RefreshStatus.OverDrag))) { + else if ((value) === (RefreshStatus.OverDrag)) { return true } - else if (((value) === (RefreshStatus.Refresh))) { + else if ((value) === (RefreshStatus.Refresh)) { return true } - else if (((value) === (RefreshStatus.Done))) { + else if ((value) === (RefreshStatus.Done)) { return true } else { @@ -12660,10 +12676,10 @@ export class TypeChecker { } } static isRelateType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RelateType.FILL))) { + if ((value) === (RelateType.FILL)) { return true } - else if (((value) === (RelateType.FIT))) { + else if ((value) === (RelateType.FIT)) { return true } else { @@ -12691,19 +12707,19 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RemoteWindowInterface") } static isRenderExitReason(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RenderExitReason.ProcessAbnormalTermination))) { + if ((value) === (RenderExitReason.ProcessAbnormalTermination)) { return true } - else if (((value) === (RenderExitReason.ProcessWasKilled))) { + else if ((value) === (RenderExitReason.ProcessWasKilled)) { return true } - else if (((value) === (RenderExitReason.ProcessCrashed))) { + else if ((value) === (RenderExitReason.ProcessCrashed)) { return true } - else if (((value) === (RenderExitReason.ProcessOom))) { + else if ((value) === (RenderExitReason.ProcessOom)) { return true } - else if (((value) === (RenderExitReason.ProcessExitUnknown))) { + else if ((value) === (RenderExitReason.ProcessExitUnknown)) { return true } else { @@ -12711,52 +12727,52 @@ export class TypeChecker { } } static isRenderFit(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RenderFit.CENTER))) { + if ((value) === (RenderFit.CENTER)) { return true } - else if (((value) === (RenderFit.TOP))) { + else if ((value) === (RenderFit.TOP)) { return true } - else if (((value) === (RenderFit.BOTTOM))) { + else if ((value) === (RenderFit.BOTTOM)) { return true } - else if (((value) === (RenderFit.LEFT))) { + else if ((value) === (RenderFit.LEFT)) { return true } - else if (((value) === (RenderFit.RIGHT))) { + else if ((value) === (RenderFit.RIGHT)) { return true } - else if (((value) === (RenderFit.TOP_LEFT))) { + else if ((value) === (RenderFit.TOP_LEFT)) { return true } - else if (((value) === (RenderFit.TOP_RIGHT))) { + else if ((value) === (RenderFit.TOP_RIGHT)) { return true } - else if (((value) === (RenderFit.BOTTOM_LEFT))) { + else if ((value) === (RenderFit.BOTTOM_LEFT)) { return true } - else if (((value) === (RenderFit.BOTTOM_RIGHT))) { + else if ((value) === (RenderFit.BOTTOM_RIGHT)) { return true } - else if (((value) === (RenderFit.RESIZE_FILL))) { + else if ((value) === (RenderFit.RESIZE_FILL)) { return true } - else if (((value) === (RenderFit.RESIZE_CONTAIN))) { + else if ((value) === (RenderFit.RESIZE_CONTAIN)) { return true } - else if (((value) === (RenderFit.RESIZE_CONTAIN_TOP_LEFT))) { + else if ((value) === (RenderFit.RESIZE_CONTAIN_TOP_LEFT)) { return true } - else if (((value) === (RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT))) { + else if ((value) === (RenderFit.RESIZE_CONTAIN_BOTTOM_RIGHT)) { return true } - else if (((value) === (RenderFit.RESIZE_COVER))) { + else if ((value) === (RenderFit.RESIZE_COVER)) { return true } - else if (((value) === (RenderFit.RESIZE_COVER_TOP_LEFT))) { + else if ((value) === (RenderFit.RESIZE_COVER_TOP_LEFT)) { return true } - else if (((value) === (RenderFit.RESIZE_COVER_BOTTOM_RIGHT))) { + else if ((value) === (RenderFit.RESIZE_COVER_BOTTOM_RIGHT)) { return true } else { @@ -12772,10 +12788,10 @@ export class TypeChecker { } } static isRenderMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RenderMode.ASYNC_RENDER))) { + if ((value) === (RenderMode.ASYNC_RENDER)) { return true } - else if (((value) === (RenderMode.SYNC_RENDER))) { + else if ((value) === (RenderMode.SYNC_RENDER)) { return true } else { @@ -12797,10 +12813,10 @@ export class TypeChecker { } } static isRenderProcessNotRespondingReason(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RenderProcessNotRespondingReason.INPUT_TIMEOUT))) { + if ((value) === (RenderProcessNotRespondingReason.INPUT_TIMEOUT)) { return true } - else if (((value) === (RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT))) { + else if ((value) === (RenderProcessNotRespondingReason.NAVIGATION_COMMIT_TIMEOUT)) { return true } else { @@ -12808,16 +12824,16 @@ export class TypeChecker { } } static isRepeatMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RepeatMode.Repeat))) { + if ((value) === (RepeatMode.Repeat)) { return true } - else if (((value) === (RepeatMode.Stretch))) { + else if ((value) === (RepeatMode.Stretch)) { return true } - else if (((value) === (RepeatMode.Round))) { + else if ((value) === (RepeatMode.Round)) { return true } - else if (((value) === (RepeatMode.Space))) { + else if ((value) === (RepeatMode.Space)) { return true } else { @@ -12872,10 +12888,10 @@ export class TypeChecker { } } static isResponseType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ResponseType.RightClick))) { + if ((value) === (ResponseType.RightClick)) { return true } - else if (((value) === (ResponseType.LongPress))) { + else if ((value) === (ResponseType.LongPress)) { return true } else { @@ -13005,10 +13021,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RichEditorController") } static isRichEditorDeleteDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RichEditorDeleteDirection.BACKWARD))) { + if ((value) === (RichEditorDeleteDirection.BACKWARD)) { return true } - else if (((value) === (RichEditorDeleteDirection.FORWARD))) { + else if ((value) === (RichEditorDeleteDirection.FORWARD)) { return true } else { @@ -13209,13 +13225,13 @@ export class TypeChecker { } } static isRichEditorResponseType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RichEditorResponseType.RIGHT_CLICK))) { + if ((value) === (RichEditorResponseType.RIGHT_CLICK)) { return true } - else if (((value) === (RichEditorResponseType.LONG_PRESS))) { + else if ((value) === (RichEditorResponseType.LONG_PRESS)) { return true } - else if (((value) === (RichEditorResponseType.SELECT))) { + else if ((value) === (RichEditorResponseType.SELECT)) { return true } else { @@ -13248,16 +13264,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RichEditorSpanStyleOptions") } static isRichEditorSpanType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RichEditorSpanType.TEXT))) { + if ((value) === (RichEditorSpanType.TEXT)) { return true } - else if (((value) === (RichEditorSpanType.IMAGE))) { + else if ((value) === (RichEditorSpanType.IMAGE)) { return true } - else if (((value) === (RichEditorSpanType.MIXED))) { + else if ((value) === (RichEditorSpanType.MIXED)) { return true } - else if (((value) === (RichEditorSpanType.BUILDER))) { + else if ((value) === (RichEditorSpanType.BUILDER)) { return true } else { @@ -13625,13 +13641,13 @@ export class TypeChecker { } } static isRouteType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (RouteType.None))) { + if ((value) === (RouteType.None)) { return true } - else if (((value) === (RouteType.Push))) { + else if ((value) === (RouteType.Push)) { return true } - else if (((value) === (RouteType.Pop))) { + else if ((value) === (RouteType.Pop)) { return true } else { @@ -13698,16 +13714,16 @@ export class TypeChecker { } } static isSafeAreaEdge(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SafeAreaEdge.TOP))) { + if ((value) === (SafeAreaEdge.TOP)) { return true } - else if (((value) === (SafeAreaEdge.BOTTOM))) { + else if ((value) === (SafeAreaEdge.BOTTOM)) { return true } - else if (((value) === (SafeAreaEdge.START))) { + else if ((value) === (SafeAreaEdge.START)) { return true } - else if (((value) === (SafeAreaEdge.END))) { + else if ((value) === (SafeAreaEdge.END)) { return true } else { @@ -13715,13 +13731,13 @@ export class TypeChecker { } } static isSafeAreaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SafeAreaType.SYSTEM))) { + if ((value) === (SafeAreaType.SYSTEM)) { return true } - else if (((value) === (SafeAreaType.CUTOUT))) { + else if ((value) === (SafeAreaType.CUTOUT)) { return true } - else if (((value) === (SafeAreaType.KEYBOARD))) { + else if ((value) === (SafeAreaType.KEYBOARD)) { return true } else { @@ -13740,10 +13756,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SaveButtonInterface") } static isSaveButtonOnClickResult(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SaveButtonOnClickResult.SUCCESS))) { + if ((value) === (SaveButtonOnClickResult.SUCCESS)) { return true } - else if (((value) === (SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED))) { + else if ((value) === (SaveButtonOnClickResult.TEMPORARY_AUTHORIZATION_FAILED)) { return true } else { @@ -13765,40 +13781,40 @@ export class TypeChecker { } } static isSaveDescription(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SaveDescription.DOWNLOAD))) { + if ((value) === (SaveDescription.DOWNLOAD)) { return true } - else if (((value) === (SaveDescription.DOWNLOAD_FILE))) { + else if ((value) === (SaveDescription.DOWNLOAD_FILE)) { return true } - else if (((value) === (SaveDescription.SAVE))) { + else if ((value) === (SaveDescription.SAVE)) { return true } - else if (((value) === (SaveDescription.SAVE_IMAGE))) { + else if ((value) === (SaveDescription.SAVE_IMAGE)) { return true } - else if (((value) === (SaveDescription.SAVE_FILE))) { + else if ((value) === (SaveDescription.SAVE_FILE)) { return true } - else if (((value) === (SaveDescription.DOWNLOAD_AND_SHARE))) { + else if ((value) === (SaveDescription.DOWNLOAD_AND_SHARE)) { return true } - else if (((value) === (SaveDescription.RECEIVE))) { + else if ((value) === (SaveDescription.RECEIVE)) { return true } - else if (((value) === (SaveDescription.CONTINUE_TO_RECEIVE))) { + else if ((value) === (SaveDescription.CONTINUE_TO_RECEIVE)) { return true } - else if (((value) === (SaveDescription.SAVE_TO_GALLERY))) { + else if ((value) === (SaveDescription.SAVE_TO_GALLERY)) { return true } - else if (((value) === (SaveDescription.EXPORT_TO_GALLERY))) { + else if ((value) === (SaveDescription.EXPORT_TO_GALLERY)) { return true } - else if (((value) === (SaveDescription.QUICK_SAVE_TO_GALLERY))) { + else if ((value) === (SaveDescription.QUICK_SAVE_TO_GALLERY)) { return true } - else if (((value) === (SaveDescription.RESAVE_TO_GALLERY))) { + else if ((value) === (SaveDescription.RESAVE_TO_GALLERY)) { return true } else { @@ -13806,13 +13822,13 @@ export class TypeChecker { } } static isSaveIconStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SaveIconStyle.FULL_FILLED))) { + if ((value) === (SaveIconStyle.FULL_FILLED)) { return true } - else if (((value) === (SaveIconStyle.LINES))) { + else if ((value) === (SaveIconStyle.LINES)) { return true } - else if (((value) === (SaveIconStyle.PICTURE))) { + else if ((value) === (SaveIconStyle.PICTURE)) { return true } else { @@ -13984,16 +14000,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ScrollableTargetInfo") } static isScrollAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollAlign.START))) { + if ((value) === (ScrollAlign.START)) { return true } - else if (((value) === (ScrollAlign.CENTER))) { + else if ((value) === (ScrollAlign.CENTER)) { return true } - else if (((value) === (ScrollAlign.END))) { + else if ((value) === (ScrollAlign.END)) { return true } - else if (((value) === (ScrollAlign.AUTO))) { + else if ((value) === (ScrollAlign.AUTO)) { return true } else { @@ -14082,10 +14098,10 @@ export class TypeChecker { } } static isScrollBarDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollBarDirection.Vertical))) { + if ((value) === (ScrollBarDirection.Vertical)) { return true } - else if (((value) === (ScrollBarDirection.Horizontal))) { + else if ((value) === (ScrollBarDirection.Horizontal)) { return true } else { @@ -14110,16 +14126,16 @@ export class TypeChecker { } } static isScrollDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollDirection.Vertical))) { + if ((value) === (ScrollDirection.Vertical)) { return true } - else if (((value) === (ScrollDirection.Horizontal))) { + else if ((value) === (ScrollDirection.Horizontal)) { return true } - else if (((value) === (ScrollDirection.Free))) { + else if ((value) === (ScrollDirection.Free)) { return true } - else if (((value) === (ScrollDirection.None))) { + else if ((value) === (ScrollDirection.None)) { return true } else { @@ -14177,10 +14193,10 @@ export class TypeChecker { } } static isScrollSizeMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollSizeMode.FOLLOW_DETENT))) { + if ((value) === (ScrollSizeMode.FOLLOW_DETENT)) { return true } - else if (((value) === (ScrollSizeMode.CONTINUOUS))) { + else if ((value) === (ScrollSizeMode.CONTINUOUS)) { return true } else { @@ -14188,16 +14204,16 @@ export class TypeChecker { } } static isScrollSnapAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollSnapAlign.NONE))) { + if ((value) === (ScrollSnapAlign.NONE)) { return true } - else if (((value) === (ScrollSnapAlign.START))) { + else if ((value) === (ScrollSnapAlign.START)) { return true } - else if (((value) === (ScrollSnapAlign.CENTER))) { + else if ((value) === (ScrollSnapAlign.CENTER)) { return true } - else if (((value) === (ScrollSnapAlign.END))) { + else if ((value) === (ScrollSnapAlign.END)) { return true } else { @@ -14222,28 +14238,28 @@ export class TypeChecker { } } static isScrollSource(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollSource.DRAG))) { + if ((value) === (ScrollSource.DRAG)) { return true } - else if (((value) === (ScrollSource.FLING))) { + else if ((value) === (ScrollSource.FLING)) { return true } - else if (((value) === (ScrollSource.EDGE_EFFECT))) { + else if ((value) === (ScrollSource.EDGE_EFFECT)) { return true } - else if (((value) === (ScrollSource.OTHER_USER_INPUT))) { + else if ((value) === (ScrollSource.OTHER_USER_INPUT)) { return true } - else if (((value) === (ScrollSource.SCROLL_BAR))) { + else if ((value) === (ScrollSource.SCROLL_BAR)) { return true } - else if (((value) === (ScrollSource.SCROLL_BAR_FLING))) { + else if ((value) === (ScrollSource.SCROLL_BAR_FLING)) { return true } - else if (((value) === (ScrollSource.SCROLLER))) { + else if ((value) === (ScrollSource.SCROLLER)) { return true } - else if (((value) === (ScrollSource.SCROLLER_ANIMATION))) { + else if ((value) === (ScrollSource.SCROLLER_ANIMATION)) { return true } else { @@ -14251,13 +14267,13 @@ export class TypeChecker { } } static isScrollState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ScrollState.Idle))) { + if ((value) === (ScrollState.Idle)) { return true } - else if (((value) === (ScrollState.Scroll))) { + else if ((value) === (ScrollState.Scroll)) { return true } - else if (((value) === (ScrollState.Fling))) { + else if ((value) === (ScrollState.Fling)) { return true } else { @@ -14426,22 +14442,22 @@ export class TypeChecker { } } static isSearchType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SearchType.NORMAL))) { + if ((value) === (SearchType.NORMAL)) { return true } - else if (((value) === (SearchType.NUMBER))) { + else if ((value) === (SearchType.NUMBER)) { return true } - else if (((value) === (SearchType.PHONE_NUMBER))) { + else if ((value) === (SearchType.PHONE_NUMBER)) { return true } - else if (((value) === (SearchType.EMAIL))) { + else if ((value) === (SearchType.EMAIL)) { return true } - else if (((value) === (SearchType.NUMBER_DECIMAL))) { + else if ((value) === (SearchType.NUMBER_DECIMAL)) { return true } - else if (((value) === (SearchType.URL))) { + else if ((value) === (SearchType.URL)) { return true } else { @@ -14472,10 +14488,10 @@ export class TypeChecker { } } static isSecurityComponentLayoutDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SecurityComponentLayoutDirection.HORIZONTAL))) { + if ((value) === (SecurityComponentLayoutDirection.HORIZONTAL)) { return true } - else if (((value) === (SecurityComponentLayoutDirection.VERTICAL))) { + else if ((value) === (SecurityComponentLayoutDirection.VERTICAL)) { return true } else { @@ -14557,16 +14573,16 @@ export class TypeChecker { } } static isSeekMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SeekMode.PreviousKeyframe))) { + if ((value) === (SeekMode.PreviousKeyframe)) { return true } - else if (((value) === (SeekMode.NextKeyframe))) { + else if ((value) === (SeekMode.NextKeyframe)) { return true } - else if (((value) === (SeekMode.ClosestKeyframe))) { + else if ((value) === (SeekMode.ClosestKeyframe)) { return true } - else if (((value) === (SeekMode.Accurate))) { + else if ((value) === (SeekMode.Accurate)) { return true } else { @@ -14639,10 +14655,10 @@ export class TypeChecker { } } static isSelectedMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SelectedMode.INDICATOR))) { + if ((value) === (SelectedMode.INDICATOR)) { return true } - else if (((value) === (SelectedMode.BOARD))) { + else if ((value) === (SelectedMode.BOARD)) { return true } else { @@ -14706,13 +14722,13 @@ export class TypeChecker { } } static isSelectStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SelectStatus.All))) { + if ((value) === (SelectStatus.All)) { return true } - else if (((value) === (SelectStatus.Part))) { + else if ((value) === (SelectStatus.Part)) { return true } - else if (((value) === (SelectStatus.None))) { + else if ((value) === (SelectStatus.None)) { return true } else { @@ -14743,22 +14759,22 @@ export class TypeChecker { } } static isShadowStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ShadowStyle.OUTER_DEFAULT_XS))) { + if ((value) === (ShadowStyle.OUTER_DEFAULT_XS)) { return true } - else if (((value) === (ShadowStyle.OUTER_DEFAULT_SM))) { + else if ((value) === (ShadowStyle.OUTER_DEFAULT_SM)) { return true } - else if (((value) === (ShadowStyle.OUTER_DEFAULT_MD))) { + else if ((value) === (ShadowStyle.OUTER_DEFAULT_MD)) { return true } - else if (((value) === (ShadowStyle.OUTER_DEFAULT_LG))) { + else if ((value) === (ShadowStyle.OUTER_DEFAULT_LG)) { return true } - else if (((value) === (ShadowStyle.OUTER_FLOATING_SM))) { + else if ((value) === (ShadowStyle.OUTER_FLOATING_SM)) { return true } - else if (((value) === (ShadowStyle.OUTER_FLOATING_MD))) { + else if ((value) === (ShadowStyle.OUTER_FLOATING_MD)) { return true } else { @@ -14766,10 +14782,10 @@ export class TypeChecker { } } static isShadowType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ShadowType.COLOR))) { + if ((value) === (ShadowType.COLOR)) { return true } - else if (((value) === (ShadowType.BLUR))) { + else if ((value) === (ShadowType.BLUR)) { return true } else { @@ -14821,10 +14837,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ShapeInterface") } static isSharedTransitionEffectType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SharedTransitionEffectType.Static))) { + if ((value) === (SharedTransitionEffectType.Static)) { return true } - else if (((value) === (SharedTransitionEffectType.Exchange))) { + else if ((value) === (SharedTransitionEffectType.Exchange)) { return true } else { @@ -14877,16 +14893,16 @@ export class TypeChecker { } } static isSheetKeyboardAvoidMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SheetKeyboardAvoidMode.NONE))) { + if ((value) === (SheetKeyboardAvoidMode.NONE)) { return true } - else if (((value) === (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE))) { + else if ((value) === (SheetKeyboardAvoidMode.TRANSLATE_AND_RESIZE)) { return true } - else if (((value) === (SheetKeyboardAvoidMode.RESIZE_ONLY))) { + else if ((value) === (SheetKeyboardAvoidMode.RESIZE_ONLY)) { return true } - else if (((value) === (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL))) { + else if ((value) === (SheetKeyboardAvoidMode.TRANSLATE_AND_SCROLL)) { return true } else { @@ -14894,10 +14910,10 @@ export class TypeChecker { } } static isSheetMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SheetMode.OVERLAY))) { + if ((value) === (SheetMode.OVERLAY)) { return true } - else if (((value) === (SheetMode.EMBEDDED))) { + else if ((value) === (SheetMode.EMBEDDED)) { return true } else { @@ -14985,13 +15001,13 @@ export class TypeChecker { } } static isSheetSize(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SheetSize.MEDIUM))) { + if ((value) === (SheetSize.MEDIUM)) { return true } - else if (((value) === (SheetSize.LARGE))) { + else if ((value) === (SheetSize.LARGE)) { return true } - else if (((value) === (SheetSize.FIT_CONTENT))) { + else if ((value) === (SheetSize.FIT_CONTENT)) { return true } else { @@ -15010,13 +15026,13 @@ export class TypeChecker { } } static isSheetType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SheetType.BOTTOM))) { + if ((value) === (SheetType.BOTTOM)) { return true } - else if (((value) === (SheetType.CENTER))) { + else if ((value) === (SheetType.CENTER)) { return true } - else if (((value) === (SheetType.POPUP))) { + else if ((value) === (SheetType.POPUP)) { return true } else { @@ -15065,13 +15081,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SideBarContainerInterface") } static isSideBarContainerType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SideBarContainerType.Embed))) { + if ((value) === (SideBarContainerType.Embed)) { return true } - else if (((value) === (SideBarContainerType.Overlay))) { + else if ((value) === (SideBarContainerType.Overlay)) { return true } - else if (((value) === (SideBarContainerType.AUTO))) { + else if ((value) === (SideBarContainerType.AUTO)) { return true } else { @@ -15079,10 +15095,10 @@ export class TypeChecker { } } static isSideBarPosition(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SideBarPosition.Start))) { + if ((value) === (SideBarPosition.Start)) { return true } - else if (((value) === (SideBarPosition.End))) { + else if ((value) === (SideBarPosition.End)) { return true } else { @@ -15123,19 +15139,19 @@ export class TypeChecker { } } static isSizeType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SizeType.Auto))) { + if ((value) === (SizeType.Auto)) { return true } - else if (((value) === (SizeType.XS))) { + else if ((value) === (SizeType.XS)) { return true } - else if (((value) === (SizeType.SM))) { + else if ((value) === (SizeType.SM)) { return true } - else if (((value) === (SizeType.MD))) { + else if ((value) === (SizeType.MD)) { return true } - else if (((value) === (SizeType.LG))) { + else if ((value) === (SizeType.LG)) { return true } else { @@ -15143,22 +15159,22 @@ export class TypeChecker { } } static isSlideEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SlideEffect.Left))) { + if ((value) === (SlideEffect.Left)) { return true } - else if (((value) === (SlideEffect.Right))) { + else if ((value) === (SlideEffect.Right)) { return true } - else if (((value) === (SlideEffect.Top))) { + else if ((value) === (SlideEffect.Top)) { return true } - else if (((value) === (SlideEffect.Bottom))) { + else if ((value) === (SlideEffect.Bottom)) { return true } - else if (((value) === (SlideEffect.START))) { + else if ((value) === (SlideEffect.START)) { return true } - else if (((value) === (SlideEffect.END))) { + else if ((value) === (SlideEffect.END)) { return true } else { @@ -15256,13 +15272,13 @@ export class TypeChecker { } } static isSliderBlockType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SliderBlockType.DEFAULT))) { + if ((value) === (SliderBlockType.DEFAULT)) { return true } - else if (((value) === (SliderBlockType.IMAGE))) { + else if ((value) === (SliderBlockType.IMAGE)) { return true } - else if (((value) === (SliderBlockType.SHAPE))) { + else if ((value) === (SliderBlockType.SHAPE)) { return true } else { @@ -15270,16 +15286,16 @@ export class TypeChecker { } } static isSliderChangeMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SliderChangeMode.Begin))) { + if ((value) === (SliderChangeMode.Begin)) { return true } - else if (((value) === (SliderChangeMode.Moving))) { + else if ((value) === (SliderChangeMode.Moving)) { return true } - else if (((value) === (SliderChangeMode.End))) { + else if ((value) === (SliderChangeMode.End)) { return true } - else if (((value) === (SliderChangeMode.Click))) { + else if ((value) === (SliderChangeMode.Click)) { return true } else { @@ -15307,13 +15323,13 @@ export class TypeChecker { } } static isSliderInteraction(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SliderInteraction.SLIDE_AND_CLICK))) { + if ((value) === (SliderInteraction.SLIDE_AND_CLICK)) { return true } - else if (((value) === (SliderInteraction.SLIDE_ONLY))) { + else if ((value) === (SliderInteraction.SLIDE_ONLY)) { return true } - else if (((value) === (SliderInteraction.SLIDE_AND_CLICK_UP))) { + else if ((value) === (SliderInteraction.SLIDE_AND_CLICK_UP)) { return true } else { @@ -15350,13 +15366,13 @@ export class TypeChecker { } } static isSliderStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SliderStyle.OutSet))) { + if ((value) === (SliderStyle.OutSet)) { return true } - else if (((value) === (SliderStyle.InSet))) { + else if ((value) === (SliderStyle.InSet)) { return true } - else if (((value) === (SliderStyle.NONE))) { + else if ((value) === (SliderStyle.NONE)) { return true } else { @@ -15375,22 +15391,22 @@ export class TypeChecker { } } static isSourceTool(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SourceTool.Unknown))) { + if ((value) === (SourceTool.Unknown)) { return true } - else if (((value) === (SourceTool.Finger))) { + else if ((value) === (SourceTool.Finger)) { return true } - else if (((value) === (SourceTool.Pen))) { + else if ((value) === (SourceTool.Pen)) { return true } - else if (((value) === (SourceTool.MOUSE))) { + else if ((value) === (SourceTool.MOUSE)) { return true } - else if (((value) === (SourceTool.TOUCHPAD))) { + else if ((value) === (SourceTool.TOUCHPAD)) { return true } - else if (((value) === (SourceTool.JOYSTICK))) { + else if ((value) === (SourceTool.JOYSTICK)) { return true } else { @@ -15398,13 +15414,13 @@ export class TypeChecker { } } static isSourceType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SourceType.Unknown))) { + if ((value) === (SourceType.Unknown)) { return true } - else if (((value) === (SourceType.Mouse))) { + else if ((value) === (SourceType.Mouse)) { return true } - else if (((value) === (SourceType.TouchScreen))) { + else if ((value) === (SourceType.TouchScreen)) { return true } else { @@ -15484,16 +15500,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SpringProp") } static isSslError(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SslError.Invalid))) { + if ((value) === (SslError.Invalid)) { return true } - else if (((value) === (SslError.HostMismatch))) { + else if ((value) === (SslError.HostMismatch)) { return true } - else if (((value) === (SslError.DateInvalid))) { + else if ((value) === (SslError.DateInvalid)) { return true } - else if (((value) === (SslError.Untrusted))) { + else if ((value) === (SslError.Untrusted)) { return true } else { @@ -15629,13 +15645,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof StepperItemInterface") } static isSticky(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Sticky.None))) { + if ((value) === (Sticky.None)) { return true } - else if (((value) === (Sticky.Normal))) { + else if ((value) === (Sticky.Normal)) { return true } - else if (((value) === (Sticky.Opacity))) { + else if ((value) === (Sticky.Opacity)) { return true } else { @@ -15643,13 +15659,13 @@ export class TypeChecker { } } static isStickyStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (StickyStyle.None))) { + if ((value) === (StickyStyle.None)) { return true } - else if (((value) === (StickyStyle.Header))) { + else if ((value) === (StickyStyle.Header)) { return true } - else if (((value) === (StickyStyle.Footer))) { + else if ((value) === (StickyStyle.Footer)) { return true } else { @@ -15693,43 +15709,43 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof StyledStringController") } static isStyledStringKey(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (StyledStringKey.FONT))) { + if ((value) === (StyledStringKey.FONT)) { return true } - else if (((value) === (StyledStringKey.DECORATION))) { + else if ((value) === (StyledStringKey.DECORATION)) { return true } - else if (((value) === (StyledStringKey.BASELINE_OFFSET))) { + else if ((value) === (StyledStringKey.BASELINE_OFFSET)) { return true } - else if (((value) === (StyledStringKey.LETTER_SPACING))) { + else if ((value) === (StyledStringKey.LETTER_SPACING)) { return true } - else if (((value) === (StyledStringKey.TEXT_SHADOW))) { + else if ((value) === (StyledStringKey.TEXT_SHADOW)) { return true } - else if (((value) === (StyledStringKey.LINE_HEIGHT))) { + else if ((value) === (StyledStringKey.LINE_HEIGHT)) { return true } - else if (((value) === (StyledStringKey.BACKGROUND_COLOR))) { + else if ((value) === (StyledStringKey.BACKGROUND_COLOR)) { return true } - else if (((value) === (StyledStringKey.URL))) { + else if ((value) === (StyledStringKey.URL)) { return true } - else if (((value) === (StyledStringKey.GESTURE))) { + else if ((value) === (StyledStringKey.GESTURE)) { return true } - else if (((value) === (StyledStringKey.PARAGRAPH_STYLE))) { + else if ((value) === (StyledStringKey.PARAGRAPH_STYLE)) { return true } - else if (((value) === (StyledStringKey.IMAGE))) { + else if ((value) === (StyledStringKey.IMAGE)) { return true } - else if (((value) === (StyledStringKey.CUSTOM_SPAN))) { + else if ((value) === (StyledStringKey.CUSTOM_SPAN)) { return true } - else if (((value) === (StyledStringKey.USER_DATA))) { + else if ((value) === (StyledStringKey.USER_DATA)) { return true } else { @@ -15762,13 +15778,13 @@ export class TypeChecker { } } static isSubMenuExpandingMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SubMenuExpandingMode.SIDE_EXPAND))) { + if ((value) === (SubMenuExpandingMode.SIDE_EXPAND)) { return true } - else if (((value) === (SubMenuExpandingMode.EMBEDDED_EXPAND))) { + else if ((value) === (SubMenuExpandingMode.EMBEDDED_EXPAND)) { return true } - else if (((value) === (SubMenuExpandingMode.STACK_EXPAND))) { + else if ((value) === (SubMenuExpandingMode.STACK_EXPAND)) { return true } else { @@ -15863,13 +15879,13 @@ export class TypeChecker { } } static isSwipeActionState(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwipeActionState.COLLAPSED))) { + if ((value) === (SwipeActionState.COLLAPSED)) { return true } - else if (((value) === (SwipeActionState.EXPANDED))) { + else if ((value) === (SwipeActionState.EXPANDED)) { return true } - else if (((value) === (SwipeActionState.ACTIONING))) { + else if ((value) === (SwipeActionState.ACTIONING)) { return true } else { @@ -15877,16 +15893,16 @@ export class TypeChecker { } } static isSwipeDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwipeDirection.None))) { + if ((value) === (SwipeDirection.None)) { return true } - else if (((value) === (SwipeDirection.Horizontal))) { + else if ((value) === (SwipeDirection.Horizontal)) { return true } - else if (((value) === (SwipeDirection.Vertical))) { + else if ((value) === (SwipeDirection.Vertical)) { return true } - else if (((value) === (SwipeDirection.All))) { + else if ((value) === (SwipeDirection.All)) { return true } else { @@ -15894,10 +15910,10 @@ export class TypeChecker { } } static isSwipeEdgeEffect(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwipeEdgeEffect.Spring))) { + if ((value) === (SwipeEdgeEffect.Spring)) { return true } - else if (((value) === (SwipeEdgeEffect.None))) { + else if ((value) === (SwipeEdgeEffect.None)) { return true } else { @@ -16060,16 +16076,16 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SwiperController") } static isSwiperDisplayMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwiperDisplayMode.Stretch))) { + if ((value) === (SwiperDisplayMode.Stretch)) { return true } - else if (((value) === (SwiperDisplayMode.AutoLinear))) { + else if ((value) === (SwiperDisplayMode.AutoLinear)) { return true } - else if (((value) === (SwiperDisplayMode.STRETCH))) { + else if ((value) === (SwiperDisplayMode.STRETCH)) { return true } - else if (((value) === (SwiperDisplayMode.AUTO_LINEAR))) { + else if ((value) === (SwiperDisplayMode.AUTO_LINEAR)) { return true } else { @@ -16080,10 +16096,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SwiperInterface") } static isSwiperNestedScrollMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SwiperNestedScrollMode.SELF_ONLY))) { + if ((value) === (SwiperNestedScrollMode.SELF_ONLY)) { return true } - else if (((value) === (SwiperNestedScrollMode.SELF_FIRST))) { + else if ((value) === (SwiperNestedScrollMode.SELF_FIRST)) { return true } else { @@ -16111,13 +16127,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SymbolEffect") } static isSymbolEffectStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SymbolEffectStrategy.NONE))) { + if ((value) === (SymbolEffectStrategy.NONE)) { return true } - else if (((value) === (SymbolEffectStrategy.SCALE))) { + else if ((value) === (SymbolEffectStrategy.SCALE)) { return true } - else if (((value) === (SymbolEffectStrategy.HIERARCHICAL))) { + else if ((value) === (SymbolEffectStrategy.HIERARCHICAL)) { return true } else { @@ -16156,13 +16172,13 @@ export class TypeChecker { } } static isSymbolRenderingStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (SymbolRenderingStrategy.SINGLE))) { + if ((value) === (SymbolRenderingStrategy.SINGLE)) { return true } - else if (((value) === (SymbolRenderingStrategy.MULTIPLE_COLOR))) { + else if ((value) === (SymbolRenderingStrategy.MULTIPLE_COLOR)) { return true } - else if (((value) === (SymbolRenderingStrategy.MULTIPLE_OPACITY))) { + else if ((value) === (SymbolRenderingStrategy.MULTIPLE_OPACITY)) { return true } else { @@ -16203,6 +16219,9 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SystemBarStyle") } } + static isSystemOps(value: object|string|number|undefined|null|boolean): boolean { + throw new Error("Can not discriminate value typeof SystemOps") + } static isTabBarIconStyle(value: object|string|number|undefined|null|boolean, duplicated_selectedColor: boolean, duplicated_unselectedColor: boolean): boolean { if ((!duplicated_selectedColor) && (value?.hasOwnProperty("selectedColor"))) { return true @@ -16437,16 +16456,16 @@ export class TypeChecker { } } static isTextAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextAlign.Center))) { + if ((value) === (TextAlign.Center)) { return true } - else if (((value) === (TextAlign.Start))) { + else if ((value) === (TextAlign.Start)) { return true } - else if (((value) === (TextAlign.End))) { + else if ((value) === (TextAlign.End)) { return true } - else if (((value) === (TextAlign.JUSTIFY))) { + else if ((value) === (TextAlign.JUSTIFY)) { return true } else { @@ -16626,22 +16645,22 @@ export class TypeChecker { } } static isTextAreaType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextAreaType.NORMAL))) { + if ((value) === (TextAreaType.NORMAL)) { return true } - else if (((value) === (TextAreaType.NUMBER))) { + else if ((value) === (TextAreaType.NUMBER)) { return true } - else if (((value) === (TextAreaType.PHONE_NUMBER))) { + else if ((value) === (TextAreaType.PHONE_NUMBER)) { return true } - else if (((value) === (TextAreaType.EMAIL))) { + else if ((value) === (TextAreaType.EMAIL)) { return true } - else if (((value) === (TextAreaType.NUMBER_DECIMAL))) { + else if ((value) === (TextAreaType.NUMBER_DECIMAL)) { return true } - else if (((value) === (TextAreaType.URL))) { + else if ((value) === (TextAreaType.URL)) { return true } else { @@ -16804,13 +16823,13 @@ export class TypeChecker { } } static isTextCase(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextCase.Normal))) { + if ((value) === (TextCase.Normal)) { return true } - else if (((value) === (TextCase.LowerCase))) { + else if ((value) === (TextCase.LowerCase)) { return true } - else if (((value) === (TextCase.UpperCase))) { + else if ((value) === (TextCase.UpperCase)) { return true } else { @@ -16890,10 +16909,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof TextContentControllerBase") } static isTextContentStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextContentStyle.DEFAULT))) { + if ((value) === (TextContentStyle.DEFAULT)) { return true } - else if (((value) === (TextContentStyle.INLINE))) { + else if ((value) === (TextContentStyle.INLINE)) { return true } else { @@ -16921,19 +16940,19 @@ export class TypeChecker { } } static isTextDataDetectorType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextDataDetectorType.PHONE_NUMBER))) { + if ((value) === (TextDataDetectorType.PHONE_NUMBER)) { return true } - else if (((value) === (TextDataDetectorType.URL))) { + else if ((value) === (TextDataDetectorType.URL)) { return true } - else if (((value) === (TextDataDetectorType.EMAIL))) { + else if ((value) === (TextDataDetectorType.EMAIL)) { return true } - else if (((value) === (TextDataDetectorType.ADDRESS))) { + else if ((value) === (TextDataDetectorType.ADDRESS)) { return true } - else if (((value) === (TextDataDetectorType.DATE_TIME))) { + else if ((value) === (TextDataDetectorType.DATE_TIME)) { return true } else { @@ -16955,19 +16974,19 @@ export class TypeChecker { } } static isTextDecorationStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextDecorationStyle.SOLID))) { + if ((value) === (TextDecorationStyle.SOLID)) { return true } - else if (((value) === (TextDecorationStyle.DOUBLE))) { + else if ((value) === (TextDecorationStyle.DOUBLE)) { return true } - else if (((value) === (TextDecorationStyle.DOTTED))) { + else if ((value) === (TextDecorationStyle.DOTTED)) { return true } - else if (((value) === (TextDecorationStyle.DASHED))) { + else if ((value) === (TextDecorationStyle.DASHED)) { return true } - else if (((value) === (TextDecorationStyle.WAVY))) { + else if ((value) === (TextDecorationStyle.WAVY)) { return true } else { @@ -16975,16 +16994,16 @@ export class TypeChecker { } } static isTextDecorationType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextDecorationType.None))) { + if ((value) === (TextDecorationType.None)) { return true } - else if (((value) === (TextDecorationType.Underline))) { + else if ((value) === (TextDecorationType.Underline)) { return true } - else if (((value) === (TextDecorationType.Overline))) { + else if ((value) === (TextDecorationType.Overline)) { return true } - else if (((value) === (TextDecorationType.LineThrough))) { + else if ((value) === (TextDecorationType.LineThrough)) { return true } else { @@ -16992,10 +17011,10 @@ export class TypeChecker { } } static isTextDeleteDirection(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextDeleteDirection.BACKWARD))) { + if ((value) === (TextDeleteDirection.BACKWARD)) { return true } - else if (((value) === (TextDeleteDirection.FORWARD))) { + else if ((value) === (TextDeleteDirection.FORWARD)) { return true } else { @@ -17006,13 +17025,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof TextEditControllerEx") } static isTextHeightAdaptivePolicy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextHeightAdaptivePolicy.MAX_LINES_FIRST))) { + if ((value) === (TextHeightAdaptivePolicy.MAX_LINES_FIRST)) { return true } - else if (((value) === (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST))) { + else if ((value) === (TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST)) { return true } - else if (((value) === (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST))) { + else if ((value) === (TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST)) { return true } else { @@ -17228,10 +17247,10 @@ export class TypeChecker { } } static isTextInputStyle(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextInputStyle.Default))) { + if ((value) === (TextInputStyle.Default)) { return true } - else if (((value) === (TextInputStyle.Inline))) { + else if ((value) === (TextInputStyle.Inline)) { return true } else { @@ -17314,16 +17333,16 @@ export class TypeChecker { } } static isTextOverflow(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextOverflow.None))) { + if ((value) === (TextOverflow.None)) { return true } - else if (((value) === (TextOverflow.Clip))) { + else if ((value) === (TextOverflow.Clip)) { return true } - else if (((value) === (TextOverflow.Ellipsis))) { + else if ((value) === (TextOverflow.Ellipsis)) { return true } - else if (((value) === (TextOverflow.MARQUEE))) { + else if ((value) === (TextOverflow.MARQUEE)) { return true } else { @@ -17501,13 +17520,13 @@ export class TypeChecker { } } static isTextResponseType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextResponseType.RIGHT_CLICK))) { + if ((value) === (TextResponseType.RIGHT_CLICK)) { return true } - else if (((value) === (TextResponseType.LONG_PRESS))) { + else if ((value) === (TextResponseType.LONG_PRESS)) { return true } - else if (((value) === (TextResponseType.SELECT))) { + else if ((value) === (TextResponseType.SELECT)) { return true } else { @@ -17515,13 +17534,13 @@ export class TypeChecker { } } static isTextSelectableMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextSelectableMode.SELECTABLE_UNFOCUSABLE))) { + if ((value) === (TextSelectableMode.SELECTABLE_UNFOCUSABLE)) { return true } - else if (((value) === (TextSelectableMode.SELECTABLE_FOCUSABLE))) { + else if ((value) === (TextSelectableMode.SELECTABLE_FOCUSABLE)) { return true } - else if (((value) === (TextSelectableMode.UNSELECTABLE))) { + else if ((value) === (TextSelectableMode.UNSELECTABLE)) { return true } else { @@ -17537,13 +17556,13 @@ export class TypeChecker { } } static isTextSpanType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TextSpanType.TEXT))) { + if ((value) === (TextSpanType.TEXT)) { return true } - else if (((value) === (TextSpanType.IMAGE))) { + else if ((value) === (TextSpanType.IMAGE)) { return true } - else if (((value) === (TextSpanType.MIXED))) { + else if ((value) === (TextSpanType.MIXED)) { return true } else { @@ -17676,13 +17695,13 @@ export class TypeChecker { } } static isThemeColorMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ThemeColorMode.SYSTEM))) { + if ((value) === (ThemeColorMode.SYSTEM)) { return true } - else if (((value) === (ThemeColorMode.LIGHT))) { + else if ((value) === (ThemeColorMode.LIGHT)) { return true } - else if (((value) === (ThemeColorMode.DARK))) { + else if ((value) === (ThemeColorMode.DARK)) { return true } else { @@ -17690,16 +17709,16 @@ export class TypeChecker { } } static isThreatType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ThreatType.THREAT_ILLEGAL))) { + if ((value) === (ThreatType.THREAT_ILLEGAL)) { return true } - else if (((value) === (ThreatType.THREAT_FRAUD))) { + else if ((value) === (ThreatType.THREAT_FRAUD)) { return true } - else if (((value) === (ThreatType.THREAT_RISK))) { + else if ((value) === (ThreatType.THREAT_RISK)) { return true } - else if (((value) === (ThreatType.THREAT_WARNING))) { + else if ((value) === (ThreatType.THREAT_WARNING)) { return true } else { @@ -17810,10 +17829,10 @@ export class TypeChecker { } } static isTimePickerFormat(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TimePickerFormat.HOUR_MINUTE))) { + if ((value) === (TimePickerFormat.HOUR_MINUTE)) { return true } - else if (((value) === (TimePickerFormat.HOUR_MINUTE_SECOND))) { + else if ((value) === (TimePickerFormat.HOUR_MINUTE_SECOND)) { return true } else { @@ -17849,10 +17868,10 @@ export class TypeChecker { } } static isTitleHeight(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TitleHeight.MainOnly))) { + if ((value) === (TitleHeight.MainOnly)) { return true } - else if (((value) === (TitleHeight.MainWithSub))) { + else if ((value) === (TitleHeight.MainWithSub)) { return true } else { @@ -17925,13 +17944,13 @@ export class TypeChecker { } } static isToggleType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ToggleType.Checkbox))) { + if ((value) === (ToggleType.Checkbox)) { return true } - else if (((value) === (ToggleType.Switch))) { + else if ((value) === (ToggleType.Switch)) { return true } - else if (((value) === (ToggleType.Button))) { + else if ((value) === (ToggleType.Button)) { return true } else { @@ -17965,13 +17984,13 @@ export class TypeChecker { } } static isToolbarItemStatus(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ToolbarItemStatus.NORMAL))) { + if ((value) === (ToolbarItemStatus.NORMAL)) { return true } - else if (((value) === (ToolbarItemStatus.DISABLED))) { + else if ((value) === (ToolbarItemStatus.DISABLED)) { return true } - else if (((value) === (ToolbarItemStatus.ACTIVE))) { + else if ((value) === (ToolbarItemStatus.ACTIVE)) { return true } else { @@ -18085,13 +18104,13 @@ export class TypeChecker { } } static isTouchTestStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TouchTestStrategy.DEFAULT))) { + if ((value) === (TouchTestStrategy.DEFAULT)) { return true } - else if (((value) === (TouchTestStrategy.FORWARD_COMPETITION))) { + else if ((value) === (TouchTestStrategy.FORWARD_COMPETITION)) { return true } - else if (((value) === (TouchTestStrategy.FORWARD))) { + else if ((value) === (TouchTestStrategy.FORWARD)) { return true } else { @@ -18099,16 +18118,16 @@ export class TypeChecker { } } static isTouchType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TouchType.Down))) { + if ((value) === (TouchType.Down)) { return true } - else if (((value) === (TouchType.Up))) { + else if ((value) === (TouchType.Up)) { return true } - else if (((value) === (TouchType.Move))) { + else if ((value) === (TouchType.Move)) { return true } - else if (((value) === (TouchType.Cancel))) { + else if ((value) === (TouchType.Cancel)) { return true } else { @@ -18116,16 +18135,16 @@ export class TypeChecker { } } static isTransitionEdge(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TransitionEdge.TOP))) { + if ((value) === (TransitionEdge.TOP)) { return true } - else if (((value) === (TransitionEdge.BOTTOM))) { + else if ((value) === (TransitionEdge.BOTTOM)) { return true } - else if (((value) === (TransitionEdge.START))) { + else if ((value) === (TransitionEdge.START)) { return true } - else if (((value) === (TransitionEdge.END))) { + else if ((value) === (TransitionEdge.END)) { return true } else { @@ -18165,10 +18184,10 @@ export class TypeChecker { } } static isTransitionHierarchyStrategy(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TransitionHierarchyStrategy.NONE))) { + if ((value) === (TransitionHierarchyStrategy.NONE)) { return true } - else if (((value) === (TransitionHierarchyStrategy.ADAPTIVE))) { + else if ((value) === (TransitionHierarchyStrategy.ADAPTIVE)) { return true } else { @@ -18196,13 +18215,13 @@ export class TypeChecker { } } static isTransitionType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (TransitionType.All))) { + if ((value) === (TransitionType.All)) { return true } - else if (((value) === (TransitionType.Insert))) { + else if ((value) === (TransitionType.Insert)) { return true } - else if (((value) === (TransitionType.Delete))) { + else if ((value) === (TransitionType.Delete)) { return true } else { @@ -18460,13 +18479,13 @@ export class TypeChecker { } } static isVerticalAlign(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (VerticalAlign.Top))) { + if ((value) === (VerticalAlign.Top)) { return true } - else if (((value) === (VerticalAlign.Center))) { + else if ((value) === (VerticalAlign.Center)) { return true } - else if (((value) === (VerticalAlign.Bottom))) { + else if ((value) === (VerticalAlign.Bottom)) { return true } else { @@ -18559,13 +18578,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof View") } static isViewportFit(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (ViewportFit.AUTO))) { + if ((value) === (ViewportFit.AUTO)) { return true } - else if (((value) === (ViewportFit.CONTAINS))) { + else if ((value) === (ViewportFit.CONTAINS)) { return true } - else if (((value) === (ViewportFit.COVER))) { + else if ((value) === (ViewportFit.COVER)) { return true } else { @@ -18598,13 +18617,13 @@ export class TypeChecker { } } static isVisibility(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Visibility.Visible))) { + if ((value) === (Visibility.Visible)) { return true } - else if (((value) === (Visibility.Hidden))) { + else if ((value) === (Visibility.Hidden)) { return true } - else if (((value) === (Visibility.None))) { + else if ((value) === (Visibility.None)) { return true } else { @@ -18730,10 +18749,10 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WaterFlowInterface") } static isWaterFlowLayoutMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WaterFlowLayoutMode.ALWAYS_TOP_DOWN))) { + if ((value) === (WaterFlowLayoutMode.ALWAYS_TOP_DOWN)) { return true } - else if (((value) === (WaterFlowLayoutMode.SLIDING_WINDOW))) { + else if ((value) === (WaterFlowLayoutMode.SLIDING_WINDOW)) { return true } else { @@ -19120,7 +19139,7 @@ export class TypeChecker { } } static isWebCaptureMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebCaptureMode.HOME_SCREEN))) { + if ((value) === (WebCaptureMode.HOME_SCREEN)) { return true } else { @@ -19140,13 +19159,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WebCookie") } static isWebDarkMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebDarkMode.Off))) { + if ((value) === (WebDarkMode.Off)) { return true } - else if (((value) === (WebDarkMode.On))) { + else if ((value) === (WebDarkMode.On)) { return true } - else if (((value) === (WebDarkMode.Auto))) { + else if ((value) === (WebDarkMode.Auto)) { return true } else { @@ -19154,7 +19173,7 @@ export class TypeChecker { } } static isWebElementType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebElementType.IMAGE))) { + if ((value) === (WebElementType.IMAGE)) { return true } else { @@ -19176,13 +19195,13 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WebInterface") } static isWebKeyboardAvoidMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebKeyboardAvoidMode.RESIZE_VISUAL))) { + if ((value) === (WebKeyboardAvoidMode.RESIZE_VISUAL)) { return true } - else if (((value) === (WebKeyboardAvoidMode.RESIZE_CONTENT))) { + else if ((value) === (WebKeyboardAvoidMode.RESIZE_CONTENT)) { return true } - else if (((value) === (WebKeyboardAvoidMode.OVERLAYS_CONTENT))) { + else if ((value) === (WebKeyboardAvoidMode.OVERLAYS_CONTENT)) { return true } else { @@ -19218,10 +19237,10 @@ export class TypeChecker { } } static isWebLayoutMode(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebLayoutMode.NONE))) { + if ((value) === (WebLayoutMode.NONE)) { return true } - else if (((value) === (WebLayoutMode.FIT_CONTENT))) { + else if ((value) === (WebLayoutMode.FIT_CONTENT)) { return true } else { @@ -19240,19 +19259,19 @@ export class TypeChecker { } } static isWebNavigationType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebNavigationType.UNKNOWN))) { + if ((value) === (WebNavigationType.UNKNOWN)) { return true } - else if (((value) === (WebNavigationType.MAIN_FRAME_NEW_ENTRY))) { + else if ((value) === (WebNavigationType.MAIN_FRAME_NEW_ENTRY)) { return true } - else if (((value) === (WebNavigationType.MAIN_FRAME_EXISTING_ENTRY))) { + else if ((value) === (WebNavigationType.MAIN_FRAME_EXISTING_ENTRY)) { return true } - else if (((value) === (WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME))) { + else if ((value) === (WebNavigationType.NAVIGATION_TYPE_NEW_SUBFRAME)) { return true } - else if (((value) === (WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME))) { + else if ((value) === (WebNavigationType.NAVIGATION_TYPE_AUTO_SUBFRAME)) { return true } else { @@ -19289,7 +19308,7 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WebResourceResponse") } static isWebResponseType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WebResponseType.LONG_PRESS))) { + if ((value) === (WebResponseType.LONG_PRESS)) { return true } else { @@ -19300,25 +19319,25 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof WebviewController") } static isWeek(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (Week.Mon))) { + if ((value) === (Week.Mon)) { return true } - else if (((value) === (Week.Tue))) { + else if ((value) === (Week.Tue)) { return true } - else if (((value) === (Week.Wed))) { + else if ((value) === (Week.Wed)) { return true } - else if (((value) === (Week.Thur))) { + else if ((value) === (Week.Thur)) { return true } - else if (((value) === (Week.Fri))) { + else if ((value) === (Week.Fri)) { return true } - else if (((value) === (Week.Sat))) { + else if ((value) === (Week.Sat)) { return true } - else if (((value) === (Week.Sun))) { + else if ((value) === (Week.Sun)) { return true } else { @@ -19352,19 +19371,19 @@ export class TypeChecker { } } static isWidthBreakpoint(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WidthBreakpoint.WIDTH_XS))) { + if ((value) === (WidthBreakpoint.WIDTH_XS)) { return true } - else if (((value) === (WidthBreakpoint.WIDTH_SM))) { + else if ((value) === (WidthBreakpoint.WIDTH_SM)) { return true } - else if (((value) === (WidthBreakpoint.WIDTH_MD))) { + else if ((value) === (WidthBreakpoint.WIDTH_MD)) { return true } - else if (((value) === (WidthBreakpoint.WIDTH_LG))) { + else if ((value) === (WidthBreakpoint.WIDTH_LG)) { return true } - else if (((value) === (WidthBreakpoint.WIDTH_XL))) { + else if ((value) === (WidthBreakpoint.WIDTH_XL)) { return true } else { @@ -19417,13 +19436,13 @@ export class TypeChecker { } } static isWordBreak(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (WordBreak.NORMAL))) { + if ((value) === (WordBreak.NORMAL)) { return true } - else if (((value) === (WordBreak.BREAK_ALL))) { + else if ((value) === (WordBreak.BREAK_ALL)) { return true } - else if (((value) === (WordBreak.BREAK_WORD))) { + else if ((value) === (WordBreak.BREAK_WORD)) { return true } else { @@ -19494,16 +19513,16 @@ export class TypeChecker { } } static isXComponentType(value: object|string|number|undefined|null|boolean): boolean { - if (((value) === (XComponentType.SURFACE))) { + if ((value) === (XComponentType.SURFACE)) { return true } - else if (((value) === (XComponentType.COMPONENT))) { + else if ((value) === (XComponentType.COMPONENT)) { return true } - else if (((value) === (XComponentType.TEXTURE))) { + else if ((value) === (XComponentType.TEXTURE)) { return true } - else if (((value) === (XComponentType.NODE))) { + else if ((value) === (XComponentType.NODE)) { return true } else { @@ -19528,6 +19547,9 @@ export class TypeChecker { static isArray_Number(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } + static isArray_CustomObject(value: object|string|number|undefined|null): boolean { + return Array.isArray(value) + } static isArray_TouchObject(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } @@ -19618,9 +19640,6 @@ export class TypeChecker { static isArray_LayoutSafeAreaEdge(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } - static isArray_CustomObject(value: object|string|number|undefined|null): boolean { - return Array.isArray(value) - } static isArray_Point(value: object|string|number|undefined|null): boolean { return Array.isArray(value) } diff --git a/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ts b/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ts index ea1ac2b7a8acfc0962a4923c49baadc8dbf793b7..d5974c56873cb6f83e3fe3def11d0992e2b6fd53 100644 --- a/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ts +++ b/arkoala-arkts/arkui/src/handwritten/ArkPageTransition.ts @@ -15,7 +15,7 @@ import { int32 } from "@koalaui/common" import { contextNode, remember, scheduleCallback } from "@koalaui/runtime" -import { PeerNode, PeerNodeType } from "../generated/PeerNode" +import { PeerNode, PeerNodeType } from "../PeerNode" import { CurrentRouter, CurrentRouterTransitionState, diff --git a/arkoala-arkts/arkui/src/index.ts b/arkoala-arkts/arkui/src/index.ts index 2945b8f2492f7c85e4c7e21a6c051daea51935c0..b2ed0e9af0218c6ef301f2703fda18c68eb84357 100644 --- a/arkoala-arkts/arkui/src/index.ts +++ b/arkoala-arkts/arkui/src/index.ts @@ -26,5 +26,8 @@ export * from "./ForEach" export * from "./LazyForEach" export * from "./ohos.router" export * from "./ArkNavigation" +export * from "./PeerNode" +export * from "./generated/Events" +export * from "./generated/peers/CallbacksChecker" export * from "./peers/ArkTestComponentPeer" export * from "./ArkTestComponent" \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts b/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts index 911c83fd6d64484665284e04ead00080e74f08bf..8bc94db1d5eeb633214b66ec03d58f157b41d263 100644 --- a/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts +++ b/arkoala-arkts/arkui/src/peers/ArkNavigationPeer.ts @@ -18,7 +18,7 @@ import { int32 } from "@koalaui/common" import { KPointer } from "@koalaui/interop" -import { ComponentBase } from "../generated/ComponentBase" +import { ComponentBase } from "../ComponentBase" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./../generated/peers/ArkCommonPeer" import { SystemBarStyle, NavigationCommonTitle, NavigationCustomTitle, NavigationMenuItem, NavigationOperation, NavigationMode, InterceptionModeCallback, NavigationInterception, NavigationInterface, ToolbarItemStatus, ToolbarItem, BarStyle, NavigationTitleOptions, NavigationToolbarOptions, NavigationTitleMode, NavContentInfo, NavigationAnimatedTransition, NavBarPosition } from "./../generated/ArkNavigationInterfaces" @@ -28,7 +28,7 @@ import { Length, ResourceStr, Dimension } from "./../generated/ArkUnitsInterface import { NavPathStack } from "./../generated/ArkNavPathStackMaterialized" import { PixelMap } from "./../generated/ArkPixelMapMaterialized" -import { PeerNode } from "../generated/PeerNode" +import { PeerNode } from "../PeerNode" export class ArkNavigationPeer extends ArkCommonMethodPeer { diff --git a/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts b/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts index 431e97dff35b652f3edd28789c7205917037a342..6ac3f2326d619a6c15a8c98b70aa31a4183c30cb 100644 --- a/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts +++ b/arkoala-arkts/arkui/src/peers/ArkTestComponentPeer.ts @@ -15,12 +15,11 @@ import { int32 } from "@koalaui/common" import { InteropNativeModule, KPointer } from "@koalaui/interop" -import { ComponentBase } from "../generated/ComponentBase" +import { ComponentBase } from "../ComponentBase" import { ArkUIGeneratedNativeModule } from "#components" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "../generated/peers/ArkCommonPeer" -import { PeerNode } from "../generated/PeerNode" +import { PeerNode } from "../PeerNode" import { TestComponentOptions } from "../ArkTestComponent" -import { UserView } from "../UserView" export class ArkTestComponentPeer extends ArkCommonMethodPeer { protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { @@ -43,7 +42,7 @@ export class ArkTestComponentPeer extends ArkCommonMethodPeer { this.onChangeCallback = callback } logAttribute(message: string): void { - InteropNativeModule._AppendGroupedLog(1, message) + InteropNativeModule._AppendGroupedLog(0, message + "\n") } } export interface ArkTestComponentAttributes extends ArkCommonMethodAttributes { diff --git a/arkoala-arkts/arkui/src/sts/arkui.sts b/arkoala-arkts/arkui/src/sts/arkui.sts index 69aa97eceb68694645131f7c72d189853e4f7c1e..8a0ade1b50ab69685bcfa90020e1ecfe2e76fb7e 100644 --- a/arkoala-arkts/arkui/src/sts/arkui.sts +++ b/arkoala-arkts/arkui/src/sts/arkui.sts @@ -29,9 +29,15 @@ export abstract class StructBase { console.log("Struct instantiate redirected") const instance = factory() if (builder !== undefined) builder(instance) - instance.build() + instance._build(builder, content, options) + } + build() { + throw new Error("The struct build() should never be executed directly") + } + + protected _build(style: ((instance: T)=>T)|undefined, content: (() => void)|undefined, options: OptionsT|undefined) { + throw new Error("The struct _build() must have a valid override") } - abstract build() } export enum Color { @@ -94,9 +100,7 @@ export class Button extends CommonMethod { options?: ButtonOptions|string, //content?: () => void ): Button { - //throw new Error("This method should only be called through a @BuilderLambda redirect") - console.log("Button") - return factory() + throw new Error("This method should only be called through a @BuilderLambda redirect") } static instantiateImpl( @@ -123,10 +127,7 @@ export class Text extends CommonMethod { options?: TextOptions|string, //content?: () => void ): Text { - //throw new Error("This method should only be called through a @BuilderLambda redirect") - - console.log("Text") - return factory() + throw new Error("This method should only be called through a @BuilderLambda redirect") } // TODO: the second argument will be gone after hte plugin is improved @@ -141,7 +142,7 @@ export class Text extends CommonMethod { style(instance) //content() } - + fontColor(value: Color): this { console.log("\.fontColor(", Color[value], ")") return this diff --git a/arkoala-arkts/arkui/types/index-full.d.ts b/arkoala-arkts/arkui/types/index-full.d.ts index 228f2bfde7bb613129437b24e7a0bbf5b35d0ae9..8b4e63c087863a229547fef1c71c9a7e654f464a 100644 --- a/arkoala-arkts/arkui/types/index-full.d.ts +++ b/arkoala-arkts/arkui/types/index-full.d.ts @@ -256,6 +256,10 @@ declare class LazyForEachOps { static SetCurrentIndex(node: number|bigint, index: number): void; static Prepare(node: number|bigint): void; } +declare class SystemOps { + static StartFrame(): number|bigint; + static EndFrame(root: number|bigint): void; +} declare class DrawingCanvas { constructor(pixelmap: PixelMap); drawRect(left: number, top: number, right: number, bottom: number): void; @@ -352,11 +356,12 @@ declare class FrameNode { getPositionToWindowWithTransform(): Position; } declare interface PixelMap { - isEditable: number; - isStrideAlignment: number; + readonly isEditable: boolean; + readonly isStrideAlignment: boolean; readPixelsToBufferSync(dst: ArrayBuffer): void; writeBufferToPixels(src: ArrayBuffer): void; } +declare type CustomNodeBuilder = ((parentNode: number|bigint) => number|bigint); declare type NavExtender_OnUpdateStack = ((value: string) => void); declare class NavExtender { static setUpdateStackCallback(peer: NavPathStack, callback_: NavExtender_OnUpdateStack): void; @@ -997,7 +1002,7 @@ declare class CanvasRenderingContext2D extends CanvasRenderer { declare class OffscreenCanvasRenderingContext2D extends CanvasRenderer { constructor(width: number, height: number, settings?: RenderingContextSettings); constructor(width: number, height: number, settings?: RenderingContextSettings, unit?: LengthMetricsUnit); - toDataURL(type?: string, quality?: any): string; + toDataURL(type?: string, quality?: number): string; transferToImageBitmap(): ImageBitmap; } declare class OffscreenCanvas { @@ -1138,9 +1143,11 @@ declare interface AnimatableArithmetic { multiply(scale: number): AnimatableArithmetic; equals(rhs: AnimatableArithmetic): boolean; } +declare function getContext(component?: Object): Context; declare interface Context { _ContextStub: string; } +declare function postCardAction(component: Object, action: Object): void; declare interface Configuration { readonly colorMode: string; readonly fontScale: number; @@ -1156,6 +1163,8 @@ declare interface ExpectedFrameRateRange { max: number; expected: number; } +declare function $r(value: string, ...params: any[]): Resource; +declare function $rawfile(value: string): Resource; declare enum FinishCallbackType { REMOVED = 0, LOGICALLY = 1, @@ -1325,6 +1334,21 @@ declare interface DragItemInfo { builder?: CustomBuilder; extraInfo?: string; } +declare function animateTo(value: AnimateParam, event: (() => void)): void; +declare function animateToImmediately(value: AnimateParam, event: (() => void)): void; +declare function vp2px(value: number): number; +declare function px2vp(value: number): number; +declare function fp2px(value: number): number; +declare function px2fp(value: number): number; +declare function lpx2px(value: number): number; +declare function px2lpx(value: number): number; +declare namespace focusControl { + function requestFocus(value: string): boolean; +} +declare namespace cursorControl { + function setCursor(value: PointerStyle): void; + function restoreDefault(): void; +} declare interface EventTarget { area: Area; } @@ -2257,9 +2281,9 @@ declare interface Layoutable { } declare interface Measurable { measure(constraint: ConstraintSizeOptions): MeasureResult; - getMargin(): DirectionalEdgesT; - getPadding(): DirectionalEdgesT; - getBorderWidth(): DirectionalEdgesT; + getMargin(): DirectionalEdgesT; + getPadding(): DirectionalEdgesT; + getBorderWidth(): DirectionalEdgesT; } declare interface SizeResult { width: number; @@ -2454,27 +2478,6 @@ declare enum HoverModeAreaType { TOP_SCREEN = 0, BOTTOM_SCREEN = 1, } -declare function getContext(component?: Object): Context; -declare function postCardAction(component: Object, action: Object): void; -declare function $r(value: string, ...params: any[]): Resource; -declare function $rawfile(value: string): Resource; -declare function animateTo(value: AnimateParam, event: (() => void)): void; -declare function animateToImmediately(value: AnimateParam, event: (() => void)): void; -declare function vp2px(value: number): number; -declare function px2vp(value: number): number; -declare function fp2px(value: number): number; -declare function px2fp(value: number): number; -declare function lpx2px(value: number): number; -declare function px2lpx(value: number): number; -declare namespace focusControl { - function requestFocus(value: string): boolean; -} -declare namespace cursorControl { - function setCursor(value: PointerStyle): void; -} -declare namespace cursorControl { - function restoreDefault(): void; -} declare class AppStorage { static ref(propName: string): AbstractProperty | undefined; static setAndRef(propName: string, defaultValue: T): AbstractProperty; @@ -7528,11 +7531,11 @@ declare interface TouchPoint { x: Dimension; y: Dimension; } -declare interface DirectionalEdgesT { - start: T; - end: T; - top: T; - bottom: T; +declare interface DirectionalEdgesT { + start: number; + end: number; + top: number; + bottom: number; } declare interface DividerStyleOptions { strokeWidth?: LengthMetrics; @@ -8847,15 +8850,13 @@ declare class LinearIndicatorAttribute extends CommonMethod void); -declare namespace Profiler { - type Callback_String_Void = ((info: string) => void); -} declare function getInspectorNodes(): Object; declare function getInspectorNodeById(id: number): Object; declare namespace Profiler { - function registerVsyncCallback(callback_: ((info: string) => void)): void; + type Callback_String_Void = ((info: string) => void); } declare namespace Profiler { + function registerVsyncCallback(callback_: ((info: string) => void)): void; function unregisterVsyncCallback(): void; } declare function setAppBgColor(value: string): void; diff --git a/arkoala-arkts/ets-harness/package.json b/arkoala-arkts/ets-harness/package.json index 2138ab059a5127d60858da4a6a4dc37659642fbe..cadbdb01e581b59b033c10f46387d9b75bacd85d 100644 --- a/arkoala-arkts/ets-harness/package.json +++ b/arkoala-arkts/ets-harness/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/ets-harness", - "version": "1.4.8+devel", + "version": "1.5.5+devel", "description": "", "main": "./build/lib/src/launcher.js", "types": "./build/lib/src/launcher.d.ts", @@ -23,9 +23,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.4.8+devel", - "@koalaui/compat": "1.4.8+devel", - "@koalaui/harness": "1.4.8+devel" + "@koalaui/common": "1.5.5+devel", + "@koalaui/compat": "1.5.5+devel", + "@koalaui/harness": "1.5.5+devel" }, "devDependencies": { "@types/chai": "^4.3.1", diff --git a/arkoala-arkts/ets-harness/src/EtsHarnessApplication.ts b/arkoala-arkts/ets-harness/src/EtsHarnessApplication.ts index 38bf4ba7c26a5b59ed2dc621fa254747539fb0e0..83016e900be785d53f0d86b590edce4597fec9ce 100644 --- a/arkoala-arkts/ets-harness/src/EtsHarnessApplication.ts +++ b/arkoala-arkts/ets-harness/src/EtsHarnessApplication.ts @@ -113,8 +113,9 @@ export class EtsHarnessApplication { return true } - emitEvent(type: int32, target: int32, arg0: int32, arg1: int32) { + emitEvent(type: int32, target: int32, arg0: int32, arg1: int32): string { const node = PeerNode.findPeerByNativeId(target) + let result = "0" switch (type) { case 1: { if (node != undefined) { @@ -124,11 +125,15 @@ export class EtsHarnessApplication { break } case 2: { - UserView.startNativeLog(1) + UserView.startNativeLog(0) break; } case 3: { - UserView.stopNativeLog(1) + UserView.stopNativeLog(0) + break; + } + case 4: { + result = UserView.getNativeLog(0) break; } default: { @@ -136,6 +141,7 @@ export class EtsHarnessApplication { break; } } + return result } updateStates(manager: StateManager, root: ComputableState ) { diff --git a/arkoala-arkts/ets-harness/src/ets/pages/case1.ets b/arkoala-arkts/ets-harness/src/ets/pages/case1.ets index 8594a52146b8ff833d3da9c834e46f83d0e43903..98f08cc78f917d946f3d32e72ad1e1411dac2a8e 100644 --- a/arkoala-arkts/ets-harness/src/ets/pages/case1.ets +++ b/arkoala-arkts/ets-harness/src/ets/pages/case1.ets @@ -5,7 +5,6 @@ struct Case1 { build() { TestComponent({ id: 42 }).onChange(() => { this.x++ - console.log("Case1 - value:" + this.x) }) .log("Case1 - value:" + this.x) } diff --git a/arkoala-arkts/ets-harness/src/ets/pages/case2.ets b/arkoala-arkts/ets-harness/src/ets/pages/case2.ets index 30529d8ff43399e65a4711f9e977a7b44a7bf47b..392f423b721054a3cb977c33ac769cf3d6a414c2 100644 --- a/arkoala-arkts/ets-harness/src/ets/pages/case2.ets +++ b/arkoala-arkts/ets-harness/src/ets/pages/case2.ets @@ -5,7 +5,6 @@ struct Case2 { build() { TestComponent({ id: 42 }).onChange(() => { this.x-- - console.log("Case2 - value:" + this.x) }) .log("Case2 - value:" + this.x) } diff --git a/arkoala-arkts/ets-harness/src/loader.ts b/arkoala-arkts/ets-harness/src/loader.ts index 586a48ad776d73d7c0253693835eb97f636d4636..4fabe956a1c2248e01cfcdcbd257aaef9e5b53e0 100644 --- a/arkoala-arkts/ets-harness/src/loader.ts +++ b/arkoala-arkts/ets-harness/src/loader.ts @@ -26,7 +26,7 @@ export interface LoaderOps { } export interface NativeControl extends LoaderOps { - _EmitEvent(type: int32, target: int32, arg0: int32, arg1: int32): void + _EmitEvent(type: int32, target: int32, arg0: int32, arg1: int32): string _RestartWith(page: string): void } @@ -46,20 +46,27 @@ export function nativeModule(): NativeControl { return theModule } +export enum TaskType { + OnChange = 1, + StartLog = 2, + StopLog = 3, + GetLog = 4, +} + export class AppControl { getLog(): string { - return "" + return nativeModule()._EmitEvent(TaskType.GetLog, -1, 0, 0) } - emitTask(type: int32, target: int32, arg1: int32, arg2: int32): AppControl { + emitTask(type: int32, target: int32, arg1: int32 = 0, arg2: int32 = 0): AppControl { nativeModule()._EmitEvent(type, target, arg1, arg2) return this } start(): AppControl { - nativeModule()._EmitEvent(2, -1, 0, 0) + nativeModule()._EmitEvent(TaskType.StartLog, -1, 0, 0) return this } stop(): AppControl { - nativeModule()._EmitEvent(3, -1, 0, 0) + nativeModule()._EmitEvent(TaskType.StopLog, -1, 0, 0) return this } nextFrame(): AppControl { diff --git a/arkoala-arkts/ets-harness/src/test_entry.ts b/arkoala-arkts/ets-harness/src/test_entry.ts index ec112fe5e519d4085f3f10c7974bb5992df68cb7..47cd0f1566f4573dda8c84920a92c6a3d06db363 100644 --- a/arkoala-arkts/ets-harness/src/test_entry.ts +++ b/arkoala-arkts/ets-harness/src/test_entry.ts @@ -1,33 +1,37 @@ import { Assert } from "@koalaui/harness" -import { AppControl } from "./loader" +import { AppControl, TaskType } from "./loader" export function entry(control: AppControl) { suite("Case1", () => { test("StateChange:Increment", () => { + const expected = "Case1 - value:1\nCase1 - value:2\nCase1 - value:3\n" + const componentId = 42 // id from Case1.TestComponent // onChange - control + const actual = control .loadPage("Case1") .start() - .emitTask(1, 42, 0, 0).nextFrame() - .emitTask(1, 42, 0, 0).nextFrame() - .emitTask(1, 42, 0, 0).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() .stop() - let x = 3 - Assert.equal(x, 3, "StateChange test is failed!\n expected: " + 3 + "\ncurrent: " + x) + .getLog() + Assert.equal(expected, actual, "StateChange: Case1 test is failed!") }) }) suite("Case2", () => { test("StateChange:Decrement", () => { + const expected = "Case2 - value:-1\nCase2 - value:-2\nCase2 - value:-3\n" + const componentId = 42 // id from Case2.TestComponent // onChange - control + const actual = control .loadPage("Case2") .start() - .emitTask(1, 42, 0, 0).nextFrame() - .emitTask(1, 42, 0, 0).nextFrame() - .emitTask(1, 42, 0, 0).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() + .emitTask(TaskType.OnChange, componentId).nextFrame() .stop() - let x = -3 - Assert.equal(x, -3, "StateChange test is failed!\n expected: " + (-3) + "\ncurrent: " + x) + .getLog() + Assert.equal(expected, actual, "StateChange: Case2 test is failed!") }) }) } diff --git a/arkoala-arkts/libarkts/.mocharc.json b/arkoala-arkts/libarkts/.mocharc.json index 1799d0fb2caa05fbd6ee3c0208a4ad21b4a5a95d..62699a6cd93955182895f22cca7ca55823ac97d6 100644 --- a/arkoala-arkts/libarkts/.mocharc.json +++ b/arkoala-arkts/libarkts/.mocharc.json @@ -1,7 +1,6 @@ { "ui": "tdd", - "spec": "./test/**/*.test.ts", - "exclude": "./test/ts-api/**/*", + "spec": "./test/arkts-api/**/*.test.ts", "extension": [ "ts" ], diff --git a/arkoala-arkts/libarkts/arktsconfig-memo.json b/arkoala-arkts/libarkts/arktsconfig-memo.json new file mode 100644 index 0000000000000000000000000000000000000000..d3645627b77af1855fca56a3005269538041dce0 --- /dev/null +++ b/arkoala-arkts/libarkts/arktsconfig-memo.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "package0": "@koalaui/example", + "outDir": "./abc", + "baseUrl": ".", + "paths": { + "@koalaui/runtime": [ + "../memo-plugin/runtime-api" + ] + }, + "plugins": [ + { + "transform": "@koalaui/memo-plugin", + "stage": "checked" + } + ] + } +} diff --git a/arkoala-arkts/libarkts/native/src/bridges.cc b/arkoala-arkts/libarkts/native/src/bridges.cc index 4250b79081d434b8ff41d507e66f64c13be0c7a6..1ee0b055df23f48b29912c48c27c2e2a3b9db7d2 100644 --- a/arkoala-arkts/libarkts/native/src/bridges.cc +++ b/arkoala-arkts/libarkts/native/src/bridges.cc @@ -50,6 +50,15 @@ KNativePointer impl_AnnotationAllowedAnnotations(KNativePointer contextPtr, KNat } KOALA_INTEROP_3(AnnotationAllowedAnnotations, KNativePointer, KNativePointer, KNativePointer, KNativePointer) +KNativePointer impl_AnnotationAllowedAnnotationsConst(KNativePointer contextPtr, KNativePointer nodePtr, KNativePointer returnLen) { + auto context = reinterpret_cast(contextPtr); + auto node = reinterpret_cast(nodePtr); + std::size_t params_len = 0; + auto annotations = GetImpl()->AnnotationAllowedAnnotationsConst(context, node, ¶ms_len); + return new std::vector(annotations, annotations + params_len); +} +KOALA_INTEROP_3(AnnotationAllowedAnnotationsConst, KNativePointer, KNativePointer, KNativePointer, KNativePointer) + KNativePointer impl_AstNodeVariableConst(KNativePointer contextPtr, KNativePointer nodePtr) { auto context = reinterpret_cast(contextPtr); auto node = reinterpret_cast(nodePtr); diff --git a/arkoala-arkts/libarkts/package.json b/arkoala-arkts/libarkts/package.json index c635b15b27fa04c5dcf191943fb0f177ca1c27e0..c5aa665a267334cde410f874645dd26e3048c6ff 100644 --- a/arkoala-arkts/libarkts/package.json +++ b/arkoala-arkts/libarkts/package.json @@ -11,11 +11,14 @@ "./build/*" ], "config": { - "gen_version": "3.0.18", + "gen_version": "3.0.19", "input_file": "../../incremental/tools/panda/node_modules/@panda/sdk/ohos_arm64/include/tools/es2panda/generated/es2panda_lib/es2panda_lib.idl" }, "dependencies": { }, + "devDependencies": { + "@koalaui/memo-plugin": "../memo-plugin" + }, "scripts": { "clean": "rimraf build native/build*", "compile:koala:interop": "npm run --prefix ../../interop compile", @@ -27,7 +30,9 @@ "compile:plugins": "npx ets-tsc -p plugins/tsconfig.json", "restart": "PANDA_SDK_PATH=../../incremental/tools/panda/node_modules/@panda/sdk node . --file ./plugins/input/main.sts --output ./build/abc/main.abc --dump-plugin-ast --arktsconfig ./arktsconfig.json --restart-stages", "direct": "PANDA_SDK_PATH=../../incremental/tools/panda/node_modules/@panda/sdk node . --file ./plugins/input/no-import-no-struct.sts --output ./build/abc/no-import-no-struct.abc --dump-plugin-ast --arktsconfig ./arktsconfig-print-only.json", + "memo": "PANDA_SDK_PATH=../../incremental/tools/panda/node_modules/@panda/sdk node . --file ./plugins/input/memo.sts --output ./build/abc/memo.abc --dump-plugin-ast --arktsconfig ./arktsconfig-memo.json --restart-stages", "run": "npm run compile && npm run compile:plugins && npm run restart", + "run:memo": "npm run compile && npm run compile:plugins && npm run compile --prefix ../memo-plugin && npm run memo", "run:abc": "../../incremental/tools/panda/node_modules/@panda/sdk/linux_host_tools/bin/ark --load-runtimes=ets --boot-panda-files=../../incremental/tools/panda/node_modules/@panda/sdk/ets/etsstdlib.abc ./main.abc main.ETSGLOBAL::main", "mocha": "PANDA_SDK_PATH=../../incremental/tools/panda/node_modules/@panda/sdk TS_NODE_PROJECT=./test/tsconfig.json mocha -r tsconfig-paths/register --reporter-option maxDiffSize=0", "test": "npm run compile:native && npm run mocha", diff --git a/arkoala-arkts/libarkts/plugins/input/library.sts b/arkoala-arkts/libarkts/plugins/input/library.sts index 9d7a1f0e13cbef43c547d3047989555cab2c8ef0..84aa6aac1e9833171a875dbc184d5761468fd98f 100644 --- a/arkoala-arkts/libarkts/plugins/input/library.sts +++ b/arkoala-arkts/libarkts/plugins/input/library.sts @@ -1 +1,3 @@ export @interface Component {} + +export @interface memo {} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/plugins/input/main.sts b/arkoala-arkts/libarkts/plugins/input/main.sts index bff61711a10b1179cc5d2bb790e60205e1c1d937..0a64cf195fc7de11e24bc95a5909a3ef8ac76dc3 100644 --- a/arkoala-arkts/libarkts/plugins/input/main.sts +++ b/arkoala-arkts/libarkts/plugins/input/main.sts @@ -1,4 +1,4 @@ -import { Component } from "./library" +import { Component, memo } from "./library" @interface BuilderLambda { value: string diff --git a/arkoala-arkts/libarkts/plugins/input/memo.sts b/arkoala-arkts/libarkts/plugins/input/memo.sts new file mode 100644 index 0000000000000000000000000000000000000000..c655abe05732f0cab9208363fdc1f74f758fff6c --- /dev/null +++ b/arkoala-arkts/libarkts/plugins/input/memo.sts @@ -0,0 +1,68 @@ + +@interface memo{} + +class Test { + + @memo void_method(): void { + } + + @memo a_method_with_implicit_return_type() { + } + + @memo void_method_with_arg(arg: string) { + } + + @memo void_method_with_return(arg: string) { + return + } + + @memo string_method_with_return(arg: string): string { + return arg + } + + // TODO: context.compute + // @memo method_with_type_parameter(arg: T): T { + // return arg + // } + + // TODO: return statement duplicates + // @memo static static_method_with_type_parameter(arg: T): void { + // return + // } + + @memo internal_call() { + // TODO: the call doesn't rewrite + // this.void_method() + } + + //@memo lambda_arg(@memo arg: () => void) { + + //} + + //@memo lambda_arg_with_arg(@memo arg: (value: string) => string) { + + //} +} + +class Use { + test() { + const test = new Test() + + // TODO: the calls don't rewrite + // test.void_method() + // test.void_method_with_arg("an arg") + // test.void_method_with_return("a value") + // Test.static_method_with_type_parameter("I'm static") + + // TODO: the function don't rewrite + // test.string_method_with_return("a string") + // test.method_with_type_parameter("I'm string") + + // TODO: lamda calls + // test.lambda_arg(() => {}) + // test.lambda_arg((value: string) => value) + } +} + + + diff --git a/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts new file mode 100644 index 0000000000000000000000000000000000000000..e6201eda84de0e6bf21f9d8818bb51e756531f74 --- /dev/null +++ b/arkoala-arkts/libarkts/plugins/src/arkts-utils.ts @@ -0,0 +1,28 @@ +import * as arkts from "@koalaui/libarkts" + +export function annotation(name: string): arkts.AnnotationUsage { + const ident: arkts.Identifier = arkts.factory.createIdentifier(name).setAnnotationUsage(); + const annotation: arkts.AnnotationUsage = arkts.factory.createAnnotationUsage(ident); + + annotation.modifiers = arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_ANNOTATION_USAGE; + ident.parent = annotation; + + return annotation; +} + +export function mangle(value: string): string { + return `__${value}`; +} + +export function backingField(originalName: string): string { + return mangle(`backing_${originalName}`); +} + +export function filterDefined(value: (T | undefined)[]): T[] { + return value.filter((it: T | undefined): it is T => it != undefined); +} + +export function collect(...value: (ReadonlyArray | T | undefined)[]): T[] { + const empty: (T | undefined)[] = [] + return filterDefined(empty.concat(...value)) +} diff --git a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts index 6be93bccdffd798db15b5b2012d3d0f0fb0c7cc7..0a11eb781c98ea7f6d2b11fda71f33f5fe1781c2 100644 --- a/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/builder-lambda-transformer.ts @@ -31,7 +31,7 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar arkts.factory.createIdentifier( builderLambdaInstanceName, // TODO: it should be the return type of the function annotated with the @BuilderLambda - typeName ? arkts.factory.createTypeReference( + typeName ? arkts.factory.createTypeReferenceFromId( arkts.factory.createIdentifier( typeName ) @@ -40,25 +40,20 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar undefined ) - const signature = arkts.FunctionSignature.create(undefined, - [ - param - ], - // TODO: it should be the return type of the function annotated with the @BuilderLambda - typeName ? arkts.factory.createTypeReference( - arkts.factory.createIdentifier( - typeName - ) - ) : undefined - ) - const func = arkts.factory.createScriptFunction( body, - signature, arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_ARROW, arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PUBLIC | arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_STATIC, false, - undefined + undefined, + [ param ], + undefined, + // TODO: it should be the return type of the function annotated with the @BuilderLambda + typeName ? arkts.factory.createTypeReferenceFromId( + arkts.factory.createIdentifier( + typeName + ) + ) : undefined ) return arkts.factory.createArrowFunction( @@ -66,22 +61,25 @@ function getLambdaArg(lambdaBody: arkts.AstNode, typeName: string|undefined): ar ) } -function isBuilderLambdaAnnotation(annotation: arkts.AnnotationUsageIr): boolean { +function isBuilderLambdaAnnotation(annotation: arkts.AnnotationUsage): boolean { + if (annotation.expr === undefined) { + return false + } if (!arkts.isIdentifier(annotation.expr)) { return false } return annotation.expr.name !== "BuilderLambda" } -function builderLambdaArgumentName(annotation: arkts.AnnotationUsageIr): string | undefined { +function builderLambdaArgumentName(annotation: arkts.AnnotationUsage): string | undefined { if (!isBuilderLambdaAnnotation(annotation)) return undefined + const property = annotation.properties[0] + if (property === undefined) return undefined + if (!arkts.isClassProperty(property)) return undefined + if (property.value === undefined) return undefined + if (!arkts.isStringLiteral(property.value)) return undefined - if (!annotation.properties[0].value || - !arkts.isStringLiteral(annotation.properties[0].value) - ) { - return undefined - } - return annotation.properties[0].value.str + return property.value.str } /* function builderLambdaTypeName(annotation: arkts.AnnotationUsageIr): string | undefined { @@ -95,8 +93,7 @@ function builderLambdaTypeName(annotation: arkts.AnnotationUsageIr): string | un return annotation.properties[1].value.str } */ -function findBuilderLambdaAnnotation(node: arkts.CallExpression): arkts.AnnotationUsageIr|undefined { - +function findBuilderLambdaAnnotation(node: arkts.CallExpression): arkts.AnnotationUsage | undefined { let decl: arkts.AstNode|undefined = undefined if (arkts.isIdentifier(node.expression)) { decl = arkts.getDecl(node.expression) @@ -172,93 +169,161 @@ function builderLambdaReplace(leaf: arkts.CallExpression): arkts.Identifier|arkt } if (arkts.isIdentifier(node)) { - return arkts.factory.createIdentifier( - funcName - ) + return arkts.factory.createIdentifier( + funcName + ) } if (arkts.isMemberExpression(node)) { - return arkts.factory.createMemberExpression( - node.object, - arkts.factory.createIdentifier( - funcName - ), - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, - false, - false - ) + return arkts.factory.createMemberExpression( + node.object, + arkts.factory.createIdentifier( + funcName + ), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ) } return undefined } -export class BuilderLambdaTransformer extends AbstractVisitor { - visitor(beforeChildren: arkts.AstNode): arkts.AstNode { - const node = this.visitEachChild(beforeChildren) +function builderLambdaBodyRewrite(node: arkts.AstNode): arkts.AstNode { + if (!arkts.isArrowFunctionExpression(node)) return node; - if (!arkts.isCallExpression(node)) { - return node - } + const scriptFunc: arkts.ScriptFunction = node.scriptFunction; + if (!scriptFunc || !scriptFunc.body) return node; - if (true - && arkts.isMemberExpression(node.parent) - && arkts.isIdentifier(node.parent.property) - && arkts.isCallExpression(node.parent.parent) + const body: arkts.BlockStatement = scriptFunc.body; + const statements: arkts.AstNode[] = body.statements.map((statement: arkts.AstNode) => { + if ( + arkts.isExpressionStatement(statement) + && statement.expression + && arkts.isCallExpression(statement.expression) ) { - return node + return transformBuilderLambda(statement.expression); } + return statement; + }); + const updateBody = arkts.factory.updateBlock(body, statements); + + const updateFunc: arkts.ScriptFunction = arkts.factory.updateScriptFunction( + scriptFunc, + updateBody, + scriptFunc.scriptFunctionFlags, + scriptFunc.modifiers, + false, + undefined, + undefined, + undefined, + undefined + ); - let instanceCalls: arkts.CallExpression[] = [] - let leaf: arkts.CallExpression = node + return arkts.factory.updateArrowFunction(node, updateFunc); +} - while (true - && arkts.isMemberExpression(leaf.expression) - && arkts.isIdentifier(leaf.expression.property) - && arkts.isCallExpression(leaf.expression.object) - ) { - instanceCalls.push( - arkts.factory.createCallExpression( - leaf.expression.property, - undefined, - leaf.arguments - ) - ) - leaf = leaf.expression.object - } +function transformBuilderLambda(node: arkts.CallExpression): arkts.AstNode { + let instanceCalls: arkts.CallExpression[] = [] + let leaf: arkts.CallExpression = node - const replace = builderLambdaReplace(leaf) - if (replace === undefined) { - return node - } - - instanceCalls = instanceCalls.reverse() - let lambdaBody: arkts.Identifier | arkts.CallExpression = arkts.factory.createIdentifier(builderLambdaInstanceName) - instanceCalls.forEach((call)=> { - if (!arkts.isIdentifier(call.expression)) { - throw new Error('call expression should be identifier') - } - lambdaBody = arkts.factory.createCallExpression( - arkts.factory.createMemberExpression( - lambdaBody, - call.expression, - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, - false, - false - ), + while (true + && arkts.isMemberExpression(leaf.expression) + && arkts.isIdentifier(leaf.expression.property) + && arkts.isCallExpression(leaf.expression.object) + ) { + instanceCalls.push( + arkts.factory.createCallExpression( + leaf.expression.property, undefined, - call.arguments + leaf.arguments ) - }) + ) + leaf = leaf.expression.object + } - const typeName = builderLambdaTypeName(leaf) - const lambdaArg = getLambdaArg(lambdaBody, typeName) + const replace = builderLambdaReplace(leaf) + if (replace === undefined) { + return node + } - return arkts.factory.updateCallExpression( - node, - replace, + instanceCalls = instanceCalls.reverse() + let lambdaBody: arkts.Identifier | arkts.CallExpression = arkts.factory.createIdentifier(builderLambdaInstanceName) + instanceCalls.forEach((call)=> { + if (!arkts.isIdentifier(call.expression)) { + throw new Error('call expression should be identifier') + } + lambdaBody = arkts.factory.createCallExpression( + arkts.factory.createMemberExpression( + lambdaBody, + call.expression, + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ), undefined, - [ - lambdaArg, - ...leaf.arguments - ] + call.arguments ) + }) + + const typeName = builderLambdaTypeName(leaf) + const lambdaArg = getLambdaArg(lambdaBody, typeName) + + let args: arkts.AstNode[] = leaf.arguments.length < 3 + ? leaf.arguments as arkts.AstNode[] + : [ + ...leaf.arguments.slice(0, 2), + builderLambdaBodyRewrite(leaf.arguments.at(2)!), + ...leaf.arguments.slice(3) // Currently, this is never reached since the maximum length of arguments is 3 + ]; + + return arkts.factory.updateCallExpression( + node, + replace, + undefined, + [ + lambdaArg, + ...args + ] + ) +} + +function isBuilderLambda(node: arkts.AstNode): boolean { + const builderLambda: arkts.AstNode | undefined = _getDeclForBuilderLambda(node); + return !!builderLambda; +} + +// TODO: temporary solution for get declaration of a builder lambda +function _getDeclForBuilderLambda(node: arkts.AstNode): arkts.AstNode | undefined { + if (!node || !arkts.isCallExpression(node)) return undefined; + + if (node.expression && arkts.isMemberExpression(node.expression)) { + const _node: arkts.MemberExpression = node.expression; + if (_node.property && arkts.isIdentifier(_node.property) && _node.property.name === "$_instantiate") { + return node; + } + if (_node.object && arkts.isCallExpression(_node.object)) { + return _getDeclForBuilderLambda(_node.object); + } + } + + return undefined; +} + +export class BuilderLambdaTransformer extends AbstractVisitor { + visitEachChild(node: arkts.AstNode): arkts.AstNode { + if (arkts.isCallExpression(node) && isBuilderLambda(node)) { + return node; + } + + return super.visitEachChild(node); + } + + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { + const node = this.visitEachChild(beforeChildren) + + if (arkts.isCallExpression(node) && isBuilderLambda(node)) { + return transformBuilderLambda(node); + } + + return node; } } diff --git a/arkoala-arkts/libarkts/plugins/src/checked-stage-plugin.ts b/arkoala-arkts/libarkts/plugins/src/checked-stage-plugin.ts index ec0578ffde3afe67fb6a161e67b9d9e6a0123bfb..c7b9f14634019ca286b7452a70577082e3a213c2 100644 --- a/arkoala-arkts/libarkts/plugins/src/checked-stage-plugin.ts +++ b/arkoala-arkts/libarkts/plugins/src/checked-stage-plugin.ts @@ -2,6 +2,7 @@ import * as ts from "@koalaui/libarkts" import { PrintVisitor } from './print-visitor' import { BuilderLambdaTransformer } from './builder-lambda-transformer' import { ComponentTransformer } from './component-transformer' +import { StructTransformer } from './struct-transformer' export interface TransformerOptions { trace?: boolean, @@ -11,6 +12,13 @@ export default function exampleTransformer( userPluginOptions?: TransformerOptions ) { return (node: ts.EtsScript) => { - return new BuilderLambdaTransformer().visitor(node) + const builderLambdaTransformer = new BuilderLambdaTransformer(); + const structTransformer = new StructTransformer(); + + let script: ts.EtsScript = node; + script = builderLambdaTransformer.visitor(script) as ts.EtsScript; + script = structTransformer.visitor(script) as ts.EtsScript; + + return script; } } diff --git a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts index eb9dea77434d7c2286f31896f1a5a76c4137f03d..8f4ebde898d031e2ee857f61cc04457b0b6446d7 100644 --- a/arkoala-arkts/libarkts/plugins/src/component-transformer.ts +++ b/arkoala-arkts/libarkts/plugins/src/component-transformer.ts @@ -52,6 +52,7 @@ export class ComponentTransformer extends AbstractVisitor { const interfaceDeclarations = this.context.componentNames.map( name => arkts.factory.createInterfaceDeclaration( [], + 0, arkts.factory.createIdentifier(`__Options_${name}`), nullptr, // TODO: wtf arkts.factory.createBlock([]), @@ -71,6 +72,7 @@ export class ComponentTransformer extends AbstractVisitor { processComponent(node: arkts.ClassDeclaration | arkts.StructDeclaration): arkts.ClassDeclaration { const className = node.definition.name.name + arkts.GlobalInfo.getInfoInstance().add(className); this.context.componentNames.push(className) const newDefinition = arkts.factory.updateClassDefinition( @@ -85,10 +87,10 @@ export class ComponentTransformer extends AbstractVisitor { arkts.factory.createIdentifier('StructBase'), arkts.factory.createTSTypeParameterInstantiation( [ - arkts.factory.createTypeReference( + arkts.factory.createTypeReferenceFromId( arkts.factory.createIdentifier(className) ), - arkts.factory.createTypeReference( + arkts.factory.createTypeReferenceFromId( arkts.factory.createIdentifier(`__Options_${className}`) ), ] diff --git a/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts new file mode 100644 index 0000000000000000000000000000000000000000..826e0b1938e42a065889ecc93b6e93ef45dd6e64 --- /dev/null +++ b/arkoala-arkts/libarkts/plugins/src/struct-transformer.ts @@ -0,0 +1,180 @@ +import * as arkts from "@koalaui/libarkts" +import { AbstractVisitor } from "./AbstractVisitor"; +import { annotation } from "./arkts-utils"; + +function isCustomComponentClass(node: arkts.ClassDeclaration): boolean { + const structCollection: Set = arkts.GlobalInfo.getInfoInstance().getStructCollection(); + if (structCollection.has(node.definition.name.name)) { + return true; + } + return false; +} + +function isKnownMethodDefinition(method: arkts.MethodDefinition, name: string): boolean { + if (!method || !arkts.isMethodDefinition(method)) return false; + + // For now, we only considered matched method name. + const isNameMatched: boolean = method.name?.name === name; + return isNameMatched; +} + +function createStyleArgInBuildMethod(className: string): arkts.ETSParameterExpression { + const styleLambdaParams: arkts.ETSParameterExpression = arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier( + 'instance', + arkts.factory.createIdentifier(className), + ), + undefined + ); + + const styleLambda: arkts.ETSFunctionType = arkts.factory.createFunctionType( + arkts.FunctionSignature.create( + undefined, + [ + styleLambdaParams + ], + arkts.factory.createPrimitiveType(arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_VOID) + ), + arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_ARROW + ); + + const optionalStyleLambda: arkts.ETSUnionType = arkts.factory.createUnionType([ + styleLambda, + arkts.factory.createUndefinedLiteral() + ]); + + const styleParam: arkts.Identifier = arkts.factory.createIdentifier( + 'style', + optionalStyleLambda + ); + + const param = arkts.factory.createParameterDeclaration(styleParam, undefined); + param.annotations = [annotation("memo")]; + + return param; +} + +function createContentArgInBuildMethod(): arkts.ETSParameterExpression { + const contentLambda: arkts.ETSFunctionType = arkts.factory.createFunctionType( + arkts.FunctionSignature.create( + undefined, + [], + arkts.factory.createPrimitiveType(arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_VOID) + ), + arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_ARROW + ); + + const optionalContentLambda: arkts.ETSUnionType = arkts.factory.createUnionType([ + contentLambda, + arkts.factory.createUndefinedLiteral() + ]); + + const contentParam: arkts.Identifier = arkts.factory.createIdentifier( + 'content', + optionalContentLambda + ); + + const param = arkts.factory.createParameterDeclaration(contentParam, undefined); + param.annotations = [annotation("memo")]; + + return param; +} + +function createInitializerArgInBuildMethod(className: string): arkts.ETSParameterExpression { + return arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier( + 'initializers', + arkts.factory.createTypeReferenceFromId( + arkts.factory.createIdentifier(`__Options_${className}`) + ) + ).setOptional(true), + undefined + ); +} + +function prepareArgsInBuildMethod(className: string): arkts.ETSParameterExpression[] { + return [ + createStyleArgInBuildMethod(className), + createContentArgInBuildMethod(), + createInitializerArgInBuildMethod(className) + ]; +} + +function transformBuildMethod( + method: arkts.MethodDefinition, + className: string +): arkts.MethodDefinition { + const updateKey: arkts.Identifier = arkts.factory.createIdentifier( + '_build' + ); + + const scriptFunction: arkts.ScriptFunction = method.scriptFunction; + + const params: arkts.ETSParameterExpression[] = prepareArgsInBuildMethod(className); + + const updateScriptFunction = arkts.factory.createScriptFunction( + scriptFunction.body, + scriptFunction.scriptFunctionFlags, + scriptFunction.modifiers, + false, + undefined, + params, + undefined, + undefined + ); + + updateScriptFunction.annotations = [annotation("memo")]; + + // TODO: Currently, just return method itself. Remove this once createMethodDefinition is ready. + return arkts.factory.createMethodDefinition( + arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_METHOD, + updateKey, + arkts.factory.createFunctionExpression(updateScriptFunction), + arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PROTECTED, + false + ); +} + +function tranformClassMembers(node: arkts.ClassDeclaration): arkts.ClassDeclaration { + const definition: arkts.ClassDefinition = node.definition; + const className: string = node.definition.name.name; + + const updateMembers: arkts.AstNode[] = definition.members.map((member: arkts.AstNode) => { + if (arkts.isMethodDefinition(member) && isKnownMethodDefinition(member, "constructor")) { + return arkts.factory.createMethodDefinition( + arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_CONSTRUCTOR, + member.name, + arkts.factory.createFunctionExpression(member.scriptFunction), + arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_CONSTRUCTOR, + false + ); + } + if (arkts.isMethodDefinition(member) && isKnownMethodDefinition(member, "build")) { + return transformBuildMethod(member, className); + } + + return member; + }); + + const updateClassDef: arkts.ClassDefinition = arkts.factory.updateClassDefinition( + definition, + definition.name, + updateMembers, + definition.modifiers, + arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_NONE, + definition.typeParamsDecl, + definition.superClass + ); + + return arkts.factory.updateClassDeclaration(node, updateClassDef); +} + +export class StructTransformer extends AbstractVisitor { + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { + const node = this.visitEachChild(beforeChildren); + if (arkts.isClassDeclaration(node) && isCustomComponentClass(node)) { + return tranformClassMembers(node); + } + return node; + } +} diff --git a/arkoala-arkts/libarkts/plugins/tsconfig.json b/arkoala-arkts/libarkts/plugins/tsconfig.json index d0ce6f2228dd65d7edd13be46f938c0f80e98558..a460c9048c088fdb8c876ec39edb9be7214c9c71 100644 --- a/arkoala-arkts/libarkts/plugins/tsconfig.json +++ b/arkoala-arkts/libarkts/plugins/tsconfig.json @@ -14,5 +14,7 @@ "./src/print-visitor.ts", "./src/builder-lambda-transformer.ts", "./src/component-transformer.ts", + "./src/struct-transformer.ts", + "./src/arkts-utils.ts", ] } diff --git a/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts b/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts index e62809f69870d79fb9ddeab09c92f0c51464216b..f3fe48606fcdec90e0d1406ceee7f92707b8e280 100644 --- a/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts +++ b/arkoala-arkts/libarkts/src/Es2pandaNativeModule.ts @@ -53,6 +53,9 @@ export class Es2pandaNativeModule { _AnnotationAllowedAnnotations(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { throw new Error("Not implemented") } + _AnnotationAllowedAnnotationsConst(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { + throw new Error("Not implemented") + } _AstNodeRebind(context: KPtr, node: KPtr): void { throw new Error("Not implemented") } @@ -164,6 +167,9 @@ export class Es2pandaNativeModule { _ScriptFunctionBody(context: KPtr, node: KPtr): KPtr { throw new Error("Not implemented") } + _ScriptFunctionAnnotations(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { + throw new Error("Not implemented") + } _ScriptFunctionSetIdent(context: KPtr, ast: KPtr, id: KPtr): KPtr { throw new Error("Not implemented") } @@ -176,6 +182,9 @@ export class Es2pandaNativeModule { _ScriptFunctionSetScope(context: KPtr, ast: KPtr, scope: KPtr): KPtr { throw new Error("Not implemented") } + _ScriptFunctionSetAnnotations(context: KPtr, ast: KPtr, annotations: KPtrArray, annotationsLen: KInt): KPtr { + throw new Error("Not implemented") + } _ScriptFunctionDeclareConst(context: KPtr, node: KPtr): KBoolean { throw new Error("Not implemented") } @@ -191,6 +200,12 @@ export class Es2pandaNativeModule { _ScriptFunctionAddFlag(context: KPtr, node: KPtr, flags: KInt): void { throw new Error("Not implemented") } + _ClassPropertyAnnotations(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { + throw new Error("Not implemented") + } + _ClassPropertySetAnnotations(context: KPtr, ast: KPtr, annotations: KPtrArray, annotationsLen: KInt): KPtr { + throw new Error("Not implemented") + } _UpdateBlockStatement(context: KPtr, original: KPtr, statementList: KPtrArray, statementListLen: KInt): KPtr { throw new Error("Not implemented") } @@ -392,6 +407,12 @@ export class Es2pandaNativeModule { _ETSParameterExpressionIdent(context: KPtr, node: KPtr): KPtr { throw new Error("Not implemented") } + _ETSParameterExpressionAnnotations(context: KPtr, node: KPtr, returnLen: KPtr): KPtr { + throw new Error("Not implemented") + } + _ETSParameterExpressionSetAnnotations(context: KPtr, ast: KPtr, annotations: KPtrArray, annotationsLen: KInt): KPtr { + throw new Error("Not implemented") + } _CreateTSTypeParameterDeclaration(context: KPtr, params: KPtrArray, paramsLen: KInt, requiredParams: KInt): KPtr { throw new Error("Not implemented") } @@ -551,6 +572,25 @@ export class Es2pandaNativeModule { _DeclarationFromIdentifier(context: KPtr, identifier: KPtr): KPtr { throw new Error("Not implemented") } + _IsTSInterfaceDeclaration(ast: KNativePointer): KBoolean { + throw new Error("Not implemented") + } + + _IsAnnotationDeclaration(ast: KNativePointer): KBoolean { + throw new Error("Not implemented") + } + + _IsAnnotationUsage(ast: KNativePointer): KBoolean { + throw new Error("Not implemented") + } + + _IsClassProperty(ast: KNativePointer): KBoolean { + throw new Error("Not implemented") + } + + _CreateAnnotationUsageIr(context: KPtr, ast: KPtr): KPtr { + throw new Error("Not implemented") + } } export function initEs2panda(): Es2pandaNativeModule { diff --git a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts index 212f6a30c5b642fa31bfa5fb13c7737c578bf7c6..fa2a83a5a7d9c9917032bb43c2a7c7e9d4fc7dad 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/class-by-peer.ts @@ -13,103 +13,19 @@ * limitations under the License. */ -import { - AnnotationUsageIr, - ArrowFunctionExpression, - AssignmentExpression, - BinaryExpression, - BlockStatement, - CallExpression, - ClassDeclaration, - ClassDefinition, - ClassProperty, - ClassStaticBlock, - ETSFunctionType, - EtsImportDeclaration, - ETSParameterExpression, - ETSPrimitiveType, - EtsScript, - ETSTypeReference, - ETSTypeReferencePart, - ETSUndefinedType, - ETSUnionType, - ExpressionStatement, - FunctionDeclaration, - FunctionExpression, - Identifier, - IfStatement, - ImportSpecifier, - MethodDefinition, - NumberLiteral, - ReturnStatement, - ScriptFunction, - StringLiteral, - StructDeclaration, - SuperExpression, - TSTypeParameter, - TSTypeParameterDeclaration, - UndefinedLiteral, - UnsupportedNode, - VariableDeclaration, - VariableDeclarator -} from "./types" import { Es2pandaAstNodeType } from "../Es2pandaEnums" -import { MemberExpression } from "./to-be-generated/MemberExpression" import { throwError } from "../utils" import { global } from "./static/global" import { KNativePointer, nullptr } from "@koalaui/interop" -import { AstNode } from "./peers/AstNode" -import { nodes as generatedNodes } from "../generated/node-map" +import { AstNode, UnsupportedNode } from "./peers/AstNode" -export function classByPeer(peer: KNativePointer): AstNode { - const nodes = new Map([ - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, EtsScript], - [Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER, Identifier], - [Es2pandaAstNodeType.AST_NODE_TYPE_STRING_LITERAL, StringLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL, NumberLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_EXPRESSION_STATEMENT, ExpressionStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION, FunctionDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION, ScriptFunction], - [Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT, BlockStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT, ReturnStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION, ETSParameterExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE, ETSTypeReference], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART, ETSTypeReferencePart], - [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION, TSTypeParameterDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PRIMITIVE_TYPE, ETSPrimitiveType], - [Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION, CallExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION, MemberExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER, TSTypeParameter], - [Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT, IfStatement], - [Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION, BinaryExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNION_TYPE, ETSUnionType], - [Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, ArrowFunctionExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_STRUCT_DECLARATION, StructDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION, ClassDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, ClassDefinition], - [Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION, MethodDefinition], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY, ClassProperty], - [Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, AssignmentExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATION, VariableDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATOR, VariableDeclarator], - [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION, FunctionExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE, ETSFunctionType], - [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK, ClassStaticBlock], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNDEFINED_TYPE, ETSUndefinedType], - [Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL, UndefinedLiteral], - [Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION, SuperExpression], - [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, EtsImportDeclaration], - [Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER, ImportSpecifier], - [Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE, AnnotationUsageIr], - ]) +export const nodeByType = new Map([]) +export function classByPeer(peer: KNativePointer): T { if (peer === nullptr) { throwError('classByPeer: peer is NULLPTR') } const type = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) - const node = nodes.get(type) ?? generatedNodes.get(type) - if (node === undefined) { - return new UnsupportedNode(peer) - } - return new node(peer) + const node = nodeByType.get(type) ?? UnsupportedNode + return new node(peer) as T } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts index ff36ada6fe71586ed48aadfffa6919ab11c5a85b..eb99b8552f94b38f3023d8e0a8ad20f103678ec6 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeFactory.ts @@ -21,6 +21,7 @@ import { CallExpression, ClassDeclaration, ClassDefinition, + ClassProperty, ETSFunctionType, EtsImportDeclaration, ETSParameterExpression, @@ -42,15 +43,16 @@ import { StringLiteral, StructDeclaration, SuperExpression, - TSInterfaceDeclaration, TSTypeParameter, TSTypeParameterDeclaration, TSTypeParameterInstantiation, + UndefinedLiteral, VariableDeclaration, VariableDeclarator } from "../types" import { MemberExpression } from "../to-be-generated/MemberExpression" import { AstNode } from "../peers/AstNode" +import { AnnotationUsage, TSInterfaceBody, TSInterfaceDeclaration } from "../../generated" function compose( create: (...args: ARGS) => T, @@ -238,6 +240,12 @@ export const factory = { get updateClassDefinition() { return compose(ClassDefinition.create) }, + get createClassProperty() { + return ClassProperty.create + }, + get updateClassProperty() { + return compose(ClassProperty.create) + }, get createFunctionType() { return ETSFunctionType.create }, @@ -269,9 +277,27 @@ export const factory = { return compose(TSTypeParameterInstantiation.create) }, get createInterfaceDeclaration() { - return TSInterfaceDeclaration.create + return TSInterfaceDeclaration.createTSInterfaceDeclaration }, get updateInterfaceDeclaration() { - return compose(TSInterfaceDeclaration.create) + return compose(TSInterfaceDeclaration.createTSInterfaceDeclaration) + }, + get createInterfaceBody() { + return TSInterfaceBody.createTSInterfaceBody + }, + get updateInterfaceBody() { + return compose(TSInterfaceBody.createTSInterfaceBody) + }, + get createUndefinedLiteral() { + return UndefinedLiteral.create + }, + get updateUndefinedLiteral() { + return compose(UndefinedLiteral.create) + }, + get createAnnotationUsage() { + return AnnotationUsage.createAnnotationUsage + }, + get updateAnnotationUsageIr() { + return compose(UndefinedLiteral.create) }, } diff --git a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts index 07750fe2ffb1e9e3c7d35614b9f4485866415eaf..bcb493faa23372ffdd130d39b904d16576173a56 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/factory/nodeTests.ts @@ -1,4 +1,6 @@ +import { global } from "../static/global" import { + AnnotationDeclaration, ArrowFunctionExpression, BlockStatement, CallExpression, @@ -15,10 +17,15 @@ import { StringLiteral, StructDeclaration, VariableDeclaration, + ClassProperty } from "../types" import { MemberExpression } from "../to-be-generated/MemberExpression" import { AstNode } from "../peers/AstNode" +export function isAnnotationDeclaration(node: AstNode): node is AnnotationDeclaration { + return global.es2panda._IsAnnotationDeclaration(node.peer); +} + export function isIdentifier(node: AstNode): node is Identifier { return node instanceof Identifier } @@ -86,3 +93,7 @@ export function isStringLiteral(node: AstNode): node is StringLiteral { export function isClassDefinition(node: AstNode): node is ClassDefinition { return node instanceof ClassDefinition } + +export function isClassProperty(node: AstNode): node is ClassProperty { + return node instanceof ClassProperty +} \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/index.ts b/arkoala-arkts/libarkts/src/arkts-api/index.ts index 8e444fc04a7647378c791a084ade7cc4ec62d1b7..b6926ba0fe3f2263f046b4811a2dd382e75c4117 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/index.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/index.ts @@ -15,6 +15,7 @@ export * from "../Es2pandaEnums" export * from "../generated/Es2pandaEnums" +export * from "../generated/peers/AnnotationUsage" export * from "./types" export * from "./utilities/private" @@ -22,7 +23,8 @@ export * from "./utilities/public" export * from "./factory/nodeFactory" export * from "./factory/nodeTests" export * from "./visitor" -export * from "./peers/AstNode" +export type { AstNode } from "./peers/AstNode" +import "../generated" export * from "./peers/Config" export * from "./peers/Context" export * from "./to-be-generated/MemberExpression" diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts index 5fc86f1882be071cef9206e6e8648b1a33013ecc..2ba4dfb1e1872e832a60ec4ab0bdbf7e983dd3af 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/AstNode.ts @@ -13,29 +13,23 @@ * limitations under the License. */ -import { KNativePointer } from "@koalaui/interop" +import { isNullPtr, KInt, KNativePointer as KPtr, KNativePointer, nullptr } from "@koalaui/interop" import { global } from "../static/global" -import { Es2pandaAstNodeType } from "../../Es2pandaEnums" -import { unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" +import { allFlags, nodeType, unpackNodeArray, unpackNonNullableNode, unpackString } from "../utilities/private" import { throwError } from "../../utils" import { Es2pandaModifierFlags } from "../../generated/Es2pandaEnums" -import { allFlags } from "../types" -import { KInt } from "@koalaui/interop" -import { isNullPtr, nullptr } from "@koalaui/interop" import { ArktsObject } from "./ArktsObject" +import { Es2pandaAstNodeType } from "../../Es2pandaEnums" export abstract class AstNode extends ArktsObject { protected constructor(peer: KNativePointer) { if (isNullPtr(peer)) { - throw new Error('trying to create new Node on NULLPTR') + throwError(`attempted to create AstNode from nullptr`) } super(peer) - this.type = global.generatedEs2panda._AstNodeTypeConst(global.context, this.peer) this.updateChildren() } - readonly type: Es2pandaAstNodeType - public get originalPeer(): KNativePointer { return global.generatedEs2panda._AstNodeOriginalNodeConst(global.context, this.peer) } @@ -50,7 +44,7 @@ export abstract class AstNode extends ArktsObject { public getSubtree(): readonly AstNode[] { return this.getChildren().reduce( - (prev: readonly AstNode[], curr: AstNode): readonly AstNode[] => { + (prev: readonly AstNode[], curr) => { return prev.concat(curr.getSubtree()) }, [this] @@ -75,7 +69,6 @@ export abstract class AstNode extends ArktsObject { .map((it) => it.dump(indentation + 1)) const msg = `${indentation}_` - + Es2pandaAstNodeType[this.type] + ` ` + this.dumpMessage() return "> " + " ".repeat(4 * indentation) + msg + "\n" + children.join("") @@ -98,11 +91,11 @@ export abstract class AstNode extends ArktsObject { } public get parent(): AstNode { - const _parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer) - if (_parent === nullptr) { - throwError('BAD ACCESS: PARENT IS NULLPTR') + const parent = global.generatedEs2panda._AstNodeParent(global.context, this.peer) + if (parent === nullptr) { + throwError(`no parent`) } - return unpackNonNullableNode(_parent) + return unpackNonNullableNode(parent) } public set parent(node: AstNode) { @@ -118,3 +111,11 @@ export abstract class AstNode extends ArktsObject { global.generatedEs2panda._AstNodeAddModifier(global.context, this.peer, flags ?? Es2pandaModifierFlags.MODIFIER_FLAGS_NONE) } } + + +export class UnsupportedNode extends AstNode { + constructor(peer: KPtr) { + super(peer) + console.warn(`Warning: unsupported node ${Es2pandaAstNodeType[nodeType(this)]}`) + } +} diff --git a/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts index 07fede2a8f024ee5ecad4c826e688476c4dc2ba2..e6ee16f0b1f705725e1efcd60310da806aee762e 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/peers/Context.ts @@ -24,9 +24,6 @@ export class Context extends ArktsObject { super(peer) } - // TODO: - // static create - static createFromString( source: string ): Context { diff --git a/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts b/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts index f760db27aae26ba2f6e15dc5598e0bb4dd1943e4..ac8213680266d3c21d870fa8db30698870834973 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/to-be-generated/MemberExpression.ts @@ -13,13 +13,17 @@ * limitations under the License. */ -import { global } from "../static/global" -import { assertValidPeer } from "../types" -import { Es2pandaMemberExpressionKind } from "../../generated/Es2pandaEnums" -import { passNode, unpackNonNullableNode } from "../utilities/private" -import { KNativePointer } from "@koalaui/interop" -import { Es2pandaAstNodeType } from "../../Es2pandaEnums" -import { AstNode } from "../peers/AstNode" + +import { + assertValidPeer, + AstNode, + Es2pandaAstNodeType, + Es2pandaMemberExpressionKind, + KNativePointer, + passNode, + unpackNonNullableNode, + global +} from "../../reexport-for-generated" export class MemberExpression extends AstNode { constructor(peer: KNativePointer) { diff --git a/arkoala-arkts/libarkts/src/arkts-api/types.ts b/arkoala-arkts/libarkts/src/arkts-api/types.ts index 10b6b5197ea8d416e498ade67fe08e32b860a421..e48a86cc5f58dcaea1d719fb44dee8514d190699 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/types.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/types.ts @@ -12,13 +12,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - import { global } from "./static/global" -import { throwError } from "../utils" -import { KBoolean, KInt, KNativePointer as KPtr, nullptr } from "@koalaui/interop" +import { KBoolean, KInt, KNativePointer, KNativePointer as KPtr, nullptr } from "@koalaui/interop" import { - Es2pandaClassDefinitionModifiers, Es2pandaContextState, + Es2pandaExpressionParseFlags, Es2pandaIdentifierFlags, Es2pandaImportKinds, Es2pandaMethodDefinitionKind, @@ -30,10 +28,13 @@ import { Es2pandaVariableDeclaratorFlag, } from "../generated/Es2pandaEnums" import { + allFlags, + arrayOfNullptr, + assertValidPeer, + nodeType, passNode, passNodeArray, passString, - resolveSource, unpackNode, unpackNodeArray, unpackNonNullableNode, @@ -46,34 +47,10 @@ import { AstNode } from "./peers/AstNode" import { ArktsObject } from "./peers/ArktsObject" import { Config } from "./peers/Config" import { Context } from "./peers/Context" -import { factory } from "@koalaui/ets-tsc" - -export const arrayOfNullptr = new BigUint64Array([nullptr]) - -export const allFlags: KInt = - Object.values(Es2pandaModifierFlags).filter( - (value: any) => { return (typeof value) === 'number' } - ).reduce( - (prev: KInt, next: KInt): KInt => (prev | next), - 0 as KInt - ) - -export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): void { - if (peer === nullptr) { - throwError(`invalid peer: NULLPTR`) - } - const peerType = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) - if (peerType !== expectedKind) { - throwError(`actual type of peer: ${peerType} expected: ${expectedKind}`) - } -} - -export class UnsupportedNode extends AstNode { - constructor(peer: KPtr) { - super(peer) - console.log(`WARNING: UNSUPPORTED NODE (arkts): ${Es2pandaAstNodeType[this.type]}`) - } -} +import * as path from "node:path" +import { nodeByType } from "./class-by-peer" +import { MemberExpression } from "./to-be-generated/MemberExpression" +import { AnnotationUsage, Expression } from "../generated" export class EtsScript extends AstNode { constructor(peer: KPtr) { @@ -157,6 +134,9 @@ export class CallExpression extends AstNode { super(peer) this.expression = unpackNonNullableNode( global.generatedEs2panda._CallExpressionCallee(global.context, this.peer)) + const tsTypeParameterInstantiation = unpackNode(global.generatedEs2panda._CallExpressionTypeParams(global.context, this.peer)) + this.typeArguments = tsTypeParameterInstantiation ? + unpackNodeArray(global.generatedEs2panda._TSTypeParameterInstantiationParamsConst(global.context, tsTypeParameterInstantiation.peer)) : undefined this.arguments = unpackNodeArray( global.generatedEs2panda._CallExpressionArguments(global.context, this.peer)) this.trailingBlock = unpackNode( @@ -165,7 +145,7 @@ export class CallExpression extends AstNode { static create( expression: AstNode, - typeParamsDecl: TSTypeParameterDeclaration | undefined, + typeArguments: readonly AstNode[] | undefined, args: readonly AstNode[] | undefined, trailingBlock: AstNode | undefined = undefined ): CallExpression { @@ -174,7 +154,7 @@ export class CallExpression extends AstNode { passNode(expression), passNodeArray(args), args?.length ?? 0, - passNode(typeParamsDecl), + typeArguments ? passNode(TSTypeParameterInstantiation.create(typeArguments)) : nullptr, false, false ) @@ -188,6 +168,7 @@ export class CallExpression extends AstNode { } readonly expression: AstNode // Expression + readonly typeArguments: readonly AstNode[] | undefined readonly arguments: readonly AstNode[] readonly trailingBlock: AstNode|undefined // BlockStatement } @@ -254,10 +235,6 @@ export class ETSPrimitiveType extends AstNode { ) } - protected override dumpMessage(): string { - return ` ` - } - readonly primitiveType: Es2pandaPrimitiveType } @@ -298,6 +275,7 @@ export class ETSTypeReferencePart extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART) super(peer) + this.typeName = unpackNonNullableNode(global.generatedEs2panda._ETSTypeReferencePartName(global.context, this.peer)); } // TODO: support type params and prev @@ -317,7 +295,7 @@ export class ETSTypeReferencePart extends AstNode { ) } - // readonly typeName: Identifier + readonly typeName: Identifier } export class TSUnionType extends AstNode { @@ -388,7 +366,7 @@ export class ETSFunctionType extends AstNode { } } -export class Identifier extends AstNode { +export class Identifier extends Expression { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER) super(peer) @@ -396,17 +374,21 @@ export class Identifier extends AstNode { static create( name: string, - typeAnnotation?: AstNode + typeAnnotation?: AstNode, ): Identifier { - if (typeAnnotation === undefined) { - return new Identifier( - global.es2panda._CreateIdentifier1(global.context, passString(name)) - ) - } else { - return new Identifier( - global.es2panda._CreateIdentifier2(global.context, passString(name), typeAnnotation.peer) - ) - } + return new Identifier( + global.es2panda._CreateIdentifier2(global.context, passString(name), passNode(typeAnnotation)) + ) + } + + setOptional(optional: boolean): Identifier { + global.generatedEs2panda._IdentifierSetOptional(global.context, this.peer, optional) + return this + } + + setAnnotationUsage(): Identifier { + global.generatedEs2panda._IdentifierSetAnnotationUsage(global.context, this.peer); + return this; } protected override dumpMessage(): string { @@ -494,7 +476,7 @@ export class FunctionSignature extends ArktsObject { static create( typeParamsDecl: TSTypeParameterDeclaration | undefined, - params: readonly AstNode[], + params: readonly AstNode[] | undefined, returnTypeAnnotation: AstNode | undefined, ): FunctionSignature { return new FunctionSignature( @@ -502,7 +484,7 @@ export class FunctionSignature extends ArktsObject { global.context, passNode(typeParamsDecl), passNodeArray(params), - params.length, + params?.length ?? 0, passNode(returnTypeAnnotation), false ) @@ -520,6 +502,7 @@ export class ScriptFunction extends AstNode { super(peer) this.parameters = unpackNodeArray(global.generatedEs2panda._ScriptFunctionParams(global.context, this.peer)) this.typeParamsDecl = unpackNode(global.generatedEs2panda._ScriptFunctionTypeParams(global.context, this.peer)) + this.returnTypeAnnotation = unpackNode(global.generatedEs2panda._ScriptFunctionReturnTypeAnnotation(global.context, this.peer)) this.body = unpackNode(global.generatedEs2panda._ScriptFunctionBody(global.context, this.peer)) // this.signature = unpackNode(global.generatedEs2panda._ScriptFunctionSignature(global.context, this.peer)) // this.declare = global.generatedEs2panda._ScriptFunctionDeclareConst(global.context, this.peer) @@ -530,20 +513,21 @@ export class ScriptFunction extends AstNode { static create( body: AstNode | undefined, - signature: FunctionSignature | undefined, functionFlags: Es2pandaScriptFunctionFlags, modifierFlags: Es2pandaModifierFlags, declare: boolean, ident: Identifier | undefined, - parameters?: ETSParameterExpression[], + parameters: ETSParameterExpression[]|undefined, + typeParamsDecl: TSTypeParameterDeclaration|undefined, + returnTypeAnnotation: AstNode|undefined ): ScriptFunction { const peer = global.generatedEs2panda._CreateScriptFunction( global.context, passNode(body), - signature?.peer ?? FunctionSignature.create( - undefined, + FunctionSignature.create( + typeParamsDecl, parameters!, - undefined + returnTypeAnnotation ).peer, functionFlags, modifierFlags @@ -554,6 +538,12 @@ export class ScriptFunction extends AstNode { return new ScriptFunction(peer) } + setIdent(id: Identifier): ScriptFunction { + assertValidPeer(id.peer, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER); + global.generatedEs2panda._ScriptFunctionSetIdent(global.context, this.peer, id.peer); + return this; + } + protected override dumpMessage(): string { const scriptFunctionFlags = global.generatedEs2panda._ScriptFunctionFlagsConst(global.context, this.peer) return ` ` @@ -580,7 +570,7 @@ export class ScriptFunction extends AstNode { // TODO: goes through whole subtree, optimizable (unnecessary now) this.body.getSubtree().forEach( (node: AstNode) => { - hasReturn = hasReturn || (node.type === Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT) + hasReturn = hasReturn || nodeType(node) === Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT } ) return hasReturn @@ -592,10 +582,28 @@ export class ScriptFunction extends AstNode { readonly parameters: ETSParameterExpression[] readonly typeParamsDecl?: TSTypeParameterDeclaration + readonly returnTypeAnnotation: AstNode | undefined readonly body?: BlockStatement // readonly signature: FunctionSignature readonly scriptFunctionFlags: KInt readonly ident?: Identifier + + get annotations(): AnnotationUsage[] { + return unpackNodeArray(global.es2panda._ScriptFunctionAnnotations( + global.context, + this.peer, + nullptr + )) + } + + set annotations(newAnnotations: AnnotationUsage[]) { + global.es2panda._ScriptFunctionSetAnnotations( + global.context, + this.peer, + passNodeArray(newAnnotations), + newAnnotations.length + ); + } } export class ArrowFunctionExpression extends AstNode { @@ -707,6 +715,7 @@ export class ETSParameterExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION) super(peer) + this.identifier = unpackNonNullableNode(global.generatedEs2panda._ETSParameterExpressionIdent(global.context, this.peer)) } static create( @@ -721,6 +730,25 @@ export class ETSParameterExpression extends AstNode { ) ) } + + get annotations(): AnnotationUsage[] { + return unpackNodeArray(global.es2panda._ETSParameterExpressionAnnotations( + global.context, + this.peer, + nullptr + )) + } + + set annotations(newAnnotations: AnnotationUsage[]) { + global.es2panda._ETSParameterExpressionSetAnnotations( + global.context, + this.peer, + passNodeArray(newAnnotations), + newAnnotations.length + ); + } + + identifier: Identifier } export class TSTypeParameterDeclaration extends AstNode { @@ -811,6 +839,9 @@ export class IfStatement extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT) super(peer) + this.test = unpackNonNullableNode(global.generatedEs2panda._IfStatementTest(global.context, this.peer)) + this.consequent = unpackNonNullableNode(global.generatedEs2panda._IfStatementConsequent(global.context, this.peer)) + this.alternate = unpackNode(global.generatedEs2panda._IfStatementAlternate(global.context, this.peer)) } static create( @@ -827,6 +858,10 @@ export class IfStatement extends AstNode { ) ) } + + test: AstNode + consequent: AstNode + alternate: AstNode | undefined } export class StructDeclaration extends AstNode { @@ -933,10 +968,20 @@ export class ClassStaticBlock extends AstNode { } export class MethodDefinition extends AstNode { - constructor(peer: KPtr) { + constructor(peer: KPtr, key?: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION) super(peer) + this.kind = global.generatedEs2panda._MethodDefinitionKindConst(global.context, this.peer); this.scriptFunction = unpackNonNullableNode(global.generatedEs2panda._MethodDefinitionFunction(global.context, this.peer)) + assertValidPeer(this.scriptFunction.peer, Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION); + + // Somehow the scriptFunction cannot attach method's key to its ident after checker + if (key) { + assertValidPeer(key, Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER); + const _name = unpackNonNullableNode(key); + this.scriptFunction = this.scriptFunction.setIdent(_name as Identifier); + } + this.name = unpackNonNullableNode(global.generatedEs2panda._ScriptFunctionId(global.context, this.scriptFunction.peer)) this.kind = global.generatedEs2panda._MethodDefinitionKindConst(global.context, this.peer) } @@ -956,13 +1001,19 @@ export class MethodDefinition extends AstNode { passNode(value), modifiers, isComputed - ) + ), + key.peer ) } + // TODO: does not work + isConstructor(): boolean { + return global.generatedEs2panda._MethodDefinitionIsConstructorConst(global.context, this.peer); + } + + readonly kind: Es2pandaMethodDefinitionKind; readonly scriptFunction: ScriptFunction readonly name: Identifier - readonly kind: Es2pandaMethodDefinitionKind } export class ClassElement extends AstNode { @@ -980,6 +1031,7 @@ export class ClassProperty extends ClassElement { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY) super(peer) + this.typeAnnotation = unpackNonNullableNode(global.generatedEs2panda._ClassPropertyTypeAnnotationConst(global.context, this.peer)); } static create( @@ -1000,6 +1052,27 @@ export class ClassProperty extends ClassElement { ) ) } + + get annotations(): AnnotationUsage[] { + return unpackNodeArray( + global.es2panda._ScriptFunctionAnnotations( + global.context, + this.peer, + nullptr + ) + ) + } + + set annotations(newAnnotations: AnnotationUsage[]) { + global.es2panda._ScriptFunctionSetAnnotations( + global.context, + this.peer, + passNodeArray(newAnnotations), + newAnnotations.length + ); + } + + readonly typeAnnotation: ETSTypeReference; } export class VariableDeclaration extends AstNode { @@ -1067,6 +1140,7 @@ export class SuperExpression extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION) super(peer) + this.id = unpackNonNullableNode(global.generatedEs2panda._TSInterfaceDeclarationId(global.context, this.peer)); } static create( @@ -1077,6 +1151,8 @@ export class SuperExpression extends AstNode { ) ) } + + readonly id?: Identifier; } export class ImportSource extends ArktsObject { @@ -1092,7 +1168,9 @@ export class ImportSource extends ArktsObject { global.es2panda._CreateImportSource( global.context, source.peer, - resolveSource(source).peer, + StringLiteral.create( + path.resolve(source.str).toString() + ).peer, hasDecl ) ) @@ -1157,21 +1235,6 @@ export class ImportSpecifier extends AstNode { } } -export class AnnotationUsageIr extends AstNode { - constructor(peer: KPtr) { - assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_USAGE) - super(peer) - this.expr = unpackNonNullableNode(global.generatedEs2panda._AnnotationUsageIrExpr(global.context, this.peer)) - this.properties = unpackNodeArray(global.generatedEs2panda._AnnotationUsageIrPropertiesConst(global.context, this.peer)) - } - - // TODO: - // static create - - readonly expr: AstNode - readonly properties: readonly ClassProperty[] -} - export class TSTypeParameterInstantiation extends AstNode { constructor(peer: KPtr) { assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_INSTANTIATION) @@ -1191,38 +1254,74 @@ export class TSTypeParameterInstantiation extends AstNode { } } -export class TSInterfaceDeclaration extends AstNode { +export class UndefinedLiteral extends AstNode { constructor(peer: KPtr) { - assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_TS_INTERFACE_DECLARATION) + assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL) super(peer) } - static create( - extendsParams: readonly AstNode[], - id: AstNode, - typeParams: AstNode, - body: AstNode, - isStatic: KBoolean, - isExternal: KBoolean, - ): TSInterfaceDeclaration { - return new TSInterfaceDeclaration( - global.generatedEs2panda._CreateTSInterfaceDeclaration( - global.context, - passNodeArray(extendsParams), - extendsParams.length, - passNode(id), - passNode(typeParams), - passNode(body), - isStatic, - isExternal, - ) + static create(): UndefinedLiteral { + return new UndefinedLiteral( + global.generatedEs2panda._CreateUndefinedLiteral(global.context) ) } } -export class UndefinedLiteral extends AstNode { +export class AnnotationDeclaration extends AstNode { constructor(peer: KPtr) { - assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL) + assertValidPeer(peer, Es2pandaAstNodeType.AST_NODE_TYPE_ANNOTATION_DECLARATION); super(peer) } + + static create( + expr: AstNode + ): AnnotationDeclaration { + return new AnnotationDeclaration ( + global.generatedEs2panda._CreateAnnotationDeclaration( + global.context, + passNode(expr) + ) + ) + } } + +const pairs: [Es2pandaAstNodeType, { new(peer: KNativePointer): AstNode }][] = [ + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_MODULE, EtsScript], + [Es2pandaAstNodeType.AST_NODE_TYPE_IDENTIFIER, Identifier], + [Es2pandaAstNodeType.AST_NODE_TYPE_STRING_LITERAL, StringLiteral], + [Es2pandaAstNodeType.AST_NODE_TYPE_NUMBER_LITERAL, NumberLiteral], + [Es2pandaAstNodeType.AST_NODE_TYPE_EXPRESSION_STATEMENT, ExpressionStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_DECLARATION, FunctionDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_SCRIPT_FUNCTION, ScriptFunction], + [Es2pandaAstNodeType.AST_NODE_TYPE_BLOCK_STATEMENT, BlockStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_RETURN_STATEMENT, ReturnStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PARAMETER_EXPRESSION, ETSParameterExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE, ETSTypeReference], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_TYPE_REFERENCE_PART, ETSTypeReferencePart], + [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER_DECLARATION, TSTypeParameterDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_PRIMITIVE_TYPE, ETSPrimitiveType], + [Es2pandaAstNodeType.AST_NODE_TYPE_CALL_EXPRESSION, CallExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_MEMBER_EXPRESSION, MemberExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_TS_TYPE_PARAMETER, TSTypeParameter], + [Es2pandaAstNodeType.AST_NODE_TYPE_IF_STATEMENT, IfStatement], + [Es2pandaAstNodeType.AST_NODE_TYPE_BINARY_EXPRESSION, BinaryExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNION_TYPE, ETSUnionType], + [Es2pandaAstNodeType.AST_NODE_TYPE_ARROW_FUNCTION_EXPRESSION, ArrowFunctionExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_STRUCT_DECLARATION, StructDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DECLARATION, ClassDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_DEFINITION, ClassDefinition], + [Es2pandaAstNodeType.AST_NODE_TYPE_METHOD_DEFINITION, MethodDefinition], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_PROPERTY, ClassProperty], + [Es2pandaAstNodeType.AST_NODE_TYPE_ASSIGNMENT_EXPRESSION, AssignmentExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATION, VariableDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_VARIABLE_DECLARATOR, VariableDeclarator], + [Es2pandaAstNodeType.AST_NODE_TYPE_FUNCTION_EXPRESSION, FunctionExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_FUNCTION_TYPE, ETSFunctionType], + [Es2pandaAstNodeType.AST_NODE_TYPE_CLASS_STATIC_BLOCK, ClassStaticBlock], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_UNDEFINED_TYPE, ETSUndefinedType], + [Es2pandaAstNodeType.AST_NODE_TYPE_UNDEFINED_LITERAL, UndefinedLiteral], + [Es2pandaAstNodeType.AST_NODE_TYPE_SUPER_EXPRESSION, SuperExpression], + [Es2pandaAstNodeType.AST_NODE_TYPE_ETS_IMPORT_DECLARATION, EtsImportDeclaration], + [Es2pandaAstNodeType.AST_NODE_TYPE_IMPORT_SPECIFIER, ImportSpecifier], +] +pairs.forEach(([tp, cctor]) => nodeByType.set(tp, cctor)) \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts index c6ec7acdc97ad40f98c9c6c5eadeed19372adf3c..9f5d10457c3c3b35647cd0ec287b122a9ed3e409 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/private.ts @@ -14,16 +14,43 @@ */ import { global } from "../static/global" -import { throwError } from "../../utils" -import { KInt, KNativePointer, nullptr, withString, withStringArray, withStringResult } from "@koalaui/interop" +import { isNumber, throwError } from "../../utils" +import { + KInt, + KNativePointer as KPtr, + KNativePointer, + nullptr, + withString, + withStringArray, + withStringResult +} from "@koalaui/interop" import { NativePtrDecoder } from "./nativePtrDecoder" -import * as path from "node:path" -import { allFlags, StringLiteral } from "../types" -import { Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" -import { factory } from "../factory/nodeFactory" +import { Es2pandaModifierFlags, Es2pandaScriptFunctionFlags } from "../../generated/Es2pandaEnums" import { classByPeer } from "../class-by-peer" -import { AstNode } from "../peers/AstNode" +import type { AstNode } from "../peers/AstNode" import { ArktsObject } from "../peers/ArktsObject" +import { Es2pandaAstNodeType } from "../../Es2pandaEnums" + +export const arrayOfNullptr = new BigUint64Array([nullptr]) + +export const allFlags = + Object.values(Es2pandaModifierFlags) + .filter(isNumber) + .reduce( + (prev, next) => (prev | next), + 0 + + ) + +export function assertValidPeer(peer: KPtr, expectedKind: Es2pandaAstNodeType): void { + if (peer === nullptr) { + throwError(`invalid peer`) + } + const peerType = global.generatedEs2panda._AstNodeTypeConst(global.context, peer) + if (peerType !== expectedKind) { + throwError(`expected: ${Es2pandaAstNodeType[expectedKind]}, got: ${Es2pandaAstNodeType[peerType]}`) + } +} export function unpackNonNullableNode(peer: KNativePointer): T { if (peer === nullptr) { @@ -130,8 +157,6 @@ export function updateNodeByNode(node: T, original: AstNode): return node } -export function resolveSource(source: StringLiteral): StringLiteral { - return factory.createStringLiteral( - path.resolve(source.str).toString() - ) +export function nodeType(node: AstNode): Es2pandaAstNodeType { + return global.generatedEs2panda._AstNodeTypeConst(global.context, passNode(node)) } diff --git a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts index dbea933f3c14c53834281e4863a39e766a3d4279..de723054eecd7cb658e4770a6acfbc4efbe6879e 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/utilities/public.ts @@ -15,13 +15,12 @@ import { global } from "../static/global" import { throwError } from "../../utils" -import { KNativePointer, nullptr, withStringResult } from "@koalaui/interop" -import { AnnotationUsageIr, MethodDefinition } from "../types" +import { nullptr, withStringResult } from "@koalaui/interop" import { passNode, unpackNodeArray, unpackNonNullableNode } from "./private" import { isClassDefinition, isFunctionDeclaration, isScriptFunction } from "../factory/nodeTests" import { Es2pandaContextState } from "../../generated/Es2pandaEnums" -import { AstNode } from "../peers/AstNode" -import { Identifier } from "../types" +import type { AstNode } from "../peers/AstNode" +import type { AnnotationUsage } from "../../generated" export function proceedToState(state: Es2pandaContextState): void { if (state <= global.es2panda._ContextState(global.context)) { @@ -32,9 +31,15 @@ export function proceedToState(state: Es2pandaContextState): void { if (global.es2panda._ContextState(global.context) === Es2pandaContextState.ES2PANDA_STATE_ERROR) { const errorMessage = withStringResult(global.es2panda._ContextErrorMessage(global.context)) if (errorMessage === undefined) { - throwError(`COULDN'T GET ContextErrorMessage`) + throwError(`Could not get ContextErrorMessage`) } - throwError("FAILED PROCEED TO: " + Es2pandaContextState[state] + "\n" + errorMessage) + throwError( + [ + `Failed to proceed to ${Es2pandaContextState[state]}`, + errorMessage + ] + .join(`\n`) + ) } } catch (e) { global.es2panda._DestroyContext(global.context) @@ -62,7 +67,7 @@ export function getDecl(node: AstNode): AstNode | undefined { return unpackNonNullableNode(decl) } -export function getAnnotations(node: AstNode): readonly AnnotationUsageIr[] { +export function getAnnotations(node: AstNode): readonly AnnotationUsage[] { if (!isFunctionDeclaration(node) && !isScriptFunction(node) && !isClassDefinition(node)) { throwError('for now annotations allowed only for: functionDeclaration, scriptFunction, classDefinition') } diff --git a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts index f114ccef781eca77d431c1a79213f0a06b1baa31..6d518991d66a3edd957ab64f158200859ff030ea 100644 --- a/arkoala-arkts/libarkts/src/arkts-api/visitor.ts +++ b/arkoala-arkts/libarkts/src/arkts-api/visitor.ts @@ -24,20 +24,67 @@ import { ExpressionStatement, FunctionDeclaration, FunctionSignature, + IfStatement, MethodDefinition, ScriptFunction, - StructDeclaration + StructDeclaration, + TSTypeParameterInstantiation, } from "./types" -import { - Es2pandaClassDefinitionModifiers, - Es2pandaModifierFlags -} from "../generated/Es2pandaEnums" +import { Es2pandaClassDefinitionModifiers, Es2pandaModifierFlags } from "../generated/Es2pandaEnums" import { nullptr } from "@koalaui/interop" import { AstNode } from "./peers/AstNode" import { MemberExpression } from "./to-be-generated/MemberExpression" +import { TSInterfaceBody, TSInterfaceDeclaration } from "../generated" type Visitor = (node: AstNode) => AstNode +export interface DoubleNode { + originNode: AstNode; + translatedNode: AstNode; +} + +export class StructInfo { + stateVariables: Set = new Set(); +} + +export class GlobalInfo { + private _structCollection: Set; + private static instance: GlobalInfo; + private _structMap: Map; + + private constructor() { + this._structCollection = new Set(); + this._structMap = new Map(); + } + + public static getInfoInstance(): GlobalInfo { + if (!this.instance) { + this.instance = new GlobalInfo(); + } + return this.instance; + } + + public add(str: string): void { + this._structCollection.add(str); + } + + public getStructCollection(): Set { + return this._structCollection; + } + + public getStructInfo(structName: string): StructInfo { + const structInfo = this._structMap.get(structName); + if (!structInfo) { + return new StructInfo(); + } + return structInfo; + } + + public setStructInfo(structName: string, info: StructInfo): void { + this._structMap.set(structName, info); + } +} + // TODO: rethink (remove as) function nodeVisitor(node: T, visitor: Visitor): T { if (node === undefined) { @@ -68,7 +115,7 @@ export function visitEachChild( return factory.updateCallExpression( node, nodeVisitor(node.expression, visitor), - undefined, // TODO + nodesVisitor(node.typeArguments, visitor), nodesVisitor(node.arguments, visitor), nodeVisitor(node.trailingBlock, visitor) ) @@ -130,16 +177,13 @@ export function visitEachChild( factory.updateScriptFunction( node.scriptFunction, nodeVisitor(node.scriptFunction.body, visitor), - FunctionSignature.create( - node.scriptFunction.typeParamsDecl, - node.scriptFunction.parameters, - // TODO: fix return type - nullptr - ), 0, node.modifiers | Es2pandaModifierFlags.MODIFIER_FLAGS_PUBLIC || Es2pandaModifierFlags.MODIFIER_FLAGS_STATIC, false, - node.name + node.name, + node.scriptFunction.parameters, + node.scriptFunction.typeParamsDecl, + node.scriptFunction.returnTypeAnnotation ) ), node.modifiers, @@ -150,12 +194,13 @@ export function visitEachChild( return factory.updateScriptFunction( node, nodeVisitor(node.body, visitor), - nullptr, node.scriptFunctionFlags, Es2pandaModifierFlags.MODIFIER_FLAGS_NONE, false, nodeVisitor(node.ident, visitor), - nodesVisitor(node.parameters, visitor) + nodesVisitor(node.parameters, visitor), + nodeVisitor(node.typeParamsDecl, visitor), + nodeVisitor(node.returnTypeAnnotation, visitor) ) } if (node instanceof EtsImportDeclaration) { @@ -177,7 +222,34 @@ export function visitEachChild( node.optional ) } - + if (node instanceof TSInterfaceDeclaration) { + return factory.updateInterfaceDeclaration( + node, + nodesVisitor(node.extends, visitor), + node.extends.length, + nodeVisitor(node.id, visitor), + nodeVisitor(node.typeParams, visitor), + nodeVisitor(node.body, visitor), + node.isStaticConst, + // TODO: how do I get it? + true + ) + } + if (node instanceof TSInterfaceBody) { + return factory.updateInterfaceBody( + node, + nodesVisitor(node.body, visitor), + node.body.length + ) + } + if (node instanceof IfStatement) { + return factory.updateIfStatement( + node, + nodeVisitor(node.test, visitor), + nodeVisitor(node.consequent, visitor), + nodeVisitor(node.alternate, visitor), + ) + } // TODO return node } diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts index 07b9fbc43ffee8074ebe8c9751fdd9a6f0ac5686..36938c6ccd77e534b024160f2a07b1193e758ab1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedAstNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" export abstract class AnnotatedAstNode extends AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts index e6bdfee720fab07637b81d6a773298711e4b6691..63624f801ca193f0f9008410bcc1a0d3e24f83a4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts index 171ecd6255d8aab423f89b2ada5de94c2d028693..679236e02c8690947a3d38eee8bdfac55c319cd8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotatedStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts index aad6adc04e4a1e77e9a64523199dab625fb01f39..17c10a02ccfb3578e943183e52b5e78a0a716ebc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class AnnotationDeclaration extends Statement { super(pointer) console.warn("Warning: stub node AnnotationDeclaration") } - static createAnnotationDeclaration(expr?: Expression): AnnotationDeclaration | undefined { + static createAnnotationDeclaration(expr?: Expression): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration(global.context, passNode(expr))) } - static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration | undefined { + static updateAnnotationDeclaration(original?: AnnotationDeclaration, expr?: Expression): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration(global.context, passNode(original), passNode(expr))) } - static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration | undefined { + static create1AnnotationDeclaration(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._CreateAnnotationDeclaration1(global.context, passNode(expr), passNodeArray(properties), propertiesLen)) } - static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration | undefined { + static update1AnnotationDeclaration(original: AnnotationDeclaration | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationDeclaration { return new AnnotationDeclaration(global.generatedEs2panda._UpdateAnnotationDeclaration1(global.context, passNode(original), passNode(expr), passNodeArray(properties), propertiesLen)) } get internalNameConst(): string { @@ -67,4 +68,7 @@ export class AnnotationDeclaration extends Statement { } export function isAnnotationDeclaration(node: AstNode): node is AnnotationDeclaration { return node instanceof AnnotationDeclaration +} +if (!nodeByType.has(1)) { + nodeByType.set(1, AnnotationDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts index 326159dd18604c8376243829977aa009cfdda716..8e324f9da55bb4f9a561edf4c0f25caa969017cb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AnnotationUsage.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class AnnotationUsage extends Statement { super(pointer) console.warn("Warning: stub node AnnotationUsage") } - static createAnnotationUsage(expr?: Expression): AnnotationUsage | undefined { + static createAnnotationUsage(expr?: Expression): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr(global.context, passNode(expr))) } - static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage | undefined { + static updateAnnotationUsage(original?: AnnotationUsage, expr?: Expression): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsageIr(global.context, passNode(original), passNode(expr))) } - static create1AnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage | undefined { + static create1AnnotationUsage(expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._CreateAnnotationUsageIr1(global.context, passNode(expr), passNodeArray(properties), propertiesLen)) } - static update1AnnotationUsage(original: AnnotationUsage | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage | undefined { + static update1AnnotationUsage(original: AnnotationUsage | undefined, expr: Expression | undefined, properties: readonly AstNode[], propertiesLen: number): AnnotationUsage { return new AnnotationUsage(global.generatedEs2panda._UpdateAnnotationUsageIr1(global.context, passNode(original), passNode(expr), passNodeArray(properties), propertiesLen)) } get expr(): Expression | undefined { @@ -61,4 +62,7 @@ export class AnnotationUsage extends Statement { } export function isAnnotationUsage(node: AstNode): node is AnnotationUsage { return node instanceof AnnotationUsage +} +if (!nodeByType.has(2)) { + nodeByType.set(2, AnnotationUsage) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts index 56113fd26eaded6d9e39b6a609a3e1194a93b522..fbdef94850d102d13ae69571f5c8ed33b7bc22be 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrayExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts index 2e6d050e7dacda46505f4785d5fc6ff45178bc92..90de76f6aaf494d8e56b7d70ebcd1682b4bc5c88 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ArrowFunctionExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -35,16 +36,16 @@ export class ArrowFunctionExpression extends Expression { super(pointer) console.warn("Warning: stub node ArrowFunctionExpression") } - static createArrowFunctionExpression(func?: ScriptFunction): ArrowFunctionExpression | undefined { + static createArrowFunctionExpression(func?: ScriptFunction): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression(global.context, passNode(func))) } - static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction): ArrowFunctionExpression | undefined { + static updateArrowFunctionExpression(original?: ArrowFunctionExpression, func?: ScriptFunction): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression(global.context, passNode(original), passNode(func))) } - static create1ArrowFunctionExpression(other?: ArrowFunctionExpression): ArrowFunctionExpression | undefined { + static create1ArrowFunctionExpression(other?: ArrowFunctionExpression): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._CreateArrowFunctionExpression1(global.context, passNode(other))) } - static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression): ArrowFunctionExpression | undefined { + static update1ArrowFunctionExpression(original?: ArrowFunctionExpression, other?: ArrowFunctionExpression): ArrowFunctionExpression { return new ArrowFunctionExpression(global.generatedEs2panda._UpdateArrowFunctionExpression1(global.context, passNode(original), passNode(other))) } get functionConst(): ScriptFunction | undefined { @@ -62,4 +63,7 @@ export class ArrowFunctionExpression extends Expression { } export function isArrowFunctionExpression(node: AstNode): node is ArrowFunctionExpression { return node instanceof ArrowFunctionExpression +} +if (!nodeByType.has(0)) { + nodeByType.set(0, ArrowFunctionExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts index b21e36baff40e080967397e96f30dc96ad2aa744..d9ff4e1d559a1172e5a9f7e901e56112c3b0ce1b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssertStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class AssertStatement extends Statement { super(pointer) console.warn("Warning: stub node AssertStatement") } - static createAssertStatement(test?: Expression, second?: Expression): AssertStatement | undefined { + static createAssertStatement(test?: Expression, second?: Expression): AssertStatement { return new AssertStatement(global.generatedEs2panda._CreateAssertStatement(global.context, passNode(test), passNode(second))) } - static updateAssertStatement(original?: AssertStatement, test?: Expression, second?: Expression): AssertStatement | undefined { + static updateAssertStatement(original?: AssertStatement, test?: Expression, second?: Expression): AssertStatement { return new AssertStatement(global.generatedEs2panda._UpdateAssertStatement(global.context, passNode(original), passNode(test), passNode(second))) } get testConst(): Expression | undefined { @@ -52,4 +53,7 @@ export class AssertStatement extends Statement { } export function isAssertStatement(node: AstNode): node is AssertStatement { return node instanceof AssertStatement +} +if (!nodeByType.has(3)) { + nodeByType.set(3, AssertStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts index 84f10656d77a31d2f86984ca331d21f1601053cd..75085e0f2ae7aee722db441b871cfb7432eee7f1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AssignmentExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts index e1981e7dc2a22e72a42f5dd0740e6b2a85f26785..47492db2d1cd8654ba0a94d4040ad7dbcf800f83 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/AwaitExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class AwaitExpression extends Expression { super(pointer) console.warn("Warning: stub node AwaitExpression") } - static createAwaitExpression(argument?: Expression): AwaitExpression | undefined { + static createAwaitExpression(argument?: Expression): AwaitExpression { return new AwaitExpression(global.generatedEs2panda._CreateAwaitExpression(global.context, passNode(argument))) } - static updateAwaitExpression(original?: AwaitExpression, argument?: Expression): AwaitExpression | undefined { + static updateAwaitExpression(original?: AwaitExpression, argument?: Expression): AwaitExpression { return new AwaitExpression(global.generatedEs2panda._UpdateAwaitExpression(global.context, passNode(original), passNode(argument))) } get argumentConst(): Expression | undefined { @@ -45,4 +46,7 @@ export class AwaitExpression extends Expression { } export function isAwaitExpression(node: AstNode): node is AwaitExpression { return node instanceof AwaitExpression +} +if (!nodeByType.has(4)) { + nodeByType.set(4, AwaitExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts index 1d6b844be43c2381c2504997efe6e01fa69190ed..5138e43be05c99bb25d09ddd69eaa18418dc6a16 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BigIntLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,10 +34,10 @@ export class BigIntLiteral extends Literal { super(pointer) console.warn("Warning: stub node BigIntLiteral") } - static createBigIntLiteral(src: string): BigIntLiteral | undefined { + static createBigIntLiteral(src: string): BigIntLiteral { return new BigIntLiteral(global.generatedEs2panda._CreateBigIntLiteral(global.context, src)) } - static updateBigIntLiteral(original: BigIntLiteral | undefined, src: string): BigIntLiteral | undefined { + static updateBigIntLiteral(original: BigIntLiteral | undefined, src: string): BigIntLiteral { return new BigIntLiteral(global.generatedEs2panda._UpdateBigIntLiteral(global.context, passNode(original), src)) } get strConst(): string { @@ -45,4 +46,7 @@ export class BigIntLiteral extends Literal { } export function isBigIntLiteral(node: AstNode): node is BigIntLiteral { return node instanceof BigIntLiteral +} +if (!nodeByType.has(5)) { + nodeByType.set(5, BigIntLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts index 9a74606438fa1f5583a7ac8e04333be4d98ea401..ac197bf482c8615731614d0c5f9a87349ee60910 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BinaryExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class BinaryExpression extends Expression { super(pointer) console.warn("Warning: stub node BinaryExpression") } - static createBinaryExpression(left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression | undefined { + static createBinaryExpression(left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression { return new BinaryExpression(global.generatedEs2panda._CreateBinaryExpression(global.context, passNode(left), passNode(right), operatorType)) } - static updateBinaryExpression(original: BinaryExpression | undefined, left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression | undefined { + static updateBinaryExpression(original: BinaryExpression | undefined, left: Expression | undefined, right: Expression | undefined, operatorType: Es2pandaTokenType): BinaryExpression { return new BinaryExpression(global.generatedEs2panda._UpdateBinaryExpression(global.context, passNode(original), passNode(left), passNode(right), operatorType)) } get leftConst(): Expression | undefined { @@ -76,4 +77,7 @@ export class BinaryExpression extends Expression { } export function isBinaryExpression(node: AstNode): node is BinaryExpression { return node instanceof BinaryExpression +} +if (!nodeByType.has(6)) { + nodeByType.set(6, BinaryExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts index 39d766831341729f2e66377725b7644e8845f462..0a1465641e3b32da436da2490e8848cc7fb950a7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -43,4 +44,7 @@ export class BlockExpression extends Expression { } export function isBlockExpression(node: AstNode): node is BlockExpression { return node instanceof BlockExpression +} +if (!nodeByType.has(154)) { + nodeByType.set(154, BlockExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts index d6711fb0483bed8dff0d693bd33335ba1f8bc184..0a7b0b1aa7db37eff72a318f164122c2be965e17 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BlockStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -42,4 +43,7 @@ export class BlockStatement extends Statement { } export function isBlockStatement(node: AstNode): node is BlockStatement { return node instanceof BlockStatement +} +if (!nodeByType.has(7)) { + nodeByType.set(7, BlockStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts index 9390b9ae6bcb4c26df975986796b57e9e7b12f21..d31f4b5a449fb59e8b53eae5401ac2e17091670a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BooleanLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,10 +34,10 @@ export class BooleanLiteral extends Literal { super(pointer) console.warn("Warning: stub node BooleanLiteral") } - static createBooleanLiteral(value: boolean): BooleanLiteral | undefined { + static createBooleanLiteral(value: boolean): BooleanLiteral { return new BooleanLiteral(global.generatedEs2panda._CreateBooleanLiteral(global.context, value)) } - static updateBooleanLiteral(original: BooleanLiteral | undefined, value: boolean): BooleanLiteral | undefined { + static updateBooleanLiteral(original: BooleanLiteral | undefined, value: boolean): BooleanLiteral { return new BooleanLiteral(global.generatedEs2panda._UpdateBooleanLiteral(global.context, passNode(original), value)) } get valueConst(): boolean { @@ -45,4 +46,7 @@ export class BooleanLiteral extends Literal { } export function isBooleanLiteral(node: AstNode): node is BooleanLiteral { return node instanceof BooleanLiteral +} +if (!nodeByType.has(8)) { + nodeByType.set(8, BooleanLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts index 8fb8051b59f934920f7887acd68427ad38d46978..44785b47a9f5c11d753c434a21d17b3abdd7b86e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/BreakStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class BreakStatement extends Statement { super(pointer) console.warn("Warning: stub node BreakStatement") } - static createBreakStatement(): BreakStatement | undefined { + static createBreakStatement(): BreakStatement { return new BreakStatement(global.generatedEs2panda._CreateBreakStatement(global.context)) } - static updateBreakStatement(original?: BreakStatement): BreakStatement | undefined { + static updateBreakStatement(original?: BreakStatement): BreakStatement { return new BreakStatement(global.generatedEs2panda._UpdateBreakStatement(global.context, passNode(original))) } - static create1BreakStatement(ident?: Identifier): BreakStatement | undefined { + static create1BreakStatement(ident?: Identifier): BreakStatement { return new BreakStatement(global.generatedEs2panda._CreateBreakStatement1(global.context, passNode(ident))) } - static update1BreakStatement(original?: BreakStatement, ident?: Identifier): BreakStatement | undefined { + static update1BreakStatement(original?: BreakStatement, ident?: Identifier): BreakStatement { return new BreakStatement(global.generatedEs2panda._UpdateBreakStatement1(global.context, passNode(original), passNode(ident))) } get identConst(): Identifier | undefined { @@ -58,4 +59,7 @@ export class BreakStatement extends Statement { } export function isBreakStatement(node: AstNode): node is BreakStatement { return node instanceof BreakStatement +} +if (!nodeByType.has(9)) { + nodeByType.set(9, BreakStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts index 495b700fcb5e62884d7076e448bacda88f47a5b1..b8673949859e05c3c5f40593198f0b6bc7b0ad70 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CallExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { MaybeOptionalExpression } from "./MaybeOptionalExpression" @@ -36,13 +37,13 @@ export class CallExpression extends MaybeOptionalExpression { super(pointer) console.warn("Warning: stub node CallExpression") } - static createCallExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, trailingComma: boolean): CallExpression | undefined { + static createCallExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, trailingComma: boolean): CallExpression { return new CallExpression(global.generatedEs2panda._CreateCallExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, trailingComma)) } - static create1CallExpression(other?: CallExpression): CallExpression | undefined { + static create1CallExpression(other?: CallExpression): CallExpression { return new CallExpression(global.generatedEs2panda._CreateCallExpression1(global.context, passNode(other))) } - static update1CallExpression(original?: CallExpression, other?: CallExpression): CallExpression | undefined { + static update1CallExpression(original?: CallExpression, other?: CallExpression): CallExpression { return new CallExpression(global.generatedEs2panda._UpdateCallExpression1(global.context, passNode(original), passNode(other))) } get calleeConst(): Expression | undefined { @@ -75,4 +76,7 @@ export class CallExpression extends MaybeOptionalExpression { } export function isCallExpression(node: AstNode): node is CallExpression { return node instanceof CallExpression +} +if (!nodeByType.has(10)) { + nodeByType.set(10, CallExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts index c22e26d9225423cba4385d6a57121798addc8bd6..6e214900d38e5108878e9ea9b80c93bdf39f64c2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CatchClause.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -35,10 +36,10 @@ export class CatchClause extends TypedStatement { super(pointer) console.warn("Warning: stub node CatchClause") } - static createCatchClause(param?: Expression, body?: BlockStatement): CatchClause | undefined { + static createCatchClause(param?: Expression, body?: BlockStatement): CatchClause { return new CatchClause(global.generatedEs2panda._CreateCatchClause(global.context, passNode(param), passNode(body))) } - static updateCatchClause(original?: CatchClause, param?: Expression, body?: BlockStatement): CatchClause | undefined { + static updateCatchClause(original?: CatchClause, param?: Expression, body?: BlockStatement): CatchClause { return new CatchClause(global.generatedEs2panda._UpdateCatchClause(global.context, passNode(original), passNode(param), passNode(body))) } get param(): Expression | undefined { @@ -56,4 +57,7 @@ export class CatchClause extends TypedStatement { } export function isCatchClause(node: AstNode): node is CatchClause { return node instanceof CatchClause +} +if (!nodeByType.has(11)) { + nodeByType.set(11, CatchClause) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts index da0e9826c60b6d500f38de8be67883eb93ac3fe7..992c8db0ef98968bd45fb74b51fa8a82d9cc54f5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ChainExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class ChainExpression extends Expression { super(pointer) console.warn("Warning: stub node ChainExpression") } - static createChainExpression(expression?: Expression): ChainExpression | undefined { + static createChainExpression(expression?: Expression): ChainExpression { return new ChainExpression(global.generatedEs2panda._CreateChainExpression(global.context, passNode(expression))) } - static updateChainExpression(original?: ChainExpression, expression?: Expression): ChainExpression | undefined { + static updateChainExpression(original?: ChainExpression, expression?: Expression): ChainExpression { return new ChainExpression(global.generatedEs2panda._UpdateChainExpression(global.context, passNode(original), passNode(expression))) } get getExpressionConst(): Expression | undefined { @@ -48,4 +49,7 @@ export class ChainExpression extends Expression { } export function isChainExpression(node: AstNode): node is ChainExpression { return node instanceof ChainExpression +} +if (!nodeByType.has(12)) { + nodeByType.set(12, ChainExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts index 73108082d26c0dafa2c898f8e104921bc6fc04e9..cc0c0d2b785fc984c836f6c580eaab55b5dfa530 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/CharLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,13 +34,16 @@ export class CharLiteral extends Literal { super(pointer) console.warn("Warning: stub node CharLiteral") } - static createCharLiteral(): CharLiteral | undefined { + static createCharLiteral(): CharLiteral { return new CharLiteral(global.generatedEs2panda._CreateCharLiteral(global.context)) } - static updateCharLiteral(original?: CharLiteral): CharLiteral | undefined { + static updateCharLiteral(original?: CharLiteral): CharLiteral { return new CharLiteral(global.generatedEs2panda._UpdateCharLiteral(global.context, passNode(original))) } } export function isCharLiteral(node: AstNode): node is CharLiteral { return node instanceof CharLiteral +} +if (!nodeByType.has(13)) { + nodeByType.set(13, CharLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts index 7a126b6cd35b882fbd710bc52efd930e55311786..ba2f553011368e6b530d8e043876852c21ce0adf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class ClassDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ClassDeclaration") } - static createClassDeclaration(def?: ClassDefinition): ClassDeclaration | undefined { + static createClassDeclaration(def?: ClassDefinition): ClassDeclaration { return new ClassDeclaration(global.generatedEs2panda._CreateClassDeclaration(global.context, passNode(def))) } - static updateClassDeclaration(original?: ClassDeclaration, def?: ClassDefinition): ClassDeclaration | undefined { + static updateClassDeclaration(original?: ClassDeclaration, def?: ClassDefinition): ClassDeclaration { return new ClassDeclaration(global.generatedEs2panda._UpdateClassDeclaration(global.context, passNode(original), passNode(def))) } get definition(): ClassDefinition | undefined { @@ -53,4 +54,7 @@ export class ClassDeclaration extends Statement { } export function isClassDeclaration(node: AstNode): node is ClassDeclaration { return node instanceof ClassDeclaration +} +if (!nodeByType.has(15)) { + nodeByType.set(15, ClassDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts index e46a32592a5532eeeb75b0ff010d21fce60f1bc6..7a55b8e1683b375a6a636efe26b45d64303faa58 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassDefinition.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" @@ -44,22 +45,22 @@ export class ClassDefinition extends TypedAstNode { super(pointer) console.warn("Warning: stub node ClassDefinition") } - static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static createClassDefinition(ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition(global.context, passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), implementsLen, passNode(ctor), passNode(superClass), passNodeArray(body), bodyLen, modifiers, flags)) } - static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static updateClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, typeParams: TSTypeParameterDeclaration | undefined, superTypeParams: TSTypeParameterInstantiation | undefined, _implements: readonly TSClassImplements[], implementsLen: number, ctor: MethodDefinition | undefined, superClass: Expression | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition(global.context, passNode(original), passNode(ident), passNode(typeParams), passNode(superTypeParams), passNodeArray(_implements), implementsLen, passNode(ctor), passNode(superClass), passNodeArray(body), bodyLen, modifiers, flags)) } - static create1ClassDefinition(ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static create1ClassDefinition(ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition1(global.context, passNode(ident), passNodeArray(body), bodyLen, modifiers, flags)) } - static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static update1ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, body: readonly AstNode[], bodyLen: number, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition1(global.context, passNode(original), passNode(ident), passNodeArray(body), bodyLen, modifiers, flags)) } - static create2ClassDefinition(ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static create2ClassDefinition(ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._CreateClassDefinition2(global.context, passNode(ident), modifiers, flags)) } - static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition | undefined { + static update2ClassDefinition(original: ClassDefinition | undefined, ident: Identifier | undefined, modifiers: Es2pandaClassDefinitionModifiers, flags: Es2pandaModifierFlags): ClassDefinition { return new ClassDefinition(global.generatedEs2panda._UpdateClassDefinition2(global.context, passNode(original), passNode(ident), modifiers, flags)) } get identConst(): Identifier | undefined { @@ -161,4 +162,7 @@ export class ClassDefinition extends TypedAstNode { } export function isClassDefinition(node: AstNode): node is ClassDefinition { return node instanceof ClassDefinition +} +if (!nodeByType.has(14)) { + nodeByType.set(14, ClassDefinition) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts index f61e0aad01c4245b2e990474c40c7ff20ba72df7..64378b2968ea3158626940624d530f27057c28ba 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassElement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts index 888be069ff4d8a0cb89d820bbd042fd7372df114..503561f90518c552100c7ee8b7403e8f3d9dafe0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class ClassExpression extends Expression { super(pointer) console.warn("Warning: stub node ClassExpression") } - static createClassExpression(def?: ClassDefinition): ClassExpression | undefined { + static createClassExpression(def?: ClassDefinition): ClassExpression { return new ClassExpression(global.generatedEs2panda._CreateClassExpression(global.context, passNode(def))) } - static updateClassExpression(original?: ClassExpression, def?: ClassDefinition): ClassExpression | undefined { + static updateClassExpression(original?: ClassExpression, def?: ClassDefinition): ClassExpression { return new ClassExpression(global.generatedEs2panda._UpdateClassExpression(global.context, passNode(original), passNode(def))) } get definitionConst(): ClassDefinition | undefined { @@ -46,4 +47,7 @@ export class ClassExpression extends Expression { } export function isClassExpression(node: AstNode): node is ClassExpression { return node instanceof ClassExpression +} +if (!nodeByType.has(16)) { + nodeByType.set(16, ClassExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts index 65083a584215fda1ae51503b9296cac24603ba00..fb7de87a5b5ab02d69d2b9251ed8787594844c70 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassProperty.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" @@ -37,10 +38,10 @@ export class ClassProperty extends ClassElement { super(pointer) console.warn("Warning: stub node ClassProperty") } - static createClassProperty(key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty | undefined { + static createClassProperty(key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty { return new ClassProperty(global.generatedEs2panda._CreateClassProperty(global.context, passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed)) } - static updateClassProperty(original: ClassProperty | undefined, key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty | undefined { + static updateClassProperty(original: ClassProperty | undefined, key: Expression | undefined, value: Expression | undefined, typeAnnotation: TypeNode | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): ClassProperty { return new ClassProperty(global.generatedEs2panda._UpdateClassProperty(global.context, passNode(original), passNode(key), passNode(value), passNode(typeAnnotation), modifiers, isComputed)) } get typeAnnotationConst(): TypeNode | undefined { @@ -55,4 +56,7 @@ export class ClassProperty extends ClassElement { } export function isClassProperty(node: AstNode): node is ClassProperty { return node instanceof ClassProperty +} +if (!nodeByType.has(17)) { + nodeByType.set(17, ClassProperty) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts index 880888735d5e7fa51f34260982193f597e5bfc4b..4772fea2b74001ed5a9cef7fd8f9882efb289224 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ClassStaticBlock.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" @@ -34,13 +35,16 @@ export class ClassStaticBlock extends ClassElement { super(pointer) console.warn("Warning: stub node ClassStaticBlock") } - static createClassStaticBlock(value?: Expression): ClassStaticBlock | undefined { + static createClassStaticBlock(value?: Expression): ClassStaticBlock { return new ClassStaticBlock(global.generatedEs2panda._CreateClassStaticBlock(global.context, passNode(value))) } - static updateClassStaticBlock(original?: ClassStaticBlock, value?: Expression): ClassStaticBlock | undefined { + static updateClassStaticBlock(original?: ClassStaticBlock, value?: Expression): ClassStaticBlock { return new ClassStaticBlock(global.generatedEs2panda._UpdateClassStaticBlock(global.context, passNode(original), passNode(value))) } } export function isClassStaticBlock(node: AstNode): node is ClassStaticBlock { return node instanceof ClassStaticBlock +} +if (!nodeByType.has(18)) { + nodeByType.set(18, ClassStaticBlock) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts index d92ad39b524f2d47404f6f2313f57a7d7bee590a..b9e7fba20c8b1f2076c8c88835cc37bb4b546936 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ConditionalExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class ConditionalExpression extends Expression { super(pointer) console.warn("Warning: stub node ConditionalExpression") } - static createConditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression | undefined { + static createConditionalExpression(test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression { return new ConditionalExpression(global.generatedEs2panda._CreateConditionalExpression(global.context, passNode(test), passNode(consequent), passNode(alternate))) } - static updateConditionalExpression(original?: ConditionalExpression, test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression | undefined { + static updateConditionalExpression(original?: ConditionalExpression, test?: Expression, consequent?: Expression, alternate?: Expression): ConditionalExpression { return new ConditionalExpression(global.generatedEs2panda._UpdateConditionalExpression(global.context, passNode(original), passNode(test), passNode(consequent), passNode(alternate))) } get testConst(): Expression | undefined { @@ -60,4 +61,7 @@ export class ConditionalExpression extends Expression { } export function isConditionalExpression(node: AstNode): node is ConditionalExpression { return node instanceof ConditionalExpression +} +if (!nodeByType.has(19)) { + nodeByType.set(19, ConditionalExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts index 51ad34eb0c564b0b533bfab5b19f7b351891d161..52c66fd961a39ee86635026ae31cb1280006d50a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ContinueStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class ContinueStatement extends Statement { super(pointer) console.warn("Warning: stub node ContinueStatement") } - static createContinueStatement(): ContinueStatement | undefined { + static createContinueStatement(): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement(global.context)) } - static updateContinueStatement(original?: ContinueStatement): ContinueStatement | undefined { + static updateContinueStatement(original?: ContinueStatement): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement(global.context, passNode(original))) } - static create1ContinueStatement(ident?: Identifier): ContinueStatement | undefined { + static create1ContinueStatement(ident?: Identifier): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._CreateContinueStatement1(global.context, passNode(ident))) } - static update1ContinueStatement(original?: ContinueStatement, ident?: Identifier): ContinueStatement | undefined { + static update1ContinueStatement(original?: ContinueStatement, ident?: Identifier): ContinueStatement { return new ContinueStatement(global.generatedEs2panda._UpdateContinueStatement1(global.context, passNode(original), passNode(ident))) } get identConst(): Identifier | undefined { @@ -58,4 +59,7 @@ export class ContinueStatement extends Statement { } export function isContinueStatement(node: AstNode): node is ContinueStatement { return node instanceof ContinueStatement +} +if (!nodeByType.has(20)) { + nodeByType.set(20, ContinueStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts index b4f3c236aa0cba83c73bec3c4dbcc2c3666b668a..a22d4fe298ec5084a065f181dee32a2d9af96855 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DebuggerStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -33,13 +34,16 @@ export class DebuggerStatement extends Statement { super(pointer) console.warn("Warning: stub node DebuggerStatement") } - static createDebuggerStatement(): DebuggerStatement | undefined { + static createDebuggerStatement(): DebuggerStatement { return new DebuggerStatement(global.generatedEs2panda._CreateDebuggerStatement(global.context)) } - static updateDebuggerStatement(original?: DebuggerStatement): DebuggerStatement | undefined { + static updateDebuggerStatement(original?: DebuggerStatement): DebuggerStatement { return new DebuggerStatement(global.generatedEs2panda._UpdateDebuggerStatement(global.context, passNode(original))) } } export function isDebuggerStatement(node: AstNode): node is DebuggerStatement { return node instanceof DebuggerStatement +} +if (!nodeByType.has(21)) { + nodeByType.set(21, DebuggerStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts index 87db27b5d61f0d3d8ce6aed93307330e893c6508..1bef25a96df867e4c7f5fb2cdd7cdfbc3c4d744a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Decorator.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class Decorator extends Statement { super(pointer) console.warn("Warning: stub node Decorator") } - static createDecorator(expr?: Expression): Decorator | undefined { + static createDecorator(expr?: Expression): Decorator { return new Decorator(global.generatedEs2panda._CreateDecorator(global.context, passNode(expr))) } - static updateDecorator(original?: Decorator, expr?: Expression): Decorator | undefined { + static updateDecorator(original?: Decorator, expr?: Expression): Decorator { return new Decorator(global.generatedEs2panda._UpdateDecorator(global.context, passNode(original), passNode(expr))) } get exprConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class Decorator extends Statement { } export function isDecorator(node: AstNode): node is Decorator { return node instanceof Decorator +} +if (!nodeByType.has(22)) { + nodeByType.set(22, Decorator) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts index 314fc25224e53b7a57f8fafa728287b8a9483d47..8892919d0dac0f6e785c7b510f2c62d3595bc47c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DirectEvalExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { CallExpression } from "./CallExpression" @@ -35,13 +36,16 @@ export class DirectEvalExpression extends CallExpression { super(pointer) console.warn("Warning: stub node DirectEvalExpression") } - static createDirectEvalExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression | undefined { + static createDirectEvalExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression { return new DirectEvalExpression(global.generatedEs2panda._CreateDirectEvalExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, parserStatus)) } - static updateDirectEvalExpression(original: DirectEvalExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression | undefined { + static updateDirectEvalExpression(original: DirectEvalExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number, typeParams: TSTypeParameterInstantiation | undefined, optional_arg: boolean, parserStatus: number): DirectEvalExpression { return new DirectEvalExpression(global.generatedEs2panda._UpdateDirectEvalExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), argumentsLen, passNode(typeParams), optional_arg, parserStatus)) } } export function isDirectEvalExpression(node: AstNode): node is DirectEvalExpression { return node instanceof DirectEvalExpression +} +if (!nodeByType.has(23)) { + nodeByType.set(23, DirectEvalExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts index f69393d1759945e47c9f8a3ca406332514527edf..c6f8f061530ac7100afcaf1a52fe9cda6f9726bd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/DoWhileStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -50,4 +51,7 @@ export class DoWhileStatement extends LoopStatement { } export function isDoWhileStatement(node: AstNode): node is DoWhileStatement { return node instanceof DoWhileStatement +} +if (!nodeByType.has(24)) { + nodeByType.set(24, DoWhileStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts index 30f74e4f508c1bcf3377487f0b454b7dd408353c..2090b961feaadc5edbf4074488ef439ef5512300 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSClassLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class ETSClassLiteral extends Expression { super(pointer) console.warn("Warning: stub node ETSClassLiteral") } - static createETSClassLiteral(expr?: TypeNode): ETSClassLiteral | undefined { + static createETSClassLiteral(expr?: TypeNode): ETSClassLiteral { return new ETSClassLiteral(global.generatedEs2panda._CreateETSClassLiteral(global.context, passNode(expr))) } - static updateETSClassLiteral(original?: ETSClassLiteral, expr?: TypeNode): ETSClassLiteral | undefined { + static updateETSClassLiteral(original?: ETSClassLiteral, expr?: TypeNode): ETSClassLiteral { return new ETSClassLiteral(global.generatedEs2panda._UpdateETSClassLiteral(global.context, passNode(original), passNode(expr))) } get exprConst(): TypeNode | undefined { @@ -46,4 +47,7 @@ export class ETSClassLiteral extends Expression { } export function isETSClassLiteral(node: AstNode): node is ETSClassLiteral { return node instanceof ETSClassLiteral +} +if (!nodeByType.has(70)) { + nodeByType.set(70, ETSClassLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts index 4a24d4bfa7650a216f96dfc254f4179e4fbf6d39..3a37dd0fa1c505c89015ac3f4b1eba7f8ea06ccc 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSDynamicFunctionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ETSFunctionType } from "./ETSFunctionType" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts index 3456e57b91dfdc4e6d5f9e97e2ac3b9e197cd863..627678b97ac26b3122cc65412ed42fd707524792 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSFunctionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -73,4 +74,7 @@ export class ETSFunctionType extends TypeNode { } export function isETSFunctionType(node: AstNode): node is ETSFunctionType { return node instanceof ETSFunctionType +} +if (!nodeByType.has(66)) { + nodeByType.set(66, ETSFunctionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts index 7143ac0b8313934de062deeb03dbde9aa8b2d04c..16205bfaa860fc47c5ea3b0e6f1ee2598d1ce3c3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSImportDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ImportDeclaration } from "./ImportDeclaration" @@ -58,4 +59,7 @@ export class ETSImportDeclaration extends ImportDeclaration { } export function isETSImportDeclaration(node: AstNode): node is ETSImportDeclaration { return node instanceof ETSImportDeclaration +} +if (!nodeByType.has(78)) { + nodeByType.set(78, ETSImportDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts index af9f15d70d3b346429dcbda3586ecfb7972af810..24c8748f7bba19f805582f9162ecabb76b93dcb6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSLaunchExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class ETSLaunchExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSLaunchExpression") } - static createETSLaunchExpression(expr?: CallExpression): ETSLaunchExpression | undefined { + static createETSLaunchExpression(expr?: CallExpression): ETSLaunchExpression { return new ETSLaunchExpression(global.generatedEs2panda._CreateETSLaunchExpression(global.context, passNode(expr))) } - static updateETSLaunchExpression(original?: ETSLaunchExpression, expr?: CallExpression): ETSLaunchExpression | undefined { + static updateETSLaunchExpression(original?: ETSLaunchExpression, expr?: CallExpression): ETSLaunchExpression { return new ETSLaunchExpression(global.generatedEs2panda._UpdateETSLaunchExpression(global.context, passNode(original), passNode(expr))) } get callConst(): CallExpression | undefined { @@ -46,4 +47,7 @@ export class ETSLaunchExpression extends Expression { } export function isETSLaunchExpression(node: AstNode): node is ETSLaunchExpression { return node instanceof ETSLaunchExpression +} +if (!nodeByType.has(74)) { + nodeByType.set(74, ETSLaunchExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts index f7fc73b629a6231c4ecce087c9f1cec2e5afa974..18df46b998b70110feb345e56fca4d5d8075021d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSModule.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { BlockStatement } from "./BlockStatement" @@ -59,4 +60,7 @@ export class ETSModule extends BlockStatement { } export function isETSModule(node: AstNode): node is ETSModule { return node instanceof ETSModule +} +if (!nodeByType.has(81)) { + nodeByType.set(81, ETSModule) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts index 5d2dfca72bc8d5a1af18bfbc113c07d15adc9441..bc727dd58c07ad52ce87795238891b7318c378fe 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewArrayInstanceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class ETSNewArrayInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewArrayInstanceExpression") } - static createETSNewArrayInstanceExpression(typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression | undefined { + static createETSNewArrayInstanceExpression(typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression { return new ETSNewArrayInstanceExpression(global.generatedEs2panda._CreateETSNewArrayInstanceExpression(global.context, passNode(typeReference), passNode(dimension))) } - static updateETSNewArrayInstanceExpression(original?: ETSNewArrayInstanceExpression, typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression | undefined { + static updateETSNewArrayInstanceExpression(original?: ETSNewArrayInstanceExpression, typeReference?: TypeNode, dimension?: Expression): ETSNewArrayInstanceExpression { return new ETSNewArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNode(dimension))) } get typeReference(): TypeNode | undefined { @@ -55,4 +56,7 @@ export class ETSNewArrayInstanceExpression extends Expression { } export function isETSNewArrayInstanceExpression(node: AstNode): node is ETSNewArrayInstanceExpression { return node instanceof ETSNewArrayInstanceExpression +} +if (!nodeByType.has(75)) { + nodeByType.set(75, ETSNewArrayInstanceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts index b75bab62634694993f63e047f2c8e87a58b8cb08..65dfaf041ae272e718e3e969d078fedbf9b96293 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewClassInstanceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,16 +34,16 @@ export class ETSNewClassInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewClassInstanceExpression") } - static createETSNewClassInstanceExpression(typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression | undefined { + static createETSNewClassInstanceExpression(typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression(global.context, passNode(typeReference), passNodeArray(_arguments), argumentsLen)) } - static updateETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression | undefined, typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression | undefined { + static updateETSNewClassInstanceExpression(original: ETSNewClassInstanceExpression | undefined, typeReference: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(_arguments), argumentsLen)) } - static create1ETSNewClassInstanceExpression(other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression | undefined { + static create1ETSNewClassInstanceExpression(other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._CreateETSNewClassInstanceExpression1(global.context, passNode(other))) } - static update1ETSNewClassInstanceExpression(original?: ETSNewClassInstanceExpression, other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression | undefined { + static update1ETSNewClassInstanceExpression(original?: ETSNewClassInstanceExpression, other?: ETSNewClassInstanceExpression): ETSNewClassInstanceExpression { return new ETSNewClassInstanceExpression(global.generatedEs2panda._UpdateETSNewClassInstanceExpression1(global.context, passNode(original), passNode(other))) } get getTypeRefConst(): Expression | undefined { @@ -54,4 +55,7 @@ export class ETSNewClassInstanceExpression extends Expression { } export function isETSNewClassInstanceExpression(node: AstNode): node is ETSNewClassInstanceExpression { return node instanceof ETSNewClassInstanceExpression +} +if (!nodeByType.has(77)) { + nodeByType.set(77, ETSNewClassInstanceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts index 88a7b6be6a3939dc178984ea6110384c1e50b50d..fa74403f136876bfb080d0afed048dc8db1010c9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNewMultiDimArrayInstanceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,16 +35,16 @@ export class ETSNewMultiDimArrayInstanceExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSNewMultiDimArrayInstanceExpression") } - static createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression | undefined { + static createETSNewMultiDimArrayInstanceExpression(typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression(global.context, passNode(typeReference), passNodeArray(dimensions), dimensionsLen)) } - static updateETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression | undefined, typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression | undefined { + static updateETSNewMultiDimArrayInstanceExpression(original: ETSNewMultiDimArrayInstanceExpression | undefined, typeReference: TypeNode | undefined, dimensions: readonly Expression[], dimensionsLen: number): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression(global.context, passNode(original), passNode(typeReference), passNodeArray(dimensions), dimensionsLen)) } - static create1ETSNewMultiDimArrayInstanceExpression(other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression | undefined { + static create1ETSNewMultiDimArrayInstanceExpression(other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._CreateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(other))) } - static update1ETSNewMultiDimArrayInstanceExpression(original?: ETSNewMultiDimArrayInstanceExpression, other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression | undefined { + static update1ETSNewMultiDimArrayInstanceExpression(original?: ETSNewMultiDimArrayInstanceExpression, other?: ETSNewMultiDimArrayInstanceExpression): ETSNewMultiDimArrayInstanceExpression { return new ETSNewMultiDimArrayInstanceExpression(global.generatedEs2panda._UpdateETSNewMultiDimArrayInstanceExpression1(global.context, passNode(original), passNode(other))) } get typeReference(): TypeNode | undefined { @@ -61,4 +62,7 @@ export class ETSNewMultiDimArrayInstanceExpression extends Expression { } export function isETSNewMultiDimArrayInstanceExpression(node: AstNode): node is ETSNewMultiDimArrayInstanceExpression { return node instanceof ETSNewMultiDimArrayInstanceExpression +} +if (!nodeByType.has(76)) { + nodeByType.set(76, ETSNewMultiDimArrayInstanceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts index 279fc847200dcf8850c3df0293afd7aec2a7c37e..0f551fd829a49bade3b3f4d784e6ba757d9bdd4f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSNullType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class ETSNullType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSNullType") } - static createETSNullType(): ETSNullType | undefined { + static createETSNullType(): ETSNullType { return new ETSNullType(global.generatedEs2panda._CreateETSNullTypeIr(global.context)) } - static updateETSNullType(original?: ETSNullType): ETSNullType | undefined { + static updateETSNullType(original?: ETSNullType): ETSNullType { return new ETSNullType(global.generatedEs2panda._UpdateETSNullTypeIr(global.context, passNode(original))) } } export function isETSNullType(node: AstNode): node is ETSNullType { return node instanceof ETSNullType +} +if (!nodeByType.has(62)) { + nodeByType.set(62, ETSNullType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts index f784110d9fe889297d73dc52c0be0bc64a7ea7e2..f651e034c07629d4a9c9a68f11b7637c5fd6b574 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPackageDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,13 +35,16 @@ export class ETSPackageDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ETSPackageDeclaration") } - static createETSPackageDeclaration(name?: Expression): ETSPackageDeclaration | undefined { + static createETSPackageDeclaration(name?: Expression): ETSPackageDeclaration { return new ETSPackageDeclaration(global.generatedEs2panda._CreateETSPackageDeclaration(global.context, passNode(name))) } - static updateETSPackageDeclaration(original?: ETSPackageDeclaration, name?: Expression): ETSPackageDeclaration | undefined { + static updateETSPackageDeclaration(original?: ETSPackageDeclaration, name?: Expression): ETSPackageDeclaration { return new ETSPackageDeclaration(global.generatedEs2panda._UpdateETSPackageDeclaration(global.context, passNode(original), passNode(name))) } } export function isETSPackageDeclaration(node: AstNode): node is ETSPackageDeclaration { return node instanceof ETSPackageDeclaration +} +if (!nodeByType.has(69)) { + nodeByType.set(69, ETSPackageDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts index 44a6f7f486fe8945ef17ee955f5d223ec1bf6d04..5820b193d4cc17bcf656bd9b122f2301c57627d1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSParameterExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -35,10 +36,10 @@ export class ETSParameterExpression extends Expression { super(pointer) console.warn("Warning: stub node ETSParameterExpression") } - static createETSParameterExpression(identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression | undefined { + static createETSParameterExpression(identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression { return new ETSParameterExpression(global.generatedEs2panda._CreateETSParameterExpression(global.context, passNode(identOrSpread), passNode(initializer))) } - static updateETSParameterExpression(original?: ETSParameterExpression, identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression | undefined { + static updateETSParameterExpression(original?: ETSParameterExpression, identOrSpread?: AnnotatedExpression, initializer?: Expression): ETSParameterExpression { return new ETSParameterExpression(global.generatedEs2panda._UpdateETSParameterExpression(global.context, passNode(original), passNode(identOrSpread), passNode(initializer))) } get isDefaultConst(): boolean { @@ -59,4 +60,7 @@ export class ETSParameterExpression extends Expression { } export function isETSParameterExpression(node: AstNode): node is ETSParameterExpression { return node instanceof ETSParameterExpression +} +if (!nodeByType.has(79)) { + nodeByType.set(79, ETSParameterExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts index 761c6f1b9881906d5308f3ef3d8b7548c77a95b0..49428e2abe0485256053bfd28de0ead627ad5a85 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSPrimitiveType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class ETSPrimitiveType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSPrimitiveType") } - static createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType | undefined { + static createETSPrimitiveType(type: Es2pandaPrimitiveType): ETSPrimitiveType { return new ETSPrimitiveType(global.generatedEs2panda._CreateETSPrimitiveType(global.context, type)) } - static updateETSPrimitiveType(original: ETSPrimitiveType | undefined, type: Es2pandaPrimitiveType): ETSPrimitiveType | undefined { + static updateETSPrimitiveType(original: ETSPrimitiveType | undefined, type: Es2pandaPrimitiveType): ETSPrimitiveType { return new ETSPrimitiveType(global.generatedEs2panda._UpdateETSPrimitiveType(global.context, passNode(original), type)) } get getPrimitiveTypeConst(): Es2pandaPrimitiveType { @@ -46,4 +47,7 @@ export class ETSPrimitiveType extends TypeNode { } export function isETSPrimitiveType(node: AstNode): node is ETSPrimitiveType { return node instanceof ETSPrimitiveType +} +if (!nodeByType.has(68)) { + nodeByType.set(68, ETSPrimitiveType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts index f9df26fee496189dfa3fd59659ea6dbb4a657826..ec203d068b78a5d2453d71c1b04bdee693b7f751 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSReExportDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class ETSReExportDeclaration extends Statement { } export function isETSReExportDeclaration(node: AstNode): node is ETSReExportDeclaration { return node instanceof ETSReExportDeclaration +} +if (!nodeByType.has(57)) { + nodeByType.set(57, ETSReExportDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts index b341a7ed377930f31f24676996487df3b87e3026..0d5dabfee8b7b0671a1ac26a37f3da5cee5eb536 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSStructDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassDeclaration } from "./ClassDeclaration" @@ -34,13 +35,16 @@ export class ETSStructDeclaration extends ClassDeclaration { super(pointer) console.warn("Warning: stub node ETSStructDeclaration") } - static createETSStructDeclaration(def?: ClassDefinition): ETSStructDeclaration | undefined { + static createETSStructDeclaration(def?: ClassDefinition): ETSStructDeclaration { return new ETSStructDeclaration(global.generatedEs2panda._CreateETSStructDeclaration(global.context, passNode(def))) } - static updateETSStructDeclaration(original?: ETSStructDeclaration, def?: ClassDefinition): ETSStructDeclaration | undefined { + static updateETSStructDeclaration(original?: ETSStructDeclaration, def?: ClassDefinition): ETSStructDeclaration { return new ETSStructDeclaration(global.generatedEs2panda._UpdateETSStructDeclaration(global.context, passNode(original), passNode(def))) } } export function isETSStructDeclaration(node: AstNode): node is ETSStructDeclaration { return node instanceof ETSStructDeclaration +} +if (!nodeByType.has(83)) { + nodeByType.set(83, ETSStructDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts index fbcee5019f54c14fe664315be1be2472f8957a90..1b8e467415a9539c0fff5b93902694c04c6ac90d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTuple.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,22 +34,22 @@ export class ETSTuple extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTuple") } - static createETSTuple(): ETSTuple | undefined { + static createETSTuple(): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple(global.context)) } - static updateETSTuple(original?: ETSTuple): ETSTuple | undefined { + static updateETSTuple(original?: ETSTuple): ETSTuple { return new ETSTuple(global.generatedEs2panda._UpdateETSTuple(global.context, passNode(original))) } - static create1ETSTuple(size: number): ETSTuple | undefined { + static create1ETSTuple(size: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple1(global.context, size)) } - static update1ETSTuple(original: ETSTuple | undefined, size: number): ETSTuple | undefined { + static update1ETSTuple(original: ETSTuple | undefined, size: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._UpdateETSTuple1(global.context, passNode(original), size)) } - static create2ETSTuple(typeList: readonly TypeNode[], typeListLen: number): ETSTuple | undefined { + static create2ETSTuple(typeList: readonly TypeNode[], typeListLen: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._CreateETSTuple2(global.context, passNodeArray(typeList), typeListLen)) } - static update2ETSTuple(original: ETSTuple | undefined, typeList: readonly TypeNode[], typeListLen: number): ETSTuple | undefined { + static update2ETSTuple(original: ETSTuple | undefined, typeList: readonly TypeNode[], typeListLen: number): ETSTuple { return new ETSTuple(global.generatedEs2panda._UpdateETSTuple2(global.context, passNode(original), passNodeArray(typeList), typeListLen)) } get getTupleSizeConst(): number { @@ -63,4 +64,7 @@ export class ETSTuple extends TypeNode { } export function isETSTuple(node: AstNode): node is ETSTuple { return node instanceof ETSTuple +} +if (!nodeByType.has(80)) { + nodeByType.set(80, ETSTuple) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts index eb65893c4e732ea8f45b1fcd5b14e9a21fe52f99..850ddc4eb57971dc97be65a49579c4eab9ec893e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReference.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class ETSTypeReference extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTypeReference") } - static createETSTypeReference(part?: ETSTypeReferencePart): ETSTypeReference | undefined { + static createETSTypeReference(part?: ETSTypeReferencePart): ETSTypeReference { return new ETSTypeReference(global.generatedEs2panda._CreateETSTypeReference(global.context, passNode(part))) } - static updateETSTypeReference(original?: ETSTypeReference, part?: ETSTypeReferencePart): ETSTypeReference | undefined { + static updateETSTypeReference(original?: ETSTypeReference, part?: ETSTypeReferencePart): ETSTypeReference { return new ETSTypeReference(global.generatedEs2panda._UpdateETSTypeReference(global.context, passNode(original), passNode(part))) } get part(): ETSTypeReferencePart | undefined { @@ -49,4 +50,7 @@ export class ETSTypeReference extends TypeNode { } export function isETSTypeReference(node: AstNode): node is ETSTypeReference { return node instanceof ETSTypeReference +} +if (!nodeByType.has(71)) { + nodeByType.set(71, ETSTypeReference) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts index 9d33ec09ba0c9c90bbeef7bacaada940ef91a0a3..6e6f029b61dcfac01b50d57e3165e9810e29ccfa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSTypeReferencePart.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,16 +36,16 @@ export class ETSTypeReferencePart extends TypeNode { super(pointer) console.warn("Warning: stub node ETSTypeReferencePart") } - static createETSTypeReferencePart(name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart | undefined { + static createETSTypeReferencePart(name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._CreateETSTypeReferencePart(global.context, passNode(name), passNode(typeParams), passNode(prev))) } - static updateETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart | undefined { + static updateETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression, typeParams?: TSTypeParameterInstantiation, prev?: ETSTypeReferencePart): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._UpdateETSTypeReferencePart(global.context, passNode(original), passNode(name), passNode(typeParams), passNode(prev))) } - static create1ETSTypeReferencePart(name?: Expression): ETSTypeReferencePart | undefined { + static create1ETSTypeReferencePart(name?: Expression): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._CreateETSTypeReferencePart1(global.context, passNode(name))) } - static update1ETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression): ETSTypeReferencePart | undefined { + static update1ETSTypeReferencePart(original?: ETSTypeReferencePart, name?: Expression): ETSTypeReferencePart { return new ETSTypeReferencePart(global.generatedEs2panda._UpdateETSTypeReferencePart1(global.context, passNode(original), passNode(name))) } get previous(): ETSTypeReferencePart | undefined { @@ -65,4 +66,7 @@ export class ETSTypeReferencePart extends TypeNode { } export function isETSTypeReferencePart(node: AstNode): node is ETSTypeReferencePart { return node instanceof ETSTypeReferencePart +} +if (!nodeByType.has(72)) { + nodeByType.set(72, ETSTypeReferencePart) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts index ac8aa77c6885a08b97153533bb121602fa4111d2..967d6b1756c20b2c292513266f82af33d02d59cf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUndefinedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class ETSUndefinedType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSUndefinedType") } - static createETSUndefinedType(): ETSUndefinedType | undefined { + static createETSUndefinedType(): ETSUndefinedType { return new ETSUndefinedType(global.generatedEs2panda._CreateETSUndefinedTypeIr(global.context)) } - static updateETSUndefinedType(original?: ETSUndefinedType): ETSUndefinedType | undefined { + static updateETSUndefinedType(original?: ETSUndefinedType): ETSUndefinedType { return new ETSUndefinedType(global.generatedEs2panda._UpdateETSUndefinedTypeIr(global.context, passNode(original))) } } export function isETSUndefinedType(node: AstNode): node is ETSUndefinedType { return node instanceof ETSUndefinedType +} +if (!nodeByType.has(63)) { + nodeByType.set(63, ETSUndefinedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts index ab58232f12a1baf292a219604eff3cc5fd03f8f7..4c84dd484aac613a95b0696dd4961961179819e4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSUnionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class ETSUnionType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSUnionType") } - static createETSUnionType(types: readonly TypeNode[], typesLen: number): ETSUnionType | undefined { + static createETSUnionType(types: readonly TypeNode[], typesLen: number): ETSUnionType { return new ETSUnionType(global.generatedEs2panda._CreateETSUnionTypeIr(global.context, passNodeArray(types), typesLen)) } - static updateETSUnionType(original: ETSUnionType | undefined, types: readonly TypeNode[], typesLen: number): ETSUnionType | undefined { + static updateETSUnionType(original: ETSUnionType | undefined, types: readonly TypeNode[], typesLen: number): ETSUnionType { return new ETSUnionType(global.generatedEs2panda._UpdateETSUnionTypeIr(global.context, passNode(original), passNodeArray(types), typesLen)) } get typesConst(): readonly TypeNode[] { @@ -45,4 +46,7 @@ export class ETSUnionType extends TypeNode { } export function isETSUnionType(node: AstNode): node is ETSUnionType { return node instanceof ETSUnionType +} +if (!nodeByType.has(73)) { + nodeByType.set(73, ETSUnionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts index ae5dbb3b42202ddd1e23493fd23b714f73e7d36f..c1ad2314da74195a640f411276a5fe1ff61795b2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ETSWildcardType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class ETSWildcardType extends TypeNode { super(pointer) console.warn("Warning: stub node ETSWildcardType") } - static createETSWildcardType(typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType | undefined { + static createETSWildcardType(typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType { return new ETSWildcardType(global.generatedEs2panda._CreateETSWildcardType(global.context, passNode(typeReference), flags)) } - static updateETSWildcardType(original: ETSWildcardType | undefined, typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType | undefined { + static updateETSWildcardType(original: ETSWildcardType | undefined, typeReference: ETSTypeReference | undefined, flags: Es2pandaModifierFlags): ETSWildcardType { return new ETSWildcardType(global.generatedEs2panda._UpdateETSWildcardType(global.context, passNode(original), passNode(typeReference), flags)) } get typeReference(): ETSTypeReference | undefined { @@ -50,4 +51,7 @@ export class ETSWildcardType extends TypeNode { } export function isETSWildcardType(node: AstNode): node is ETSWildcardType { return node instanceof ETSWildcardType +} +if (!nodeByType.has(67)) { + nodeByType.set(67, ETSWildcardType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts index a74af4e3a7792a3c894114f0317f35acb3dc5021..d3dc1d031299354a9a9a20fe6c92cc6d189fcbcd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/EmptyStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -33,13 +34,16 @@ export class EmptyStatement extends Statement { super(pointer) console.warn("Warning: stub node EmptyStatement") } - static createEmptyStatement(): EmptyStatement | undefined { + static createEmptyStatement(): EmptyStatement { return new EmptyStatement(global.generatedEs2panda._CreateEmptyStatement(global.context)) } - static updateEmptyStatement(original?: EmptyStatement): EmptyStatement | undefined { + static updateEmptyStatement(original?: EmptyStatement): EmptyStatement { return new EmptyStatement(global.generatedEs2panda._UpdateEmptyStatement(global.context, passNode(original))) } } export function isEmptyStatement(node: AstNode): node is EmptyStatement { return node instanceof EmptyStatement +} +if (!nodeByType.has(25)) { + nodeByType.set(25, EmptyStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts index d827b1a94919b6e0b7e38378a6b566f5b060de84..43a236881ac2795a22f504e99801cf47371ca38a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportAllDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class ExportAllDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportAllDeclaration") } - static createExportAllDeclaration(source?: StringLiteral, exported?: Identifier): ExportAllDeclaration | undefined { + static createExportAllDeclaration(source?: StringLiteral, exported?: Identifier): ExportAllDeclaration { return new ExportAllDeclaration(global.generatedEs2panda._CreateExportAllDeclaration(global.context, passNode(source), passNode(exported))) } - static updateExportAllDeclaration(original?: ExportAllDeclaration, source?: StringLiteral, exported?: Identifier): ExportAllDeclaration | undefined { + static updateExportAllDeclaration(original?: ExportAllDeclaration, source?: StringLiteral, exported?: Identifier): ExportAllDeclaration { return new ExportAllDeclaration(global.generatedEs2panda._UpdateExportAllDeclaration(global.context, passNode(original), passNode(source), passNode(exported))) } get sourceConst(): StringLiteral | undefined { @@ -50,4 +51,7 @@ export class ExportAllDeclaration extends Statement { } export function isExportAllDeclaration(node: AstNode): node is ExportAllDeclaration { return node instanceof ExportAllDeclaration +} +if (!nodeByType.has(26)) { + nodeByType.set(26, ExportAllDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts index 4da8c11d487a8b55632d6914359c57f0f1a82796..8f0f435099007a385e9cdc3885c0b3143ec5e641 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportDefaultDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -33,10 +34,10 @@ export class ExportDefaultDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportDefaultDeclaration") } - static createExportDefaultDeclaration(decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration | undefined { + static createExportDefaultDeclaration(decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration { return new ExportDefaultDeclaration(global.generatedEs2panda._CreateExportDefaultDeclaration(global.context, passNode(decl), exportEquals)) } - static updateExportDefaultDeclaration(original: ExportDefaultDeclaration | undefined, decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration | undefined { + static updateExportDefaultDeclaration(original: ExportDefaultDeclaration | undefined, decl: AstNode | undefined, exportEquals: boolean): ExportDefaultDeclaration { return new ExportDefaultDeclaration(global.generatedEs2panda._UpdateExportDefaultDeclaration(global.context, passNode(original), passNode(decl), exportEquals)) } get decl(): AstNode | undefined { @@ -51,4 +52,7 @@ export class ExportDefaultDeclaration extends Statement { } export function isExportDefaultDeclaration(node: AstNode): node is ExportDefaultDeclaration { return node instanceof ExportDefaultDeclaration +} +if (!nodeByType.has(27)) { + nodeByType.set(27, ExportDefaultDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts index a90bb6bbdf5540815a4c51cfe79a1cd53124f04b..d7f7a23dbf7a9ed0d610539035ac9438af57fb9c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportNamedDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,22 +36,22 @@ export class ExportNamedDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ExportNamedDeclaration") } - static createExportNamedDeclaration(source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static createExportNamedDeclaration(source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen)) } - static updateExportNamedDeclaration(original: ExportNamedDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static updateExportNamedDeclaration(original: ExportNamedDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration(global.context, passNode(original), passNode(source), passNodeArray(specifiers), specifiersLen)) } - static create1ExportNamedDeclaration(decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static create1ExportNamedDeclaration(decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration1(global.context, passNode(decl), passNodeArray(specifiers), specifiersLen)) } - static update1ExportNamedDeclaration(original: ExportNamedDeclaration | undefined, decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration | undefined { + static update1ExportNamedDeclaration(original: ExportNamedDeclaration | undefined, decl: AstNode | undefined, specifiers: readonly ExportSpecifier[], specifiersLen: number): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration1(global.context, passNode(original), passNode(decl), passNodeArray(specifiers), specifiersLen)) } - static create2ExportNamedDeclaration(decl?: AstNode): ExportNamedDeclaration | undefined { + static create2ExportNamedDeclaration(decl?: AstNode): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._CreateExportNamedDeclaration2(global.context, passNode(decl))) } - static update2ExportNamedDeclaration(original?: ExportNamedDeclaration, decl?: AstNode): ExportNamedDeclaration | undefined { + static update2ExportNamedDeclaration(original?: ExportNamedDeclaration, decl?: AstNode): ExportNamedDeclaration { return new ExportNamedDeclaration(global.generatedEs2panda._UpdateExportNamedDeclaration2(global.context, passNode(original), passNode(decl))) } get declConst(): AstNode | undefined { @@ -65,4 +66,7 @@ export class ExportNamedDeclaration extends Statement { } export function isExportNamedDeclaration(node: AstNode): node is ExportNamedDeclaration { return node instanceof ExportNamedDeclaration +} +if (!nodeByType.has(28)) { + nodeByType.set(28, ExportNamedDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts index 382c890546875b3820e10f12254512c3c6101ab3..e5a2f111d7238cc4cdaaf52160ef542fe4c35560 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExportSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ExportSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ExportSpecifier") } - static createExportSpecifier(local?: Identifier, exported?: Identifier): ExportSpecifier | undefined { + static createExportSpecifier(local?: Identifier, exported?: Identifier): ExportSpecifier { return new ExportSpecifier(global.generatedEs2panda._CreateExportSpecifier(global.context, passNode(local), passNode(exported))) } - static updateExportSpecifier(original?: ExportSpecifier, local?: Identifier, exported?: Identifier): ExportSpecifier | undefined { + static updateExportSpecifier(original?: ExportSpecifier, local?: Identifier, exported?: Identifier): ExportSpecifier { return new ExportSpecifier(global.generatedEs2panda._UpdateExportSpecifier(global.context, passNode(original), passNode(local), passNode(exported))) } get localConst(): Identifier | undefined { @@ -49,4 +50,7 @@ export class ExportSpecifier extends Statement { } export function isExportSpecifier(node: AstNode): node is ExportSpecifier { return node instanceof ExportSpecifier +} +if (!nodeByType.has(29)) { + nodeByType.set(29, ExportSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Expression.ts b/arkoala-arkts/libarkts/src/generated/peers/Expression.ts index 29c10a05b42e157520fd784f51c0205e418301ea..a10db93e73326e696cefa9c657824cf98c412c0c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Expression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Expression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" diff --git a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts index bbc0cfb2ecef314bf1ff58f522cbb1c57ff16155..e5df62dc1837ce5e9b6ee9f341249a65ee07d8a2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ExpressionStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ExpressionStatement extends Statement { super(pointer) console.warn("Warning: stub node ExpressionStatement") } - static createExpressionStatement(expr?: Expression): ExpressionStatement | undefined { + static createExpressionStatement(expr?: Expression): ExpressionStatement { return new ExpressionStatement(global.generatedEs2panda._CreateExpressionStatement(global.context, passNode(expr))) } - static updateExpressionStatement(original?: ExpressionStatement, expr?: Expression): ExpressionStatement | undefined { + static updateExpressionStatement(original?: ExpressionStatement, expr?: Expression): ExpressionStatement { return new ExpressionStatement(global.generatedEs2panda._UpdateExpressionStatement(global.context, passNode(original), passNode(expr))) } get getExpressionConst(): Expression | undefined { @@ -49,4 +50,7 @@ export class ExpressionStatement extends Statement { } export function isExpressionStatement(node: AstNode): node is ExpressionStatement { return node instanceof ExpressionStatement +} +if (!nodeByType.has(30)) { + nodeByType.set(30, ExpressionStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts index 832fed72cb09ec76b3917cb93e6d8862e7596928..6bfbe4adfc4b28b026fdbd2c40d69ec22c92fe95 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForInStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -56,4 +57,7 @@ export class ForInStatement extends LoopStatement { } export function isForInStatement(node: AstNode): node is ForInStatement { return node instanceof ForInStatement +} +if (!nodeByType.has(31)) { + nodeByType.set(31, ForInStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts index affdb4ed3cc4cafbe3c9e4ca07d2518b642f01d2..cbde8c02a998d7eb67b3c8076de56779f940939d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForOfStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -59,4 +60,7 @@ export class ForOfStatement extends LoopStatement { } export function isForOfStatement(node: AstNode): node is ForOfStatement { return node instanceof ForOfStatement +} +if (!nodeByType.has(32)) { + nodeByType.set(32, ForOfStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts index 509fe7646c479040afaa4fe624b834003fd7f952..ad9600df400a4e1538353a01aa02f7e9b73dbf75 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ForUpdateStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -59,4 +60,7 @@ export class ForUpdateStatement extends LoopStatement { } export function isForUpdateStatement(node: AstNode): node is ForUpdateStatement { return node instanceof ForUpdateStatement +} +if (!nodeByType.has(33)) { + nodeByType.set(33, ForUpdateStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts index e11cd95f94ea4f8435f308e798988a4ad98a5603..44d73ed8e31f556e61a18226e9fc6984316d0db6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDecl.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ScriptFunction } from "./ScriptFunction" diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts index 2a71f9ee206a9d23b428f8f5941ef1b333309de2..a1e8986a605fc9901d1412768b4c1070f4edeae5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,16 +36,16 @@ export class FunctionDeclaration extends Statement { super(pointer) console.warn("Warning: stub node FunctionDeclaration") } - static createFunctionDeclaration(func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration | undefined { + static createFunctionDeclaration(func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration(global.context, passNode(func), passNodeArray(annotations), annotationsLen, isAnonymous)) } - static updateFunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration | undefined { + static updateFunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, annotations: readonly AnnotationUsage[], annotationsLen: number, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._UpdateFunctionDeclaration(global.context, passNode(original), passNode(func), passNodeArray(annotations), annotationsLen, isAnonymous)) } - static create1FunctionDeclaration(func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration | undefined { + static create1FunctionDeclaration(func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._CreateFunctionDeclaration1(global.context, passNode(func), isAnonymous)) } - static update1FunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration | undefined { + static update1FunctionDeclaration(original: FunctionDeclaration | undefined, func: ScriptFunction | undefined, isAnonymous: boolean): FunctionDeclaration { return new FunctionDeclaration(global.generatedEs2panda._UpdateFunctionDeclaration1(global.context, passNode(original), passNode(func), isAnonymous)) } get function(): ScriptFunction | undefined { @@ -65,4 +66,7 @@ export class FunctionDeclaration extends Statement { } export function isFunctionDeclaration(node: AstNode): node is FunctionDeclaration { return node instanceof FunctionDeclaration +} +if (!nodeByType.has(34)) { + nodeByType.set(34, FunctionDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts index 549488ee30cda6700fd9d60c09fbadd4e44963bf..44ad0227aa3e2a1f69927f4049380f6c74068544 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/FunctionExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -35,16 +36,16 @@ export class FunctionExpression extends Expression { super(pointer) console.warn("Warning: stub node FunctionExpression") } - static createFunctionExpression(func?: ScriptFunction): FunctionExpression | undefined { + static createFunctionExpression(func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression(global.context, passNode(func))) } - static updateFunctionExpression(original?: FunctionExpression, func?: ScriptFunction): FunctionExpression | undefined { + static updateFunctionExpression(original?: FunctionExpression, func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._UpdateFunctionExpression(global.context, passNode(original), passNode(func))) } - static create1FunctionExpression(namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression | undefined { + static create1FunctionExpression(namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._CreateFunctionExpression1(global.context, passNode(namedExpr), passNode(func))) } - static update1FunctionExpression(original?: FunctionExpression, namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression | undefined { + static update1FunctionExpression(original?: FunctionExpression, namedExpr?: Identifier, func?: ScriptFunction): FunctionExpression { return new FunctionExpression(global.generatedEs2panda._UpdateFunctionExpression1(global.context, passNode(original), passNode(namedExpr), passNode(func))) } get functionConst(): ScriptFunction | undefined { @@ -62,4 +63,7 @@ export class FunctionExpression extends Expression { } export function isFunctionExpression(node: AstNode): node is FunctionExpression { return node instanceof FunctionExpression +} +if (!nodeByType.has(35)) { + nodeByType.set(35, FunctionExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts index 04b8cb47f5fce718682e5adf7b933af48d59b18f..f1962692dbbf0f2772fe5a158b69af22beebe231 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Identifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" @@ -35,22 +36,22 @@ export class Identifier extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node Identifier") } - static createIdentifier(): Identifier | undefined { + static createIdentifier(): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier(global.context)) } - static updateIdentifier(original?: Identifier): Identifier | undefined { + static updateIdentifier(original?: Identifier): Identifier { return new Identifier(global.generatedEs2panda._UpdateIdentifier(global.context, passNode(original))) } - static create1Identifier(name: string): Identifier | undefined { + static create1Identifier(name: string): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier1(global.context, name)) } - static update1Identifier(original: Identifier | undefined, name: string): Identifier | undefined { + static update1Identifier(original: Identifier | undefined, name: string): Identifier { return new Identifier(global.generatedEs2panda._UpdateIdentifier1(global.context, passNode(original), name)) } - static create2Identifier(name: string, typeAnnotation?: TypeNode): Identifier | undefined { + static create2Identifier(name: string, typeAnnotation?: TypeNode): Identifier { return new Identifier(global.generatedEs2panda._CreateIdentifier2(global.context, name, passNode(typeAnnotation))) } - static update2Identifier(original: Identifier | undefined, name: string, typeAnnotation?: TypeNode): Identifier | undefined { + static update2Identifier(original: Identifier | undefined, name: string, typeAnnotation?: TypeNode): Identifier { return new Identifier(global.generatedEs2panda._UpdateIdentifier2(global.context, passNode(original), name, passNode(typeAnnotation))) } get nameConst(): string { @@ -101,4 +102,7 @@ export class Identifier extends AnnotatedExpression { } export function isIdentifier(node: AstNode): node is Identifier { return node instanceof Identifier +} +if (!nodeByType.has(36)) { + nodeByType.set(36, Identifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts index 688ea8080e5ba4c759a4a1f08d2c56049667ed98..e2c428239128e0d6ed9e23ad3e7b82471136b360 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/IfStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -55,4 +56,7 @@ export class IfStatement extends Statement { } export function isIfStatement(node: AstNode): node is IfStatement { return node instanceof IfStatement +} +if (!nodeByType.has(38)) { + nodeByType.set(38, IfStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts index 38a6ff2af402a62a888fab97ddf753cfb6bec953..8426d022df0f7c084bc8462e1ad41f04b3ef37a8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class ImportDeclaration extends Statement { super(pointer) console.warn("Warning: stub node ImportDeclaration") } - static createImportDeclaration(source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration | undefined { + static createImportDeclaration(source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration { return new ImportDeclaration(global.generatedEs2panda._CreateImportDeclaration(global.context, passNode(source), passNodeArray(specifiers), specifiersLen, importKind)) } - static updateImportDeclaration(original: ImportDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration | undefined { + static updateImportDeclaration(original: ImportDeclaration | undefined, source: StringLiteral | undefined, specifiers: readonly AstNode[], specifiersLen: number, importKind: Es2pandaImportKinds): ImportDeclaration { return new ImportDeclaration(global.generatedEs2panda._UpdateImportDeclaration(global.context, passNode(original), passNode(source), passNodeArray(specifiers), specifiersLen, importKind)) } get sourceConst(): StringLiteral | undefined { @@ -59,4 +60,7 @@ export class ImportDeclaration extends Statement { } export function isImportDeclaration(node: AstNode): node is ImportDeclaration { return node instanceof ImportDeclaration +} +if (!nodeByType.has(39)) { + nodeByType.set(39, ImportDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts index 28d39da3958330959b4be4a67f7abb055b18ab84..d0e1af48135c02988ada0b1ad382f1ecf350cb01 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportDefaultSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ImportDefaultSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportDefaultSpecifier") } - static createImportDefaultSpecifier(local?: Identifier): ImportDefaultSpecifier | undefined { + static createImportDefaultSpecifier(local?: Identifier): ImportDefaultSpecifier { return new ImportDefaultSpecifier(global.generatedEs2panda._CreateImportDefaultSpecifier(global.context, passNode(local))) } - static updateImportDefaultSpecifier(original?: ImportDefaultSpecifier, local?: Identifier): ImportDefaultSpecifier | undefined { + static updateImportDefaultSpecifier(original?: ImportDefaultSpecifier, local?: Identifier): ImportDefaultSpecifier { return new ImportDefaultSpecifier(global.generatedEs2panda._UpdateImportDefaultSpecifier(global.context, passNode(original), passNode(local))) } get localConst(): Identifier | undefined { @@ -49,4 +50,7 @@ export class ImportDefaultSpecifier extends Statement { } export function isImportDefaultSpecifier(node: AstNode): node is ImportDefaultSpecifier { return node instanceof ImportDefaultSpecifier +} +if (!nodeByType.has(41)) { + nodeByType.set(41, ImportDefaultSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts index 489f8b840e8c75ff1e08dc6365542142c67e204b..239332713703d6f506f6adf947692e174a785ffb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class ImportExpression extends Expression { super(pointer) console.warn("Warning: stub node ImportExpression") } - static createImportExpression(source?: Expression): ImportExpression | undefined { + static createImportExpression(source?: Expression): ImportExpression { return new ImportExpression(global.generatedEs2panda._CreateImportExpression(global.context, passNode(source))) } - static updateImportExpression(original?: ImportExpression, source?: Expression): ImportExpression | undefined { + static updateImportExpression(original?: ImportExpression, source?: Expression): ImportExpression { return new ImportExpression(global.generatedEs2panda._UpdateImportExpression(global.context, passNode(original), passNode(source))) } get source(): Expression | undefined { @@ -48,4 +49,7 @@ export class ImportExpression extends Expression { } export function isImportExpression(node: AstNode): node is ImportExpression { return node instanceof ImportExpression +} +if (!nodeByType.has(40)) { + nodeByType.set(40, ImportExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts index b50dd642c7a888ac853f902365cfaea118f81c44..8f31b6bdde963f7b96fdd8ac6f2fac155fa9e581 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportNamespaceSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ImportNamespaceSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportNamespaceSpecifier") } - static createImportNamespaceSpecifier(local?: Identifier): ImportNamespaceSpecifier | undefined { + static createImportNamespaceSpecifier(local?: Identifier): ImportNamespaceSpecifier { return new ImportNamespaceSpecifier(global.generatedEs2panda._CreateImportNamespaceSpecifier(global.context, passNode(local))) } - static updateImportNamespaceSpecifier(original?: ImportNamespaceSpecifier, local?: Identifier): ImportNamespaceSpecifier | undefined { + static updateImportNamespaceSpecifier(original?: ImportNamespaceSpecifier, local?: Identifier): ImportNamespaceSpecifier { return new ImportNamespaceSpecifier(global.generatedEs2panda._UpdateImportNamespaceSpecifier(global.context, passNode(original), passNode(local))) } get local(): Identifier | undefined { @@ -49,4 +50,7 @@ export class ImportNamespaceSpecifier extends Statement { } export function isImportNamespaceSpecifier(node: AstNode): node is ImportNamespaceSpecifier { return node instanceof ImportNamespaceSpecifier +} +if (!nodeByType.has(42)) { + nodeByType.set(42, ImportNamespaceSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts index 54ea216c9c09ccecee9c2cab47aeb8bda605cc35..ed85cc9ff893e2416231fa5ae54f369753216aac 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ImportSpecifier.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ImportSpecifier extends Statement { super(pointer) console.warn("Warning: stub node ImportSpecifier") } - static createImportSpecifier(imported?: Identifier, local?: Identifier): ImportSpecifier | undefined { + static createImportSpecifier(imported?: Identifier, local?: Identifier): ImportSpecifier { return new ImportSpecifier(global.generatedEs2panda._CreateImportSpecifier(global.context, passNode(imported), passNode(local))) } - static updateImportSpecifier(original?: ImportSpecifier, imported?: Identifier, local?: Identifier): ImportSpecifier | undefined { + static updateImportSpecifier(original?: ImportSpecifier, imported?: Identifier, local?: Identifier): ImportSpecifier { return new ImportSpecifier(global.generatedEs2panda._UpdateImportSpecifier(global.context, passNode(original), passNode(imported), passNode(local))) } get imported(): Identifier | undefined { @@ -55,4 +56,7 @@ export class ImportSpecifier extends Statement { } export function isImportSpecifier(node: AstNode): node is ImportSpecifier { return node instanceof ImportSpecifier +} +if (!nodeByType.has(43)) { + nodeByType.set(43, ImportSpecifier) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts b/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts index 4bfb4ab119510debbd7d12ea2e07268bc845f28d..53d42c93ed24f3d1826e648bc8ea25cef3b79936 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/InterfaceDecl.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TSInterfaceDeclaration } from "./TSInterfaceDeclaration" diff --git a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts index 255075d6efdf83a5b37026f067286554d0557d81..04137ff53a028faeaa3ed27b6ca7b5222f39325e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/LabelledStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class LabelledStatement extends Statement { } export function isLabelledStatement(node: AstNode): node is LabelledStatement { return node instanceof LabelledStatement +} +if (!nodeByType.has(44)) { + nodeByType.set(44, LabelledStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Literal.ts b/arkoala-arkts/libarkts/src/generated/peers/Literal.ts index 8b2a0410611e6d86978bc3aed2ca780e2b1770aa..1ea75b77c04866df04917942511c924fa85d442a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Literal.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Literal.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts index 73b0ba8049ccd52000af83f505f9a6ba63e7d815..b8e4df54ccb4ade72ab060cf5e6c45e0cb9790d8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/LoopStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts index 1759731487fe313342c7122c21e3720e28fb851a..9269c8186c4aa952e600d4c7677afc3eeedc5efd 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MaybeOptionalExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts index fc70b945f8e120d48742830f6d6d0c48d6ea5f66..f37fa993b63d8248aaffc8ec16bd09274128f37e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MemberExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { MaybeOptionalExpression } from "./MaybeOptionalExpression" @@ -35,10 +36,10 @@ export class MemberExpression extends MaybeOptionalExpression { super(pointer) console.warn("Warning: stub node MemberExpression") } - static createMemberExpression(object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression | undefined { + static createMemberExpression(object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression { return new MemberExpression(global.generatedEs2panda._CreateMemberExpression(global.context, passNode(object_arg), passNode(property), kind, computed, optional_arg)) } - static updateMemberExpression(original: MemberExpression | undefined, object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression | undefined { + static updateMemberExpression(original: MemberExpression | undefined, object_arg: Expression | undefined, property: Expression | undefined, kind: Es2pandaMemberExpressionKind, computed: boolean, optional_arg: boolean): MemberExpression { return new MemberExpression(global.generatedEs2panda._UpdateMemberExpression(global.context, passNode(original), passNode(object_arg), passNode(property), kind, computed, optional_arg)) } get object(): Expression | undefined { @@ -65,4 +66,7 @@ export class MemberExpression extends MaybeOptionalExpression { } export function isMemberExpression(node: AstNode): node is MemberExpression { return node instanceof MemberExpression +} +if (!nodeByType.has(45)) { + nodeByType.set(45, MemberExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts index 6d02a0c56892da42a11ec9282560a7c4a31e624a..4bb2da92c207343a28e974909b0bfff70de558af 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MetaProperty.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class MetaProperty extends Expression { super(pointer) console.warn("Warning: stub node MetaProperty") } - static createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty | undefined { + static createMetaProperty(kind: Es2pandaMetaPropertyKind): MetaProperty { return new MetaProperty(global.generatedEs2panda._CreateMetaProperty(global.context, kind)) } - static updateMetaProperty(original: MetaProperty | undefined, kind: Es2pandaMetaPropertyKind): MetaProperty | undefined { + static updateMetaProperty(original: MetaProperty | undefined, kind: Es2pandaMetaPropertyKind): MetaProperty { return new MetaProperty(global.generatedEs2panda._UpdateMetaProperty(global.context, passNode(original), kind)) } get kindConst(): Es2pandaMetaPropertyKind { @@ -46,4 +47,7 @@ export class MetaProperty extends Expression { } export function isMetaProperty(node: AstNode): node is MetaProperty { return node instanceof MetaProperty +} +if (!nodeByType.has(46)) { + nodeByType.set(46, MetaProperty) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts index 502e8f193e9ba51bc6e841180634c47f7e9057ad..060bfa53bb6a60ecb120974ccdb396be6c6ccb40 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/MethodDefinition.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { ClassElement } from "./ClassElement" @@ -36,10 +37,10 @@ export class MethodDefinition extends ClassElement { super(pointer) console.warn("Warning: stub node MethodDefinition") } - static createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition | undefined { + static createMethodDefinition(kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { return new MethodDefinition(global.generatedEs2panda._CreateMethodDefinition(global.context, kind, passNode(key), passNode(value), modifiers, isComputed)) } - static updateMethodDefinition(original: MethodDefinition | undefined, kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition | undefined { + static updateMethodDefinition(original: MethodDefinition | undefined, kind: Es2pandaMethodDefinitionKind, key: Expression | undefined, value: Expression | undefined, modifiers: Es2pandaModifierFlags, isComputed: boolean): MethodDefinition { return new MethodDefinition(global.generatedEs2panda._UpdateMethodDefinition(global.context, passNode(original), kind, passNode(key), passNode(value), modifiers, isComputed)) } get kindConst(): Es2pandaMethodDefinitionKind { @@ -69,4 +70,7 @@ export class MethodDefinition extends ClassElement { } export function isMethodDefinition(node: AstNode): node is MethodDefinition { return node instanceof MethodDefinition +} +if (!nodeByType.has(47)) { + nodeByType.set(47, MethodDefinition) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts index a8060bb1b7f6bdb45f207876dc1febd08e080234..c94085776200c456d5d6adfea490f4781c0e8be3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NamedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class NamedType extends TypeNode { super(pointer) console.warn("Warning: stub node NamedType") } - static createNamedType(name?: Identifier): NamedType | undefined { + static createNamedType(name?: Identifier): NamedType { return new NamedType(global.generatedEs2panda._CreateNamedType(global.context, passNode(name))) } - static updateNamedType(original?: NamedType, name?: Identifier): NamedType | undefined { + static updateNamedType(original?: NamedType, name?: Identifier): NamedType { return new NamedType(global.generatedEs2panda._UpdateNamedType(global.context, passNode(original), passNode(name))) } get nameConst(): Identifier | undefined { @@ -53,4 +54,7 @@ export class NamedType extends TypeNode { } export function isNamedType(node: AstNode): node is NamedType { return node instanceof NamedType +} +if (!nodeByType.has(48)) { + nodeByType.set(48, NamedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts index 1c43309d01be1ba4da901d7a6240fcdd8eb38773..a303f11b0bde75a6cb06119dc802bb7900c2c585 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NewExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class NewExpression extends Expression { super(pointer) console.warn("Warning: stub node NewExpression") } - static createNewExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression | undefined { + static createNewExpression(callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression { return new NewExpression(global.generatedEs2panda._CreateNewExpression(global.context, passNode(callee), passNodeArray(_arguments), argumentsLen)) } - static updateNewExpression(original: NewExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression | undefined { + static updateNewExpression(original: NewExpression | undefined, callee: Expression | undefined, _arguments: readonly Expression[], argumentsLen: number): NewExpression { return new NewExpression(global.generatedEs2panda._UpdateNewExpression(global.context, passNode(original), passNode(callee), passNodeArray(_arguments), argumentsLen)) } get calleeConst(): Expression | undefined { @@ -48,4 +49,7 @@ export class NewExpression extends Expression { } export function isNewExpression(node: AstNode): node is NewExpression { return node instanceof NewExpression +} +if (!nodeByType.has(49)) { + nodeByType.set(49, NewExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts index b61e7aa8ced4ab836c3201c84df443ea0055ea7f..138dca3e5a1224a4a1d23ce6c76d939cb8bd1ff1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NullLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,13 +34,16 @@ export class NullLiteral extends Literal { super(pointer) console.warn("Warning: stub node NullLiteral") } - static createNullLiteral(): NullLiteral | undefined { + static createNullLiteral(): NullLiteral { return new NullLiteral(global.generatedEs2panda._CreateNullLiteral(global.context)) } - static updateNullLiteral(original?: NullLiteral): NullLiteral | undefined { + static updateNullLiteral(original?: NullLiteral): NullLiteral { return new NullLiteral(global.generatedEs2panda._UpdateNullLiteral(global.context, passNode(original))) } } export function isNullLiteral(node: AstNode): node is NullLiteral { return node instanceof NullLiteral +} +if (!nodeByType.has(50)) { + nodeByType.set(50, NullLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts index 0677d42de75a66042c9f3cb0d0f4bde1da4eb3fb..25df8b1f076e42c7593f1dc0873543b8e321b5f6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/NumberLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -39,4 +40,7 @@ export class NumberLiteral extends Literal { } export function isNumberLiteral(node: AstNode): node is NumberLiteral { return node instanceof NumberLiteral +} +if (!nodeByType.has(52)) { + nodeByType.set(52, NumberLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts index 1c8e9eea739e5736c623b645051cef026e2759ef..5191506def15dae266236ef32ec6469583d246e8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ObjectExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts index ec426f5fcbeddd36c04bab308a31d6a787029c3d..0b7bb2292e19a1b3b20a6a69a66597e6aa4c0334 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OmittedExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,13 +34,16 @@ export class OmittedExpression extends Expression { super(pointer) console.warn("Warning: stub node OmittedExpression") } - static createOmittedExpression(): OmittedExpression | undefined { + static createOmittedExpression(): OmittedExpression { return new OmittedExpression(global.generatedEs2panda._CreateOmittedExpression(global.context)) } - static updateOmittedExpression(original?: OmittedExpression): OmittedExpression | undefined { + static updateOmittedExpression(original?: OmittedExpression): OmittedExpression { return new OmittedExpression(global.generatedEs2panda._UpdateOmittedExpression(global.context, passNode(original))) } } export function isOmittedExpression(node: AstNode): node is OmittedExpression { return node instanceof OmittedExpression +} +if (!nodeByType.has(53)) { + nodeByType.set(53, OmittedExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts index 2dde8584eb07243086b894ee7ef8ad8dcbc65310..402149a3b015e0e8fd8b5cdeeb47c2928989f493 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/OpaqueTypeNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class OpaqueTypeNode extends TypeNode { super(pointer) console.warn("Warning: stub node OpaqueTypeNode") } - static create1OpaqueTypeNode(): OpaqueTypeNode | undefined { + static create1OpaqueTypeNode(): OpaqueTypeNode { return new OpaqueTypeNode(global.generatedEs2panda._CreateOpaqueTypeNode1(global.context)) } - static update1OpaqueTypeNode(original?: OpaqueTypeNode): OpaqueTypeNode | undefined { + static update1OpaqueTypeNode(original?: OpaqueTypeNode): OpaqueTypeNode { return new OpaqueTypeNode(global.generatedEs2panda._UpdateOpaqueTypeNode1(global.context, passNode(original))) } } export function isOpaqueTypeNode(node: AstNode): node is OpaqueTypeNode { return node instanceof OpaqueTypeNode +} +if (!nodeByType.has(153)) { + nodeByType.set(153, OpaqueTypeNode) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts index 115f28cb4665c82239f48e36302eaaa621228a10..0f0f3b40b502b99274c6b6766615f17d8a9d2e20 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/PrefixAssertionExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class PrefixAssertionExpression extends Expression { super(pointer) console.warn("Warning: stub node PrefixAssertionExpression") } - static createPrefixAssertionExpression(expr?: Expression, type?: TypeNode): PrefixAssertionExpression | undefined { + static createPrefixAssertionExpression(expr?: Expression, type?: TypeNode): PrefixAssertionExpression { return new PrefixAssertionExpression(global.generatedEs2panda._CreatePrefixAssertionExpression(global.context, passNode(expr), passNode(type))) } - static updatePrefixAssertionExpression(original?: PrefixAssertionExpression, expr?: Expression, type?: TypeNode): PrefixAssertionExpression | undefined { + static updatePrefixAssertionExpression(original?: PrefixAssertionExpression, expr?: Expression, type?: TypeNode): PrefixAssertionExpression { return new PrefixAssertionExpression(global.generatedEs2panda._UpdatePrefixAssertionExpression(global.context, passNode(original), passNode(expr), passNode(type))) } get exprConst(): Expression | undefined { @@ -49,4 +50,7 @@ export class PrefixAssertionExpression extends Expression { } export function isPrefixAssertionExpression(node: AstNode): node is PrefixAssertionExpression { return node instanceof PrefixAssertionExpression +} +if (!nodeByType.has(54)) { + nodeByType.set(54, PrefixAssertionExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/Property.ts b/arkoala-arkts/libarkts/src/generated/peers/Property.ts index 67f37e128a0ea62ace6b9167fa2809993e1edb15..79ad82d32284a2e087e190b54f47277670de971c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Property.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Property.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,16 +35,16 @@ export class Property extends Expression { super(pointer) console.warn("Warning: stub node Property") } - static createProperty(key?: Expression, value?: Expression): Property | undefined { + static createProperty(key?: Expression, value?: Expression): Property { return new Property(global.generatedEs2panda._CreateProperty(global.context, passNode(key), passNode(value))) } - static updateProperty(original?: Property, key?: Expression, value?: Expression): Property | undefined { + static updateProperty(original?: Property, key?: Expression, value?: Expression): Property { return new Property(global.generatedEs2panda._UpdateProperty(global.context, passNode(original), passNode(key), passNode(value))) } - static create1Property(kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property | undefined { + static create1Property(kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property { return new Property(global.generatedEs2panda._CreateProperty1(global.context, kind, passNode(key), passNode(value), isMethod, isComputed)) } - static update1Property(original: Property | undefined, kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property | undefined { + static update1Property(original: Property | undefined, kind: Es2pandaPropertyKind, key: Expression | undefined, value: Expression | undefined, isMethod: boolean, isComputed: boolean): Property { return new Property(global.generatedEs2panda._UpdateProperty1(global.context, passNode(original), kind, passNode(key), passNode(value), isMethod, isComputed)) } get key(): Expression | undefined { @@ -76,4 +77,7 @@ export class Property extends Expression { } export function isProperty(node: AstNode): node is Property { return node instanceof Property +} +if (!nodeByType.has(55)) { + nodeByType.set(55, Property) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts index 002fab2986a23aaacb1bbe143f1a652a7129f4df..e5d7aca88d0c19fe72d9434bf766d98c4cdbe04b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/RegExpLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -34,10 +35,10 @@ export class RegExpLiteral extends Literal { super(pointer) console.warn("Warning: stub node RegExpLiteral") } - static createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral | undefined { + static createRegExpLiteral(pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { return new RegExpLiteral(global.generatedEs2panda._CreateRegExpLiteral(global.context, pattern, flags, flagsStr)) } - static updateRegExpLiteral(original: RegExpLiteral | undefined, pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral | undefined { + static updateRegExpLiteral(original: RegExpLiteral | undefined, pattern: string, flags: Es2pandaRegExpFlags, flagsStr: string): RegExpLiteral { return new RegExpLiteral(global.generatedEs2panda._UpdateRegExpLiteral(global.context, passNode(original), pattern, flags, flagsStr)) } get patternConst(): string { @@ -49,4 +50,7 @@ export class RegExpLiteral extends Literal { } export function isRegExpLiteral(node: AstNode): node is RegExpLiteral { return node instanceof RegExpLiteral +} +if (!nodeByType.has(56)) { + nodeByType.set(56, RegExpLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts index 6d416cdbe8724869c8fc1846619080fcc824b018..066ed62b620b5ae601ed333c078a74680457452e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ReturnStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class ReturnStatement extends Statement { super(pointer) console.warn("Warning: stub node ReturnStatement") } - static createReturnStatement(): ReturnStatement | undefined { + static createReturnStatement(): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement(global.context)) } - static updateReturnStatement(original?: ReturnStatement): ReturnStatement | undefined { + static updateReturnStatement(original?: ReturnStatement): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement(global.context, passNode(original))) } - static create1ReturnStatement(argument?: Expression): ReturnStatement | undefined { + static create1ReturnStatement(argument?: Expression): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._CreateReturnStatement1(global.context, passNode(argument))) } - static update1ReturnStatement(original?: ReturnStatement, argument?: Expression): ReturnStatement | undefined { + static update1ReturnStatement(original?: ReturnStatement, argument?: Expression): ReturnStatement { return new ReturnStatement(global.generatedEs2panda._UpdateReturnStatement1(global.context, passNode(original), passNode(argument))) } get argument(): Expression | undefined { @@ -55,4 +56,7 @@ export class ReturnStatement extends Statement { } export function isReturnStatement(node: AstNode): node is ReturnStatement { return node instanceof ReturnStatement +} +if (!nodeByType.has(58)) { + nodeByType.set(58, ReturnStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts index 062ae458e80fd923af6683186f35398a6386d4e3..ec0eff15a85a8ed027432838157525496e0204ef 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ScriptFunction.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Identifier } from "./Identifier" @@ -168,4 +169,7 @@ export class ScriptFunction extends AstNode { } export function isScriptFunction(node: AstNode): node is ScriptFunction { return node instanceof ScriptFunction +} +if (!nodeByType.has(59)) { + nodeByType.set(59, ScriptFunction) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts index df3665420b0d3c40ea7297d36c70d90d1861dfc7..db6bbc5e515739042fc8441736716102ef09ae5c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SequenceExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class SequenceExpression extends Expression { super(pointer) console.warn("Warning: stub node SequenceExpression") } - static createSequenceExpression(sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression | undefined { + static createSequenceExpression(sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression { return new SequenceExpression(global.generatedEs2panda._CreateSequenceExpression(global.context, passNodeArray(sequence_arg), sequenceLen)) } - static updateSequenceExpression(original: SequenceExpression | undefined, sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression | undefined { + static updateSequenceExpression(original: SequenceExpression | undefined, sequence_arg: readonly Expression[], sequenceLen: number): SequenceExpression { return new SequenceExpression(global.generatedEs2panda._UpdateSequenceExpression(global.context, passNode(original), passNodeArray(sequence_arg), sequenceLen)) } get sequenceConst(): readonly Expression[] { @@ -48,4 +49,7 @@ export class SequenceExpression extends Expression { } export function isSequenceExpression(node: AstNode): node is SequenceExpression { return node instanceof SequenceExpression +} +if (!nodeByType.has(60)) { + nodeByType.set(60, SequenceExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts index 85b1a750c81f71dea40e65d41673680646c3e4f0..b8b5489ec97a9db90ffafecefdc2596fb91c8586 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SpreadElement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts index b3c39e95dbd6df53a11318884bf35f31ecd40b4b..f1d2849fa617972365bcb4c56f16d5ac798da7e4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/Statement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/Statement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" export abstract class Statement extends AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts index cec3d65cd074c6ac7eef24689c230f4ae37df547..877d51956c0e1c75ca249e5e04614a7ed294a939 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/StringLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,13 +34,13 @@ export class StringLiteral extends Literal { super(pointer) console.warn("Warning: stub node StringLiteral") } - static updateStringLiteral(original?: StringLiteral): StringLiteral | undefined { + static updateStringLiteral(original?: StringLiteral): StringLiteral { return new StringLiteral(global.generatedEs2panda._UpdateStringLiteral(global.context, passNode(original))) } - static create1StringLiteral(str: string): StringLiteral | undefined { + static create1StringLiteral(str: string): StringLiteral { return new StringLiteral(global.generatedEs2panda._CreateStringLiteral1(global.context, str)) } - static update1StringLiteral(original: StringLiteral | undefined, str: string): StringLiteral | undefined { + static update1StringLiteral(original: StringLiteral | undefined, str: string): StringLiteral { return new StringLiteral(global.generatedEs2panda._UpdateStringLiteral1(global.context, passNode(original), str)) } get strConst(): string { @@ -48,4 +49,7 @@ export class StringLiteral extends Literal { } export function isStringLiteral(node: AstNode): node is StringLiteral { return node instanceof StringLiteral +} +if (!nodeByType.has(61)) { + nodeByType.set(61, StringLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts index cfd0c78cae68ce5dfef2dc94a006a83c408fe868..7257a67a9a2a78c7d5c17f1ecf73d1d53f37db21 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SuperExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,13 +34,16 @@ export class SuperExpression extends Expression { super(pointer) console.warn("Warning: stub node SuperExpression") } - static createSuperExpression(): SuperExpression | undefined { + static createSuperExpression(): SuperExpression { return new SuperExpression(global.generatedEs2panda._CreateSuperExpression(global.context)) } - static updateSuperExpression(original?: SuperExpression): SuperExpression | undefined { + static updateSuperExpression(original?: SuperExpression): SuperExpression { return new SuperExpression(global.generatedEs2panda._UpdateSuperExpression(global.context, passNode(original))) } } export function isSuperExpression(node: AstNode): node is SuperExpression { return node instanceof SuperExpression +} +if (!nodeByType.has(82)) { + nodeByType.set(82, SuperExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts index 64bcdb304c7c4e95f96a787b1350705f6bb3c03e..a56fdb3cc3bbec4e9234c2d4e8762af4c9365c6a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchCaseStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -46,4 +47,7 @@ export class SwitchCaseStatement extends Statement { } export function isSwitchCaseStatement(node: AstNode): node is SwitchCaseStatement { return node instanceof SwitchCaseStatement +} +if (!nodeByType.has(84)) { + nodeByType.set(84, SwitchCaseStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts index 824fc4be83599893eded98ff277add86c445847c..e2dec77098e67e21968c68231abe7ec92388a7bb 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/SwitchStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class SwitchStatement extends Statement { super(pointer) console.warn("Warning: stub node SwitchStatement") } - static createSwitchStatement(discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement | undefined { + static createSwitchStatement(discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { return new SwitchStatement(global.generatedEs2panda._CreateSwitchStatement(global.context, passNode(discriminant), passNodeArray(cases), casesLen)) } - static updateSwitchStatement(original: SwitchStatement | undefined, discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement | undefined { + static updateSwitchStatement(original: SwitchStatement | undefined, discriminant: Expression | undefined, cases: readonly SwitchCaseStatement[], casesLen: number): SwitchStatement { return new SwitchStatement(global.generatedEs2panda._UpdateSwitchStatement(global.context, passNode(original), passNode(discriminant), passNodeArray(cases), casesLen)) } get discriminantConst(): Expression | undefined { @@ -56,4 +57,7 @@ export class SwitchStatement extends Statement { } export function isSwitchStatement(node: AstNode): node is SwitchStatement { return node instanceof SwitchStatement +} +if (!nodeByType.has(85)) { + nodeByType.set(85, SwitchStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts index a9e9bc5c4322f6b9fc5778960994d6648a9d5e87..0554e0ec060b56d1db08e9aca4f11e70b43eb42d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAnyKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSAnyKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSAnyKeyword") } - static createTSAnyKeyword(): TSAnyKeyword | undefined { + static createTSAnyKeyword(): TSAnyKeyword { return new TSAnyKeyword(global.generatedEs2panda._CreateTSAnyKeyword(global.context)) } - static updateTSAnyKeyword(original?: TSAnyKeyword): TSAnyKeyword | undefined { + static updateTSAnyKeyword(original?: TSAnyKeyword): TSAnyKeyword { return new TSAnyKeyword(global.generatedEs2panda._UpdateTSAnyKeyword(global.context, passNode(original))) } } export function isTSAnyKeyword(node: AstNode): node is TSAnyKeyword { return node instanceof TSAnyKeyword +} +if (!nodeByType.has(90)) { + nodeByType.set(90, TSAnyKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts index 7c08bd7bc197bf6882dd9a0ecff297105f45fbd2..5b83f3e2e3272a304bfe118c838bb7a3c32653b4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSArrayType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSArrayType extends TypeNode { super(pointer) console.warn("Warning: stub node TSArrayType") } - static createTSArrayType(elementType?: TypeNode): TSArrayType | undefined { + static createTSArrayType(elementType?: TypeNode): TSArrayType { return new TSArrayType(global.generatedEs2panda._CreateTSArrayType(global.context, passNode(elementType))) } - static updateTSArrayType(original?: TSArrayType, elementType?: TypeNode): TSArrayType | undefined { + static updateTSArrayType(original?: TSArrayType, elementType?: TypeNode): TSArrayType { return new TSArrayType(global.generatedEs2panda._UpdateTSArrayType(global.context, passNode(original), passNode(elementType))) } get elementTypeConst(): TypeNode | undefined { @@ -45,4 +46,7 @@ export class TSArrayType extends TypeNode { } export function isTSArrayType(node: AstNode): node is TSArrayType { return node instanceof TSArrayType +} +if (!nodeByType.has(101)) { + nodeByType.set(101, TSArrayType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts index 6d892689c0f17a2c4b269ca419acbdc1d1713edd..e2e94a6892f6f684c29c4994470373ba9b4eadef 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSAsExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" @@ -35,10 +36,10 @@ export class TSAsExpression extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node TSAsExpression") } - static createTSAsExpression(expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression | undefined { + static createTSAsExpression(expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression { return new TSAsExpression(global.generatedEs2panda._CreateTSAsExpression(global.context, passNode(expression), passNode(typeAnnotation), isConst)) } - static updateTSAsExpression(original: TSAsExpression | undefined, expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression | undefined { + static updateTSAsExpression(original: TSAsExpression | undefined, expression: Expression | undefined, typeAnnotation: TypeNode | undefined, isConst: boolean): TSAsExpression { return new TSAsExpression(global.generatedEs2panda._UpdateTSAsExpression(global.context, passNode(original), passNode(expression), passNode(typeAnnotation), isConst)) } get exprConst(): Expression | undefined { @@ -53,4 +54,7 @@ export class TSAsExpression extends AnnotatedExpression { } export function isTSAsExpression(node: AstNode): node is TSAsExpression { return node instanceof TSAsExpression +} +if (!nodeByType.has(137)) { + nodeByType.set(137, TSAsExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts index 5c5e0204e9c41d5c1f948c62dd5b7dff8394f664..7b09d8a028b052d115540c77fc550e14d1ac74be 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBigintKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSBigintKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSBigintKeyword") } - static createTSBigintKeyword(): TSBigintKeyword | undefined { + static createTSBigintKeyword(): TSBigintKeyword { return new TSBigintKeyword(global.generatedEs2panda._CreateTSBigintKeyword(global.context)) } - static updateTSBigintKeyword(original?: TSBigintKeyword): TSBigintKeyword | undefined { + static updateTSBigintKeyword(original?: TSBigintKeyword): TSBigintKeyword { return new TSBigintKeyword(global.generatedEs2panda._UpdateTSBigintKeyword(global.context, passNode(original))) } } export function isTSBigintKeyword(node: AstNode): node is TSBigintKeyword { return node instanceof TSBigintKeyword +} +if (!nodeByType.has(97)) { + nodeByType.set(97, TSBigintKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts index 25fd5d2b42417492f0d5bd3b0db136fd23a849e9..f5310ed5f56c1555d91a218a47762c32833b7df4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSBooleanKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSBooleanKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSBooleanKeyword") } - static createTSBooleanKeyword(): TSBooleanKeyword | undefined { + static createTSBooleanKeyword(): TSBooleanKeyword { return new TSBooleanKeyword(global.generatedEs2panda._CreateTSBooleanKeyword(global.context)) } - static updateTSBooleanKeyword(original?: TSBooleanKeyword): TSBooleanKeyword | undefined { + static updateTSBooleanKeyword(original?: TSBooleanKeyword): TSBooleanKeyword { return new TSBooleanKeyword(global.generatedEs2panda._UpdateTSBooleanKeyword(global.context, passNode(original))) } } export function isTSBooleanKeyword(node: AstNode): node is TSBooleanKeyword { return node instanceof TSBooleanKeyword +} +if (!nodeByType.has(92)) { + nodeByType.set(92, TSBooleanKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts index a5e43b62a4c66deb2a63e3cfd6c503c0a9142a93..2580d32a61d7065283c7e145afa97c091193a682 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSClassImplements.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,16 +35,16 @@ export class TSClassImplements extends Expression { super(pointer) console.warn("Warning: stub node TSClassImplements") } - static createTSClassImplements(expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements | undefined { + static createTSClassImplements(expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._CreateTSClassImplements(global.context, passNode(expression), passNode(typeParameters))) } - static updateTSClassImplements(original?: TSClassImplements, expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements | undefined { + static updateTSClassImplements(original?: TSClassImplements, expression?: Expression, typeParameters?: TSTypeParameterInstantiation): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._UpdateTSClassImplements(global.context, passNode(original), passNode(expression), passNode(typeParameters))) } - static create1TSClassImplements(expression?: Expression): TSClassImplements | undefined { + static create1TSClassImplements(expression?: Expression): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._CreateTSClassImplements1(global.context, passNode(expression))) } - static update1TSClassImplements(original?: TSClassImplements, expression?: Expression): TSClassImplements | undefined { + static update1TSClassImplements(original?: TSClassImplements, expression?: Expression): TSClassImplements { return new TSClassImplements(global.generatedEs2panda._UpdateTSClassImplements1(global.context, passNode(original), passNode(expression))) } get expr(): Expression | undefined { @@ -58,4 +59,7 @@ export class TSClassImplements extends Expression { } export function isTSClassImplements(node: AstNode): node is TSClassImplements { return node instanceof TSClassImplements +} +if (!nodeByType.has(138)) { + nodeByType.set(138, TSClassImplements) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts index 21f9982bd636f8a4b2797e7f9745bb35dd911dd0..d65e3496c757fadfb641d7d67c7339c02265b24f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConditionalType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSConditionalType extends TypeNode { super(pointer) console.warn("Warning: stub node TSConditionalType") } - static createTSConditionalType(checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType | undefined { + static createTSConditionalType(checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType { return new TSConditionalType(global.generatedEs2panda._CreateTSConditionalType(global.context, passNode(checkType), passNode(extendsType), passNode(trueType), passNode(falseType))) } - static updateTSConditionalType(original?: TSConditionalType, checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType | undefined { + static updateTSConditionalType(original?: TSConditionalType, checkType?: Expression, extendsType?: Expression, trueType?: Expression, falseType?: Expression): TSConditionalType { return new TSConditionalType(global.generatedEs2panda._UpdateTSConditionalType(global.context, passNode(original), passNode(checkType), passNode(extendsType), passNode(trueType), passNode(falseType))) } get checkTypeConst(): Expression | undefined { @@ -55,4 +56,7 @@ export class TSConditionalType extends TypeNode { } export function isTSConditionalType(node: AstNode): node is TSConditionalType { return node instanceof TSConditionalType +} +if (!nodeByType.has(110)) { + nodeByType.set(110, TSConditionalType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts index eeb36fa8ad564562ec2d1e54e5740b76d0d8b5d2..daf1cc7540f9a8e8ec42cda6e0be33d9b58c95ac 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSConstructorType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -56,4 +57,7 @@ export class TSConstructorType extends TypeNode { } export function isTSConstructorType(node: AstNode): node is TSConstructorType { return node instanceof TSConstructorType +} +if (!nodeByType.has(125)) { + nodeByType.set(125, TSConstructorType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts index d02c582043331054233888b369eb0406aafdb49d..a53d96c14d0b0a0182233028d4bfd3babeb1aa18 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -36,10 +37,10 @@ export class TSEnumDeclaration extends TypedStatement { super(pointer) console.warn("Warning: stub node TSEnumDeclaration") } - static createTSEnumDeclaration(key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration | undefined { + static createTSEnumDeclaration(key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration { return new TSEnumDeclaration(global.generatedEs2panda._CreateTSEnumDeclaration(global.context, passNode(key), passNodeArray(members), membersLen, isConst, isStatic, isDeclare)) } - static updateTSEnumDeclaration(original: TSEnumDeclaration | undefined, key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration | undefined { + static updateTSEnumDeclaration(original: TSEnumDeclaration | undefined, key: Identifier | undefined, members: readonly AstNode[], membersLen: number, isConst: boolean, isStatic: boolean, isDeclare: boolean): TSEnumDeclaration { return new TSEnumDeclaration(global.generatedEs2panda._UpdateTSEnumDeclaration(global.context, passNode(original), passNode(key), passNodeArray(members), membersLen, isConst, isStatic, isDeclare)) } get keyConst(): Identifier | undefined { @@ -66,4 +67,7 @@ export class TSEnumDeclaration extends TypedStatement { } export function isTSEnumDeclaration(node: AstNode): node is TSEnumDeclaration { return node instanceof TSEnumDeclaration +} +if (!nodeByType.has(86)) { + nodeByType.set(86, TSEnumDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts index 30fd92c709b0511488f46ceddaaf887b5dff9cec..2dada9d1d8057bfd9f305879093877b2493ff7a4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSEnumMember.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,16 +35,16 @@ export class TSEnumMember extends Statement { super(pointer) console.warn("Warning: stub node TSEnumMember") } - static createTSEnumMember(key?: Expression, init?: Expression): TSEnumMember | undefined { + static createTSEnumMember(key?: Expression, init?: Expression): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._CreateTSEnumMember(global.context, passNode(key), passNode(init))) } - static updateTSEnumMember(original?: TSEnumMember, key?: Expression, init?: Expression): TSEnumMember | undefined { + static updateTSEnumMember(original?: TSEnumMember, key?: Expression, init?: Expression): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._UpdateTSEnumMember(global.context, passNode(original), passNode(key), passNode(init))) } - static create1TSEnumMember(key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember | undefined { + static create1TSEnumMember(key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._CreateTSEnumMember1(global.context, passNode(key), passNode(init), isGenerated)) } - static update1TSEnumMember(original: TSEnumMember | undefined, key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember | undefined { + static update1TSEnumMember(original: TSEnumMember | undefined, key: Expression | undefined, init: Expression | undefined, isGenerated: boolean): TSEnumMember { return new TSEnumMember(global.generatedEs2panda._UpdateTSEnumMember1(global.context, passNode(original), passNode(key), passNode(init), isGenerated)) } get keyConst(): Expression | undefined { @@ -64,4 +65,7 @@ export class TSEnumMember extends Statement { } export function isTSEnumMember(node: AstNode): node is TSEnumMember { return node instanceof TSEnumMember +} +if (!nodeByType.has(87)) { + nodeByType.set(87, TSEnumMember) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts index 68f06199e0a8bd11065f6114d13b6f865a440d47..09292e1a8bb3710946007d98df89a4322b11d716 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSExternalModuleReference.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class TSExternalModuleReference extends Expression { super(pointer) console.warn("Warning: stub node TSExternalModuleReference") } - static createTSExternalModuleReference(expr?: Expression): TSExternalModuleReference | undefined { + static createTSExternalModuleReference(expr?: Expression): TSExternalModuleReference { return new TSExternalModuleReference(global.generatedEs2panda._CreateTSExternalModuleReference(global.context, passNode(expr))) } - static updateTSExternalModuleReference(original?: TSExternalModuleReference, expr?: Expression): TSExternalModuleReference | undefined { + static updateTSExternalModuleReference(original?: TSExternalModuleReference, expr?: Expression): TSExternalModuleReference { return new TSExternalModuleReference(global.generatedEs2panda._UpdateTSExternalModuleReference(global.context, passNode(original), passNode(expr))) } get exprConst(): Expression | undefined { @@ -45,4 +46,7 @@ export class TSExternalModuleReference extends Expression { } export function isTSExternalModuleReference(node: AstNode): node is TSExternalModuleReference { return node instanceof TSExternalModuleReference +} +if (!nodeByType.has(88)) { + nodeByType.set(88, TSExternalModuleReference) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts index a69de43ee62aa432a17934b72feaa7db5f60d613..aa112e1bfbdc556c4506352f3c2f2ffc7a9d382e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSFunctionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -53,4 +54,7 @@ export class TSFunctionType extends TypeNode { } export function isTSFunctionType(node: AstNode): node is TSFunctionType { return node instanceof TSFunctionType +} +if (!nodeByType.has(124)) { + nodeByType.set(124, TSFunctionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts index 15d08992426095abe3af08948ea54a0e48c496f4..4439807d15ba529e01c0d9ff2b9acdcbd11957b9 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportEqualsDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -35,10 +36,10 @@ export class TSImportEqualsDeclaration extends Statement { super(pointer) console.warn("Warning: stub node TSImportEqualsDeclaration") } - static createTSImportEqualsDeclaration(id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration | undefined { + static createTSImportEqualsDeclaration(id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration { return new TSImportEqualsDeclaration(global.generatedEs2panda._CreateTSImportEqualsDeclaration(global.context, passNode(id), passNode(moduleReference), isExport)) } - static updateTSImportEqualsDeclaration(original: TSImportEqualsDeclaration | undefined, id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration | undefined { + static updateTSImportEqualsDeclaration(original: TSImportEqualsDeclaration | undefined, id: Identifier | undefined, moduleReference: Expression | undefined, isExport: boolean): TSImportEqualsDeclaration { return new TSImportEqualsDeclaration(global.generatedEs2panda._UpdateTSImportEqualsDeclaration(global.context, passNode(original), passNode(id), passNode(moduleReference), isExport)) } get idConst(): Identifier | undefined { @@ -53,4 +54,7 @@ export class TSImportEqualsDeclaration extends Statement { } export function isTSImportEqualsDeclaration(node: AstNode): node is TSImportEqualsDeclaration { return node instanceof TSImportEqualsDeclaration +} +if (!nodeByType.has(123)) { + nodeByType.set(123, TSImportEqualsDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts index d3baf27b2c88575b7b951b891111f906c922220a..01cce76615889d5c97e4c7495c69bcf5d3c82f8d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSImportType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class TSImportType extends TypeNode { super(pointer) console.warn("Warning: stub node TSImportType") } - static createTSImportType(param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType | undefined { + static createTSImportType(param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType { return new TSImportType(global.generatedEs2panda._CreateTSImportType(global.context, passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) } - static updateTSImportType(original: TSImportType | undefined, param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType | undefined { + static updateTSImportType(original: TSImportType | undefined, param: Expression | undefined, typeParams: TSTypeParameterInstantiation | undefined, qualifier: Expression | undefined, isTypeof: boolean): TSImportType { return new TSImportType(global.generatedEs2panda._UpdateTSImportType(global.context, passNode(original), passNode(param), passNode(typeParams), passNode(qualifier), isTypeof)) } get paramConst(): Expression | undefined { @@ -56,4 +57,7 @@ export class TSImportType extends TypeNode { } export function isTSImportType(node: AstNode): node is TSImportType { return node instanceof TSImportType +} +if (!nodeByType.has(111)) { + nodeByType.set(111, TSImportType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts index 929d213b3fc729cd808772f7b3805f12395eeeee..cc1ae8a705708f6f67cb22461d834fddb5313432 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexSignature.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" @@ -35,10 +36,10 @@ export class TSIndexSignature extends TypedAstNode { super(pointer) console.warn("Warning: stub node TSIndexSignature") } - static createTSIndexSignature(param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature | undefined { + static createTSIndexSignature(param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature { return new TSIndexSignature(global.generatedEs2panda._CreateTSIndexSignature(global.context, passNode(param), passNode(typeAnnotation), readonly_arg)) } - static updateTSIndexSignature(original: TSIndexSignature | undefined, param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature | undefined { + static updateTSIndexSignature(original: TSIndexSignature | undefined, param: Expression | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: boolean): TSIndexSignature { return new TSIndexSignature(global.generatedEs2panda._UpdateTSIndexSignature(global.context, passNode(original), passNode(param), passNode(typeAnnotation), readonly_arg)) } get paramConst(): Expression | undefined { @@ -53,4 +54,7 @@ export class TSIndexSignature extends TypedAstNode { } export function isTSIndexSignature(node: AstNode): node is TSIndexSignature { return node instanceof TSIndexSignature +} +if (!nodeByType.has(135)) { + nodeByType.set(135, TSIndexSignature) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts index f1792697d82acd951e6fb5c9011f6e51e5ee8d6f..3a4735dc748cdf67be586343714e91c4b2f7295e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIndexedAccessType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSIndexedAccessType extends TypeNode { super(pointer) console.warn("Warning: stub node TSIndexedAccessType") } - static createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType | undefined { + static createTSIndexedAccessType(objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType { return new TSIndexedAccessType(global.generatedEs2panda._CreateTSIndexedAccessType(global.context, passNode(objectType), passNode(indexType))) } - static updateTSIndexedAccessType(original?: TSIndexedAccessType, objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType | undefined { + static updateTSIndexedAccessType(original?: TSIndexedAccessType, objectType?: TypeNode, indexType?: TypeNode): TSIndexedAccessType { return new TSIndexedAccessType(global.generatedEs2panda._UpdateTSIndexedAccessType(global.context, passNode(original), passNode(objectType), passNode(indexType))) } get objectTypeConst(): TypeNode | undefined { @@ -48,4 +49,7 @@ export class TSIndexedAccessType extends TypeNode { } export function isTSIndexedAccessType(node: AstNode): node is TSIndexedAccessType { return node instanceof TSIndexedAccessType +} +if (!nodeByType.has(129)) { + nodeByType.set(129, TSIndexedAccessType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts index f0b45fdbfcd5b54d615a001b7da25f9c7962bffb..fd155eb7653679b505a0e80362a83591efcfea7f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInferType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSInferType extends TypeNode { super(pointer) console.warn("Warning: stub node TSInferType") } - static createTSInferType(typeParam?: TSTypeParameter): TSInferType | undefined { + static createTSInferType(typeParam?: TSTypeParameter): TSInferType { return new TSInferType(global.generatedEs2panda._CreateTSInferType(global.context, passNode(typeParam))) } - static updateTSInferType(original?: TSInferType, typeParam?: TSTypeParameter): TSInferType | undefined { + static updateTSInferType(original?: TSInferType, typeParam?: TSTypeParameter): TSInferType { return new TSInferType(global.generatedEs2panda._UpdateTSInferType(global.context, passNode(original), passNode(typeParam))) } get typeParamConst(): TSTypeParameter | undefined { @@ -46,4 +47,7 @@ export class TSInferType extends TypeNode { } export function isTSInferType(node: AstNode): node is TSInferType { return node instanceof TSInferType +} +if (!nodeByType.has(109)) { + nodeByType.set(109, TSInferType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts index 284f288096f967fa5589ac9422d41e84d57cba9e..73133678ff3ff9a5bf93300dd99db2bd2f498ff8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceBody.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class TSInterfaceBody extends Expression { super(pointer) console.warn("Warning: stub node TSInterfaceBody") } - static createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody | undefined { + static createTSInterfaceBody(body: readonly AstNode[], bodyLen: number): TSInterfaceBody { return new TSInterfaceBody(global.generatedEs2panda._CreateTSInterfaceBody(global.context, passNodeArray(body), bodyLen)) } - static updateTSInterfaceBody(original: TSInterfaceBody | undefined, body: readonly AstNode[], bodyLen: number): TSInterfaceBody | undefined { + static updateTSInterfaceBody(original: TSInterfaceBody | undefined, body: readonly AstNode[], bodyLen: number): TSInterfaceBody { return new TSInterfaceBody(global.generatedEs2panda._UpdateTSInterfaceBody(global.context, passNode(original), passNodeArray(body), bodyLen)) } get bodyPtr(): readonly AstNode[] { @@ -51,4 +52,7 @@ export class TSInterfaceBody extends Expression { } export function isTSInterfaceBody(node: AstNode): node is TSInterfaceBody { return node instanceof TSInterfaceBody +} +if (!nodeByType.has(131)) { + nodeByType.set(131, TSInterfaceBody) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts index f9bea725335d3b090ce8eeebcd938505d4a1264b..270f232903e7baf49bae51575b1ff081dd7cf86e 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceDeclaration.ts @@ -14,16 +14,15 @@ */ import { + assertValidPeer, + AstNode, global, + KNativePointer, + nodeByType, passNode, passNodeArray, - unpackNonNullableNode, unpackNode, - unpackNodeArray, - assertValidPeer, - AstNode, - Es2pandaAstNodeType, - KNativePointer + unpackNodeArray } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -34,16 +33,17 @@ import { TSTypeParameterDeclaration } from "./TSTypeParameterDeclaration" import { Decorator } from "./Decorator" import { ClassDeclaration } from "./ClassDeclaration" import { AnnotationUsage } from "./AnnotationUsage" + export class TSInterfaceDeclaration extends TypedStatement { constructor(pointer: KNativePointer) { assertValidPeer(pointer, 130) super(pointer) console.warn("Warning: stub node TSInterfaceDeclaration") } - static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration | undefined { + static createTSInterfaceDeclaration(_extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration { return new TSInterfaceDeclaration(global.generatedEs2panda._CreateTSInterfaceDeclaration(global.context, passNodeArray(_extends), extendsLen, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal)) } - static updateTSInterfaceDeclaration(original: TSInterfaceDeclaration | undefined, _extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration | undefined { + static updateTSInterfaceDeclaration(original: TSInterfaceDeclaration | undefined, _extends: readonly TSInterfaceHeritage[], extendsLen: number, id: AstNode | undefined, typeParams: AstNode | undefined, body: AstNode | undefined, isStatic: boolean, isExternal: boolean): TSInterfaceDeclaration { return new TSInterfaceDeclaration(global.generatedEs2panda._UpdateTSInterfaceDeclaration(global.context, passNode(original), passNodeArray(_extends), extendsLen, passNode(id), passNode(typeParams), passNode(body), isStatic, isExternal)) } get body(): TSInterfaceBody | undefined { @@ -97,4 +97,7 @@ export class TSInterfaceDeclaration extends TypedStatement { } export function isTSInterfaceDeclaration(node: AstNode): node is TSInterfaceDeclaration { return node instanceof TSInterfaceDeclaration -} \ No newline at end of file +} +if (!nodeByType.has(130)) { + nodeByType.set(130, TSInterfaceDeclaration) +} diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts index d7b6336931ff864ad9780a03fa31e900f4e619ca..8e59d11af0644517e11a718fa7243a3de97be655 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSInterfaceHeritage.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSInterfaceHeritage extends Expression { super(pointer) console.warn("Warning: stub node TSInterfaceHeritage") } - static createTSInterfaceHeritage(expr?: TypeNode): TSInterfaceHeritage | undefined { + static createTSInterfaceHeritage(expr?: TypeNode): TSInterfaceHeritage { return new TSInterfaceHeritage(global.generatedEs2panda._CreateTSInterfaceHeritage(global.context, passNode(expr))) } - static updateTSInterfaceHeritage(original?: TSInterfaceHeritage, expr?: TypeNode): TSInterfaceHeritage | undefined { + static updateTSInterfaceHeritage(original?: TSInterfaceHeritage, expr?: TypeNode): TSInterfaceHeritage { return new TSInterfaceHeritage(global.generatedEs2panda._UpdateTSInterfaceHeritage(global.context, passNode(original), passNode(expr))) } get expr(): TypeNode | undefined { @@ -49,4 +50,7 @@ export class TSInterfaceHeritage extends Expression { } export function isTSInterfaceHeritage(node: AstNode): node is TSInterfaceHeritage { return node instanceof TSInterfaceHeritage +} +if (!nodeByType.has(132)) { + nodeByType.set(132, TSInterfaceHeritage) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts index e3cc6b9592b681d3ec0b57d8dec34e3407c93f17..b4f3807184f3d634bc9d769e35726ade7425850b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSIntersectionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSIntersectionType extends TypeNode { super(pointer) console.warn("Warning: stub node TSIntersectionType") } - static createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType | undefined { + static createTSIntersectionType(types: readonly Expression[], typesLen: number): TSIntersectionType { return new TSIntersectionType(global.generatedEs2panda._CreateTSIntersectionType(global.context, passNodeArray(types), typesLen)) } - static updateTSIntersectionType(original: TSIntersectionType | undefined, types: readonly Expression[], typesLen: number): TSIntersectionType | undefined { + static updateTSIntersectionType(original: TSIntersectionType | undefined, types: readonly Expression[], typesLen: number): TSIntersectionType { return new TSIntersectionType(global.generatedEs2panda._UpdateTSIntersectionType(global.context, passNode(original), passNodeArray(types), typesLen)) } get typesConst(): readonly Expression[] { @@ -46,4 +47,7 @@ export class TSIntersectionType extends TypeNode { } export function isTSIntersectionType(node: AstNode): node is TSIntersectionType { return node instanceof TSIntersectionType +} +if (!nodeByType.has(112)) { + nodeByType.set(112, TSIntersectionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts index 558cbcc679883f1e6dd0d281451a1357d8d44241..514a5e1b80457b4257e0c409a3a17ec918104e55 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSLiteralType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSLiteralType extends TypeNode { super(pointer) console.warn("Warning: stub node TSLiteralType") } - static createTSLiteralType(literal?: Expression): TSLiteralType | undefined { + static createTSLiteralType(literal?: Expression): TSLiteralType { return new TSLiteralType(global.generatedEs2panda._CreateTSLiteralType(global.context, passNode(literal))) } - static updateTSLiteralType(original?: TSLiteralType, literal?: Expression): TSLiteralType | undefined { + static updateTSLiteralType(original?: TSLiteralType, literal?: Expression): TSLiteralType { return new TSLiteralType(global.generatedEs2panda._UpdateTSLiteralType(global.context, passNode(original), passNode(literal))) } get literalConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class TSLiteralType extends TypeNode { } export function isTSLiteralType(node: AstNode): node is TSLiteralType { return node instanceof TSLiteralType +} +if (!nodeByType.has(108)) { + nodeByType.set(108, TSLiteralType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts index 4bec564d2b9047767c53d5a3b6b673ee3fe02328..df7036c6870b3c79d6ea52a83e07a240a6df0337 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMappedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class TSMappedType extends TypeNode { super(pointer) console.warn("Warning: stub node TSMappedType") } - static createTSMappedType(typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType | undefined { + static createTSMappedType(typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType { return new TSMappedType(global.generatedEs2panda._CreateTSMappedType(global.context, passNode(typeParameter), passNode(typeAnnotation), readonly_arg, optional_arg)) } - static updateTSMappedType(original: TSMappedType | undefined, typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType | undefined { + static updateTSMappedType(original: TSMappedType | undefined, typeParameter: TSTypeParameter | undefined, typeAnnotation: TypeNode | undefined, readonly_arg: Es2pandaMappedOption, optional_arg: Es2pandaMappedOption): TSMappedType { return new TSMappedType(global.generatedEs2panda._UpdateTSMappedType(global.context, passNode(original), passNode(typeParameter), passNode(typeAnnotation), readonly_arg, optional_arg)) } get typeParameter(): TSTypeParameter | undefined { @@ -56,4 +57,7 @@ export class TSMappedType extends TypeNode { } export function isTSMappedType(node: AstNode): node is TSMappedType { return node instanceof TSMappedType +} +if (!nodeByType.has(113)) { + nodeByType.set(113, TSMappedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts index 96072c65e7354337dba75cc26bd1ce4f5d71c246..cb1219662d69f072afaa5d50a357f8d2588730f4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSMethodSignature.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -65,4 +66,7 @@ export class TSMethodSignature extends AstNode { } export function isTSMethodSignature(node: AstNode): node is TSMethodSignature { return node instanceof TSMethodSignature +} +if (!nodeByType.has(105)) { + nodeByType.set(105, TSMethodSignature) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts b/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts index dd276c7882104af498ab3878333480054f6f0b7c..99b04712e61c2ad2496294c8c398bbac2a6e58aa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleBlock.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -39,4 +40,7 @@ export class TSModuleBlock extends Statement { } export function isTSModuleBlock(node: AstNode): node is TSModuleBlock { return node instanceof TSModuleBlock +} +if (!nodeByType.has(114)) { + nodeByType.set(114, TSModuleBlock) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts index 98adfc7ccd702b7f28d80149a6d515347802b873..6dd73bc7eae44f83c77adeb446c8b3abf4df5701 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSModuleDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -49,4 +50,7 @@ export class TSModuleDeclaration extends Statement { } export function isTSModuleDeclaration(node: AstNode): node is TSModuleDeclaration { return node instanceof TSModuleDeclaration +} +if (!nodeByType.has(122)) { + nodeByType.set(122, TSModuleDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts index b7d1d4663b956930309bcb04ac330e37f0acb12d..d71cc25a284ec0b94f7fad0e481aefbaa6f9a7c5 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNamedTupleMember.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSNamedTupleMember extends TypeNode { super(pointer) console.warn("Warning: stub node TSNamedTupleMember") } - static createTSNamedTupleMember(label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember | undefined { + static createTSNamedTupleMember(label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember { return new TSNamedTupleMember(global.generatedEs2panda._CreateTSNamedTupleMember(global.context, passNode(label), passNode(elementType), optional_arg)) } - static updateTSNamedTupleMember(original: TSNamedTupleMember | undefined, label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember | undefined { + static updateTSNamedTupleMember(original: TSNamedTupleMember | undefined, label: Expression | undefined, elementType: TypeNode | undefined, optional_arg: boolean): TSNamedTupleMember { return new TSNamedTupleMember(global.generatedEs2panda._UpdateTSNamedTupleMember(global.context, passNode(original), passNode(label), passNode(elementType), optional_arg)) } get labelConst(): Expression | undefined { @@ -55,4 +56,7 @@ export class TSNamedTupleMember extends TypeNode { } export function isTSNamedTupleMember(node: AstNode): node is TSNamedTupleMember { return node instanceof TSNamedTupleMember +} +if (!nodeByType.has(134)) { + nodeByType.set(134, TSNamedTupleMember) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts index f5dff1d60ede44d1503aaf851edc9e6f09583d58..61a9a3eb2e7dadd4e05d3c171ea75edabc578be6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNeverKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSNeverKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNeverKeyword") } - static createTSNeverKeyword(): TSNeverKeyword | undefined { + static createTSNeverKeyword(): TSNeverKeyword { return new TSNeverKeyword(global.generatedEs2panda._CreateTSNeverKeyword(global.context)) } - static updateTSNeverKeyword(original?: TSNeverKeyword): TSNeverKeyword | undefined { + static updateTSNeverKeyword(original?: TSNeverKeyword): TSNeverKeyword { return new TSNeverKeyword(global.generatedEs2panda._UpdateTSNeverKeyword(global.context, passNode(original))) } } export function isTSNeverKeyword(node: AstNode): node is TSNeverKeyword { return node instanceof TSNeverKeyword +} +if (!nodeByType.has(98)) { + nodeByType.set(98, TSNeverKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts index c349ead31cfca19d8a6e60002b2660aeb6d39634..a154667c2c2edb3e632c523c33d82bff37e2bf64 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNonNullExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class TSNonNullExpression extends Expression { super(pointer) console.warn("Warning: stub node TSNonNullExpression") } - static createTSNonNullExpression(expr?: Expression): TSNonNullExpression | undefined { + static createTSNonNullExpression(expr?: Expression): TSNonNullExpression { return new TSNonNullExpression(global.generatedEs2panda._CreateTSNonNullExpression(global.context, passNode(expr))) } - static updateTSNonNullExpression(original?: TSNonNullExpression, expr?: Expression): TSNonNullExpression | undefined { + static updateTSNonNullExpression(original?: TSNonNullExpression, expr?: Expression): TSNonNullExpression { return new TSNonNullExpression(global.generatedEs2panda._UpdateTSNonNullExpression(global.context, passNode(original), passNode(expr))) } get exprConst(): Expression | undefined { @@ -48,4 +49,7 @@ export class TSNonNullExpression extends Expression { } export function isTSNonNullExpression(node: AstNode): node is TSNonNullExpression { return node instanceof TSNonNullExpression +} +if (!nodeByType.has(99)) { + nodeByType.set(99, TSNonNullExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts index fdb0363c9645e806920b6855fe7bd1aaccbb9c1b..a338f0527e3b6a0de8720538f07e447c959b2e35 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNullKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSNullKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNullKeyword") } - static createTSNullKeyword(): TSNullKeyword | undefined { + static createTSNullKeyword(): TSNullKeyword { return new TSNullKeyword(global.generatedEs2panda._CreateTSNullKeyword(global.context)) } - static updateTSNullKeyword(original?: TSNullKeyword): TSNullKeyword | undefined { + static updateTSNullKeyword(original?: TSNullKeyword): TSNullKeyword { return new TSNullKeyword(global.generatedEs2panda._UpdateTSNullKeyword(global.context, passNode(original))) } } export function isTSNullKeyword(node: AstNode): node is TSNullKeyword { return node instanceof TSNullKeyword +} +if (!nodeByType.has(100)) { + nodeByType.set(100, TSNullKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts index 14c7a45c0a94551c2bacffd651b180f918fe0c0a..ef48ea57c0aad56b4a45dabf83ba98e8d3b931cf 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSNumberKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSNumberKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSNumberKeyword") } - static createTSNumberKeyword(): TSNumberKeyword | undefined { + static createTSNumberKeyword(): TSNumberKeyword { return new TSNumberKeyword(global.generatedEs2panda._CreateTSNumberKeyword(global.context)) } - static updateTSNumberKeyword(original?: TSNumberKeyword): TSNumberKeyword | undefined { + static updateTSNumberKeyword(original?: TSNumberKeyword): TSNumberKeyword { return new TSNumberKeyword(global.generatedEs2panda._UpdateTSNumberKeyword(global.context, passNode(original))) } } export function isTSNumberKeyword(node: AstNode): node is TSNumberKeyword { return node instanceof TSNumberKeyword +} +if (!nodeByType.has(89)) { + nodeByType.set(89, TSNumberKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts index ee05fa5042745a9a9b3984441f4f28e93c42514a..f8bfb3d1e0e8407a675d04ba91e583df6dafc0ab 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSObjectKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSObjectKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSObjectKeyword") } - static createTSObjectKeyword(): TSObjectKeyword | undefined { + static createTSObjectKeyword(): TSObjectKeyword { return new TSObjectKeyword(global.generatedEs2panda._CreateTSObjectKeyword(global.context)) } - static updateTSObjectKeyword(original?: TSObjectKeyword): TSObjectKeyword | undefined { + static updateTSObjectKeyword(original?: TSObjectKeyword): TSObjectKeyword { return new TSObjectKeyword(global.generatedEs2panda._UpdateTSObjectKeyword(global.context, passNode(original))) } } export function isTSObjectKeyword(node: AstNode): node is TSObjectKeyword { return node instanceof TSObjectKeyword +} +if (!nodeByType.has(96)) { + nodeByType.set(96, TSObjectKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts index 4206b7b5c8d48ad5d75b8c218fe135b5bf4642c7..18d1991d84d678366f37f45cbafc127703d06aa4 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParameterProperty.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSParameterProperty extends Expression { super(pointer) console.warn("Warning: stub node TSParameterProperty") } - static createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty | undefined { + static createTSParameterProperty(accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty { return new TSParameterProperty(global.generatedEs2panda._CreateTSParameterProperty(global.context, accessibility, passNode(parameter), readonly_arg, isStatic, isExport)) } - static updateTSParameterProperty(original: TSParameterProperty | undefined, accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty | undefined { + static updateTSParameterProperty(original: TSParameterProperty | undefined, accessibility: Es2pandaAccessibilityOption, parameter: Expression | undefined, readonly_arg: boolean, isStatic: boolean, isExport: boolean): TSParameterProperty { return new TSParameterProperty(global.generatedEs2panda._UpdateTSParameterProperty(global.context, passNode(original), accessibility, passNode(parameter), readonly_arg, isStatic, isExport)) } get accessibilityConst(): Es2pandaAccessibilityOption { @@ -58,4 +59,7 @@ export class TSParameterProperty extends Expression { } export function isTSParameterProperty(node: AstNode): node is TSParameterProperty { return node instanceof TSParameterProperty +} +if (!nodeByType.has(121)) { + nodeByType.set(121, TSParameterProperty) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts index 1e091bef95d72976ee1710e7742292db2b9bc769..cdfc0257ee39bf51c837f5d38fc822771929a6aa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSParenthesizedType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSParenthesizedType extends TypeNode { super(pointer) console.warn("Warning: stub node TSParenthesizedType") } - static createTSParenthesizedType(type?: TypeNode): TSParenthesizedType | undefined { + static createTSParenthesizedType(type?: TypeNode): TSParenthesizedType { return new TSParenthesizedType(global.generatedEs2panda._CreateTSParenthesizedType(global.context, passNode(type))) } - static updateTSParenthesizedType(original?: TSParenthesizedType, type?: TypeNode): TSParenthesizedType | undefined { + static updateTSParenthesizedType(original?: TSParenthesizedType, type?: TypeNode): TSParenthesizedType { return new TSParenthesizedType(global.generatedEs2panda._UpdateTSParenthesizedType(global.context, passNode(original), passNode(type))) } get typeConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class TSParenthesizedType extends TypeNode { } export function isTSParenthesizedType(node: AstNode): node is TSParenthesizedType { return node instanceof TSParenthesizedType +} +if (!nodeByType.has(107)) { + nodeByType.set(107, TSParenthesizedType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts index d14000f2a6757ae3ebc758e1b13191887f001cc8..fb9f0eead3385c8a154e35433ec2e9b664db29c8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSPropertySignature.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedAstNode } from "./AnnotatedAstNode" @@ -35,10 +36,10 @@ export class TSPropertySignature extends AnnotatedAstNode { super(pointer) console.warn("Warning: stub node TSPropertySignature") } - static createTSPropertySignature(key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature | undefined { + static createTSPropertySignature(key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature { return new TSPropertySignature(global.generatedEs2panda._CreateTSPropertySignature(global.context, passNode(key), passNode(typeAnnotation), computed, optional_arg, readonly_arg)) } - static updateTSPropertySignature(original: TSPropertySignature | undefined, key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature | undefined { + static updateTSPropertySignature(original: TSPropertySignature | undefined, key: Expression | undefined, typeAnnotation: TypeNode | undefined, computed: boolean, optional_arg: boolean, readonly_arg: boolean): TSPropertySignature { return new TSPropertySignature(global.generatedEs2panda._UpdateTSPropertySignature(global.context, passNode(original), passNode(key), passNode(typeAnnotation), computed, optional_arg, readonly_arg)) } get keyConst(): Expression | undefined { @@ -62,4 +63,7 @@ export class TSPropertySignature extends AnnotatedAstNode { } export function isTSPropertySignature(node: AstNode): node is TSPropertySignature { return node instanceof TSPropertySignature +} +if (!nodeByType.has(104)) { + nodeByType.set(104, TSPropertySignature) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts index d7c41cff3f5e48970828ed85feff01ed57a60edb..8a23a42752228f77fec803d88e4dc3260eb1d8c6 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSQualifiedName.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSQualifiedName extends Expression { super(pointer) console.warn("Warning: stub node TSQualifiedName") } - static createTSQualifiedName(left?: Expression, right?: Identifier): TSQualifiedName | undefined { + static createTSQualifiedName(left?: Expression, right?: Identifier): TSQualifiedName { return new TSQualifiedName(global.generatedEs2panda._CreateTSQualifiedName(global.context, passNode(left), passNode(right))) } - static updateTSQualifiedName(original?: TSQualifiedName, left?: Expression, right?: Identifier): TSQualifiedName | undefined { + static updateTSQualifiedName(original?: TSQualifiedName, left?: Expression, right?: Identifier): TSQualifiedName { return new TSQualifiedName(global.generatedEs2panda._UpdateTSQualifiedName(global.context, passNode(original), passNode(left), passNode(right))) } get leftConst(): Expression | undefined { @@ -55,4 +56,7 @@ export class TSQualifiedName extends Expression { } export function isTSQualifiedName(node: AstNode): node is TSQualifiedName { return node instanceof TSQualifiedName +} +if (!nodeByType.has(128)) { + nodeByType.set(128, TSQualifiedName) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts index 4fc3e85cbb22e28058c7b3a23d25bf09b0021d79..8f3335b4a8a1ca16df33935d561de850358b56ed 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSSignatureDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedAstNode } from "./TypedAstNode" @@ -58,4 +59,7 @@ export class TSSignatureDeclaration extends TypedAstNode { } export function isTSSignatureDeclaration(node: AstNode): node is TSSignatureDeclaration { return node instanceof TSSignatureDeclaration +} +if (!nodeByType.has(106)) { + nodeByType.set(106, TSSignatureDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts index 6638b1b3e138e4c77759ca57065800e0cb8c97ae..e0e7a8ac2a06f1f690e55b8e68be950ab3bf5852 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSStringKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSStringKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSStringKeyword") } - static createTSStringKeyword(): TSStringKeyword | undefined { + static createTSStringKeyword(): TSStringKeyword { return new TSStringKeyword(global.generatedEs2panda._CreateTSStringKeyword(global.context)) } - static updateTSStringKeyword(original?: TSStringKeyword): TSStringKeyword | undefined { + static updateTSStringKeyword(original?: TSStringKeyword): TSStringKeyword { return new TSStringKeyword(global.generatedEs2panda._UpdateTSStringKeyword(global.context, passNode(original))) } } export function isTSStringKeyword(node: AstNode): node is TSStringKeyword { return node instanceof TSStringKeyword +} +if (!nodeByType.has(91)) { + nodeByType.set(91, TSStringKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts index c5a813ea9236cc4ed6c0add9195c384764c934f7..f41c0b7f1858a0dcd254303c01e0c0c45140841c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSThisType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSThisType extends TypeNode { super(pointer) console.warn("Warning: stub node TSThisType") } - static createTSThisType(): TSThisType | undefined { + static createTSThisType(): TSThisType { return new TSThisType(global.generatedEs2panda._CreateTSThisType(global.context)) } - static updateTSThisType(original?: TSThisType): TSThisType | undefined { + static updateTSThisType(original?: TSThisType): TSThisType { return new TSThisType(global.generatedEs2panda._UpdateTSThisType(global.context, passNode(original))) } } export function isTSThisType(node: AstNode): node is TSThisType { return node instanceof TSThisType +} +if (!nodeByType.has(115)) { + nodeByType.set(115, TSThisType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts index f780da7468a4eb4f92169748ba79539b991b1b56..4189b9d065ad5649b8368aeef97e17742c9160d7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTupleType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSTupleType extends TypeNode { super(pointer) console.warn("Warning: stub node TSTupleType") } - static createTSTupleType(elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType | undefined { + static createTSTupleType(elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType { return new TSTupleType(global.generatedEs2panda._CreateTSTupleType(global.context, passNodeArray(elementTypes), elementTypesLen)) } - static updateTSTupleType(original: TSTupleType | undefined, elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType | undefined { + static updateTSTupleType(original: TSTupleType | undefined, elementTypes: readonly TypeNode[], elementTypesLen: number): TSTupleType { return new TSTupleType(global.generatedEs2panda._UpdateTSTupleType(global.context, passNode(original), passNodeArray(elementTypes), elementTypesLen)) } get elementTypeConst(): readonly TypeNode[] { @@ -45,4 +46,7 @@ export class TSTupleType extends TypeNode { } export function isTSTupleType(node: AstNode): node is TSTupleType { return node instanceof TSTupleType +} +if (!nodeByType.has(133)) { + nodeByType.set(133, TSTupleType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts index cc5654dfb09a51c33103d6e7cb7baa55d9b8c3ef..e9ff06a0f59c821a79b5a94f26df5fffee12d45c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAliasDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedStatement } from "./AnnotatedStatement" @@ -38,16 +39,16 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { super(pointer) console.warn("Warning: stub node TSTypeAliasDeclaration") } - static createTSTypeAliasDeclaration(id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration | undefined { + static createTSTypeAliasDeclaration(id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._CreateTSTypeAliasDeclaration(global.context, passNode(id), passNode(typeParams), passNode(typeAnnotation))) } - static updateTSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration | undefined { + static updateTSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier, typeParams?: TSTypeParameterDeclaration, typeAnnotation?: TypeNode): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration(global.context, passNode(original), passNode(id), passNode(typeParams), passNode(typeAnnotation))) } - static create1TSTypeAliasDeclaration(id?: Identifier): TSTypeAliasDeclaration | undefined { + static create1TSTypeAliasDeclaration(id?: Identifier): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._CreateTSTypeAliasDeclaration1(global.context, passNode(id))) } - static update1TSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier): TSTypeAliasDeclaration | undefined { + static update1TSTypeAliasDeclaration(original?: TSTypeAliasDeclaration, id?: Identifier): TSTypeAliasDeclaration { return new TSTypeAliasDeclaration(global.generatedEs2panda._UpdateTSTypeAliasDeclaration1(global.context, passNode(original), passNode(id))) } get id(): Identifier | undefined { @@ -74,4 +75,7 @@ export class TSTypeAliasDeclaration extends AnnotatedStatement { } export function isTSTypeAliasDeclaration(node: AstNode): node is TSTypeAliasDeclaration { return node instanceof TSTypeAliasDeclaration +} +if (!nodeByType.has(126)) { + nodeByType.set(126, TSTypeAliasDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts index 8d1915b7da6ffd9f24e8f21c4ba6d1b3a39362ee..ad6d47764ec668d18ab285d167b7d15e87a9f907 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeAssertion.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { AnnotatedExpression } from "./AnnotatedExpression" @@ -35,10 +36,10 @@ export class TSTypeAssertion extends AnnotatedExpression { super(pointer) console.warn("Warning: stub node TSTypeAssertion") } - static createTSTypeAssertion(typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion | undefined { + static createTSTypeAssertion(typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion { return new TSTypeAssertion(global.generatedEs2panda._CreateTSTypeAssertion(global.context, passNode(typeAnnotation), passNode(expression))) } - static updateTSTypeAssertion(original?: TSTypeAssertion, typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion | undefined { + static updateTSTypeAssertion(original?: TSTypeAssertion, typeAnnotation?: TypeNode, expression?: Expression): TSTypeAssertion { return new TSTypeAssertion(global.generatedEs2panda._UpdateTSTypeAssertion(global.context, passNode(original), passNode(typeAnnotation), passNode(expression))) } get getExpressionConst(): Expression | undefined { @@ -50,4 +51,7 @@ export class TSTypeAssertion extends AnnotatedExpression { } export function isTSTypeAssertion(node: AstNode): node is TSTypeAssertion { return node instanceof TSTypeAssertion +} +if (!nodeByType.has(139)) { + nodeByType.set(139, TSTypeAssertion) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts index db04fb73b9c808d3733d89592b25be7f2a369e8d..0f66760cf9d199b0446ef731a64338c185839110 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSTypeLiteral extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeLiteral") } - static createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral | undefined { + static createTSTypeLiteral(members: readonly AstNode[], membersLen: number): TSTypeLiteral { return new TSTypeLiteral(global.generatedEs2panda._CreateTSTypeLiteral(global.context, passNodeArray(members), membersLen)) } - static updateTSTypeLiteral(original: TSTypeLiteral | undefined, members: readonly AstNode[], membersLen: number): TSTypeLiteral | undefined { + static updateTSTypeLiteral(original: TSTypeLiteral | undefined, members: readonly AstNode[], membersLen: number): TSTypeLiteral { return new TSTypeLiteral(global.generatedEs2panda._UpdateTSTypeLiteral(global.context, passNode(original), passNodeArray(members), membersLen)) } get membersConst(): readonly AstNode[] { @@ -45,4 +46,7 @@ export class TSTypeLiteral extends TypeNode { } export function isTSTypeLiteral(node: AstNode): node is TSTypeLiteral { return node instanceof TSTypeLiteral +} +if (!nodeByType.has(103)) { + nodeByType.set(103, TSTypeLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts index 0245e44c46f90a4e72ec1a4b370e2bc29024b525..c69211c1dd9c2535f92d0c84df389c35f2b9c8b0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeOperator.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSTypeOperator extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeOperator") } - static createTSTypeOperator(type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator | undefined { + static createTSTypeOperator(type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator { return new TSTypeOperator(global.generatedEs2panda._CreateTSTypeOperator(global.context, passNode(type), operatorType)) } - static updateTSTypeOperator(original: TSTypeOperator | undefined, type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator | undefined { + static updateTSTypeOperator(original: TSTypeOperator | undefined, type: TypeNode | undefined, operatorType: Es2pandaTSOperatorType): TSTypeOperator { return new TSTypeOperator(global.generatedEs2panda._UpdateTSTypeOperator(global.context, passNode(original), passNode(type), operatorType)) } get typeConst(): TypeNode | undefined { @@ -55,4 +56,7 @@ export class TSTypeOperator extends TypeNode { } export function isTSTypeOperator(node: AstNode): node is TSTypeOperator { return node instanceof TSTypeOperator +} +if (!nodeByType.has(116)) { + nodeByType.set(116, TSTypeOperator) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts index df61b3d5e8ad15e5b4450e01c89387cd0099cd32..69d217e48b42378a3be0eea5304e43ac06600b9f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameter.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -37,16 +38,16 @@ export class TSTypeParameter extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameter") } - static createTSTypeParameter(name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter | undefined { + static createTSTypeParameter(name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._CreateTSTypeParameter(global.context, passNode(name), passNode(constraint), passNode(defaultType))) } - static updateTSTypeParameter(original?: TSTypeParameter, name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter | undefined { + static updateTSTypeParameter(original?: TSTypeParameter, name?: Identifier, constraint?: TypeNode, defaultType?: TypeNode): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._UpdateTSTypeParameter(global.context, passNode(original), passNode(name), passNode(constraint), passNode(defaultType))) } - static create1TSTypeParameter(name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter | undefined { + static create1TSTypeParameter(name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._CreateTSTypeParameter1(global.context, passNode(name), passNode(constraint), passNode(defaultType), flags)) } - static update1TSTypeParameter(original: TSTypeParameter | undefined, name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter | undefined { + static update1TSTypeParameter(original: TSTypeParameter | undefined, name: Identifier | undefined, constraint: TypeNode | undefined, defaultType: TypeNode | undefined, flags: Es2pandaModifierFlags): TSTypeParameter { return new TSTypeParameter(global.generatedEs2panda._UpdateTSTypeParameter1(global.context, passNode(original), passNode(name), passNode(constraint), passNode(defaultType), flags)) } get nameConst(): Identifier | undefined { @@ -73,4 +74,7 @@ export class TSTypeParameter extends Expression { } export function isTSTypeParameter(node: AstNode): node is TSTypeParameter { return node instanceof TSTypeParameter +} +if (!nodeByType.has(117)) { + nodeByType.set(117, TSTypeParameter) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts index 649b62924c5d05772dc1a040d41945331de99e89..2be0b6bff6935ccd67f2e66f01ea56ae583b35d0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSTypeParameterDeclaration extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameterDeclaration") } - static createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration | undefined { + static createTSTypeParameterDeclaration(params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration { return new TSTypeParameterDeclaration(global.generatedEs2panda._CreateTSTypeParameterDeclaration(global.context, passNodeArray(params), paramsLen, requiredParams)) } - static updateTSTypeParameterDeclaration(original: TSTypeParameterDeclaration | undefined, params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration | undefined { + static updateTSTypeParameterDeclaration(original: TSTypeParameterDeclaration | undefined, params: readonly TSTypeParameter[], paramsLen: number, requiredParams: number): TSTypeParameterDeclaration { return new TSTypeParameterDeclaration(global.generatedEs2panda._UpdateTSTypeParameterDeclaration(global.context, passNode(original), passNodeArray(params), paramsLen, requiredParams)) } get paramsConst(): readonly TSTypeParameter[] { @@ -49,4 +50,7 @@ export class TSTypeParameterDeclaration extends Expression { } export function isTSTypeParameterDeclaration(node: AstNode): node is TSTypeParameterDeclaration { return node instanceof TSTypeParameterDeclaration +} +if (!nodeByType.has(118)) { + nodeByType.set(118, TSTypeParameterDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts index bb571ed29720f5b0c135c4902168a2a98ded3df8..faeb4299a55401a0986de59c3cf9a3a173235430 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeParameterInstantiation.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TSTypeParameterInstantiation extends Expression { super(pointer) console.warn("Warning: stub node TSTypeParameterInstantiation") } - static createTSTypeParameterInstantiation(params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation | undefined { + static createTSTypeParameterInstantiation(params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation { return new TSTypeParameterInstantiation(global.generatedEs2panda._CreateTSTypeParameterInstantiation(global.context, passNodeArray(params), paramsLen)) } - static updateTSTypeParameterInstantiation(original: TSTypeParameterInstantiation | undefined, params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation | undefined { + static updateTSTypeParameterInstantiation(original: TSTypeParameterInstantiation | undefined, params: readonly TypeNode[], paramsLen: number): TSTypeParameterInstantiation { return new TSTypeParameterInstantiation(global.generatedEs2panda._UpdateTSTypeParameterInstantiation(global.context, passNode(original), passNodeArray(params), paramsLen)) } get paramsConst(): readonly TypeNode[] { @@ -46,4 +47,7 @@ export class TSTypeParameterInstantiation extends Expression { } export function isTSTypeParameterInstantiation(node: AstNode): node is TSTypeParameterInstantiation { return node instanceof TSTypeParameterInstantiation +} +if (!nodeByType.has(119)) { + nodeByType.set(119, TSTypeParameterInstantiation) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts index 0af99af2944d529263fe32117215596c544b324f..5c605d7958b4d1203ed9ff2c6900aedfb1f5d837 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypePredicate.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSTypePredicate extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypePredicate") } - static createTSTypePredicate(parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate | undefined { + static createTSTypePredicate(parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate { return new TSTypePredicate(global.generatedEs2panda._CreateTSTypePredicate(global.context, passNode(parameterName), passNode(typeAnnotation), asserts)) } - static updateTSTypePredicate(original: TSTypePredicate | undefined, parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate | undefined { + static updateTSTypePredicate(original: TSTypePredicate | undefined, parameterName: Expression | undefined, typeAnnotation: TypeNode | undefined, asserts: boolean): TSTypePredicate { return new TSTypePredicate(global.generatedEs2panda._UpdateTSTypePredicate(global.context, passNode(original), passNode(parameterName), passNode(typeAnnotation), asserts)) } get parameterNameConst(): Expression | undefined { @@ -52,4 +53,7 @@ export class TSTypePredicate extends TypeNode { } export function isTSTypePredicate(node: AstNode): node is TSTypePredicate { return node instanceof TSTypePredicate +} +if (!nodeByType.has(120)) { + nodeByType.set(120, TSTypePredicate) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts index e4be5cc263f1d7923329e4372ff61a1b37ff5dcb..8cc40264c5ab755be8a7570109a40d7273232aed 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeQuery.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -34,10 +35,10 @@ export class TSTypeQuery extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeQuery") } - static createTSTypeQuery(exprName?: Expression): TSTypeQuery | undefined { + static createTSTypeQuery(exprName?: Expression): TSTypeQuery { return new TSTypeQuery(global.generatedEs2panda._CreateTSTypeQuery(global.context, passNode(exprName))) } - static updateTSTypeQuery(original?: TSTypeQuery, exprName?: Expression): TSTypeQuery | undefined { + static updateTSTypeQuery(original?: TSTypeQuery, exprName?: Expression): TSTypeQuery { return new TSTypeQuery(global.generatedEs2panda._UpdateTSTypeQuery(global.context, passNode(original), passNode(exprName))) } get exprNameConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class TSTypeQuery extends TypeNode { } export function isTSTypeQuery(node: AstNode): node is TSTypeQuery { return node instanceof TSTypeQuery +} +if (!nodeByType.has(136)) { + nodeByType.set(136, TSTypeQuery) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts index 286229070c5df3eb64bccc31626b5d97b60381ab..53215db151a078afbd1f284700ce2b11051d62f8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSTypeReference.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -35,10 +36,10 @@ export class TSTypeReference extends TypeNode { super(pointer) console.warn("Warning: stub node TSTypeReference") } - static createTSTypeReference(typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference | undefined { + static createTSTypeReference(typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference { return new TSTypeReference(global.generatedEs2panda._CreateTSTypeReference(global.context, passNode(typeName), passNode(typeParams))) } - static updateTSTypeReference(original?: TSTypeReference, typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference | undefined { + static updateTSTypeReference(original?: TSTypeReference, typeName?: Expression, typeParams?: TSTypeParameterInstantiation): TSTypeReference { return new TSTypeReference(global.generatedEs2panda._UpdateTSTypeReference(global.context, passNode(original), passNode(typeName), passNode(typeParams))) } get typeParamsConst(): TSTypeParameterInstantiation | undefined { @@ -50,4 +51,7 @@ export class TSTypeReference extends TypeNode { } export function isTSTypeReference(node: AstNode): node is TSTypeReference { return node instanceof TSTypeReference +} +if (!nodeByType.has(127)) { + nodeByType.set(127, TSTypeReference) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts index 617f53697ca99a8be4c4647b335f1408fe85c2fc..895f5f82cb88d6851e3b427fdc6450c12f19845d 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUndefinedKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSUndefinedKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSUndefinedKeyword") } - static createTSUndefinedKeyword(): TSUndefinedKeyword | undefined { + static createTSUndefinedKeyword(): TSUndefinedKeyword { return new TSUndefinedKeyword(global.generatedEs2panda._CreateTSUndefinedKeyword(global.context)) } - static updateTSUndefinedKeyword(original?: TSUndefinedKeyword): TSUndefinedKeyword | undefined { + static updateTSUndefinedKeyword(original?: TSUndefinedKeyword): TSUndefinedKeyword { return new TSUndefinedKeyword(global.generatedEs2panda._UpdateTSUndefinedKeyword(global.context, passNode(original))) } } export function isTSUndefinedKeyword(node: AstNode): node is TSUndefinedKeyword { return node instanceof TSUndefinedKeyword +} +if (!nodeByType.has(94)) { + nodeByType.set(94, TSUndefinedKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts index 7602a8fbe5e12a12afd89e9a455e0a269c16f329..9b696f94c69c447829882dc86788c4e458a26833 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnionType.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,10 +34,10 @@ export class TSUnionType extends TypeNode { super(pointer) console.warn("Warning: stub node TSUnionType") } - static createTSUnionType(types: readonly TypeNode[], typesLen: number): TSUnionType | undefined { + static createTSUnionType(types: readonly TypeNode[], typesLen: number): TSUnionType { return new TSUnionType(global.generatedEs2panda._CreateTSUnionType(global.context, passNodeArray(types), typesLen)) } - static updateTSUnionType(original: TSUnionType | undefined, types: readonly TypeNode[], typesLen: number): TSUnionType | undefined { + static updateTSUnionType(original: TSUnionType | undefined, types: readonly TypeNode[], typesLen: number): TSUnionType { return new TSUnionType(global.generatedEs2panda._UpdateTSUnionType(global.context, passNode(original), passNodeArray(types), typesLen)) } get typesConst(): readonly TypeNode[] { @@ -45,4 +46,7 @@ export class TSUnionType extends TypeNode { } export function isTSUnionType(node: AstNode): node is TSUnionType { return node instanceof TSUnionType +} +if (!nodeByType.has(102)) { + nodeByType.set(102, TSUnionType) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts index 0b40302310dcde6831fcab124cd88536fd3002ca..b7d88e15bf64ad68b32da199c9b1e12678af534a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSUnknownKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSUnknownKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSUnknownKeyword") } - static createTSUnknownKeyword(): TSUnknownKeyword | undefined { + static createTSUnknownKeyword(): TSUnknownKeyword { return new TSUnknownKeyword(global.generatedEs2panda._CreateTSUnknownKeyword(global.context)) } - static updateTSUnknownKeyword(original?: TSUnknownKeyword): TSUnknownKeyword | undefined { + static updateTSUnknownKeyword(original?: TSUnknownKeyword): TSUnknownKeyword { return new TSUnknownKeyword(global.generatedEs2panda._UpdateTSUnknownKeyword(global.context, passNode(original))) } } export function isTSUnknownKeyword(node: AstNode): node is TSUnknownKeyword { return node instanceof TSUnknownKeyword +} +if (!nodeByType.has(95)) { + nodeByType.set(95, TSUnknownKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts index 392412c70c3db158451b3b8a11df07415a84b60e..8197ebb738d06930e3f28430cde3574750e6914f 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TSVoidKeyword.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypeNode } from "./TypeNode" @@ -33,13 +34,16 @@ export class TSVoidKeyword extends TypeNode { super(pointer) console.warn("Warning: stub node TSVoidKeyword") } - static createTSVoidKeyword(): TSVoidKeyword | undefined { + static createTSVoidKeyword(): TSVoidKeyword { return new TSVoidKeyword(global.generatedEs2panda._CreateTSVoidKeyword(global.context)) } - static updateTSVoidKeyword(original?: TSVoidKeyword): TSVoidKeyword | undefined { + static updateTSVoidKeyword(original?: TSVoidKeyword): TSVoidKeyword { return new TSVoidKeyword(global.generatedEs2panda._UpdateTSVoidKeyword(global.context, passNode(original))) } } export function isTSVoidKeyword(node: AstNode): node is TSVoidKeyword { return node instanceof TSVoidKeyword +} +if (!nodeByType.has(93)) { + nodeByType.set(93, TSVoidKeyword) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts index 991244956d89e5290ee5d94b92eab6346dabbf07..00cd6f6dc00108f4703423230721a36dd50b1848 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TaggedTemplateExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -35,10 +36,10 @@ export class TaggedTemplateExpression extends Expression { super(pointer) console.warn("Warning: stub node TaggedTemplateExpression") } - static createTaggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression | undefined { + static createTaggedTemplateExpression(tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression { return new TaggedTemplateExpression(global.generatedEs2panda._CreateTaggedTemplateExpression(global.context, passNode(tag), passNode(quasi), passNode(typeParams))) } - static updateTaggedTemplateExpression(original?: TaggedTemplateExpression, tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression | undefined { + static updateTaggedTemplateExpression(original?: TaggedTemplateExpression, tag?: Expression, quasi?: TemplateLiteral, typeParams?: TSTypeParameterInstantiation): TaggedTemplateExpression { return new TaggedTemplateExpression(global.generatedEs2panda._UpdateTaggedTemplateExpression(global.context, passNode(original), passNode(tag), passNode(quasi), passNode(typeParams))) } get tagConst(): Expression | undefined { @@ -53,4 +54,7 @@ export class TaggedTemplateExpression extends Expression { } export function isTaggedTemplateExpression(node: AstNode): node is TaggedTemplateExpression { return node instanceof TaggedTemplateExpression +} +if (!nodeByType.has(140)) { + nodeByType.set(140, TaggedTemplateExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts index 0d505f70fcb80f359966176ec62daeed459a9f05..cb05a99e0530e116136d8b4045c123d2a7bf7bf3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateElement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,16 +34,16 @@ export class TemplateElement extends Expression { super(pointer) console.warn("Warning: stub node TemplateElement") } - static createTemplateElement(): TemplateElement | undefined { + static createTemplateElement(): TemplateElement { return new TemplateElement(global.generatedEs2panda._CreateTemplateElement(global.context)) } - static updateTemplateElement(original?: TemplateElement): TemplateElement | undefined { + static updateTemplateElement(original?: TemplateElement): TemplateElement { return new TemplateElement(global.generatedEs2panda._UpdateTemplateElement(global.context, passNode(original))) } - static create1TemplateElement(raw: string, cooked: string): TemplateElement | undefined { + static create1TemplateElement(raw: string, cooked: string): TemplateElement { return new TemplateElement(global.generatedEs2panda._CreateTemplateElement1(global.context, raw, cooked)) } - static update1TemplateElement(original: TemplateElement | undefined, raw: string, cooked: string): TemplateElement | undefined { + static update1TemplateElement(original: TemplateElement | undefined, raw: string, cooked: string): TemplateElement { return new TemplateElement(global.generatedEs2panda._UpdateTemplateElement1(global.context, passNode(original), raw, cooked)) } get rawConst(): string { @@ -54,4 +55,7 @@ export class TemplateElement extends Expression { } export function isTemplateElement(node: AstNode): node is TemplateElement { return node instanceof TemplateElement +} +if (!nodeByType.has(141)) { + nodeByType.set(141, TemplateElement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts index 952583ba0e116e6a6fc370c23445883cf91177e1..227569f5d8a456b62b277c186d645985979d864c 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TemplateLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class TemplateLiteral extends Expression { super(pointer) console.warn("Warning: stub node TemplateLiteral") } - static createTemplateLiteral(quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral | undefined { + static createTemplateLiteral(quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral { return new TemplateLiteral(global.generatedEs2panda._CreateTemplateLiteral(global.context, passNodeArray(quasis), quasisLen, passNodeArray(expressions), expressionsLen, multilineString)) } - static updateTemplateLiteral(original: TemplateLiteral | undefined, quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral | undefined { + static updateTemplateLiteral(original: TemplateLiteral | undefined, quasis: readonly TemplateElement[], quasisLen: number, expressions: readonly Expression[], expressionsLen: number, multilineString: string): TemplateLiteral { return new TemplateLiteral(global.generatedEs2panda._UpdateTemplateLiteral(global.context, passNode(original), passNodeArray(quasis), quasisLen, passNodeArray(expressions), expressionsLen, multilineString)) } get quasisConst(): readonly TemplateElement[] { @@ -49,4 +50,7 @@ export class TemplateLiteral extends Expression { } export function isTemplateLiteral(node: AstNode): node is TemplateLiteral { return node instanceof TemplateLiteral +} +if (!nodeByType.has(142)) { + nodeByType.set(142, TemplateLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts index 28563e464c5e7132b2308c1a74d5717d4097815d..d622b5e563b0db9137bc9d54f9f66a096ef61af1 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThisExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,13 +34,16 @@ export class ThisExpression extends Expression { super(pointer) console.warn("Warning: stub node ThisExpression") } - static createThisExpression(): ThisExpression | undefined { + static createThisExpression(): ThisExpression { return new ThisExpression(global.generatedEs2panda._CreateThisExpression(global.context)) } - static updateThisExpression(original?: ThisExpression): ThisExpression | undefined { + static updateThisExpression(original?: ThisExpression): ThisExpression { return new ThisExpression(global.generatedEs2panda._UpdateThisExpression(global.context, passNode(original))) } } export function isThisExpression(node: AstNode): node is ThisExpression { return node instanceof ThisExpression +} +if (!nodeByType.has(143)) { + nodeByType.set(143, ThisExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts index c2468f34cca341347f643a794368df7f3a57dc17..46ece221f35ab2545329e433b8708d59bcf5b85b 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/ThrowStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -34,10 +35,10 @@ export class ThrowStatement extends Statement { super(pointer) console.warn("Warning: stub node ThrowStatement") } - static createThrowStatement(argument?: Expression): ThrowStatement | undefined { + static createThrowStatement(argument?: Expression): ThrowStatement { return new ThrowStatement(global.generatedEs2panda._CreateThrowStatement(global.context, passNode(argument))) } - static updateThrowStatement(original?: ThrowStatement, argument?: Expression): ThrowStatement | undefined { + static updateThrowStatement(original?: ThrowStatement, argument?: Expression): ThrowStatement { return new ThrowStatement(global.generatedEs2panda._UpdateThrowStatement(global.context, passNode(original), passNode(argument))) } get argumentConst(): Expression | undefined { @@ -46,4 +47,7 @@ export class ThrowStatement extends Statement { } export function isThrowStatement(node: AstNode): node is ThrowStatement { return node instanceof ThrowStatement +} +if (!nodeByType.has(145)) { + nodeByType.set(145, ThrowStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts index cbf22f6dcdbc309a3ce5593ec5c1fba8ed1e3495..b790a1d19b0a0b52849fe4d37fd8d974ba5598e7 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TryStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -53,4 +54,7 @@ export class TryStatement extends Statement { } export function isTryStatement(node: AstNode): node is TryStatement { return node instanceof TryStatement +} +if (!nodeByType.has(146)) { + nodeByType.set(146, TryStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts index bd893051b98cca5c6d75beeec8bc4203fa57fa58..789c66b72903815f43da6eb4652b8c9b608a5725 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts index a93cec213fe1604f1f409278c35a8a31224757a7..2e92127278cf729e2499d635eeb284ef3689886a 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedAstNode.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" export abstract class TypedAstNode extends AstNode { diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts index f277f2845bdf4aba3b8e69195a95ec2a5908248b..d3efbbbab31217e93016867319f45539bc697a05 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypedStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" diff --git a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts index e12144926f4858e208b86449be1766fa08fac4bb..541ef9675e7f589f6bb3dcf4af4b1818c2be71ff 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/TypeofExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class TypeofExpression extends Expression { super(pointer) console.warn("Warning: stub node TypeofExpression") } - static createTypeofExpression(argument?: Expression): TypeofExpression | undefined { + static createTypeofExpression(argument?: Expression): TypeofExpression { return new TypeofExpression(global.generatedEs2panda._CreateTypeofExpression(global.context, passNode(argument))) } - static updateTypeofExpression(original?: TypeofExpression, argument?: Expression): TypeofExpression | undefined { + static updateTypeofExpression(original?: TypeofExpression, argument?: Expression): TypeofExpression { return new TypeofExpression(global.generatedEs2panda._UpdateTypeofExpression(global.context, passNode(original), passNode(argument))) } get argumentConst(): Expression | undefined { @@ -45,4 +46,7 @@ export class TypeofExpression extends Expression { } export function isTypeofExpression(node: AstNode): node is TypeofExpression { return node instanceof TypeofExpression +} +if (!nodeByType.has(144)) { + nodeByType.set(144, TypeofExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts index 3664948fc90478ef3e4f80433eb72e4f6034b2cb..d0ab980f35f5807be78045bc73c7f93efa93eef3 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UnaryExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class UnaryExpression extends Expression { super(pointer) console.warn("Warning: stub node UnaryExpression") } - static createUnaryExpression(argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression | undefined { + static createUnaryExpression(argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression { return new UnaryExpression(global.generatedEs2panda._CreateUnaryExpression(global.context, passNode(argument), unaryOperator)) } - static updateUnaryExpression(original: UnaryExpression | undefined, argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression | undefined { + static updateUnaryExpression(original: UnaryExpression | undefined, argument: Expression | undefined, unaryOperator: Es2pandaTokenType): UnaryExpression { return new UnaryExpression(global.generatedEs2panda._UpdateUnaryExpression(global.context, passNode(original), passNode(argument), unaryOperator)) } get operatorTypeConst(): Es2pandaTokenType { @@ -52,4 +53,7 @@ export class UnaryExpression extends Expression { } export function isUnaryExpression(node: AstNode): node is UnaryExpression { return node instanceof UnaryExpression +} +if (!nodeByType.has(147)) { + nodeByType.set(147, UnaryExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts index ff60f1550fcdd7ec73115183d339d63085d3b58c..7928c351141eb4752e55fd694acf212aa0d1c2e0 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UndefinedLiteral.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Literal } from "./Literal" @@ -33,13 +34,16 @@ export class UndefinedLiteral extends Literal { super(pointer) console.warn("Warning: stub node UndefinedLiteral") } - static createUndefinedLiteral(): UndefinedLiteral | undefined { + static createUndefinedLiteral(): UndefinedLiteral { return new UndefinedLiteral(global.generatedEs2panda._CreateUndefinedLiteral(global.context)) } - static updateUndefinedLiteral(original?: UndefinedLiteral): UndefinedLiteral | undefined { + static updateUndefinedLiteral(original?: UndefinedLiteral): UndefinedLiteral { return new UndefinedLiteral(global.generatedEs2panda._UpdateUndefinedLiteral(global.context, passNode(original))) } } export function isUndefinedLiteral(node: AstNode): node is UndefinedLiteral { return node instanceof UndefinedLiteral +} +if (!nodeByType.has(51)) { + nodeByType.set(51, UndefinedLiteral) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts index e0f3f13748e47d689559d8d3662b11f161e95212..14ad0b275ae96a7310c104f041d32d9fd0998145 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/UpdateExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -34,10 +35,10 @@ export class UpdateExpression extends Expression { super(pointer) console.warn("Warning: stub node UpdateExpression") } - static createUpdateExpression(argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression | undefined { + static createUpdateExpression(argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { return new UpdateExpression(global.generatedEs2panda._CreateUpdateExpression(global.context, passNode(argument), updateOperator, isPrefix)) } - static updateUpdateExpression(original: UpdateExpression | undefined, argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression | undefined { + static updateUpdateExpression(original: UpdateExpression | undefined, argument: Expression | undefined, updateOperator: Es2pandaTokenType, isPrefix: boolean): UpdateExpression { return new UpdateExpression(global.generatedEs2panda._UpdateUpdateExpression(global.context, passNode(original), passNode(argument), updateOperator, isPrefix)) } get operatorTypeConst(): Es2pandaTokenType { @@ -55,4 +56,7 @@ export class UpdateExpression extends Expression { } export function isUpdateExpression(node: AstNode): node is UpdateExpression { return node instanceof UpdateExpression +} +if (!nodeByType.has(148)) { + nodeByType.set(148, UpdateExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts index b145115d863d89ef003b39950280af92739251db..2d562e5fee0692cf7e6cc57a9259cd2dd77d9a84 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclaration.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Statement } from "./Statement" @@ -37,10 +38,10 @@ export class VariableDeclaration extends Statement { super(pointer) console.warn("Warning: stub node VariableDeclaration") } - static createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration | undefined { + static createVariableDeclaration(kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration { return new VariableDeclaration(global.generatedEs2panda._CreateVariableDeclaration(global.context, kind, passNodeArray(declarators), declaratorsLen)) } - static updateVariableDeclaration(original: VariableDeclaration | undefined, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration | undefined { + static updateVariableDeclaration(original: VariableDeclaration | undefined, kind: Es2pandaVariableDeclarationKind, declarators: readonly VariableDeclarator[], declaratorsLen: number): VariableDeclaration { return new VariableDeclaration(global.generatedEs2panda._UpdateVariableDeclaration(global.context, passNode(original), kind, passNodeArray(declarators), declaratorsLen)) } get declaratorsConst(): readonly VariableDeclarator[] { @@ -61,4 +62,7 @@ export class VariableDeclaration extends Statement { } export function isVariableDeclaration(node: AstNode): node is VariableDeclaration { return node instanceof VariableDeclaration +} +if (!nodeByType.has(149)) { + nodeByType.set(149, VariableDeclaration) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts index 9d46bd03519f4604b57bd87d112f5d44d76f6d30..bebada215f0c778e99ca1d0b1b2f5240eeed8ee8 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/VariableDeclarator.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { TypedStatement } from "./TypedStatement" @@ -35,16 +36,16 @@ export class VariableDeclarator extends TypedStatement { super(pointer) console.warn("Warning: stub node VariableDeclarator") } - static createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator | undefined { + static createVariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator(global.context, flag, passNode(ident))) } - static updateVariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator | undefined { + static updateVariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._UpdateVariableDeclarator(global.context, passNode(original), flag, passNode(ident))) } - static create1VariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator | undefined { + static create1VariableDeclarator(flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._CreateVariableDeclarator1(global.context, flag, passNode(ident), passNode(init))) } - static update1VariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator | undefined { + static update1VariableDeclarator(original: VariableDeclarator | undefined, flag: Es2pandaVariableDeclaratorFlag, ident?: Expression, init?: Expression): VariableDeclarator { return new VariableDeclarator(global.generatedEs2panda._UpdateVariableDeclarator1(global.context, passNode(original), flag, passNode(ident), passNode(init))) } get init(): Expression | undefined { @@ -65,4 +66,7 @@ export class VariableDeclarator extends TypedStatement { } export function isVariableDeclarator(node: AstNode): node is VariableDeclarator { return node instanceof VariableDeclarator +} +if (!nodeByType.has(150)) { + nodeByType.set(150, VariableDeclarator) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts b/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts index b5ca5e0be18b2b9d8f1906174c74a98aa36effd8..d2b24f274c41715f35df585a11f913fecd778dfa 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/WhileStatement.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { LoopStatement } from "./LoopStatement" @@ -50,4 +51,7 @@ export class WhileStatement extends LoopStatement { } export function isWhileStatement(node: AstNode): node is WhileStatement { return node instanceof WhileStatement +} +if (!nodeByType.has(151)) { + nodeByType.set(151, WhileStatement) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts index 6a1279f7bb1de2a72de8335b8eb580c8cd2f20bd..5de301724dd4e60c6fff7a170a33ab3a78b40fd2 100644 --- a/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts +++ b/arkoala-arkts/libarkts/src/generated/peers/YieldExpression.ts @@ -23,7 +23,8 @@ import { assertValidPeer, AstNode, Es2pandaAstNodeType, - KNativePointer + KNativePointer, + nodeByType } from "../../reexport-for-generated" import { Expression } from "./Expression" @@ -33,10 +34,10 @@ export class YieldExpression extends Expression { super(pointer) console.warn("Warning: stub node YieldExpression") } - static createYieldExpression(argument: Expression | undefined, isDelegate: boolean): YieldExpression | undefined { + static createYieldExpression(argument: Expression | undefined, isDelegate: boolean): YieldExpression { return new YieldExpression(global.generatedEs2panda._CreateYieldExpression(global.context, passNode(argument), isDelegate)) } - static updateYieldExpression(original: YieldExpression | undefined, argument: Expression | undefined, isDelegate: boolean): YieldExpression | undefined { + static updateYieldExpression(original: YieldExpression | undefined, argument: Expression | undefined, isDelegate: boolean): YieldExpression { return new YieldExpression(global.generatedEs2panda._UpdateYieldExpression(global.context, passNode(original), passNode(argument), isDelegate)) } get hasDelegateConst(): boolean { @@ -48,4 +49,7 @@ export class YieldExpression extends Expression { } export function isYieldExpression(node: AstNode): node is YieldExpression { return node instanceof YieldExpression +} +if (!nodeByType.has(152)) { + nodeByType.set(152, YieldExpression) } \ No newline at end of file diff --git a/arkoala-arkts/libarkts/src/reexport-for-generated.ts b/arkoala-arkts/libarkts/src/reexport-for-generated.ts index 4fc36e32752e85638e525de64939901c6d1d32c2..648817510dd0407dd42b4f5a1ee0b343099449ef 100644 --- a/arkoala-arkts/libarkts/src/reexport-for-generated.ts +++ b/arkoala-arkts/libarkts/src/reexport-for-generated.ts @@ -12,10 +12,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - export { KNativePointer } from "@koalaui/interop" +export { AstNode } from "./arkts-api/peers/AstNode" export { Es2pandaAstNodeType } from "./Es2pandaEnums" -export { assertValidPeer } from "./arkts-api//types" export { passNode, unpackNonNullableNode, @@ -24,8 +23,9 @@ export { unpackNode, unpackNonNullableObject, unpackString, - unpackObject + unpackObject, + assertValidPeer } from "./arkts-api/utilities/private" +export { nodeByType } from "./arkts-api/class-by-peer" export { global } from "./arkts-api/static/global" export { Es2pandaMemberExpressionKind } from "./generated/Es2pandaEnums" -export { AstNode } from "./arkts-api/peers/AstNode" diff --git a/arkoala-arkts/libarkts/src/utils.ts b/arkoala-arkts/libarkts/src/utils.ts index c30d3b0f576dea3fcd3e30617d4262ed5de25672..15cc29473c8c52b4d363c511949366d52fbfb2c9 100644 --- a/arkoala-arkts/libarkts/src/utils.ts +++ b/arkoala-arkts/libarkts/src/utils.ts @@ -26,10 +26,11 @@ export function isNumber(value: any): value is number { return typeof value === `number` } -// TODO: the lowerings insert %% and other special symbols -// into names of temporary variables. -// Until we keep feeding ast dumps back to the parser -// this function is needed. +/* + TODO: + The lowerings insert %% and other special symbols into names of temporary variables. + Until we keep feeding ast dumps back to the parser this function is needed. + */ export function filterSource(text: string): string { return text .replaceAll(/%/g, "_") diff --git a/arkoala-arkts/libarkts/test/arkts-api/functions/create.test.ts b/arkoala-arkts/libarkts/test/arkts-api/functions/create.test.ts index 10a452f91175de7732c51425e562f6f4fe7dc736..928e92ccc638c291d4d0fb40c8d667aa93078170 100644 --- a/arkoala-arkts/libarkts/test/arkts-api/functions/create.test.ts +++ b/arkoala-arkts/libarkts/test/arkts-api/functions/create.test.ts @@ -50,17 +50,15 @@ suite(util.basename(__filename), () => { ) ] ), - arkts.FunctionSignature.create( - undefined, - [], - undefined - ), arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_NONE, arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PUBLIC | arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_STATIC, false, arkts.factory.createIdentifier( 'foo' - ) + ), + [], + undefined, + undefined ), false ), @@ -152,40 +150,39 @@ suite(util.basename(__filename), () => { ) ] ), - arkts.FunctionSignature.create( - undefined, - [ - arkts.factory.createParameterDeclaration( - arkts.factory.createIdentifier( - 'x', - arkts.factory.createPrimitiveType( - arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_INT - ) - ), - undefined - ), - arkts.factory.createParameterDeclaration( - arkts.factory.createIdentifier( - 'y', - arkts.factory.createTypeReferenceFromId( - arkts.factory.createIdentifier( - 'string' - ) - ) - ), - arkts.factory.createStringLiteral( - 'bbb' - ) - ) - ], - undefined - ), + arkts.Es2pandaScriptFunctionFlags.SCRIPT_FUNCTION_FLAGS_NONE, arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_PUBLIC | arkts.Es2pandaModifierFlags.MODIFIER_FLAGS_STATIC, false, arkts.factory.createIdentifier( 'foo' - ) + ), + [ + arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier( + 'x', + arkts.factory.createPrimitiveType( + arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_INT + ) + ), + undefined + ), + arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier( + 'y', + arkts.factory.createTypeReferenceFromId( + arkts.factory.createIdentifier( + 'string' + ) + ) + ), + arkts.factory.createStringLiteral( + 'bbb' + ) + ) + ], + undefined, + undefined ), false ), diff --git a/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts b/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts index 1f1335b877c023d7004ccf25fec13f8a6b06e193..b4d4b3611cc27152ba34872078e7dca4465cd1b3 100644 --- a/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts +++ b/arkoala-arkts/libarkts/test/arkts-api/general/annotations.test.ts @@ -19,6 +19,9 @@ suite(util.basename(__filename), () => { const annotations = arkts.getAnnotations(script.statements[0]) const names = annotations.map((annot) => { + if (annot.expr === undefined) { + throw new Error('annotation expression is undefined') + } if (!arkts.isIdentifier(annot.expr)) { throw new Error('annotation expected to be Identifier') } diff --git a/arkoala-arkts/libarkts/test/arkts-api/import-export/import.test.ts b/arkoala-arkts/libarkts/test/arkts-api/import-export/import.test.ts index d7d254f9c08bb700b8d7b43b05e65e62cce0f878..fe8649ed6a1b6fe03d4378070d519e9e52bc1261 100644 --- a/arkoala-arkts/libarkts/test/arkts-api/import-export/import.test.ts +++ b/arkoala-arkts/libarkts/test/arkts-api/import-export/import.test.ts @@ -167,15 +167,13 @@ suite(util.basename(__filename), () => { ) ] ), - arkts.FunctionSignature.create( - undefined, - [], - undefined - ), scriptFunction.scriptFunctionFlags, scriptFunction.modifiers, false, - scriptFunction.ident + scriptFunction.ident, + [], + undefined, + undefined ), false ) diff --git a/arkoala-arkts/libarkts/test/test-util.ts b/arkoala-arkts/libarkts/test/test-util.ts index 3d85b1ea1faf5f8514ef64a04c61778fa15c053a..c065bbe359e32dcf0966772266cca8241b16d828 100644 --- a/arkoala-arkts/libarkts/test/test-util.ts +++ b/arkoala-arkts/libarkts/test/test-util.ts @@ -14,7 +14,6 @@ */ import { global } from "../src/arkts-api/static/global" -import * as ts from "../src/ts-api" import * as arkts from "../src/arkts-api" import * as pth from "path" @@ -24,13 +23,6 @@ import { exec, execSync } from "child_process" export { Es2pandaNativeModule } from "../src/Es2pandaNativeModule" export { assert } from "chai" -class defaultTransformationContext implements ts.TransformationContext { -} - -export function getDefaultTransformationContext(): ts.TransformationContext { - return new defaultTransformationContext() -} - export function alignText(text: string): string { const lines = text.replace(/\t/gy, ' ').split('\n') @@ -63,19 +55,15 @@ export function assertEqualsSource(sourceResult: string, sourceExpect: string, m ) } -export function TS_TEST_ASSERTION(node: ts.SourceFile, source: string, state?: ts.ContextState) { - ARKTS_TEST_ASSERTION(node.node, source, state) -} - -export function ARKTS_TEST_ASSERTION(node: arkts.EtsScript, source: string, state?: ts.ContextState) { - const finalState: ts.ContextState = (() => { +export function ARKTS_TEST_ASSERTION(node: arkts.EtsScript, source: string, state?: arkts.Es2pandaContextState) { + const finalState: arkts.Es2pandaContextState = (() => { if (state !== undefined) { return state } if (process.env.STATE_CHECKED !== undefined) { - return ts.ContextState.ES2PANDA_STATE_CHECKED + return arkts.Es2pandaContextState.ES2PANDA_STATE_CHECKED } - return ts.ContextState.ES2PANDA_STATE_PARSED + return arkts.Es2pandaContextState.ES2PANDA_STATE_PARSED })() arkts.proceedToState(finalState) @@ -94,40 +82,7 @@ export function ARKTS_TEST_ASSERTION(node: arkts.EtsScript, source: string, stat } } -export function addMemoParamsToFunctionDeclaration(func: ts.FunctionDeclaration): ts.FunctionDeclaration { - return ts.factory.updateFunctionDeclaration( - func, - undefined, - undefined, - func.name, - undefined, - [ - ts.factory.createParameterDeclaration( - undefined, - undefined, - ts.factory.createIdentifier("__memo_context"), - undefined, - ts.factory.createTypeReferenceNode( - ts.factory.createIdentifier("__memo_context_type") - ), - undefined - ), - ts.factory.createParameterDeclaration( - undefined, - undefined, - ts.factory.createIdentifier("__memo_id"), - undefined, - ts.factory.createTypeReferenceNode( - ts.factory.createIdentifier("__memo_id_type") - ), - undefined - ), - ...func.parameters - ], - undefined, - func.body - ) -} + export function cleanGenerated(): void { exec('npm run clean:generated') @@ -142,7 +97,7 @@ export function fileToAbc(path: string, isModule?: boolean): void { } export function contextToAbc(): void { - arkts.proceedToState(ts.ContextState.ES2PANDA_STATE_BIN_GENERATED) + arkts.proceedToState(arkts.Es2pandaContextState.ES2PANDA_STATE_BIN_GENERATED) // TODO: get name of file execSync('mkdir -p ./generated') execSync('mv ./main.abc ./generated/main.abc') diff --git a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts index 0071bb839224de786ca0cde793917fe4a77e6709..120ce494953514b8087fe857fd5535c60d1c5a67 100644 --- a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/create-function-declaration.test.ts @@ -2,7 +2,7 @@ import * as util from "../../../test-util" import * as ts from "../../../../src/ts-api" import { factory } from "../../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("empty-function", function() { // function test_func() { // // empty diff --git a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts index 2c2229a8a523b1dced177302b6ae3e72d48d196c..ca2966d4d754e498809a46cee57c993e686d101f 100644 --- a/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/functions/function-declaration/update-function-declaration.test.ts @@ -1,7 +1,7 @@ import * as util from "../../../test-util" import * as ts from "../../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { // adding y: string to signature test("update-name-and-add-param-to-function", function() { // function new_test_func(x: number, y: string) { diff --git a/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts b/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts index 470141df7df77c649c7507189347b5a9e301c5ce..bfad65152a4601c5d0eed778a716b4691690e054 100644 --- a/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/functions/lambda-function/lambda-param-memoization.test.ts @@ -1,7 +1,7 @@ import * as util from "../../../test-util" import * as ts from "../../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { // full memo rewrite test("memo-function-with-lambda-memo-param", function() { // function foo( diff --git a/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts b/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts index 05106f2a2de5e1a84d70c2b38d909d3bdb2cdd2b..00c60f8de599a7b51dd2eda5a537f1d9e442c0bb 100644 --- a/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/general/abc-gen.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" // tests for abc generation (now failing on CI) -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("updating-expression-statement", function() { const sample_in = ` diff --git a/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts b/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts index 62c53242fbb46b481a2dfc8d7e76c8592c4b578a..72f8253b94c0b544257a045c0da636ed5700acc7 100644 --- a/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/general/basic.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" import { factory } from "../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("sample-1", function() { const sample_in = ` diff --git a/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts b/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts index 33a83fe9b72c32540b101747812d11f8e8e00aae..66369eefa31b5ff6ef3809e1be4381c3ab3a22e0 100644 --- a/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/variables/create-variable.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" import { factory } from "../../../src/ts-api" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("const-number", function() { const sample_in = ` diff --git a/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts b/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts index 9bdc32742ee5a27a42ca0d32ed47e38c2f2c5f56..1ece5e82a4aacc6fdcad2690a340e738cbb1afb9 100644 --- a/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts +++ b/arkoala-arkts/libarkts/test/ts-api/visitors-and-transformers/memo-rewrite.test.ts @@ -2,7 +2,7 @@ import * as util from "../../test-util" import * as ts from "../../../src/ts-api" import { MemoTransformer } from "../../../plugins/src/memo-transformer" -suite(util.basename(__filename), () => { +suite.skip(util.basename(__filename), () => { test("memo-transformer-sample-1", function() { const sample_in = ` diff --git a/arkoala-arkts/loader/src/loader.ts b/arkoala-arkts/loader/src/loader.ts index 8936e229e7ea669915fc0c9c0b484149afd0acc5..f66b0a9775d09a10bf5c11fe79d032e68ed46984 100644 --- a/arkoala-arkts/loader/src/loader.ts +++ b/arkoala-arkts/loader/src/loader.ts @@ -46,7 +46,7 @@ export interface NativeControl extends LoaderOps { _SetVsyncCallback(pipeline: KPointer): void _VSyncAwait(pipeline: KPointer): Promise _UnblockVsyncWait(pipeline: KPointer): void - _EmitEvent(type: int32, target: int32, arg0: int32, arg1: int32): void + _EmitEvent(type: int32, target: int32, arg0: int32, arg1: int32): string } function callCallback(id: int32, args: KUint8ArrayPtr, length: int32): int32 { diff --git a/arkoala-arkts/memo-plugin/package.json b/arkoala-arkts/memo-plugin/package.json index 875b28ee72166ec3abec62486f26b8decf19fbcc..441cde2d92ad2ebd47f15fe8f0b248ecf40532e8 100644 --- a/arkoala-arkts/memo-plugin/package.json +++ b/arkoala-arkts/memo-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/memo-plugin", - "main": "build/src/memo-transformer.js", + "main": "build/src/MemoTransformer.js", "scripts": { "compile": "tsc -b .", "compile:libarkts": "npm run compile --prefix ../libarkts", diff --git a/arkoala-arkts/memo-plugin/src/function-transformer.ts b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts similarity index 49% rename from arkoala-arkts/memo-plugin/src/function-transformer.ts rename to arkoala-arkts/memo-plugin/src/FunctionTransformer.ts index 0c86fe39ae503404e5e28b4189b89e677cf89374..5378693755a4eb364cd4a00b3e6e35fc15b759eb 100644 --- a/arkoala-arkts/memo-plugin/src/function-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/FunctionTransformer.ts @@ -14,27 +14,29 @@ */ import * as arkts from "@koalaui/libarkts" +import { factory } from "./MemoFactory" import { AbstractVisitor } from "./AbstractVisitor" -import { createContextParameter, createIdParameter, createContextArgument, createIdArgument, RuntimeNames, PositionalIdTracker } from "./utils" +import { + PositionalIdTracker, + RuntimeNames +} from "./utils" +import { ReturnTransformer } from "./ReturnTranformer" function hasMemoAnnotation(node: arkts.ScriptFunction) { return arkts.getAnnotations(node).some((it) => - arkts.isIdentifier(it.expr) && it.expr.name === RuntimeNames.ANNOTATION + it.expr !== undefined && arkts.isIdentifier(it.expr) && it.expr.name === RuntimeNames.ANNOTATION ) } -function createHiddenParameters(): arkts.ETSParameterExpression[] { - return [createContextParameter(), createIdParameter()] -} - -function createHiddenArguments(hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.AstNode[] { - return [createContextArgument(), createIdArgument(hash)] -} - -function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.BlockStatement | undefined { +function updateFunctionBody( + node: arkts.BlockStatement | undefined, + parameters: arkts.ETSParameterExpression[], + returnTypeAnnotation: arkts.AstNode | undefined, + hash: arkts.NumberLiteral | arkts.StringLiteral +): [arkts.BlockStatement | undefined, arkts.ReturnStatement | undefined] { if (node === undefined) - return node - const scopeDeclaraion = arkts.factory.createVariableDeclaration( + return [node, undefined] + const scopeDeclaration = arkts.factory.createVariableDeclaration( 0, arkts.Es2pandaVariableDeclarationKind.VARIABLE_DECLARATION_KIND_CONST, [ @@ -49,60 +51,59 @@ function updateFunctionBody(node: arkts.BlockStatement | undefined, hash: arkts. false, false ), - arkts.factory.createTypeParameterDeclaration( - [arkts.factory.createIdentifier("")] - ), + returnTypeAnnotation ? [returnTypeAnnotation] : [arkts.factory.createPrimitiveType(arkts.Es2pandaPrimitiveType.PRIMITIVE_TYPE_VOID)], [ - createIdArgument(hash) - ] + factory.createIdArgument(hash), + arkts.factory.createNumericLiteral(parameters.length) + ], ) ) ] ) + const memoParameters = parameters.map((name, id) => { return factory.createMemoParameterDeclaration(id, name.identifier.name) }) + const syntheticReturnStatement = factory.createSyntheticReturnStatement() const unchangedCheck = arkts.factory.createIfStatement( arkts.factory.createMemberExpression( arkts.factory.createIdentifier(RuntimeNames.SCOPE), arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE_OK), arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_NONE, false, - false + false, ), - arkts.factory.createReturnStatement( - arkts.factory.createMemberExpression( - arkts.factory.createIdentifier(RuntimeNames.SCOPE), - arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE), - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_NONE, - false, - false - ) - ) + syntheticReturnStatement, ) - const recache = arkts.factory.createReturnStatement( - arkts.factory.createCallExpression( - arkts.factory.createMemberExpression( - arkts.factory.createIdentifier(RuntimeNames.SCOPE), - arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE_NEW), - arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, - false, - false + if (node.statements.length && node.statements[node.statements.length - 1] instanceof arkts.ReturnStatement) { + return [ + arkts.factory.updateBlock( + node, + [ + scopeDeclaration, + ...memoParameters, + unchangedCheck, + ...node.statements, + ] ), - undefined, - [] - ) - ) - return arkts.factory.updateBlock( - node, - [ - scopeDeclaraion, - unchangedCheck, - ...node.statements, - recache + syntheticReturnStatement, ] - ) + } else { + return [ + arkts.factory.updateBlock( + node, + [ + scopeDeclaration, + ...memoParameters, + unchangedCheck, + ...node.statements, + arkts.factory.createReturnStatement(), + ] + ), + syntheticReturnStatement, + ] + } } export class FunctionTransformer extends AbstractVisitor { - constructor(private positionalIdTracker: PositionalIdTracker) { + constructor(private positionalIdTracker: PositionalIdTracker, private returnTransformer: ReturnTransformer) { super() } @@ -115,26 +116,34 @@ export class FunctionTransformer extends AbstractVisitor { if (node instanceof arkts.MethodDefinition) { if (methodDefinitionHasMemoAnnotation) { // TODO: fix - const updatedNode = arkts.factory.updateMethodDefinition( + const [body, syntheticReturnStatement] = updateFunctionBody( + node.scriptFunction.body, + node.scriptFunction.parameters, + node.scriptFunction.returnTypeAnnotation, + this.positionalIdTracker.id(node.name.name), + ) + return arkts.factory.updateMethodDefinition( node, - 2, + arkts.Es2pandaMethodDefinitionKind.METHOD_DEFINITION_KIND_METHOD, node.name, arkts.factory.createFunctionExpression( - arkts.factory.updateScriptFunction( - node.scriptFunction, - updateFunctionBody(node.scriptFunction.body, this.positionalIdTracker.id(node.name.name)), - undefined, - node.scriptFunction.scriptFunctionFlags, - node.scriptFunction.modifiers, - false, - node.scriptFunction.ident, - [...createHiddenParameters(), ...node.scriptFunction.parameters] - ), + this.returnTransformer.skip(syntheticReturnStatement).visitEachChild( + arkts.factory.updateScriptFunction( + node.scriptFunction, + body, + node.scriptFunction.scriptFunctionFlags, + node.scriptFunction.modifiers, + false, + node.scriptFunction.ident, + [...factory.createHiddenParameters(), ...node.scriptFunction.parameters], + node.scriptFunction.typeParamsDecl, + node.scriptFunction.returnTypeAnnotation + ), + ) as arkts.ScriptFunction, ), node.modifiers, false ) - return updatedNode } } if (node instanceof arkts.CallExpression) { @@ -145,7 +154,7 @@ export class FunctionTransformer extends AbstractVisitor { node, node.expression, undefined, - [...createHiddenArguments(this.positionalIdTracker.id(decl.name.name)), ...node.arguments] + [...factory.createHiddenArguments(this.positionalIdTracker.id(decl.name.name)), ...node.arguments] ) } } diff --git a/arkoala-arkts/memo-plugin/src/MemoFactory.ts b/arkoala-arkts/memo-plugin/src/MemoFactory.ts new file mode 100644 index 0000000000000000000000000000000000000000..986c7d2c2850bf284b92cc693fb3775dde6d70c5 --- /dev/null +++ b/arkoala-arkts/memo-plugin/src/MemoFactory.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import * as arkts from "@koalaui/libarkts" +import { RuntimeNames } from "./utils" + +export class factory { + // Importing + static createContextTypeImportSpecifier(): arkts.ImportSpecifier { + return arkts.factory.createImportSpecifier( + arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE), + arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE), + ) + } + static createIdTypeImportSpecifier(): arkts.ImportSpecifier { + return arkts.factory.createImportSpecifier( + arkts.factory.createIdentifier(RuntimeNames.ID_TYPE), + arkts.factory.createIdentifier(RuntimeNames.ID_TYPE), + ) + } + static createContextTypesImportDeclaration(): arkts.EtsImportDeclaration { + return arkts.factory.createImportDeclaration( + arkts.factory.createStringLiteral(RuntimeNames.CONTEXT_TYPE_DEFAULT_IMPORT), + [factory.createContextTypeImportSpecifier(), factory.createIdTypeImportSpecifier()], + arkts.Es2pandaImportKinds.IMPORT_KINDS_TYPE, + true, + ) + } + + // Parameters + static createContextParameter(): arkts.ETSParameterExpression { + return arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier(RuntimeNames.CONTEXT, + arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE) + ), + undefined + ) + } + static createIdParameter(): arkts.ETSParameterExpression { + return arkts.factory.createParameterDeclaration( + arkts.factory.createIdentifier(RuntimeNames.ID, + arkts.factory.createIdentifier(RuntimeNames.ID_TYPE) + ), + undefined + ) + } + static createHiddenParameters(): arkts.ETSParameterExpression[] { + return [factory.createContextParameter(), factory.createIdParameter()] + } + + // Arguments + static createContextArgument(): arkts.AstNode { + return arkts.factory.createIdentifier(RuntimeNames.CONTEXT) + } + static createIdArgument(hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.AstNode { + return arkts.factory.createBinaryExpression( + arkts.factory.createIdentifier(RuntimeNames.ID), + arkts.Es2pandaTokenType.TOKEN_TYPE_PUNCTUATOR_PLUS, + hash + ) + } + static createHiddenArguments(hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.AstNode[] { + return [factory.createContextArgument(), factory.createIdArgument(hash)] + } + + // Memo parameters + static createMemoParameterIdentifier(name: string): arkts.Identifier { + return arkts.factory.createIdentifier(`${RuntimeNames.PARAMETER}_${name}`) + } + static createMemoParameterDeclaration(id: number, name: string): arkts.AstNode { + return arkts.factory.createVariableDeclaration( + 0, + arkts.Es2pandaVariableDeclarationKind.VARIABLE_DECLARATION_KIND_CONST, + [ + arkts.factory.createVariableDeclarator( + arkts.Es2pandaVariableDeclaratorFlag.VARIABLE_DECLARATOR_FLAG_CONST, + this.createMemoParameterIdentifier(name), + arkts.factory.createCallExpression( + arkts.factory.createMemberExpression( + arkts.factory.createIdentifier(RuntimeNames.SCOPE), + arkts.factory.createIdentifier(RuntimeNames.INTERNAL_PARAMETER_STATE), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ), + undefined, + [ + arkts.factory.createNumericLiteral(id), + arkts.factory.createIdentifier(name), + ], + ) + ) + ] + ) + } + + // Recache + static createRecacheCall(arg?: arkts.AstNode): arkts.CallExpression { + return arkts.factory.createCallExpression( + arkts.factory.createMemberExpression( + arkts.factory.createIdentifier(RuntimeNames.SCOPE), + arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE_NEW), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_PROPERTY_ACCESS, + false, + false + ), + undefined, + arg ? [arg] : undefined, + ) + } + static createSyntheticReturnStatement(): arkts.ReturnStatement { + return arkts.factory.createReturnStatement( + arkts.factory.createMemberExpression( + arkts.factory.createIdentifier(RuntimeNames.SCOPE), + arkts.factory.createIdentifier(RuntimeNames.INTERNAL_VALUE), + arkts.Es2pandaMemberExpressionKind.MEMBER_EXPRESSION_KIND_NONE, + false, + false, + ), + ) + } +} diff --git a/arkoala-arkts/memo-plugin/src/memo-transformer.ts b/arkoala-arkts/memo-plugin/src/MemoTransformer.ts similarity index 60% rename from arkoala-arkts/memo-plugin/src/memo-transformer.ts rename to arkoala-arkts/memo-plugin/src/MemoTransformer.ts index 02c8d3a6a3f180f0db03d055e47bad7c981cd236..a4b7df728c9eb0fbf69b1574d5eed288abb20a6a 100644 --- a/arkoala-arkts/memo-plugin/src/memo-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/MemoTransformer.ts @@ -14,9 +14,10 @@ */ import * as arkts from "@koalaui/libarkts" -import { FunctionTransformer } from "./function-transformer" -import { ImportTransformer } from "./import-transformer" +import { factory } from "./MemoFactory" +import { FunctionTransformer } from "./FunctionTransformer" import { PositionalIdTracker } from "./utils" +import { ReturnTransformer } from "./ReturnTranformer" export interface TransformerOptions { trace?: boolean, @@ -27,9 +28,17 @@ export default function memoTransformer( ) { return (node: arkts.EtsScript) => { const positionalIdTracker = new PositionalIdTracker(arkts.getFileName(), false) - const importTransformer = new ImportTransformer() - const functionTransformer = new FunctionTransformer(positionalIdTracker) - importTransformer.visitor(node) - return functionTransformer.visitor(node) + const returnTransformer = new ReturnTransformer() + const functionTransformer = new FunctionTransformer(positionalIdTracker, returnTransformer) + return functionTransformer.visitor( + arkts.factory.updateEtsScript( + node, + [ + ...node.getChildren().filter(it => it instanceof arkts.EtsImportDeclaration), + factory.createContextTypesImportDeclaration(), + ...node.getChildren().filter(it => !(it instanceof arkts.EtsImportDeclaration)), + ] + ) + ) } } diff --git a/arkoala-arkts/memo-plugin/src/import-transformer.ts b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts similarity index 42% rename from arkoala-arkts/memo-plugin/src/import-transformer.ts rename to arkoala-arkts/memo-plugin/src/ReturnTranformer.ts index 4037bcf65925b2c390206004259a29a62b21840b..02573e05fb090b3e2fe30c1cdae0d0655617dcb6 100644 --- a/arkoala-arkts/memo-plugin/src/import-transformer.ts +++ b/arkoala-arkts/memo-plugin/src/ReturnTranformer.ts @@ -14,29 +14,24 @@ */ import * as arkts from "@koalaui/libarkts" +import { factory } from "./MemoFactory" import { AbstractVisitor } from "./AbstractVisitor" -import { createContextTypeImportSpecifier, createIdTypeImportSpecifier, RuntimeNames } from "./utils" +import { RuntimeNames } from "./utils" -function createContextTypesImportDeclaration(): arkts.EtsImportDeclaration { - return arkts.factory.createImportDeclaration( - arkts.factory.createStringLiteral(RuntimeNames.CONTEXT_TYPE_DEFAULT_IMPORT), - [createContextTypeImportSpecifier(), createIdTypeImportSpecifier()], - arkts.Es2pandaImportKinds.IMPORT_KINDS_TYPE, - true, - ) -} +export class ReturnTransformer extends AbstractVisitor { + _skip?: arkts.ReturnStatement + skip(syntheticReturnStatement?: arkts.ReturnStatement): ReturnTransformer { + this._skip = syntheticReturnStatement + return this + } -export class ImportTransformer extends AbstractVisitor { - visitor(node: arkts.AstNode): arkts.AstNode { - if (node instanceof arkts.EtsScript) { - return arkts.factory.updateEtsScript( - node, - [ - ...node.getChildren().filter(it => it instanceof arkts.EtsImportDeclaration), - createContextTypesImportDeclaration(), - ...node.getChildren().filter(it => !(it instanceof arkts.EtsImportDeclaration)), - ] - ) + visitor(beforeChildren: arkts.AstNode): arkts.AstNode { + if (beforeChildren instanceof arkts.ScriptFunction) { + return beforeChildren + } + const node = this.visitEachChild(beforeChildren) + if (node instanceof arkts.ReturnStatement && !(node.peer == this._skip?.peer)) { + return arkts.factory.updateReturnStatement(node, factory.createRecacheCall(node.argument)) } return node } diff --git a/arkoala-arkts/memo-plugin/src/utils.ts b/arkoala-arkts/memo-plugin/src/utils.ts index e3746e9253bb323b196ee4da822b8a723e8bedd3..a15f05b32c25caa75e8dde99948894d4def47ff9 100644 --- a/arkoala-arkts/memo-plugin/src/utils.ts +++ b/arkoala-arkts/memo-plugin/src/utils.ts @@ -25,55 +25,14 @@ export enum RuntimeNames { CONTEXT_TYPE_DEFAULT_IMPORT = "@koalaui/runtime", ID = "__memo_id", ID_TYPE = "__memo_id_type", + INTERNAL_PARAMETER_STATE = "param", INTERNAL_SCOPE = "scope", INTERNAL_VALUE = "cached", INTERNAL_VALUE_NEW = "recache", INTERNAL_VALUE_OK = "unchanged", + PARAMETER = "__memo_parameter", SCOPE = "__memo_scope", -} - -export function createContextTypeImportSpecifier(): arkts.ImportSpecifier { - return arkts.factory.createImportSpecifier( - arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE), - arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE), - ) -} - -export function createIdTypeImportSpecifier(): arkts.ImportSpecifier { - return arkts.factory.createImportSpecifier( - arkts.factory.createIdentifier(RuntimeNames.ID_TYPE), - arkts.factory.createIdentifier(RuntimeNames.ID_TYPE), - ) -} - -export function createContextParameter(): arkts.ETSParameterExpression { - return arkts.factory.createParameterDeclaration( - arkts.factory.createIdentifier(RuntimeNames.CONTEXT, - arkts.factory.createIdentifier(RuntimeNames.CONTEXT_TYPE) - ), - undefined - ) -} - -export function createIdParameter(): arkts.ETSParameterExpression { - return arkts.factory.createParameterDeclaration( - arkts.factory.createIdentifier(RuntimeNames.ID, - arkts.factory.createIdentifier(RuntimeNames.ID_TYPE) - ), - undefined - ) -} - -export function createContextArgument(): arkts.AstNode { - return arkts.factory.createIdentifier(RuntimeNames.CONTEXT) -} - -export function createIdArgument(hash: arkts.NumberLiteral | arkts.StringLiteral): arkts.AstNode { - return arkts.factory.createBinaryExpression( - arkts.factory.createIdentifier(RuntimeNames.ID), - arkts.Es2pandaTokenType.TOKEN_TYPE_PUNCTUATOR_PLUS, - hash - ) + VALUE = "value", } function baseName(path: string): string { diff --git a/arkoala-arkts/package.json b/arkoala-arkts/package.json index ee2066012bc889a8045bbd7ff77c1a9f3ae9ae4b..7ce89e851701984f7e0b611e60fd82744ddf3b6d 100644 --- a/arkoala-arkts/package.json +++ b/arkoala-arkts/package.json @@ -65,12 +65,13 @@ "build:arkoala": "npm run panda:sdk:check-install && npm run build:arkoala:components && npm run link:arkoala", "build:arkoala:inc": "npm run build:arkoala:components:inc && npm run link:arkoala", "link:arkoala": "mkdir -p build && ../incremental/tools/panda/arkts/arklink --output build/arkoala.abc -- ./arkui/build/arkui-no-common.abc ../arkoala/arkui-common/build/arkui-common.abc ../incremental/runtime/build/incremental.abc ../interop/build/interop.abc", - "aot:host:arkoala": "npm run link:arkoala && npm run -C ../incremental/tools/fast-arktsc compile && node ../incremental/tools/fast-arktsc --only-aot build/arkoala.abc", + "aot:host:arkoala": "npm run link:arkoala && npm run -C ../incremental/tools/fast-arktsc compile && npm run aot:host:stdlib && node ../incremental/tools/fast-arktsc --only-aot build/arkoala.abc", "aot:arm32:arkoala": "npm run link:arkoala && npm run -C ../incremental/tools/fast-arktsc compile && node ../incremental/tools/fast-arktsc --only-aot build/arkoala.abc --aot-target arm", "aot:arm64:arkoala": "npm run link:arkoala && npm run -C ../incremental/tools/fast-arktsc compile && node ../incremental/tools/fast-arktsc --only-aot build/arkoala.abc --aot-target arm64", "build:user": "npm run build:user --prefix trivial/user && mkdir -p ./build && cp -r trivial/user/build/user.abc ./build/", "build:navigation": "npm run build:user --prefix navigation/user && mkdir -p ./build && cp -r navigation/user/build/user.abc ./build/navigation.abc", "build:shopping": "npm run build:user --prefix shopping/user && mkdir -p ./build && cp -r shopping/user/build/user.abc ./build/shopping.abc", + "aot:host:stdlib": "node ../incremental/tools/fast-arktsc --only-aot ../incremental/tools/panda/node_modules/@panda/sdk/ets/etsstdlib.abc", "aot:host:shopping": "npm run build:shopping && npm run -C ../incremental/tools/fast-arktsc compile && npm run aot:host:arkoala && node ../incremental/tools/fast-arktsc --only-aot build/shopping.abc --aot-libs ./build/arkoala.abc", "aot:arm32:shopping": "npm run build:shopping && npm run -C ../incremental/tools/fast-arktsc compile && npm run aot:host:arkoala && node ../incremental/tools/fast-arktsc --only-aot build/shopping.abc --aot-libs ./build/arkoala.abc --aot-target arm", "aot:arm64:shopping": "npm run build:shopping && npm run -C ../incremental/tools/fast-arktsc compile && npm run aot:host:arkoala && node ../incremental/tools/fast-arktsc --only-aot build/shopping.abc --aot-libs ./build/arkoala.abc --aot-target arm64", @@ -83,7 +84,7 @@ "trivial:node": "npm run build:user && npm run build:loader:node && npm run run:node:user", "shopping:all:node": "npm run compile:native:node-host && npm run build:arkoala && npm run build:shopping && npm run build:loader:node && npm run run:node:shopping", "shopping:node": "npm run build:user && npm run build:loader:node && npm run run:node:shopping", - "clean:shopping": "npm run clean:all --prefix shopping/user", + "clean:shopping": "npm run clean:all --prefix shopping", "trivial:all:node:ci": "npm run compile:native:node-host && npm run build:arkoala && npm run build:user && npm run build:loader:node && npm run run:node:ci", "arkoala:har-arm32": "npm run compile:native:hzvm-ohos-arm32 && npm run build:arkoala && npm run har-arm32 --prefix har", "arkoala:har-arm64": "npm run compile:native:hzvm-ohos-arm64 && npm run build:arkoala && npm run har-arm64 --prefix har", diff --git a/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets b/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets index 4ddc9ed53c5efefd5c2b195462f7681b868c26dd..a57b795dd42cc589c7f614d216ceab426473574c 100644 --- a/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets +++ b/arkoala-arkts/shopping/user/src/ets/pages/homePage/main.ets @@ -31,7 +31,28 @@ export struct MainPage { @Prop num: number @Prop ratio: number @Consume('pathInfos') pathInfos: NavPathStack + + isPerf: boolean = false + build() { + if (this.isPerf) { + const count = 100 + let perfData = new Array(count) + for (let i = 0; i < count; i++) perfData[i] = i + let now = Date.now() + console.log(`Measuring...`) + ForEach(perfData, (item: number, index: number) => { + this.buildReal() + }, (item: number, index: number) => String(item)) + let passed = Date.now() - now + console.log(`Passed ${passed}ms, ${passed / count}ms per iteration`) + } else { + this.buildReal() + } + } + + @Builder + buildReal() { Column() { Flex({ justifyContent: FlexAlign.SpaceAround, alignItems: ItemAlign.Center }) { Column() { diff --git a/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/color.json b/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/color.json index 3c712962da3c2751c2b9ddb53559afcbd2b54a02..c813809cb3c9a876776b70f49b619f96457cf112 100644 --- a/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/color.json +++ b/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/color.json @@ -3,6 +3,10 @@ { "name": "start_window_background", "value": "#FFFFFF" + }, + { + "name": "my_color", + "value": "#114bbf" } ] } \ No newline at end of file diff --git a/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/string.json b/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/string.json index f94595515a99e0c828807e243494f57f09251930..d1c869602797ec927e55d7c7ca6e4633d8430acb 100644 --- a/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/string.json +++ b/arkoala-arkts/trivial/application/entry/src/main/resources/base/element/string.json @@ -11,6 +11,10 @@ { "name": "EntryAbility_label", "value": "label" + }, + { + "name": "my_text", + "value": "some_text" } ] } \ No newline at end of file diff --git a/arkoala-arkts/trivial/application/entry/src/main/resources/rawfile/koala.png b/arkoala-arkts/trivial/application/entry/src/main/resources/rawfile/koala.png new file mode 100644 index 0000000000000000000000000000000000000000..04c21efeca88b0eea5f17e89fb4a8e1c7bb30892 Binary files /dev/null and b/arkoala-arkts/trivial/application/entry/src/main/resources/rawfile/koala.png differ diff --git a/arkoala-arkts/trivial/trivial/entry/src/main/resources/rawfile/phone.png b/arkoala-arkts/trivial/trivial/entry/src/main/resources/rawfile/phone.png deleted file mode 100644 index 75f9a36d17ae87c9fbb5cc6673a7420488016d11..0000000000000000000000000000000000000000 Binary files a/arkoala-arkts/trivial/trivial/entry/src/main/resources/rawfile/phone.png and /dev/null differ diff --git a/arkoala-arkts/trivial/user/src/ets/page1.ets b/arkoala-arkts/trivial/user/src/ets/page1.ets index 7d28ff27e9c15233acdcbf6ef9b52f28f24ffd12..7495a440b13d11fe83e95fd762f985f54e363d89 100644 --- a/arkoala-arkts/trivial/user/src/ets/page1.ets +++ b/arkoala-arkts/trivial/user/src/ets/page1.ets @@ -116,7 +116,7 @@ struct Page1 { console.log("#### Set Button onClick! #" + this.state) }) Image($r('app.media.startIcon')).width(60).height(60) - Image($rawfile('phone.png')).width(400) + Image($rawfile('koala.png')).width(400) Text("Set Button onClick! #" + this.state) .width(200).height(100) TestProvide() diff --git a/arkoala-arkts/trivial/user/src/sts/hello.sts b/arkoala-arkts/trivial/user/src/sts/hello.sts index 41c42c50e77df8a917c5b8494489635b438fcf3a..1923eb273dc52ae930be03dfe16adb20d8893518 100644 --- a/arkoala-arkts/trivial/user/src/sts/hello.sts +++ b/arkoala-arkts/trivial/user/src/sts/hello.sts @@ -1,7 +1,7 @@ import { Text } from "@ohos.arkui" import { Column, ColumnOptions } from "@ohos.arkui" import { Button } from "@ohos.arkui" -import { Component, State, Entry } from "@ohos.arkui" +import { Component, State, Entry, memo } from "@ohos.arkui" import { Color } from "@ohos.arkui" @Entry diff --git a/arkoala/arkui-common/package.json b/arkoala/arkui-common/package.json index eaf72b00b033defba402371845e920017305e761..f67bcb9d5b8c78d3fd59b510a1a56a89607729f1 100644 --- a/arkoala/arkui-common/package.json +++ b/arkoala/arkui-common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkui-common", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -53,9 +53,9 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel", - "@koalaui/compat": "1.5.3+devel", - "@koalaui/runtime": "1.5.3+devel", + "@koalaui/common": "1.5.5+devel", + "@koalaui/compat": "1.5.5+devel", + "@koalaui/runtime": "1.5.5+devel", "@koalaui/ets-tsc": "4.9.5-r4", "@koalaui/fast-arktsc": "next" } diff --git a/arkoala/arkui-types/index-full.d.ts b/arkoala/arkui-types/index-full.d.ts index 209353a2d241ee37a3c77d0f97a07c436c947837..80c44f9d13a50e608fa7213b4cb9bae3ba5499ae 100644 --- a/arkoala/arkui-types/index-full.d.ts +++ b/arkoala/arkui-types/index-full.d.ts @@ -16,8 +16,6 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -declare function $$ (value: T): T - declare const Component: ClassDecorator & ((options: ComponentOptions) => ClassDecorator); declare const ComponentV2: ClassDecorator & ((options: ComponentOptions) => ClassDecorator); @@ -328,6 +326,10 @@ declare class LazyForEachOps { static SetCurrentIndex(node: number|bigint, index: number): void; static Prepare(node: number|bigint): void; } +declare class SystemOps { + static StartFrame(): number|bigint; + static EndFrame(root: number|bigint): void; +} declare class DrawingCanvas { constructor(pixelmap: PixelMap); drawRect(left: number, top: number, right: number, bottom: number): void; @@ -424,11 +426,12 @@ declare class FrameNode { getPositionToWindowWithTransform(): Position; } declare interface PixelMap { - isEditable: number; - isStrideAlignment: number; + readonly isEditable: boolean; + readonly isStrideAlignment: boolean; readPixelsToBufferSync(dst: ArrayBuffer): void; writeBufferToPixels(src: ArrayBuffer): void; } +declare type CustomNodeBuilder = ((parentNode: number|bigint) => number|bigint); declare type NavExtender_OnUpdateStack = ((value: string) => void); declare class NavExtender { static setUpdateStackCallback(peer: NavPathStack, callback_: NavExtender_OnUpdateStack): void; @@ -1069,7 +1072,7 @@ declare class CanvasRenderingContext2D extends CanvasRenderer { declare class OffscreenCanvasRenderingContext2D extends CanvasRenderer { constructor(width: number, height: number, settings?: RenderingContextSettings); constructor(width: number, height: number, settings?: RenderingContextSettings, unit?: LengthMetricsUnit); - toDataURL(type?: string, quality?: any): string; + toDataURL(type?: string, quality?: number): string; transferToImageBitmap(): ImageBitmap; } declare class OffscreenCanvas { @@ -1210,9 +1213,11 @@ declare interface AnimatableArithmetic { multiply(scale: number): AnimatableArithmetic; equals(rhs: AnimatableArithmetic): boolean; } +declare function getContext(component?: Object): Context; declare interface Context { _ContextStub: string; } +declare function postCardAction(component: Object, action: Object): void; declare interface Configuration { readonly colorMode: string; readonly fontScale: number; @@ -1228,6 +1233,8 @@ declare interface ExpectedFrameRateRange { max: number; expected: number; } +declare function $r(value: string, ...params: any[]): Resource; +declare function $rawfile(value: string): Resource; declare enum FinishCallbackType { REMOVED = 0, LOGICALLY = 1, @@ -1397,6 +1404,21 @@ declare interface DragItemInfo { builder?: CustomBuilder; extraInfo?: string; } +declare function animateTo(value: AnimateParam, event: (() => void)): void; +declare function animateToImmediately(value: AnimateParam, event: (() => void)): void; +declare function vp2px(value: number): number; +declare function px2vp(value: number): number; +declare function fp2px(value: number): number; +declare function px2fp(value: number): number; +declare function lpx2px(value: number): number; +declare function px2lpx(value: number): number; +declare namespace focusControl { + function requestFocus(value: string): boolean; +} +declare namespace cursorControl { + function setCursor(value: PointerStyle): void; + function restoreDefault(): void; +} declare interface EventTarget { area: Area; } @@ -2329,9 +2351,9 @@ declare interface Layoutable { } declare interface Measurable { measure(constraint: ConstraintSizeOptions): MeasureResult; - getMargin(): DirectionalEdgesT; - getPadding(): DirectionalEdgesT; - getBorderWidth(): DirectionalEdgesT; + getMargin(): DirectionalEdgesT; + getPadding(): DirectionalEdgesT; + getBorderWidth(): DirectionalEdgesT; } declare interface SizeResult { width: number; @@ -2526,27 +2548,6 @@ declare enum HoverModeAreaType { TOP_SCREEN = 0, BOTTOM_SCREEN = 1, } -declare function getContext(component?: Object): Context; -declare function postCardAction(component: Object, action: Object): void; -declare function $r(value: string, ...params: any[]): Resource; -declare function $rawfile(value: string): Resource; -declare function animateTo(value: AnimateParam, event: (() => void)): void; -declare function animateToImmediately(value: AnimateParam, event: (() => void)): void; -declare function vp2px(value: number): number; -declare function px2vp(value: number): number; -declare function fp2px(value: number): number; -declare function px2fp(value: number): number; -declare function lpx2px(value: number): number; -declare function px2lpx(value: number): number; -declare namespace focusControl { - function requestFocus(value: string): boolean; -} -declare namespace cursorControl { - function setCursor(value: PointerStyle): void; -} -declare namespace cursorControl { - function restoreDefault(): void; -} declare class AppStorage { static ref(propName: string): AbstractProperty | undefined; static setAndRef(propName: string, defaultValue: T): AbstractProperty; @@ -7600,11 +7601,11 @@ declare interface TouchPoint { x: Dimension; y: Dimension; } -declare interface DirectionalEdgesT { - start: T; - end: T; - top: T; - bottom: T; +declare interface DirectionalEdgesT { + start: number; + end: number; + top: number; + bottom: number; } declare interface DividerStyleOptions { strokeWidth?: LengthMetrics; @@ -8919,15 +8920,13 @@ declare class LinearIndicatorAttribute extends CommonMethod void); -declare namespace Profiler { - type Callback_String_Void = ((info: string) => void); -} declare function getInspectorNodes(): Object; declare function getInspectorNodeById(id: number): Object; declare namespace Profiler { - function registerVsyncCallback(callback_: ((info: string) => void)): void; + type Callback_String_Void = ((info: string) => void); } declare namespace Profiler { + function registerVsyncCallback(callback_: ((info: string) => void)): void; function unregisterVsyncCallback(): void; } declare function setAppBgColor(value: string): void; diff --git a/arkoala/arkui/package.json b/arkoala/arkui/package.json index d7f5d0a206169fed8c0c0337a6292733cdab41d3..55c80acfa8a88843479ab8a0b16a2a68975d39b4 100644 --- a/arkoala/arkui/package.json +++ b/arkoala/arkui/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/arkoala-arkui", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "exports": { @@ -45,10 +45,10 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel", - "@koalaui/runtime": "1.5.3+devel", + "@koalaui/common": "1.5.5+devel", + "@koalaui/runtime": "1.5.5+devel", "@koalaui/arkoala": "1.4.1+devel", - "@koalaui/arkui-common": "1.5.3+devel", + "@koalaui/arkui-common": "1.5.5+devel", "@koalaui/ets-tsc": "4.9.5-r4", "media-query-parser": "^2.0.2", "commander": "10.0.1" diff --git a/arkoala/arkui/src/ArkArkui-customInterfaces.ts b/arkoala/arkui/src/ArkArkui-customInterfaces.ts index 8f0552f61e65c54db69b243fd3d51747dbfd31d8..f0660afe0f0cc8daa8dc4dd599a506666b355b2a 100644 --- a/arkoala/arkui/src/ArkArkui-customInterfaces.ts +++ b/arkoala/arkui/src/ArkArkui-customInterfaces.ts @@ -1,6 +1,6 @@ -import { int32, int64, float32 } from "@koalaui/common" -import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" -import { NodeAttach, remember } from "@koalaui/runtime" +import { int32 } from "@koalaui/common" +import { KPointer } from "@koalaui/interop" + export enum PointerStyle { DEFAULT, EAST = 1, diff --git a/arkoala/arkui/src/ArkArkui-externalInterfaces.ts b/arkoala/arkui/src/ArkArkui-externalInterfaces.ts index c7b9c18bcec9dd02d334e52c2a28c6e1a69509aa..82e1d152efef6c365ffdd292eeecec403a4f68ff 100644 --- a/arkoala/arkui/src/ArkArkui-externalInterfaces.ts +++ b/arkoala/arkui/src/ArkArkui-externalInterfaces.ts @@ -1,6 +1,3 @@ -import { int32, int64, float32 } from "@koalaui/common" -import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" -import { NodeAttach, remember } from "@koalaui/runtime" export interface NodeController { } export interface TextModifier { diff --git a/arkoala/arkui/src/ArkComponentRoot.ts b/arkoala/arkui/src/ArkComponentRoot.ts index 4ed0595e79ad294793da268df33933721c6e7594..0dcdbbfb7b2c829dc10540c52e6b57700c5a3fa7 100644 --- a/arkoala/arkui/src/ArkComponentRoot.ts +++ b/arkoala/arkui/src/ArkComponentRoot.ts @@ -20,9 +20,7 @@ import { WithRouterTransitionState } from "@koalaui/arkui-common" import { ArkCustomComponent } from "./ArkCustomComponent" -import { ArkRootScenePeer } from "./peers/ArkRootScenePeer" -import { ArkUINodeType } from "./peers/ArkUINodeType" -import { ArkComponentRootPeer } from "./peers/ArkStaticComponentsPeer" +import { ArkComponentRootPeer } from "./generated/peers/ArkStaticComponentsPeer" /** @memo */ export function ArkComponentRoot( diff --git a/arkoala/arkui/src/ArkGesture.ts b/arkoala/arkui/src/ArkGesture.ts index af685b42e07d34ab68b91359b4a45d7d550c3610..9e03f1dba8709737620230373cc7716469a3dc69 100644 --- a/arkoala/arkui/src/ArkGesture.ts +++ b/arkoala/arkui/src/ArkGesture.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { GestureAsyncEventSubKind, GesturePeerEvent, UseProperties } from "@koalaui/arkoala" +import { GesturePeerEvent, UseProperties } from "@koalaui/arkoala" import { Access, KPointer, withIntArray } from "@koalaui/interop" import { makeEventTarget } from "./Events" diff --git a/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts b/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts deleted file mode 100644 index 74b2afec32732258196496c371966d58b1f9eec3..0000000000000000000000000000000000000000 --- a/arkoala/arkui/src/ArkGlobalScopeCommonMaterialized.ts +++ /dev/null @@ -1,185 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { Context, AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" -import { Resource } from "./ArkResourceInterfaces" -import { PointerStyle } from "./ArkArkuiCustomInterfaces" -import { Curve, PlayMode } from "./ArkEnumsInterfaces" -import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" -import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" -import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" -import { Deserializer, createDeserializer } from "./peers/Deserializer" -import { CallbackTransformer } from "./peers/CallbackTransformer" -import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" -export class GlobalScope_common { - public static getContext(component?: Object): Context { - const component_casted = component as (Object | undefined) - return GlobalScope_common.getContext_serialize(component_casted) - } - public static postCardAction(component: Object, action: Object): void { - const component_casted = component as (Object) - const action_casted = action as (Object) - GlobalScope_common.postCardAction_serialize(component_casted, action_casted) - return - } - public static dollar_r(value: string, params: Array): Resource { - const value_casted = value as (string) - const params_casted = params as (Array) - return GlobalScope_common.dollar_r_serialize(value_casted, params_casted) - } - public static dollar_rawfile(value: string): Resource { - const value_casted = value as (string) - return GlobalScope_common.dollar_rawfile_serialize(value_casted) - } - public static animateTo(value: AnimateParam, event: (() => void)): void { - const value_casted = value as (AnimateParam) - const event_casted = event as ((() => void)) - GlobalScope_common.animateTo_serialize(value_casted, event_casted) - return - } - public static animateToImmediately(value: AnimateParam, event: (() => void)): void { - const value_casted = value as (AnimateParam) - const event_casted = event as ((() => void)) - GlobalScope_common.animateToImmediately_serialize(value_casted, event_casted) - return - } - public static vp2px(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.vp2px_serialize(value_casted) - } - public static px2vp(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.px2vp_serialize(value_casted) - } - public static fp2px(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.fp2px_serialize(value_casted) - } - public static px2fp(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.px2fp_serialize(value_casted) - } - public static lpx2px(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.lpx2px_serialize(value_casted) - } - public static px2lpx(value: number): number { - const value_casted = value as (number) - return GlobalScope_common.px2lpx_serialize(value_casted) - } - public static requestFocus(value: string): boolean { - const value_casted = value as (string) - return GlobalScope_common.requestFocus_serialize(value_casted) - } - public static setCursor(value: PointerStyle): void { - const value_casted = value as (PointerStyle) - GlobalScope_common.setCursor_serialize(value_casted) - return - } - public static restoreDefault(): void { - GlobalScope_common.restoreDefault_serialize() - return - } - private static getContext_serialize(component?: Object): Context { - const thisSerializer: Serializer = Serializer.hold() - let component_type: int32 = RuntimeType.UNDEFINED - component_type = runtimeType(component) - thisSerializer.writeInt8(component_type) - if ((RuntimeType.UNDEFINED) != (component_type)) { - const component_value = component! - thisSerializer.writeCustomObject("Object", component_value) - } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_getContext(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - throw new Error("Object deserialization is not implemented.") - } - private static postCardAction_serialize(component: Object, action: Object): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeCustomObject("Object", component) - thisSerializer.writeCustomObject("Object", action) - ArkUIGeneratedNativeModule._GlobalScope_common_postCardAction(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static dollar_r_serialize(value: string, params: Array): Resource { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeInt32(params.length) - for (let i = 0; i < params.length; i++) { - const params_element: any = params[i] - thisSerializer.writeCustomObject("Any", params_element) - } - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_r(value, thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - throw new Error("Object deserialization is not implemented.") - } - private static dollar_rawfile_serialize(value: string): Resource { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_dollar_rawfile(value) - throw new Error("Object deserialization is not implemented.") - } - private static animateTo_serialize(value: AnimateParam, event: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeAnimateParam(value) - thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateTo(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static animateToImmediately_serialize(value: AnimateParam, event: (() => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.writeAnimateParam(value) - thisSerializer.holdAndWriteCallback(event) - ArkUIGeneratedNativeModule._GlobalScope_common_animateToImmediately(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() - } - private static vp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_vp2px(value) - return retval - } - private static px2vp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2vp(value) - return retval - } - private static fp2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_fp2px(value) - return retval - } - private static px2fp_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2fp(value) - return retval - } - private static lpx2px_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_lpx2px(value) - return retval - } - private static px2lpx_serialize(value: number): number { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_px2lpx(value) - return retval - } - private static requestFocus_serialize(value: string): boolean { - const retval = ArkUIGeneratedNativeModule._GlobalScope_common_requestFocus(value) - return retval - } - private static setCursor_serialize(value: PointerStyle): void { - ArkUIGeneratedNativeModule._GlobalScope_common_setCursor(value) - } - private static restoreDefault_serialize(): void { - ArkUIGeneratedNativeModule._GlobalScope_common_restoreDefault() - } -} diff --git a/arkoala/arkui/src/ArkNavigation.ts b/arkoala/arkui/src/ArkNavigation.ts index 1cdf7b74dd05d3681baa43a70a7c40b38f93580f..04f73a282a91cabdd99129947d85609385a66841 100644 --- a/arkoala/arkui/src/ArkNavigation.ts +++ b/arkoala/arkui/src/ArkNavigation.ts @@ -16,13 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { contextLocalScope, mutableState, MutableState, NodeAttach, remember, rememberMutableState, StateContext } from "@koalaui/runtime" -import { ArkCommonMethodComponent } from "./ArkCommon" +import { contextLocalScope, MutableState, NodeAttach, remember, rememberMutableState } from "@koalaui/runtime" +import { ArkCommonMethodComponent } from "./generated/ArkCommon" import { ArkNavigationPeer } from "./peers/ArkNavigationPeer" import { runtimeType, RuntimeType } from "@koalaui/interop" -import { NavPathStack } from "./ArkNavPathStackMaterialized" -import { NavExtender } from "./ArkNavExtenderMaterialized" -import { PathData } from "./handwritten/ArkNavPathStack" +import { NavPathStack } from "./generated/ArkNavPathStackMaterialized" +import { NavExtender } from "./generated/ArkNavExtenderMaterialized" +import { PathData } from "./handwritten" /** @memo:stable */ export class ArkNavigationComponent extends ArkCommonMethodComponent { diff --git a/arkoala/arkui/src/ArkState.ts b/arkoala/arkui/src/ArkState.ts index 4de8bc5b218cfecfd22196cc680ff30a413e6fff..43f8e5f7c7a0619471ad4a23587da7659a3c9a99 100644 --- a/arkoala/arkui/src/ArkState.ts +++ b/arkoala/arkui/src/ArkState.ts @@ -14,7 +14,6 @@ */ import { mutableState, MutableState } from "@koalaui/runtime" -import { ArkCommon } from "./ArkCommon" import { observableProxy } from "@koalaui/common" export { contextLocalStateOf, propState, objectLinkState, SyncedProperty } from "@koalaui/arkui-common" diff --git a/arkoala/arkui/src/ArkStructCommon.ts b/arkoala/arkui/src/ArkStructCommon.ts index 290f82386989b5bbb94c57ea3d409e73c90331b8..022ca9a66dcf0a3db1afc1bb8c2de0c25659b3df 100644 --- a/arkoala/arkui/src/ArkStructCommon.ts +++ b/arkoala/arkui/src/ArkStructCommon.ts @@ -16,7 +16,7 @@ import { remember } from "@koalaui/runtime" import { CustomComponentImpl } from "./CustomComponent"; import { ArkComponentRoot } from "./ArkComponentRoot"; -import { ArkCommonMethodComponent } from "./ArkCommon"; +import { ArkCommonMethodComponent } from "./generated/ArkCommon"; /** base class for user's structs */ export abstract class ArkStructBase extends CustomComponentImpl { diff --git a/arkoala/arkui/src/CanvasPattern.ts b/arkoala/arkui/src/CanvasPattern.ts index 0585bcc7a008bf079e0f75d04f24358ab0699e73..5e9e26a4e913ad20a55d5e40aa9975a778771f3a 100644 --- a/arkoala/arkui/src/CanvasPattern.ts +++ b/arkoala/arkui/src/CanvasPattern.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { Matrix2D } from "./ArkMatrix2DMaterialized" +import { Matrix2D } from "./generated/ArkMatrix2DMaterialized" // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! diff --git a/arkoala/arkui/src/ComponentBase.ts b/arkoala/arkui/src/ComponentBase.ts index 04bbd794ccb7d057ad4e516d6675b4355f2e80f6..fe4e8203ccb87b459b95fd96310d7f74170e2f98 100644 --- a/arkoala/arkui/src/ComponentBase.ts +++ b/arkoala/arkui/src/ComponentBase.ts @@ -13,9 +13,9 @@ * limitations under the License. */ -import { ArkUINativeModule, ComponentAsyncEventSubKind, NativePeerNode, PeerNode } from "@koalaui/arkoala" +import { ArkUINativeModule, NativePeerNode, PeerNode } from "@koalaui/arkoala" import { PeerReceiver } from "./peers/PeerReceiver" -import { ArkCommonAttributes, ArkCommonMethodAttributes, ArkCommonPeer } from "./peers/ArkCommonPeer" +import { ArkCommonMethodAttributes } from "./generated/peers/ArkCommonPeer" import { int32 } from "@koalaui/compat" import { KoalaCallsiteKey } from "@koalaui/common" import { __id, NodeAttach } from "@koalaui/runtime" diff --git a/arkoala/arkui/src/EnumsImpl.ts b/arkoala/arkui/src/EnumsImpl.ts deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/arkoala/arkui/src/GlobalScope.ts b/arkoala/arkui/src/GlobalScope.ts deleted file mode 100644 index 096122da04246dce714484bc3eac28dc08c77803..0000000000000000000000000000000000000000 --- a/arkoala/arkui/src/GlobalScope.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright (c) 2024-2025 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - - -// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! - -import { GlobalScope_common } from "./ArkGlobalScopeCommonMaterialized" -import { ICurve } from "./ArkICurveMaterialized" -import { GlobalScope_inspector } from "./ArkGlobalScopeInspectorMaterialized" -export function getContext(component: Object): Context { - return GlobalScope_common.getContext(component) -} -export function postCardAction(component: Object, action: Object): void { - GlobalScope_common.postCardAction(component, action) -} -export function dollar_r(value: string, params: Array): Resource { - return GlobalScope_common.dollar_r(value, params) -} -export function dollar_rawfile(value: string): Resource { - return GlobalScope_common.dollar_rawfile(value) -} -export function animateTo(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateTo(value, event) -} -export function animateToImmediately(value: AnimateParam, event: (() => void)): void { - GlobalScope_common.animateToImmediately(value, event) -} -export function vp2px(value: number): number { - return GlobalScope_common.vp2px(value) -} -export function px2vp(value: number): number { - return GlobalScope_common.px2vp(value) -} -export function fp2px(value: number): number { - return GlobalScope_common.fp2px(value) -} -export function px2fp(value: number): number { - return GlobalScope_common.px2fp(value) -} -export function lpx2px(value: number): number { - return GlobalScope_common.lpx2px(value) -} -export function px2lpx(value: number): number { - return GlobalScope_common.px2lpx(value) -} -export function requestFocus(value: string): boolean { - return GlobalScope_common.requestFocus(value) -} -export function setCursor(value: PointerStyle): void { - GlobalScope_common.setCursor(value) -} -export function restoreDefault(): void { - GlobalScope_common.restoreDefault() -} -export function getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes() -} -export function getInspectorNodeById(id: number): Object { - return GlobalScope_inspector.getInspectorNodeById(id) -} -export function registerVsyncCallback(callback_: ((info: string) => void)): void { - GlobalScope_inspector.registerVsyncCallback(callback_) -} -export function unregisterVsyncCallback(): void { - GlobalScope_inspector.unregisterVsyncCallback() -} -export function setAppBgColor(value: string): void { - GlobalScope_inspector.setAppBgColor(value) -} diff --git a/arkoala/arkui/src/LazyForEach.ts b/arkoala/arkui/src/LazyForEach.ts index 80145614c6c6b27d36ca5cbb45fb715468c031f3..d23cb6ddfda38b3d30deeadc700b732314df98d0 100644 --- a/arkoala/arkui/src/LazyForEach.ts +++ b/arkoala/arkui/src/LazyForEach.ts @@ -17,7 +17,7 @@ import { __context, contextNode, memoEntry2, remember, rememberMutableState, sch import { hashCodeFromString, int32 } from "@koalaui/common" import { nullptr, pointer } from "@koalaui/interop"; import { PeerNode } from "./PeerNode"; -import { LazyForEachOps } from "./ArkLazyForEachOpsMaterialized" +import { LazyForEachOps } from "./generated/ArkLazyForEachOpsMaterialized" // TODO: proper import [DataChangeListener] from lazy_for_each.d.ts export interface DataChangeListener { diff --git a/arkoala/arkui/src/NativeModuleRecorder.ts b/arkoala/arkui/src/NativeModuleRecorder.ts index 8302e8b7d1392a23fa3e36af1452f314eeee8020..82fa0b603a1343b7520446f1c20c83277387a43c 100644 --- a/arkoala/arkui/src/NativeModuleRecorder.ts +++ b/arkoala/arkui/src/NativeModuleRecorder.ts @@ -1,9 +1,8 @@ import { RuntimeType } from "./peers/SerializerBase" import { Deserializer } from "./peers/Deserializer" -import { unsafeCast } from "./shared/generated-utils" -import { int32, asFloat64, CustomTextEncoder } from "@koalaui/common" -import { encodeToData, KFloat, KFloat32ArrayPtr, KInt, KInt32ArrayPtr, KPointer, KStringPtr, KUint8ArrayPtr, nullptr, pointer, KBoolean } from "@koalaui/interop" -import { NodePointer, NativeModuleEmpty } from "@koalaui/arkoala" +import { int32, CustomTextEncoder } from "@koalaui/common" +import { encodeToData, KInt, KPointer, KStringPtr, nullptr, pointer } from "@koalaui/interop" +import { NativeModuleEmpty } from "@koalaui/arkoala" import { CallbackTransformer } from "./peers/CallbackTransformer" export interface UIElement { nodeId: int32 diff --git a/arkoala/arkui/src/StyledStringController.ts b/arkoala/arkui/src/StyledStringController.ts index 96a7442c73237512b81b820025c88b69eea34bd5..70f15529648955ebb3f7c12d75e28e6eccb8ea40 100644 --- a/arkoala/arkui/src/StyledStringController.ts +++ b/arkoala/arkui/src/StyledStringController.ts @@ -13,8 +13,8 @@ * limitations under the License. */ -import { MutableStyledString } from "./ArkMutableStyledStringMaterialized" -import { StyledString } from "./ArkStyledStringMaterialized" +import { MutableStyledString } from "./generated/ArkMutableStyledStringMaterialized" +import { StyledString } from "./generated/ArkStyledStringMaterialized" // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! diff --git a/arkoala/arkui/src/ArkAbilityComponent.ts b/arkoala/arkui/src/generated/ArkAbilityComponent.ts similarity index 97% rename from arkoala/arkui/src/ArkAbilityComponent.ts rename to arkoala/arkui/src/generated/ArkAbilityComponent.ts index 37eeab222b1c4a348f379351f8de88d00ff7a460..3b3c62ebabb3760e97c7eff3de91fdc0625bbad7 100644 --- a/arkoala/arkui/src/ArkAbilityComponent.ts +++ b/arkoala/arkui/src/generated/ArkAbilityComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAbilityComponentPeer } from "./peers/ArkAbilityComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAbilityComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkAbilityComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkAbilityComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkAbilityComponentInterfaces.ts index 3f05dda0adc8dca124055f8ed0dce29873a9b3a0..05da652d9d34cebf9694049752a9f8ca54809de4 100644 --- a/arkoala/arkui/src/ArkAbilityComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkAbilityComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts b/arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts index 48ad391c8997cb46d1add15340aa0c2d7eef5a55..04fee6913f086ed35219d8e60ee4cc25224f8d96 100644 --- a/arkoala/arkui/src/ArkAccessibilityHoverEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAccessibilityHoverEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { AccessibilityHoverType } from "./ArkEnumsInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -85,13 +84,13 @@ export class AccessibilityHoverEventInternal extends BaseEventInternal implement set windowY(windowY: number) { this.setWindowY(windowY) } - static ctor(): KPointer { + static ctor_accessibilityhoverevent(): KPointer { const retval = ArkUIGeneratedNativeModule._AccessibilityHoverEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = AccessibilityHoverEventInternal.ctor() + const ctorPtr: KPointer = AccessibilityHoverEventInternal.ctor_accessibilityhoverevent() this.peer = new Finalizable(ctorPtr, AccessibilityHoverEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkActionSheetInterfaces.ts b/arkoala/arkui/src/generated/ArkActionSheetInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkActionSheetInterfaces.ts rename to arkoala/arkui/src/generated/ArkActionSheetInterfaces.ts diff --git a/arkoala/arkui/src/ArkActionSheetMaterialized.ts b/arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkActionSheetMaterialized.ts rename to arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts index aeac07f1b3da66c9828616579f2b24fbf6a89c87..3e6243b0c5637195d0e60dd83de284e790caa063 100644 --- a/arkoala/arkui/src/ArkActionSheetMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkActionSheetMaterialized.ts @@ -26,21 +26,26 @@ import { BorderStyle, DialogButtonStyle, Color, ColoringStrategy, Curve, PlayMod import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ActionSheetInternal { + public static fromPtr(ptr: KPointer): ActionSheet { + const obj: ActionSheet = new ActionSheet() + obj.peer = new Finalizable(ptr, ActionSheet.getFinalizer()) + return obj + } +} export class ActionSheet implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_actionsheet(): KPointer { const retval = ArkUIGeneratedNativeModule._ActionSheet_ctor() return retval } @@ -48,7 +53,7 @@ export class ActionSheet implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = ActionSheet.ctor() + const ctorPtr: KPointer = ActionSheet.ctor_actionsheet() this.peer = new Finalizable(ctorPtr, ActionSheet.getFinalizer()) } static getFinalizer(): KPointer { @@ -66,10 +71,3 @@ export class ActionSheet implements MaterializedBase { return retval } } -export class ActionSheetInternal { - public static fromPtr(ptr: KPointer): ActionSheet { - const obj: ActionSheet = new ActionSheet() - obj.peer = new Finalizable(ptr, ActionSheet.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkAlertDialogInterfaces.ts b/arkoala/arkui/src/generated/ArkAlertDialogInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkAlertDialogInterfaces.ts rename to arkoala/arkui/src/generated/ArkAlertDialogInterfaces.ts diff --git a/arkoala/arkui/src/ArkAlertDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkAlertDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts index 5540521ca8075dfcddb80351cc070ff1913226fd..7b8693e1c88062b4dc824db4532b13c5cfffc3ba 100644 --- a/arkoala/arkui/src/ArkAlertDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAlertDialogMaterialized.ts @@ -26,21 +26,26 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterial import { Resource } from "./ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class AlertDialogInternal { + public static fromPtr(ptr: KPointer): AlertDialog { + const obj: AlertDialog = new AlertDialog() + obj.peer = new Finalizable(ptr, AlertDialog.getFinalizer()) + return obj + } +} export class AlertDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_alertdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._AlertDialog_ctor() return retval } @@ -48,7 +53,7 @@ export class AlertDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = AlertDialog.ctor() + const ctorPtr: KPointer = AlertDialog.ctor_alertdialog() this.peer = new Finalizable(ctorPtr, AlertDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,17 +67,17 @@ export class AlertDialog implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("confirm"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("confirm")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeAlertDialogParamWithConfirm(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("primaryButton"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("primaryButton")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeAlertDialogParamWithButtons(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("buttons"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("buttons")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeAlertDialogParamWithOptions(value_2) @@ -82,10 +87,3 @@ export class AlertDialog implements MaterializedBase { return retval } } -export class AlertDialogInternal { - public static fromPtr(ptr: KPointer): AlertDialog { - const obj: AlertDialog = new AlertDialog() - obj.peer = new Finalizable(ptr, AlertDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkAlphabetIndexer.ts b/arkoala/arkui/src/generated/ArkAlphabetIndexer.ts similarity index 98% rename from arkoala/arkui/src/ArkAlphabetIndexer.ts rename to arkoala/arkui/src/generated/ArkAlphabetIndexer.ts index a89b75665514ed34369ca4b1ca72230f96e6136a..103208fcac132892c177c1478d29af5177b8f356 100644 --- a/arkoala/arkui/src/ArkAlphabetIndexer.ts +++ b/arkoala/arkui/src/generated/ArkAlphabetIndexer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAlphabetIndexerPeer } from "./peers/ArkAlphabetIndexerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAlphabetIndexerInterfaces.ts b/arkoala/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkAlphabetIndexerInterfaces.ts rename to arkoala/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts index 141a5e292b3e3fd0216a92a31bce85340187cd06..f54d8e1084f49f17c954bc524eb9e0fae6934df0 100644 --- a/arkoala/arkui/src/ArkAlphabetIndexerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkAlphabetIndexerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts b/arkoala/arkui/src/generated/ArkAnimationExtenderInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkAnimationExtenderInterfaces.ts rename to arkoala/arkui/src/generated/ArkAnimationExtenderInterfaces.ts diff --git a/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts b/arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts rename to arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts index 1651af2bbdd0eb5ef4aa4e853d29733992a8ba3a..82f47b69e5e9364d25f7dc75ddde9bb555b8c8f4 100644 --- a/arkoala/arkui/src/ArkAnimationExtenderMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAnimationExtenderMaterialized.ts @@ -20,21 +20,26 @@ import { AnimateParam, TranslateOptions, FinishCallbackType, ExpectedFrameRateRa import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./ArkAnimationExtenderInterfaces" import { Curve, PlayMode } from "./ArkEnumsInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class AnimationExtenderInternal { + public static fromPtr(ptr: KPointer): AnimationExtender { + const obj: AnimationExtender = new AnimationExtender() + obj.peer = new Finalizable(ptr, AnimationExtender.getFinalizer()) + return obj + } +} export class AnimationExtender implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_animationextender(): KPointer { const retval = ArkUIGeneratedNativeModule._AnimationExtender_ctor() return retval } @@ -42,7 +47,7 @@ export class AnimationExtender implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = AnimationExtender.ctor() + const ctorPtr: KPointer = AnimationExtender.ctor_animationextender() this.peer = new Finalizable(ctorPtr, AnimationExtender.getFinalizer()) } static getFinalizer(): KPointer { @@ -103,10 +108,3 @@ export class AnimationExtender implements MaterializedBase { thisSerializer.release() } } -export class AnimationExtenderInternal { - public static fromPtr(ptr: KPointer): AnimationExtender { - const obj: AnimationExtender = new AnimationExtender() - obj.peer = new Finalizable(ptr, AnimationExtender.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkAnimator.ts b/arkoala/arkui/src/generated/ArkAnimator.ts similarity index 98% rename from arkoala/arkui/src/ArkAnimator.ts rename to arkoala/arkui/src/generated/ArkAnimator.ts index 902087bc5cd286567f79b2071ab53e5f1cd0cb57..23a9ed5cee31a515559a3395452a145685a7ae12 100644 --- a/arkoala/arkui/src/ArkAnimator.ts +++ b/arkoala/arkui/src/generated/ArkAnimator.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkAnimatorPeer } from "./peers/ArkAnimatorPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAnimatorInterfaces.ts b/arkoala/arkui/src/generated/ArkAnimatorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkAnimatorInterfaces.ts rename to arkoala/arkui/src/generated/ArkAnimatorInterfaces.ts index 3638ded1c195b2df99978b9b1c0df5bc5e60c8ae..512983a62c348005bcfd7ae00afafa4e1bedabbb 100644 --- a/arkoala/arkui/src/ArkAnimatorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkAnimatorInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts index 4514a45139257df624f94d20a2cda9d75718354a..80535796fd610ce1934948e257441c5a39af0166 100644 --- a/arkoala/arkui/src/ArkAppearSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkAppearSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class AppearSymbolEffectInternal { + public static fromPtr(ptr: KPointer): AppearSymbolEffect { + const obj: AppearSymbolEffect = new AppearSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, AppearSymbolEffect.getFinalizer()) + return obj + } +} export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +43,7 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_appearsymboleffect(scope?: EffectScope): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -52,7 +57,7 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr: KPointer = AppearSymbolEffect.ctor(scope) + const ctorPtr: KPointer = AppearSymbolEffect.ctor_appearsymboleffect(scope) this.peer = new Finalizable(ctorPtr, AppearSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class AppearSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._AppearSymbolEffect_setScope(this.peer!.ptr, scope) } } -export class AppearSymbolEffectInternal { - public static fromPtr(ptr: KPointer): AppearSymbolEffect { - const obj: AppearSymbolEffect = new AppearSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, AppearSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkArkuiCustomInterfaces.ts b/arkoala/arkui/src/generated/ArkArkuiCustomInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkArkuiCustomInterfaces.ts rename to arkoala/arkui/src/generated/ArkArkuiCustomInterfaces.ts diff --git a/arkoala/arkui/src/ArkArkuiExternalInterfaces.ts b/arkoala/arkui/src/generated/ArkArkuiExternalInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkArkuiExternalInterfaces.ts rename to arkoala/arkui/src/generated/ArkArkuiExternalInterfaces.ts diff --git a/arkoala/arkui/src/ArkBackgroundColorStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts similarity index 86% rename from arkoala/arkui/src/ArkBackgroundColorStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts index 54979c6cc7f068648d242a1e7fa05eceae6be9d7..059677987e2c146d56ef8295e12b5af545873e9c 100644 --- a/arkoala/arkui/src/ArkBackgroundColorStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBackgroundColorStyleMaterialized.ts @@ -18,15 +18,20 @@ import { TextBackgroundStyle } from "./ArkSpanInterfaces" import { ResourceColor, Dimension, BorderRadiuses, Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class BackgroundColorStyleInternal { + public static fromPtr(ptr: KPointer): BackgroundColorStyle { + const obj: BackgroundColorStyle = new BackgroundColorStyle(undefined) + obj.peer = new Finalizable(ptr, BackgroundColorStyle.getFinalizer()) + return obj + } +} export class BackgroundColorStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -35,7 +40,7 @@ export class BackgroundColorStyle implements MaterializedBase { get textBackgroundStyle(): TextBackgroundStyle { throw new Error("Not implemented") } - static ctor(textBackgroundStyle: TextBackgroundStyle): KPointer { + static ctor_backgroundcolorstyle(textBackgroundStyle: TextBackgroundStyle): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeTextBackgroundStyle(textBackgroundStyle) const retval = ArkUIGeneratedNativeModule._BackgroundColorStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -43,9 +48,9 @@ export class BackgroundColorStyle implements MaterializedBase { return retval } constructor(textBackgroundStyle?: TextBackgroundStyle) { - if (((textBackgroundStyle) !== (undefined))) + if ((textBackgroundStyle) !== (undefined)) { - const ctorPtr: KPointer = BackgroundColorStyle.ctor(textBackgroundStyle) + const ctorPtr: KPointer = BackgroundColorStyle.ctor_backgroundcolorstyle(textBackgroundStyle) this.peer = new Finalizable(ctorPtr, BackgroundColorStyle.getFinalizer()) } } @@ -53,10 +58,3 @@ export class BackgroundColorStyle implements MaterializedBase { return ArkUIGeneratedNativeModule._BackgroundColorStyle_getFinalizer() } } -export class BackgroundColorStyleInternal { - public static fromPtr(ptr: KPointer): BackgroundColorStyle { - const obj: BackgroundColorStyle = new BackgroundColorStyle(undefined) - obj.peer = new Finalizable(ptr, BackgroundColorStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkBadge.ts b/arkoala/arkui/src/generated/ArkBadge.ts similarity index 95% rename from arkoala/arkui/src/ArkBadge.ts rename to arkoala/arkui/src/generated/ArkBadge.ts index c22d1413929598c43cc285203eb9e9bbe4933d70..2e1268980b5990ac005c41134afd20346cf76041 100644 --- a/arkoala/arkui/src/ArkBadge.ts +++ b/arkoala/arkui/src/generated/ArkBadge.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBadgePeer } from "./peers/ArkBadgePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -61,12 +60,12 @@ export class ArkBadgeComponent extends ArkCommonMethodComponent { public setBadgeOptions(value: BadgeParamWithNumber | BadgeParamWithString): this { if (this.checkPriority("setBadgeOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("count")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("count")))) { const value_casted = value as (BadgeParamWithNumber) this.getPeer()?.setBadgeOptions0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("value")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("value")))) { const value_casted = value as (BadgeParamWithString) this.getPeer()?.setBadgeOptions1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkBadgeInterfaces.ts b/arkoala/arkui/src/generated/ArkBadgeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkBadgeInterfaces.ts rename to arkoala/arkui/src/generated/ArkBadgeInterfaces.ts index ac19006accef1d4c1ae683bdfb57ed667cfde449..bb241e90891ef26e441a095777987c17893d39e1 100644 --- a/arkoala/arkui/src/ArkBadgeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkBadgeInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkBaseEventMaterialized.ts b/arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts similarity index 97% rename from arkoala/arkui/src/ArkBaseEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts index ba0a67b3273359873484bfcccccb58c023740431..781b060551b927164414ac68284d775f60f29026 100644 --- a/arkoala/arkui/src/ArkBaseEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaseEventMaterialized.ts @@ -18,12 +18,11 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -108,12 +107,12 @@ export class BaseEventInternal implements MaterializedBase,BaseEvent { const deviceId_NonNull = (deviceId as number) this.setDeviceId(deviceId_NonNull) } - static ctor(): KPointer { + static ctor_baseevent(): KPointer { const retval = ArkUIGeneratedNativeModule._BaseEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = BaseEventInternal.ctor() + const ctorPtr: KPointer = BaseEventInternal.ctor_baseevent() this.peer = new Finalizable(ctorPtr, BaseEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts similarity index 84% rename from arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts index 7c3ac210c300c64b854abadb3d9bc8816f841241..c4fec198f29acd3d75ef79e7a9c9313804ac2769 100644 --- a/arkoala/arkui/src/ArkBaseGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaseGestureEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -43,23 +42,30 @@ export class BaseGestureEventInternal extends BaseEventInternal implements Mater set fingerList(fingerList: Array) { this.setFingerList(fingerList) } - static ctor(): KPointer { + static ctor_basegestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = BaseGestureEventInternal.ctor() + const ctorPtr: KPointer = BaseGestureEventInternal.ctor_basegestureevent() this.peer = new Finalizable(ctorPtr, BaseGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._BaseGestureEvent_getFinalizer() } + private getFingerList(): Array { + return this.getFingerList_serialize() + } private setFingerList(fingerList: Array): void { const fingerList_casted = fingerList as (Array) this?.setFingerList_serialize(fingerList_casted) return } + private getFingerList_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._BaseGestureEvent_getFingerList(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setFingerList_serialize(fingerList: Array): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(fingerList.length) diff --git a/arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts index 05b45b84047ebe1d603a235c8525836de98f07b7..c8be493712714e6fa9676bbca98ccb5c2b01875a 100644 --- a/arkoala/arkui/src/ArkBaselineOffsetStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBaselineOffsetStyleMaterialized.ts @@ -19,15 +19,20 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class BaselineOffsetStyleInternal { + public static fromPtr(ptr: KPointer): BaselineOffsetStyle { + const obj: BaselineOffsetStyle = new BaselineOffsetStyle(undefined) + obj.peer = new Finalizable(ptr, BaselineOffsetStyle.getFinalizer()) + return obj + } +} export class BaselineOffsetStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,7 +41,7 @@ export class BaselineOffsetStyle implements MaterializedBase { get baselineOffset(): number { return this.getBaselineOffset() } - static ctor(value: LengthMetrics): KPointer { + static ctor_baselineoffsetstyle(value: LengthMetrics): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(value) const retval = ArkUIGeneratedNativeModule._BaselineOffsetStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -44,9 +49,9 @@ export class BaselineOffsetStyle implements MaterializedBase { return retval } constructor(value?: LengthMetrics) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = BaselineOffsetStyle.ctor(value) + const ctorPtr: KPointer = BaselineOffsetStyle.ctor_baselineoffsetstyle(value) this.peer = new Finalizable(ctorPtr, BaselineOffsetStyle.getFinalizer()) } } @@ -61,10 +66,3 @@ export class BaselineOffsetStyle implements MaterializedBase { return retval } } -export class BaselineOffsetStyleInternal { - public static fromPtr(ptr: KPointer): BaselineOffsetStyle { - const obj: BaselineOffsetStyle = new BaselineOffsetStyle(undefined) - obj.peer = new Finalizable(ptr, BaselineOffsetStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkBlank.ts b/arkoala/arkui/src/generated/ArkBlank.ts similarity index 97% rename from arkoala/arkui/src/ArkBlank.ts rename to arkoala/arkui/src/generated/ArkBlank.ts index e0a1446e284f2830ac0ffa8d2609ab494525fe2c..470f8ba358804ec493cbc2af0ec657e7c7ce8d8c 100644 --- a/arkoala/arkui/src/ArkBlank.ts +++ b/arkoala/arkui/src/generated/ArkBlank.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBlankPeer } from "./peers/ArkBlankPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkBlankInterfaces.ts b/arkoala/arkui/src/generated/ArkBlankInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkBlankInterfaces.ts rename to arkoala/arkui/src/generated/ArkBlankInterfaces.ts index 0ba7d6365c9c42d9e3699d52e6bb27dae761e8e3..15e05a0b4d90855c9675ec01376e083d276e5b21 100644 --- a/arkoala/arkui/src/ArkBlankInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkBlankInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkBottomTabBarStyleBuilder.ts b/arkoala/arkui/src/generated/ArkBottomTabBarStyleBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkBottomTabBarStyleBuilder.ts rename to arkoala/arkui/src/generated/ArkBottomTabBarStyleBuilder.ts diff --git a/arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts index 382c01b396454288138d6e6f95f15a0befe65b8c..ed5a3ea762e9ba4606e71846d542a97d37166b76 100644 --- a/arkoala/arkui/src/ArkBounceSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkBounceSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class BounceSymbolEffectInternal { + public static fromPtr(ptr: KPointer): BounceSymbolEffect { + const obj: BounceSymbolEffect = new BounceSymbolEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, BounceSymbolEffect.getFinalizer()) + return obj + } +} export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -45,7 +50,7 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { const direction_NonNull = (direction as EffectDirection) this.setDirection(direction_NonNull) } - static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + static ctor_bouncesymboleffect(scope?: EffectScope, direction?: EffectDirection): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -66,7 +71,7 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope, direction?: EffectDirection) { - const ctorPtr: KPointer = BounceSymbolEffect.ctor(scope, direction) + const ctorPtr: KPointer = BounceSymbolEffect.ctor_bouncesymboleffect(scope, direction) this.peer = new Finalizable(ctorPtr, BounceSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -103,10 +108,3 @@ export class BounceSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._BounceSymbolEffect_setDirection(this.peer!.ptr, direction) } } -export class BounceSymbolEffectInternal { - public static fromPtr(ptr: KPointer): BounceSymbolEffect { - const obj: BounceSymbolEffect = new BounceSymbolEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, BounceSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkButton.ts b/arkoala/arkui/src/generated/ArkButton.ts similarity index 95% rename from arkoala/arkui/src/ArkButton.ts rename to arkoala/arkui/src/generated/ArkButton.ts index 3aedec305a1df6c04cf741d6a76c558e880662a2..22565dc5eb80e84a6762aea712fee11870589974 100644 --- a/arkoala/arkui/src/ArkButton.ts +++ b/arkoala/arkui/src/generated/ArkButton.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkButtonPeer } from "./peers/ArkButtonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -62,16 +61,16 @@ export class ArkButtonComponent extends ArkCommonMethodComponent { if (this.checkPriority("setButtonOptions")) { const label_type = runtimeType(label) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == label_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.UNDEFINED == label_type) && (RuntimeType.UNDEFINED == options_type)) { this.getPeer()?.setButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT) == (label_type)) && (((label!.hasOwnProperty("type")) || (label!.hasOwnProperty("stateEffect")) || (label!.hasOwnProperty("buttonStyle")) || (label!.hasOwnProperty("controlSize")) || (label!.hasOwnProperty("role"))))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((((RuntimeType.OBJECT) == (label_type)) && (((label!.hasOwnProperty("type")) || (label!.hasOwnProperty("stateEffect")) || (label!.hasOwnProperty("buttonStyle")) || (label!.hasOwnProperty("controlSize")) || (label!.hasOwnProperty("role"))))) && (RuntimeType.UNDEFINED == options_type)) { const options_casted = label as (ButtonOptions) this.getPeer()?.setButtonOptions1Attribute(options_casted) return this } - if (((((RuntimeType.STRING == label_type))) || (((RuntimeType.OBJECT == label_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.STRING == label_type) || (RuntimeType.OBJECT == label_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const label_casted = label as (ResourceStr) const options_casted = options as (ButtonOptions | undefined) this.getPeer()?.setButtonOptions2Attribute(label_casted, options_casted) diff --git a/arkoala/arkui/src/ArkButtonInterfaces.ts b/arkoala/arkui/src/generated/ArkButtonInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkButtonInterfaces.ts rename to arkoala/arkui/src/generated/ArkButtonInterfaces.ts index de9e1198735ceeb6b4b56b3d9b8e525a5a01b83f..394bca609aecfa86106c902e7f294e35b1bce25f 100644 --- a/arkoala/arkui/src/ArkButtonInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkButtonInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCalendar.ts b/arkoala/arkui/src/generated/ArkCalendar.ts similarity index 97% rename from arkoala/arkui/src/ArkCalendar.ts rename to arkoala/arkui/src/generated/ArkCalendar.ts index e471793d90f374020b4f9fdf34070b7cda0bb874..e2d130ca71a2005a1e2575c3d22f904343a2419e 100644 --- a/arkoala/arkui/src/ArkCalendar.ts +++ b/arkoala/arkui/src/generated/ArkCalendar.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCalendarPeer } from "./peers/ArkCalendarPeer" import { UseEventsProperties } from "./use_properties" import { Axis } from "./ArkEnumsInterfaces" diff --git a/arkoala/arkui/src/ArkCalendarControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkCalendarControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts index 21fde01f6c4b15a9cdbf218d08a795979fce9889..195c9a734d53d2b7d2c1c479614b0c826664f974 100644 --- a/arkoala/arkui/src/ArkCalendarControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCalendarControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CalendarControllerInternal { + public static fromPtr(ptr: KPointer): CalendarController { + const obj: CalendarController = new CalendarController() + obj.peer = new Finalizable(ptr, CalendarController.getFinalizer()) + return obj + } +} export class CalendarController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_calendarcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._CalendarController_ctor() return retval } constructor() { - const ctorPtr: KPointer = CalendarController.ctor() + const ctorPtr: KPointer = CalendarController.ctor_calendarcontroller() this.peer = new Finalizable(ctorPtr, CalendarController.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,10 +70,3 @@ export class CalendarController implements MaterializedBase { return retval } } -export class CalendarControllerInternal { - public static fromPtr(ptr: KPointer): CalendarController { - const obj: CalendarController = new CalendarController() - obj.peer = new Finalizable(ptr, CalendarController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCalendarInterfaces.ts b/arkoala/arkui/src/generated/ArkCalendarInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkCalendarInterfaces.ts rename to arkoala/arkui/src/generated/ArkCalendarInterfaces.ts diff --git a/arkoala/arkui/src/ArkCalendarPicker.ts b/arkoala/arkui/src/generated/ArkCalendarPicker.ts similarity index 97% rename from arkoala/arkui/src/ArkCalendarPicker.ts rename to arkoala/arkui/src/generated/ArkCalendarPicker.ts index 71e5a491fefd158f528c2edc066fcfc871686ef9..003f409a575eaf381bb2d745a0dd7f49170d389c 100644 --- a/arkoala/arkui/src/ArkCalendarPicker.ts +++ b/arkoala/arkui/src/generated/ArkCalendarPicker.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCalendarPickerPeer } from "./peers/ArkCalendarPickerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts index 68be03512d6d62ee57f68d3dcf6813a0d5e0a449..2b1f1965d780456641b2f9a671628389e031c15a 100644 --- a/arkoala/arkui/src/ArkCalendarPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCalendarPickerDialogMaterialized.ts @@ -22,21 +22,26 @@ import { VoidCallback, ResourceColor, Length, BorderRadiuses } from "./ArkUnitsI import { BlurStyle, PickerDialogButtonStyle, ShadowOptions, ShadowStyle, HoverModeAreaType, ShadowType } from "./ArkCommonInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CalendarPickerDialogInternal { + public static fromPtr(ptr: KPointer): CalendarPickerDialog { + const obj: CalendarPickerDialog = new CalendarPickerDialog() + obj.peer = new Finalizable(ptr, CalendarPickerDialog.getFinalizer()) + return obj + } +} export class CalendarPickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_calendarpickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._CalendarPickerDialog_ctor() return retval } @@ -44,7 +49,7 @@ export class CalendarPickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = CalendarPickerDialog.ctor() + const ctorPtr: KPointer = CalendarPickerDialog.ctor_calendarpickerdialog() this.peer = new Finalizable(ctorPtr, CalendarPickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,10 +73,3 @@ export class CalendarPickerDialog implements MaterializedBase { thisSerializer.release() } } -export class CalendarPickerDialogInternal { - public static fromPtr(ptr: KPointer): CalendarPickerDialog { - const obj: CalendarPickerDialog = new CalendarPickerDialog() - obj.peer = new Finalizable(ptr, CalendarPickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCalendarPickerInterfaces.ts b/arkoala/arkui/src/generated/ArkCalendarPickerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCalendarPickerInterfaces.ts rename to arkoala/arkui/src/generated/ArkCalendarPickerInterfaces.ts index f5fc53e41a8a6d82783a13f32e2573e2ae945cfc..32ddeb450812ae4db6bf9c78bb56f52265162688 100644 --- a/arkoala/arkui/src/ArkCalendarPickerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCalendarPickerInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCanvas.ts b/arkoala/arkui/src/generated/ArkCanvas.ts similarity index 95% rename from arkoala/arkui/src/ArkCanvas.ts rename to arkoala/arkui/src/generated/ArkCanvas.ts index 568768a36ea1c917f6f27c57d6a21d4e0aba14bc..873f94b9941fb425e8f397082918760e3700757b 100644 --- a/arkoala/arkui/src/ArkCanvas.ts +++ b/arkoala/arkui/src/generated/ArkCanvas.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCanvasPeer } from "./peers/ArkCanvasPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -78,13 +77,13 @@ export class ArkCanvasComponent extends ArkCommonMethodComponent { if (this.checkPriority("setCanvasOptions")) { const context_type = runtimeType(context) const imageAIOptions_type = runtimeType(imageAIOptions) - if (((((RuntimeType.OBJECT) == (context_type)) && (context instanceof CanvasRenderingContext2D)) || (((RuntimeType.OBJECT) == (context_type)) && (context instanceof DrawingRenderingContext))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (context_type)) && (context instanceof CanvasRenderingContext2D)) || (((RuntimeType.OBJECT) == (context_type)) && (context instanceof DrawingRenderingContext))) && (RuntimeType.OBJECT == imageAIOptions_type)) { const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext) const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) this.getPeer()?.setCanvasOptions1Attribute(context_casted, imageAIOptions_casted) return this } - if ((((RuntimeType.OBJECT == context_type)) || ((RuntimeType.OBJECT == context_type)) || ((RuntimeType.UNDEFINED == context_type))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((RuntimeType.OBJECT == context_type) || (RuntimeType.OBJECT == context_type) || (RuntimeType.UNDEFINED == context_type)) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const context_casted = context as (CanvasRenderingContext2D | DrawingRenderingContext | undefined) this.getPeer()?.setCanvasOptions0Attribute(context_casted) return this diff --git a/arkoala/arkui/src/ArkCanvasGradientMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkCanvasGradientMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts index 6db4502d61d2d1086104f50c8fbe5491d8059f0d..b9ea6812e0fb53942d3288b74706c3fb0de6a4d5 100644 --- a/arkoala/arkui/src/ArkCanvasGradientMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasGradientMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CanvasGradientInternal { + public static fromPtr(ptr: KPointer): CanvasGradient { + const obj: CanvasGradient = new CanvasGradient() + obj.peer = new Finalizable(ptr, CanvasGradient.getFinalizer()) + return obj + } +} export class CanvasGradient implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvasgradient(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasGradient_ctor() return retval } constructor() { - const ctorPtr: KPointer = CanvasGradient.ctor() + const ctorPtr: KPointer = CanvasGradient.ctor_canvasgradient() this.peer = new Finalizable(ctorPtr, CanvasGradient.getFinalizer()) } static getFinalizer(): KPointer { @@ -51,10 +56,3 @@ export class CanvasGradient implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasGradient_addColorStop(this.peer!.ptr, offset, color) } } -export class CanvasGradientInternal { - public static fromPtr(ptr: KPointer): CanvasGradient { - const obj: CanvasGradient = new CanvasGradient() - obj.peer = new Finalizable(ptr, CanvasGradient.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCanvasInterfaces.ts b/arkoala/arkui/src/generated/ArkCanvasInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCanvasInterfaces.ts rename to arkoala/arkui/src/generated/ArkCanvasInterfaces.ts index 91e65b58794392d98bd4a03ea86ea9bc510e0c9a..2722131a6b32a38f898f1b49503ff91361259962 100644 --- a/arkoala/arkui/src/ArkCanvasInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCanvasInterfaces.ts @@ -44,7 +44,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkCanvasPathMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkCanvasPathMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts index ade5e15e3c65a18e179bd974ffc00b9ac586bc18..48c319aeefb15c3d773b049d10e1f042dd0a12ba 100644 --- a/arkoala/arkui/src/ArkCanvasPathMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasPathMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CanvasPathInternal { + public static fromPtr(ptr: KPointer): CanvasPath { + const obj: CanvasPath = new CanvasPath() + obj.peer = new Finalizable(ptr, CanvasPath.getFinalizer()) + return obj + } +} export class CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvaspath(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasPath_ctor() return retval } constructor() { - const ctorPtr: KPointer = CanvasPath.ctor() + const ctorPtr: KPointer = CanvasPath.ctor_canvaspath() this.peer = new Finalizable(ctorPtr, CanvasPath.getFinalizer()) } static getFinalizer(): KPointer { @@ -160,10 +165,3 @@ export class CanvasPath implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasPath_rect(this.peer!.ptr, x, y, w, h) } } -export class CanvasPathInternal { - public static fromPtr(ptr: KPointer): CanvasPath { - const obj: CanvasPath = new CanvasPath() - obj.peer = new Finalizable(ptr, CanvasPath.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkCanvasPatternMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts index 8c847a62303e49ac7acaa259e52d4f51e19ea2cf..3327f62be20ebb5fb775cb0846aaeb1c78e6df5b 100644 --- a/arkoala/arkui/src/ArkCanvasPatternMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasPatternMaterialized.ts @@ -18,12 +18,10 @@ import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -35,12 +33,12 @@ export class CanvasPatternInternal implements MaterializedBase,CanvasPattern { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_canvaspattern(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasPattern_ctor() return retval } constructor() { - const ctorPtr: KPointer = CanvasPatternInternal.ctor() + const ctorPtr: KPointer = CanvasPatternInternal.ctor_canvaspattern() this.peer = new Finalizable(ctorPtr, CanvasPatternInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkCanvasRendererMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts index 4a4a085fd334cda57ef8100818b556cdebb80cf4..17f86aeeaf7b4176aaa46c4dcc0cde6be09f7074 100644 --- a/arkoala/arkui/src/ArkCanvasRendererMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasRendererMaterialized.ts @@ -26,15 +26,20 @@ import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CanvasRendererInternal { + public static fromPtr(ptr: KPointer): CanvasRenderer { + const obj: CanvasRenderer = new CanvasRenderer() + obj.peer = new Finalizable(ptr, CanvasRenderer.getFinalizer()) + return obj + } +} export class CanvasRenderer extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -160,13 +165,13 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { set textBaseline(textBaseline: CanvasTextBaseline) { this.setTextBaseline(textBaseline) } - static ctor(): KPointer { + static ctor_canvasrenderer(): KPointer { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = CanvasRenderer.ctor() + const ctorPtr: KPointer = CanvasRenderer.ctor_canvasrenderer() this.peer = new Finalizable(ctorPtr, CanvasRenderer.getFinalizer()) } static getFinalizer(): KPointer { @@ -182,14 +187,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const dy_type = runtimeType(dy) const dw_type = runtimeType(dw) const dh_type = runtimeType(dh) - if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable")))))) && (((RuntimeType.UNDEFINED == sw_type))) && (((RuntimeType.UNDEFINED == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable"))))) && (RuntimeType.UNDEFINED == sw_type) && (RuntimeType.UNDEFINED == sh_type) && (RuntimeType.UNDEFINED == dx_type) && (RuntimeType.UNDEFINED == dy_type) && (RuntimeType.UNDEFINED == dw_type) && (RuntimeType.UNDEFINED == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const dx_casted = sx as (number) const dy_casted = sy as (number) this?.drawImage0_serialize(image_casted, dx_casted, dy_casted) return } - if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable")))))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.UNDEFINED == dx_type))) && (((RuntimeType.UNDEFINED == dy_type))) && (((RuntimeType.UNDEFINED == dw_type))) && (((RuntimeType.UNDEFINED == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable"))))) && (RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type) && (RuntimeType.UNDEFINED == dx_type) && (RuntimeType.UNDEFINED == dy_type) && (RuntimeType.UNDEFINED == dw_type) && (RuntimeType.UNDEFINED == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const dx_casted = sx as (number) const dy_casted = sy as (number) @@ -198,7 +203,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { this?.drawImage1_serialize(image_casted, dx_casted, dy_casted, dw_casted, dh_casted) return } - if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable")))))) && (((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type))) && (((RuntimeType.NUMBER == dx_type))) && (((RuntimeType.NUMBER == dy_type))) && (((RuntimeType.NUMBER == dw_type))) && (((RuntimeType.NUMBER == dh_type)))) { + if (((((RuntimeType.OBJECT) == (image_type)) && (image instanceof ImageBitmap)) || (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable"))))) && (RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type) && (RuntimeType.NUMBER == dx_type) && (RuntimeType.NUMBER == dy_type) && (RuntimeType.NUMBER == dw_type) && (RuntimeType.NUMBER == dh_type)) { const image_casted = image as (ImageBitmap | PixelMap) const sx_casted = sx as (number) const sy_casted = sy as (number) @@ -220,12 +225,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public clip(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { const path_type = runtimeType(path) const fillRule_type = runtimeType(fillRule) - if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if (((RuntimeType.STRING == path_type) || (RuntimeType.UNDEFINED == path_type)) && (RuntimeType.UNDEFINED == fillRule_type)) { const fillRule_casted = path as (CanvasFillRule | undefined) this?.clip0_serialize(fillRule_casted) return } - if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((RuntimeType.OBJECT == path_type) && ((RuntimeType.STRING == fillRule_type) || (RuntimeType.UNDEFINED == fillRule_type))) { const path_casted = path as (Path2D) const fillRule_casted = fillRule as (CanvasFillRule | undefined) this?.clip1_serialize(path_casted, fillRule_casted) @@ -236,12 +241,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public fill(path?: CanvasFillRule | undefined | Path2D, fillRule?: CanvasFillRule): void { const path_type = runtimeType(path) const fillRule_type = runtimeType(fillRule) - if ((((RuntimeType.STRING == path_type)) || ((RuntimeType.UNDEFINED == path_type))) && (((RuntimeType.UNDEFINED == fillRule_type)))) { + if (((RuntimeType.STRING == path_type) || (RuntimeType.UNDEFINED == path_type)) && (RuntimeType.UNDEFINED == fillRule_type)) { const fillRule_casted = path as (CanvasFillRule | undefined) this?.fill0_serialize(fillRule_casted) return } - if ((((RuntimeType.OBJECT == path_type))) && (((RuntimeType.STRING == fillRule_type)) || ((RuntimeType.UNDEFINED == fillRule_type)))) { + if ((RuntimeType.OBJECT == path_type) && ((RuntimeType.STRING == fillRule_type) || (RuntimeType.UNDEFINED == fillRule_type))) { const path_casted = path as (Path2D) const fillRule_casted = fillRule as (CanvasFillRule | undefined) this?.fill1_serialize(path_casted, fillRule_casted) @@ -251,11 +256,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } public stroke(path?: Path2D): void { const path_type = runtimeType(path) - if ((((RuntimeType.UNDEFINED == path_type)))) { + if (RuntimeType.UNDEFINED == path_type) { this?.stroke0_serialize() return } - if ((((RuntimeType.OBJECT == path_type)))) { + if (RuntimeType.OBJECT == path_type) { const path_casted = path as (Path2D) this?.stroke1_serialize(path_casted) return @@ -292,11 +297,11 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { public createImageData(sw: ImageData | number, sh?: number): ImageData { const sw_type = runtimeType(sw) const sh_type = runtimeType(sh) - if ((((RuntimeType.OBJECT == sw_type))) && (((RuntimeType.UNDEFINED == sh_type)))) { + if ((RuntimeType.OBJECT == sw_type) && (RuntimeType.UNDEFINED == sh_type)) { const imagedata_casted = sw as (ImageData) return this.createImageData1_serialize(imagedata_casted) } - if ((((RuntimeType.NUMBER == sw_type))) && (((RuntimeType.NUMBER == sh_type)))) { + if ((RuntimeType.NUMBER == sw_type) && (RuntimeType.NUMBER == sh_type)) { const sw_casted = sw as (number) const sh_casted = sh as (number) return this.createImageData0_serialize(sw_casted, sh_casted) @@ -325,14 +330,14 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const dirtyY_type = runtimeType(dirtyY) const dirtyWidth_type = runtimeType(dirtyWidth) const dirtyHeight_type = runtimeType(dirtyHeight) - if (((((RuntimeType.NUMBER == dx_type))) || (((RuntimeType.STRING == dx_type)))) && ((((RuntimeType.NUMBER == dy_type))) || (((RuntimeType.STRING == dy_type)))) && (((RuntimeType.UNDEFINED == dirtyX_type))) && (((RuntimeType.UNDEFINED == dirtyY_type))) && (((RuntimeType.UNDEFINED == dirtyWidth_type))) && (((RuntimeType.UNDEFINED == dirtyHeight_type)))) { + if (((RuntimeType.NUMBER == dx_type) || (RuntimeType.STRING == dx_type)) && ((RuntimeType.NUMBER == dy_type) || (RuntimeType.STRING == dy_type)) && (RuntimeType.UNDEFINED == dirtyX_type) && (RuntimeType.UNDEFINED == dirtyY_type) && (RuntimeType.UNDEFINED == dirtyWidth_type) && (RuntimeType.UNDEFINED == dirtyHeight_type)) { const imagedata_casted = imagedata as (ImageData) const dx_casted = dx as (number | string) const dy_casted = dy as (number | string) this?.putImageData0_serialize(imagedata_casted, dx_casted, dy_casted) return } - if (((((RuntimeType.NUMBER == dx_type))) || (((RuntimeType.STRING == dx_type)))) && ((((RuntimeType.NUMBER == dy_type))) || (((RuntimeType.STRING == dy_type)))) && (((RuntimeType.NUMBER == dirtyX_type)) || ((RuntimeType.STRING == dirtyX_type))) && (((RuntimeType.NUMBER == dirtyY_type)) || ((RuntimeType.STRING == dirtyY_type))) && (((RuntimeType.NUMBER == dirtyWidth_type)) || ((RuntimeType.STRING == dirtyWidth_type))) && (((RuntimeType.NUMBER == dirtyHeight_type)) || ((RuntimeType.STRING == dirtyHeight_type)))) { + if (((RuntimeType.NUMBER == dx_type) || (RuntimeType.STRING == dx_type)) && ((RuntimeType.NUMBER == dy_type) || (RuntimeType.STRING == dy_type)) && ((RuntimeType.NUMBER == dirtyX_type) || (RuntimeType.STRING == dirtyX_type)) && ((RuntimeType.NUMBER == dirtyY_type) || (RuntimeType.STRING == dirtyY_type)) && ((RuntimeType.NUMBER == dirtyWidth_type) || (RuntimeType.STRING == dirtyWidth_type)) && ((RuntimeType.NUMBER == dirtyHeight_type) || (RuntimeType.STRING == dirtyHeight_type))) { const imagedata_casted = imagedata as (ImageData) const dx_casted = dx as (number | string) const dy_casted = dy as (number | string) @@ -430,12 +435,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const d_type = runtimeType(d) const e_type = runtimeType(e) const f_type = runtimeType(f) - if ((((RuntimeType.OBJECT == a_type)) || ((RuntimeType.UNDEFINED == a_type))) && (((RuntimeType.UNDEFINED == b_type))) && (((RuntimeType.UNDEFINED == c_type))) && (((RuntimeType.UNDEFINED == d_type))) && (((RuntimeType.UNDEFINED == e_type))) && (((RuntimeType.UNDEFINED == f_type)))) { + if (((RuntimeType.OBJECT == a_type) || (RuntimeType.UNDEFINED == a_type)) && (RuntimeType.UNDEFINED == b_type) && (RuntimeType.UNDEFINED == c_type) && (RuntimeType.UNDEFINED == d_type) && (RuntimeType.UNDEFINED == e_type) && (RuntimeType.UNDEFINED == f_type)) { const transform_casted = a as (Matrix2D | undefined) this?.setTransform1_serialize(transform_casted) return } - if ((((RuntimeType.NUMBER == a_type))) && (((RuntimeType.NUMBER == b_type))) && (((RuntimeType.NUMBER == c_type))) && (((RuntimeType.NUMBER == d_type))) && (((RuntimeType.NUMBER == e_type))) && (((RuntimeType.NUMBER == f_type)))) { + if ((RuntimeType.NUMBER == a_type) && (RuntimeType.NUMBER == b_type) && (RuntimeType.NUMBER == c_type) && (RuntimeType.NUMBER == d_type) && (RuntimeType.NUMBER == e_type) && (RuntimeType.NUMBER == f_type)) { const a_casted = a as (number) const b_casted = b as (number) const c_casted = c as (number) @@ -648,7 +653,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const image_0 = unsafeCast(image) thisSerializer.writeImageBitmap(image_0) } - else if (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const image_1 = unsafeCast(image) thisSerializer.writePixelMap(image_1) @@ -665,7 +670,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const image_0 = unsafeCast(image) thisSerializer.writeImageBitmap(image_0) } - else if (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const image_1 = unsafeCast(image) thisSerializer.writePixelMap(image_1) @@ -682,7 +687,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const image_0 = unsafeCast(image) thisSerializer.writeImageBitmap(image_0) } - else if (((RuntimeType.OBJECT) == (image_type)) && (((image!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (image_type)) && ((image!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const image_1 = unsafeCast(image) thisSerializer.writePixelMap(image_1) @@ -802,24 +807,24 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { thisSerializer.writeImageData(imagedata) let dx_type: int32 = RuntimeType.UNDEFINED dx_type = runtimeType(dx) - if (((RuntimeType.NUMBER == dx_type))) { + if (RuntimeType.NUMBER == dx_type) { thisSerializer.writeInt8(0) const dx_0 = unsafeCast(dx) thisSerializer.writeNumber(dx_0) } - else if (((RuntimeType.STRING == dx_type))) { + else if (RuntimeType.STRING == dx_type) { thisSerializer.writeInt8(1) const dx_1 = unsafeCast(dx) thisSerializer.writeString(dx_1) } let dy_type: int32 = RuntimeType.UNDEFINED dy_type = runtimeType(dy) - if (((RuntimeType.NUMBER == dy_type))) { + if (RuntimeType.NUMBER == dy_type) { thisSerializer.writeInt8(0) const dy_0 = unsafeCast(dy) thisSerializer.writeNumber(dy_0) } - else if (((RuntimeType.STRING == dy_type))) { + else if (RuntimeType.STRING == dy_type) { thisSerializer.writeInt8(1) const dy_1 = unsafeCast(dy) thisSerializer.writeString(dy_1) @@ -832,72 +837,72 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { thisSerializer.writeImageData(imagedata) let dx_type: int32 = RuntimeType.UNDEFINED dx_type = runtimeType(dx) - if (((RuntimeType.NUMBER == dx_type))) { + if (RuntimeType.NUMBER == dx_type) { thisSerializer.writeInt8(0) const dx_0 = unsafeCast(dx) thisSerializer.writeNumber(dx_0) } - else if (((RuntimeType.STRING == dx_type))) { + else if (RuntimeType.STRING == dx_type) { thisSerializer.writeInt8(1) const dx_1 = unsafeCast(dx) thisSerializer.writeString(dx_1) } let dy_type: int32 = RuntimeType.UNDEFINED dy_type = runtimeType(dy) - if (((RuntimeType.NUMBER == dy_type))) { + if (RuntimeType.NUMBER == dy_type) { thisSerializer.writeInt8(0) const dy_0 = unsafeCast(dy) thisSerializer.writeNumber(dy_0) } - else if (((RuntimeType.STRING == dy_type))) { + else if (RuntimeType.STRING == dy_type) { thisSerializer.writeInt8(1) const dy_1 = unsafeCast(dy) thisSerializer.writeString(dy_1) } let dirtyX_type: int32 = RuntimeType.UNDEFINED dirtyX_type = runtimeType(dirtyX) - if (((RuntimeType.NUMBER == dirtyX_type))) { + if (RuntimeType.NUMBER == dirtyX_type) { thisSerializer.writeInt8(0) const dirtyX_0 = unsafeCast(dirtyX) thisSerializer.writeNumber(dirtyX_0) } - else if (((RuntimeType.STRING == dirtyX_type))) { + else if (RuntimeType.STRING == dirtyX_type) { thisSerializer.writeInt8(1) const dirtyX_1 = unsafeCast(dirtyX) thisSerializer.writeString(dirtyX_1) } let dirtyY_type: int32 = RuntimeType.UNDEFINED dirtyY_type = runtimeType(dirtyY) - if (((RuntimeType.NUMBER == dirtyY_type))) { + if (RuntimeType.NUMBER == dirtyY_type) { thisSerializer.writeInt8(0) const dirtyY_0 = unsafeCast(dirtyY) thisSerializer.writeNumber(dirtyY_0) } - else if (((RuntimeType.STRING == dirtyY_type))) { + else if (RuntimeType.STRING == dirtyY_type) { thisSerializer.writeInt8(1) const dirtyY_1 = unsafeCast(dirtyY) thisSerializer.writeString(dirtyY_1) } let dirtyWidth_type: int32 = RuntimeType.UNDEFINED dirtyWidth_type = runtimeType(dirtyWidth) - if (((RuntimeType.NUMBER == dirtyWidth_type))) { + if (RuntimeType.NUMBER == dirtyWidth_type) { thisSerializer.writeInt8(0) const dirtyWidth_0 = unsafeCast(dirtyWidth) thisSerializer.writeNumber(dirtyWidth_0) } - else if (((RuntimeType.STRING == dirtyWidth_type))) { + else if (RuntimeType.STRING == dirtyWidth_type) { thisSerializer.writeInt8(1) const dirtyWidth_1 = unsafeCast(dirtyWidth) thisSerializer.writeString(dirtyWidth_1) } let dirtyHeight_type: int32 = RuntimeType.UNDEFINED dirtyHeight_type = runtimeType(dirtyHeight) - if (((RuntimeType.NUMBER == dirtyHeight_type))) { + if (RuntimeType.NUMBER == dirtyHeight_type) { thisSerializer.writeInt8(0) const dirtyHeight_0 = unsafeCast(dirtyHeight) thisSerializer.writeNumber(dirtyHeight_0) } - else if (((RuntimeType.STRING == dirtyHeight_type))) { + else if (RuntimeType.STRING == dirtyHeight_type) { thisSerializer.writeInt8(1) const dirtyHeight_1 = unsafeCast(dirtyHeight) thisSerializer.writeString(dirtyHeight_1) @@ -948,7 +953,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { } private measureText_serialize(text: string): TextMetrics { const retval = ArkUIGeneratedNativeModule._CanvasRenderer_measureText(this.peer!.ptr, text) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readTextMetrics() } private strokeText_serialize(text: string, x: number, y: number, maxWidth?: number): void { const thisSerializer: Serializer = Serializer.hold() @@ -1041,12 +1046,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let fillStyle_type: int32 = RuntimeType.UNDEFINED fillStyle_type = runtimeType(fillStyle) - if (((RuntimeType.STRING == fillStyle_type))) { + if (RuntimeType.STRING == fillStyle_type) { thisSerializer.writeInt8(0) const fillStyle_0 = unsafeCast(fillStyle) thisSerializer.writeString(fillStyle_0) } - else if (((RuntimeType.NUMBER == fillStyle_type))) { + else if (RuntimeType.NUMBER == fillStyle_type) { thisSerializer.writeInt8(1) const fillStyle_1 = unsafeCast(fillStyle) thisSerializer.writeNumber(fillStyle_1) @@ -1056,7 +1061,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const fillStyle_2 = unsafeCast(fillStyle) thisSerializer.writeCanvasGradient(fillStyle_2) } - else if (((RuntimeType.OBJECT == fillStyle_type))) { + else if (RuntimeType.OBJECT == fillStyle_type) { thisSerializer.writeInt8(3) const fillStyle_3 = unsafeCast(fillStyle) thisSerializer.writeCanvasPattern(fillStyle_3) @@ -1068,12 +1073,12 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let strokeStyle_type: int32 = RuntimeType.UNDEFINED strokeStyle_type = runtimeType(strokeStyle) - if (((RuntimeType.STRING == strokeStyle_type))) { + if (RuntimeType.STRING == strokeStyle_type) { thisSerializer.writeInt8(0) const strokeStyle_0 = unsafeCast(strokeStyle) thisSerializer.writeString(strokeStyle_0) } - else if (((RuntimeType.NUMBER == strokeStyle_type))) { + else if (RuntimeType.NUMBER == strokeStyle_type) { thisSerializer.writeInt8(1) const strokeStyle_1 = unsafeCast(strokeStyle) thisSerializer.writeNumber(strokeStyle_1) @@ -1083,7 +1088,7 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { const strokeStyle_2 = unsafeCast(strokeStyle) thisSerializer.writeCanvasGradient(strokeStyle_2) } - else if (((RuntimeType.OBJECT == strokeStyle_type))) { + else if (RuntimeType.OBJECT == strokeStyle_type) { thisSerializer.writeInt8(3) const strokeStyle_3 = unsafeCast(strokeStyle) thisSerializer.writeCanvasPattern(strokeStyle_3) @@ -1204,10 +1209,3 @@ export class CanvasRenderer extends CanvasPath implements MaterializedBase { ArkUIGeneratedNativeModule._CanvasRenderer_setTextBaseline(this.peer!.ptr, textBaseline) } } -export class CanvasRendererInternal { - public static fromPtr(ptr: KPointer): CanvasRenderer { - const obj: CanvasRenderer = new CanvasRenderer() - obj.peer = new Finalizable(ptr, CanvasRenderer.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts rename to arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts index 66d72c5111256af9a9d7f5d7ade618d6bb602ddc..7adb134a574d0a5f7125e7ea2536ae4ca7b51296 100644 --- a/arkoala/arkui/src/ArkCanvasRenderingContext2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCanvasRenderingContext2DMaterialized.ts @@ -31,15 +31,20 @@ import { RenderingContextSettings, RenderingContextSettingsInternal } from "./Ar import { LengthMetricsUnit, Position, Length } from "./ArkUnitsInterfaces" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" import { UIContext } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CanvasRenderingContext2DInternal { + public static fromPtr(ptr: KPointer): CanvasRenderingContext2D { + const obj: CanvasRenderingContext2D = new CanvasRenderingContext2D(undefined) + obj.peer = new Finalizable(ptr, CanvasRenderingContext2D.getFinalizer()) + return obj + } +} export class CanvasRenderingContext2D extends CanvasRenderer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -54,7 +59,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material get canvas(): FrameNode { throw new Error("Not implemented") } - static ctor(settings?: RenderingContextSettings): KPointer { + static ctor_canvasrenderingcontext2d(settings?: RenderingContextSettings): KPointer { const thisSerializer: Serializer = Serializer.hold() let settings_type: int32 = RuntimeType.UNDEFINED settings_type = runtimeType(settings) @@ -69,15 +74,15 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material } constructor(settings?: RenderingContextSettings) { super() - const ctorPtr: KPointer = CanvasRenderingContext2D.ctor(settings) + const ctorPtr: KPointer = CanvasRenderingContext2D.ctor_canvasrenderingcontext2d(settings) this.peer = new Finalizable(ctorPtr, CanvasRenderingContext2D.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._CanvasRenderingContext2D_getFinalizer() } - public toDataURL(type?: string, quality?: number): string { + public toDataURL(type?: string, quality?: float32): string { const type_casted = type as (string | undefined) - const quality_casted = quality as (number | undefined) + const quality_casted = quality as (float32 | undefined) return this.toDataURL_serialize(type_casted, quality_casted) } public startImageAnalyzer(config: ImageAnalyzerConfig): Promise { @@ -120,7 +125,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material off(type: string, callback_: (() => void)): void { throw new Error("TBD") } - private toDataURL_serialize(type?: string, quality?: number): string { + private toDataURL_serialize(type?: string, quality?: float32): string { const thisSerializer: Serializer = Serializer.hold() let type_type: int32 = RuntimeType.UNDEFINED type_type = runtimeType(type) @@ -134,7 +139,7 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material thisSerializer.writeInt8(quality_type) if ((RuntimeType.UNDEFINED) != (quality_type)) { const quality_value = quality! - thisSerializer.writeNumber(quality_value) + thisSerializer.writeFloat32(quality_value) } const retval = ArkUIGeneratedNativeModule._CanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() @@ -196,10 +201,3 @@ export class CanvasRenderingContext2D extends CanvasRenderer implements Material return retval } } -export class CanvasRenderingContext2DInternal { - public static fromPtr(ptr: KPointer): CanvasRenderingContext2D { - const obj: CanvasRenderingContext2D = new CanvasRenderingContext2D(undefined) - obj.peer = new Finalizable(ptr, CanvasRenderingContext2D.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCheckbox.ts b/arkoala/arkui/src/generated/ArkCheckbox.ts similarity index 98% rename from arkoala/arkui/src/ArkCheckbox.ts rename to arkoala/arkui/src/generated/ArkCheckbox.ts index 971329daa6a06fd5cfe71cf029ac4aa280caa76e..1855697b71ab761727fd56976c4b36cf6bdaabbf 100644 --- a/arkoala/arkui/src/ArkCheckbox.ts +++ b/arkoala/arkui/src/generated/ArkCheckbox.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxPeer } from "./peers/ArkCheckboxPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCheckboxInterfaces.ts b/arkoala/arkui/src/generated/ArkCheckboxInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCheckboxInterfaces.ts rename to arkoala/arkui/src/generated/ArkCheckboxInterfaces.ts index b250d39fd869549b1de4b4461463f79cec9db113..e4a7b2dea749681561aa71be02b36791c9a353d4 100644 --- a/arkoala/arkui/src/ArkCheckboxInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCheckboxInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCheckboxgroup.ts b/arkoala/arkui/src/generated/ArkCheckboxgroup.ts similarity index 97% rename from arkoala/arkui/src/ArkCheckboxgroup.ts rename to arkoala/arkui/src/generated/ArkCheckboxgroup.ts index df435783bfaac08088ee1e963a1d6f019dc73bee..6b8527f87f7237e7092a84803591879557241ebe 100644 --- a/arkoala/arkui/src/ArkCheckboxgroup.ts +++ b/arkoala/arkui/src/generated/ArkCheckboxgroup.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCheckboxGroupPeer } from "./peers/ArkCheckboxgroupPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCheckboxgroupInterfaces.ts b/arkoala/arkui/src/generated/ArkCheckboxgroupInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCheckboxgroupInterfaces.ts rename to arkoala/arkui/src/generated/ArkCheckboxgroupInterfaces.ts index 329f9c3eb3e1899dc87a5cd52e259c81827f2a7c..51878222689929356842084b1156291fd3c769e8 100644 --- a/arkoala/arkui/src/ArkCheckboxgroupInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCheckboxgroupInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts b/arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts rename to arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts index bb3e70a436ce30b250a7382316ecee9e7ae5ca5f..9d39e5ca279e2fbeefeb5192aa319d1ecbdcece5 100644 --- a/arkoala/arkui/src/ArkChildrenMainSizeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkChildrenMainSizeMaterialized.ts @@ -16,15 +16,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ChildrenMainSizeInternal { + public static fromPtr(ptr: KPointer): ChildrenMainSize { + const obj: ChildrenMainSize = new ChildrenMainSize(undefined) + obj.peer = new Finalizable(ptr, ChildrenMainSize.getFinalizer()) + return obj + } +} export class ChildrenMainSize implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,14 +41,14 @@ export class ChildrenMainSize implements MaterializedBase { set childDefaultSize(childDefaultSize: number) { this.setChildDefaultSize(childDefaultSize) } - static ctor(childDefaultSize: number): KPointer { + static ctor_childrenmainsize(childDefaultSize: number): KPointer { const retval = ArkUIGeneratedNativeModule._ChildrenMainSize_ctor(childDefaultSize) return retval } constructor(childDefaultSize?: number) { - if (((childDefaultSize) !== (undefined))) + if ((childDefaultSize) !== (undefined)) { - const ctorPtr: KPointer = ChildrenMainSize.ctor(childDefaultSize) + const ctorPtr: KPointer = ChildrenMainSize.ctor_childrenmainsize(childDefaultSize) this.peer = new Finalizable(ctorPtr, ChildrenMainSize.getFinalizer()) } } @@ -105,10 +110,3 @@ export class ChildrenMainSize implements MaterializedBase { ArkUIGeneratedNativeModule._ChildrenMainSize_setChildDefaultSize(this.peer!.ptr, childDefaultSize) } } -export class ChildrenMainSizeInternal { - public static fromPtr(ptr: KPointer): ChildrenMainSize { - const obj: ChildrenMainSize = new ChildrenMainSize(undefined) - obj.peer = new Finalizable(ptr, ChildrenMainSize.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCircle.ts b/arkoala/arkui/src/generated/ArkCircle.ts similarity index 97% rename from arkoala/arkui/src/ArkCircle.ts rename to arkoala/arkui/src/generated/ArkCircle.ts index 750dcc522a30fbfc127e0ce9314dfef4eed5839b..e86c9986ab5c94d40a2f483bada1d4fcde6e53df 100644 --- a/arkoala/arkui/src/ArkCircle.ts +++ b/arkoala/arkui/src/generated/ArkCircle.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkCirclePeer } from "./peers/ArkCirclePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCircleInterfaces.ts b/arkoala/arkui/src/generated/ArkCircleInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCircleInterfaces.ts rename to arkoala/arkui/src/generated/ArkCircleInterfaces.ts index 3bd2ca391f773eb4247cbe71300c018756e39758..7f4b20d2912c1e35b2d3cedabb61dd674dfe2d29 100644 --- a/arkoala/arkui/src/ArkCircleInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCircleInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkClickEventMaterialized.ts b/arkoala/arkui/src/generated/ArkClickEventMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkClickEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkClickEventMaterialized.ts index 3fcdcce13c449f7a3d608c8bc57817cbb30e6120..3a6def6ebdbbbf623d28d949251b1eb1924b3c74 100644 --- a/arkoala/arkui/src/ArkClickEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkClickEventMaterialized.ts @@ -19,12 +19,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -98,13 +97,13 @@ export class ClickEventInternal extends BaseEventInternal implements Materialize set preventDefault(preventDefault: (() => void)) { this.setPreventDefault(preventDefault) } - static ctor(): KPointer { + static ctor_clickevent(): KPointer { const retval = ArkUIGeneratedNativeModule._ClickEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = ClickEventInternal.ctor() + const ctorPtr: KPointer = ClickEventInternal.ctor_clickevent() this.peer = new Finalizable(ctorPtr, ClickEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts index dc7919562c9ffc035872dfbe0e73f3775b45c8d8..5698e63d275cf14d3aa8f3cc28086c51fd7c798b 100644 --- a/arkoala/arkui/src/ArkClientAuthenticationHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkClientAuthenticationHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ClientAuthenticationHandlerInternal { + public static fromPtr(ptr: KPointer): ClientAuthenticationHandler { + const obj: ClientAuthenticationHandler = new ClientAuthenticationHandler() + obj.peer = new Finalizable(ptr, ClientAuthenticationHandler.getFinalizer()) + return obj + } +} export class ClientAuthenticationHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_clientauthenticationhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ClientAuthenticationHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = ClientAuthenticationHandler.ctor() + const ctorPtr: KPointer = ClientAuthenticationHandler.ctor_clientauthenticationhandler() this.peer = new Finalizable(ctorPtr, ClientAuthenticationHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -44,12 +49,12 @@ export class ClientAuthenticationHandler implements MaterializedBase { public confirm(priKeyFile: string, certChainFile?: string): void { const priKeyFile_type = runtimeType(priKeyFile) const certChainFile_type = runtimeType(certChainFile) - if ((((RuntimeType.UNDEFINED == certChainFile_type)))) { + if (RuntimeType.UNDEFINED == certChainFile_type) { const authUri_casted = priKeyFile as (string) this?.confirm1_serialize(authUri_casted) return } - if ((((RuntimeType.STRING == certChainFile_type)))) { + if (RuntimeType.STRING == certChainFile_type) { const priKeyFile_casted = priKeyFile as (string) const certChainFile_casted = certChainFile as (string) this?.confirm0_serialize(priKeyFile_casted, certChainFile_casted) @@ -78,10 +83,3 @@ export class ClientAuthenticationHandler implements MaterializedBase { ArkUIGeneratedNativeModule._ClientAuthenticationHandler_ignore(this.peer!.ptr) } } -export class ClientAuthenticationHandlerInternal { - public static fromPtr(ptr: KPointer): ClientAuthenticationHandler { - const obj: ClientAuthenticationHandler = new ClientAuthenticationHandler() - obj.peer = new Finalizable(ptr, ClientAuthenticationHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkColorFilterMaterialized.ts b/arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts similarity index 87% rename from arkoala/arkui/src/ArkColorFilterMaterialized.ts rename to arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts index b94bac485feb84e603645432572a6263bc00c6a4..18bec7439bf694f30c19cb5f51ff81cda0b54024 100644 --- a/arkoala/arkui/src/ArkColorFilterMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkColorFilterMaterialized.ts @@ -16,21 +16,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ColorFilterInternal { + public static fromPtr(ptr: KPointer): ColorFilter { + const obj: ColorFilter = new ColorFilter(undefined) + obj.peer = new Finalizable(ptr, ColorFilter.getFinalizer()) + return obj + } +} export class ColorFilter implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: Array): KPointer { + static ctor_colorfilter(value: Array): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(value.length) for (let i = 0; i < value.length; i++) { @@ -42,9 +47,9 @@ export class ColorFilter implements MaterializedBase { return retval } constructor(value?: Array) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = ColorFilter.ctor(value) + const ctorPtr: KPointer = ColorFilter.ctor_colorfilter(value) this.peer = new Finalizable(ctorPtr, ColorFilter.getFinalizer()) } } @@ -52,10 +57,3 @@ export class ColorFilter implements MaterializedBase { return ArkUIGeneratedNativeModule._ColorFilter_getFinalizer() } } -export class ColorFilterInternal { - public static fromPtr(ptr: KPointer): ColorFilter { - const obj: ColorFilter = new ColorFilter(undefined) - obj.peer = new Finalizable(ptr, ColorFilter.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkColumn.ts b/arkoala/arkui/src/generated/ArkColumn.ts similarity index 97% rename from arkoala/arkui/src/ArkColumn.ts rename to arkoala/arkui/src/generated/ArkColumn.ts index 25918358ad363bb9bf637f858553a87c9947ef00..ee26191998daa2cb04bd4b1d999754953a05d1b8 100644 --- a/arkoala/arkui/src/ArkColumn.ts +++ b/arkoala/arkui/src/generated/ArkColumn.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnPeer } from "./peers/ArkColumnPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkColumnInterfaces.ts b/arkoala/arkui/src/generated/ArkColumnInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkColumnInterfaces.ts rename to arkoala/arkui/src/generated/ArkColumnInterfaces.ts index de314d67f37943c6a59c18ba393c68d5832d83d4..88a0fca33e428e839d34b7b845654eaedc414d3c 100644 --- a/arkoala/arkui/src/ArkColumnInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkColumnInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkColumnSplit.ts b/arkoala/arkui/src/generated/ArkColumnSplit.ts similarity index 97% rename from arkoala/arkui/src/ArkColumnSplit.ts rename to arkoala/arkui/src/generated/ArkColumnSplit.ts index bf7ed7934de464b57751aa01de735e1c6cbbbb68..6298dcb2b09de672388f5638895ad1fc47f898e5 100644 --- a/arkoala/arkui/src/ArkColumnSplit.ts +++ b/arkoala/arkui/src/generated/ArkColumnSplit.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkColumnSplitPeer } from "./peers/ArkColumnSplitPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkColumnSplitInterfaces.ts b/arkoala/arkui/src/generated/ArkColumnSplitInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkColumnSplitInterfaces.ts rename to arkoala/arkui/src/generated/ArkColumnSplitInterfaces.ts index 259674358b235a0df0be0a4aba5ee86050adc734..58eaa40f3d6fde56eedfa2e02ad7714255c64124 100644 --- a/arkoala/arkui/src/ArkColumnSplitInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkColumnSplitInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCommon.ts b/arkoala/arkui/src/generated/ArkCommon.ts similarity index 95% rename from arkoala/arkui/src/ArkCommon.ts rename to arkoala/arkui/src/generated/ArkCommon.ts index c2baa4f422af382e28aba9907652718f48efeb0f..fe67f23e5afb49738d658d6e05fa042101a4322e 100644 --- a/arkoala/arkui/src/ArkCommon.ts +++ b/arkoala/arkui/src/generated/ArkCommon.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodPeer, ArkCommonShapeMethodPeer, ArkCommonPeer, ArkScrollableCommonMethodPeer } from "./peers/ArkCommonPeer" import { UseEventsProperties } from "./use_properties" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./ArkUnitsInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -414,13 +413,13 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("onClick")) { const event_type = runtimeType(event) const distanceThreshold_type = runtimeType(distanceThreshold) - if ((((RuntimeType.UNDEFINED == distanceThreshold_type)))) { + if (RuntimeType.UNDEFINED == distanceThreshold_type) { const value_casted = event as (((event: ClickEvent) => void)) UseEventsProperties({CommonMethod_onClick0: value_casted}) this.getPeer()?.onClick0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER == distanceThreshold_type)))) { + if (RuntimeType.NUMBER == distanceThreshold_type) { const event_casted = event as (((event: ClickEvent) => void)) const distanceThreshold_casted = distanceThreshold as (number) UseEventsProperties({CommonMethod_onClick1: event_casted}) @@ -588,12 +587,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("transition")) { const effect_type = runtimeType(effect) const onFinish_type = runtimeType(onFinish) - if (((((RuntimeType.OBJECT) == (effect_type)) && (((effect!.hasOwnProperty("type")) || (effect!.hasOwnProperty("opacity")) || (effect!.hasOwnProperty("translate")) || (effect!.hasOwnProperty("scale")) || (effect!.hasOwnProperty("rotate"))))) || (((RuntimeType.OBJECT) == (effect_type)) && (effect instanceof TransitionEffect))) && (((RuntimeType.UNDEFINED == onFinish_type)))) { + if (((((RuntimeType.OBJECT) == (effect_type)) && (((effect!.hasOwnProperty("type")) || (effect!.hasOwnProperty("opacity")) || (effect!.hasOwnProperty("translate")) || (effect!.hasOwnProperty("scale")) || (effect!.hasOwnProperty("rotate"))))) || (((RuntimeType.OBJECT) == (effect_type)) && (effect instanceof TransitionEffect))) && (RuntimeType.UNDEFINED == onFinish_type)) { const value_casted = effect as (TransitionOptions | TransitionEffect) this.getPeer()?.transition0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (effect_type)) && (effect instanceof TransitionEffect)) && (((RuntimeType.FUNCTION == onFinish_type)) || ((RuntimeType.UNDEFINED == onFinish_type)))) { + if ((((RuntimeType.OBJECT) == (effect_type)) && (effect instanceof TransitionEffect)) && ((RuntimeType.FUNCTION == onFinish_type) || (RuntimeType.UNDEFINED == onFinish_type))) { const effect_casted = effect as (TransitionEffect) const onFinish_casted = onFinish as (TransitionFinishCallback | undefined) this.getPeer()?.transition1Attribute(effect_casted, onFinish_casted) @@ -698,12 +697,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("useEffect")) { const useEffect_type = runtimeType(useEffect) const effectType_type = runtimeType(effectType) - if ((((RuntimeType.UNDEFINED == effectType_type)))) { + if (RuntimeType.UNDEFINED == effectType_type) { const value_casted = useEffect as (boolean) this.getPeer()?.useEffect0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER == effectType_type)))) { + if (RuntimeType.NUMBER == effectType_type) { const useEffect_casted = useEffect as (boolean) const effectType_casted = effectType as (EffectType) this.getPeer()?.useEffect1Attribute(useEffect_casted, effectType_casted) @@ -965,12 +964,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public alignRules(value: AlignRuleOption | LocalizedAlignRuleOptions): this { if (this.checkPriority("alignRules")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("left")) || (value!.hasOwnProperty("right")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("left")) || (value!.hasOwnProperty("right"))))) { const value_casted = value as (AlignRuleOption) this.getPeer()?.alignRules0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("start")) || (value!.hasOwnProperty("end")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("start")) || (value!.hasOwnProperty("end"))))) { const value_casted = value as (LocalizedAlignRuleOptions) this.getPeer()?.alignRules1Attribute(value_casted) return this @@ -1143,12 +1142,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public clip(value?: boolean): this { if (this.checkPriority("clip")) { const value_type = runtimeType(value) - if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.BOOLEAN == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (boolean | undefined) this.getPeer()?.clip0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.BOOLEAN == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (boolean | undefined) this.getPeer()?.clip1Attribute(value_casted) return this @@ -1170,12 +1169,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public mask(value?: ProgressMask): this { if (this.checkPriority("mask")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ProgressMask | undefined) this.getPeer()?.mask1Attribute(value_casted) return this @@ -1216,12 +1215,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("geometryTransition")) { const id_type = runtimeType(id) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { const value_casted = id as (string) this.getPeer()?.geometryTransition0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type)) { const id_casted = id as (string) const options_casted = options as (GeometryTransitionOptions | undefined) this.getPeer()?.geometryTransition1Attribute(id_casted, options_casted) @@ -1281,12 +1280,12 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("accessibilityGroup")) { const isGroup_type = runtimeType(isGroup) const accessibilityOptions_type = runtimeType(accessibilityOptions) - if ((((RuntimeType.UNDEFINED == accessibilityOptions_type)))) { + if (RuntimeType.UNDEFINED == accessibilityOptions_type) { const value_casted = isGroup as (boolean) this.getPeer()?.accessibilityGroup0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == accessibilityOptions_type)))) { + if (RuntimeType.OBJECT == accessibilityOptions_type) { const isGroup_casted = isGroup as (boolean) const accessibilityOptions_casted = accessibilityOptions as (AccessibilityOptions) this.getPeer()?.accessibilityGroup1Attribute(isGroup_casted, accessibilityOptions_casted) @@ -1300,12 +1299,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public accessibilityText(value: string | Resource): this { if (this.checkPriority("accessibilityText")) { const value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type)))) { + if (RuntimeType.STRING == value_type) { const value_casted = value as (string) this.getPeer()?.accessibilityText0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Resource) this.getPeer()?.accessibilityText1Attribute(value_casted) return this @@ -1327,12 +1326,12 @@ export class ArkCommonMethodComponent extends ComponentBase { public accessibilityDescription(value: string | Resource): this { if (this.checkPriority("accessibilityDescription")) { const value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type)))) { + if (RuntimeType.STRING == value_type) { const value_casted = value as (string) this.getPeer()?.accessibilityDescription0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (Resource) this.getPeer()?.accessibilityDescription1Attribute(value_casted) return this @@ -1438,13 +1437,13 @@ export class ArkCommonMethodComponent extends ComponentBase { if (this.checkPriority("onGestureRecognizerJudgeBegin")) { const callback__type = runtimeType(callback_) const exposeInnerGesture_type = runtimeType(exposeInnerGesture) - if ((((RuntimeType.UNDEFINED == exposeInnerGesture_type)))) { + if (RuntimeType.UNDEFINED == exposeInnerGesture_type) { const value_casted = callback_ as (GestureRecognizerJudgeBeginCallback) UseEventsProperties({CommonMethod_onGestureRecognizerJudgeBegin0: value_casted}) this.getPeer()?.onGestureRecognizerJudgeBegin0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == exposeInnerGesture_type)))) { + if (RuntimeType.BOOLEAN == exposeInnerGesture_type) { const callback__casted = callback_ as (GestureRecognizerJudgeBeginCallback) const exposeInnerGesture_casted = exposeInnerGesture as (boolean) UseEventsProperties({CommonMethod_onGestureRecognizerJudgeBegin1: callback__casted}) @@ -1561,13 +1560,13 @@ export class ArkCommonMethodComponent extends ComponentBase { const id_type = runtimeType(id) const isGroup_type = runtimeType(isGroup) const arrowStepOut_type = runtimeType(arrowStepOut) - if ((((RuntimeType.BOOLEAN == isGroup_type)) || ((RuntimeType.UNDEFINED == isGroup_type))) && (((RuntimeType.UNDEFINED == arrowStepOut_type)))) { + if (((RuntimeType.BOOLEAN == isGroup_type) || (RuntimeType.UNDEFINED == isGroup_type)) && (RuntimeType.UNDEFINED == arrowStepOut_type)) { const id_casted = id as (string) const isGroup_casted = isGroup as (boolean | undefined) this.getPeer()?.focusScopeId0Attribute(id_casted, isGroup_casted) return this } - if ((((RuntimeType.BOOLEAN == isGroup_type)) || ((RuntimeType.UNDEFINED == isGroup_type))) && (((RuntimeType.BOOLEAN == arrowStepOut_type)) || ((RuntimeType.UNDEFINED == arrowStepOut_type)))) { + if (((RuntimeType.BOOLEAN == isGroup_type) || (RuntimeType.UNDEFINED == isGroup_type)) && ((RuntimeType.BOOLEAN == arrowStepOut_type) || (RuntimeType.UNDEFINED == arrowStepOut_type))) { const id_casted = id as (string) const isGroup_casted = isGroup as (boolean | undefined) const arrowStepOut_casted = arrowStepOut as (boolean | undefined) @@ -1732,13 +1731,13 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_type = runtimeType(isShow) const content_type = runtimeType(content) const options_type = runtimeType(options) - if ((((RuntimeType.OBJECT == isShow_type)) || ((RuntimeType.FUNCTION == isShow_type))) && (((RuntimeType.OBJECT == content_type)) || ((RuntimeType.UNDEFINED == content_type))) && (((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.OBJECT == isShow_type) || (RuntimeType.FUNCTION == isShow_type)) && ((RuntimeType.OBJECT == content_type) || (RuntimeType.UNDEFINED == content_type)) && (RuntimeType.UNDEFINED == options_type)) { const content_casted = isShow as (Array | CustomBuilder) const options_casted = content as (MenuOptions | undefined) this.getPeer()?.bindMenu0Attribute(content_casted, options_casted) return this } - if ((((RuntimeType.BOOLEAN == isShow_type))) && ((((RuntimeType.OBJECT == content_type))) || (((RuntimeType.FUNCTION == content_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.BOOLEAN == isShow_type) && ((RuntimeType.OBJECT == content_type) || (RuntimeType.FUNCTION == content_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const isShow_casted = isShow as (boolean) const content_casted = content as (Array | CustomBuilder) const options_casted = options as (MenuOptions | undefined) @@ -1755,7 +1754,7 @@ export class ArkCommonMethodComponent extends ComponentBase { const content_type = runtimeType(content) const responseType_type = runtimeType(responseType) const options_type = runtimeType(options) - if ((((RuntimeType.FUNCTION == content_type))) && (((RuntimeType.NUMBER == responseType_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.FUNCTION == content_type) && (RuntimeType.NUMBER == responseType_type) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const content_casted = content as (CustomBuilder) const responseType_casted = responseType as (ResponseType) const options_casted = options as (ContextMenuOptions | undefined) @@ -1763,7 +1762,7 @@ export class ArkCommonMethodComponent extends ComponentBase { this.getPeer()?.bindContextMenu0Attribute(content_casted, responseType_casted, options_casted) return this } - if ((((RuntimeType.BOOLEAN == content_type))) && (((RuntimeType.FUNCTION == responseType_type))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.BOOLEAN == content_type) && (RuntimeType.FUNCTION == responseType_type) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const isShown_casted = content as (boolean) const content_casted = responseType as (CustomBuilder) const options_casted = options as (ContextMenuOptions | undefined) @@ -1781,7 +1780,7 @@ export class ArkCommonMethodComponent extends ComponentBase { const isShow_type = runtimeType(isShow) const builder_type = runtimeType(builder) const type_type = runtimeType(type) - if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.NUMBER == type_type)) || ((RuntimeType.UNDEFINED == type_type)))) { + if (((RuntimeType.BOOLEAN == isShow_type) || (RuntimeType.UNDEFINED == isShow_type)) && ((RuntimeType.NUMBER == type_type) || (RuntimeType.UNDEFINED == type_type))) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const type_casted = type as (ModalTransition | undefined) @@ -1789,7 +1788,7 @@ export class ArkCommonMethodComponent extends ComponentBase { this.getPeer()?.bindContentCover0Attribute(isShow_casted, builder_casted, type_casted) return this } - if ((((RuntimeType.BOOLEAN == isShow_type)) || ((RuntimeType.UNDEFINED == isShow_type))) && (((RuntimeType.OBJECT == type_type)) || ((RuntimeType.UNDEFINED == type_type)))) { + if (((RuntimeType.BOOLEAN == isShow_type) || (RuntimeType.UNDEFINED == isShow_type)) && ((RuntimeType.OBJECT == type_type) || (RuntimeType.UNDEFINED == type_type))) { const isShow_casted = isShow as (boolean | undefined) const builder_casted = builder as (CustomBuilder) const options_casted = type as (ContentCoverOptions | undefined) diff --git a/arkoala/arkui/src/ArkCommonInterfaces.ts b/arkoala/arkui/src/generated/ArkCommonInterfaces.ts similarity index 97% rename from arkoala/arkui/src/ArkCommonInterfaces.ts rename to arkoala/arkui/src/generated/ArkCommonInterfaces.ts index f5b2e1f9a34c07ab2ecd1b37bd348a1a673e8a7a..7b98707e56fdb0933deabb8e9f660bc365a30cc4 100644 --- a/arkoala/arkui/src/ArkCommonInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCommonInterfaces.ts @@ -21,10 +21,10 @@ import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/int import { NodeAttach, remember } from "@koalaui/runtime" import { TextDecorationType, TextDecorationStyle, Curve, PlayMode, SharedTransitionEffectType, HorizontalAlign, VerticalAlign, TransitionType, FontWeight, FontStyle, Color, ColoringStrategy, GradientDirection, TouchType, BorderStyle, Placement, ArrowPointPosition, ClickEffectLevel, NestedScrollMode, HitTestMode, ImageSize, Alignment, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, MouseButton, MouseAction, KeyType, KeySource, LineCapStyle, LineJoinStyle, BarState, EdgeEffect, IlluminatedType, AccessibilityHoverType } from "./ArkEnumsInterfaces" import { ResourceColor, Length, Bias, Area, Position, Font, BorderRadiuses, EdgeWidths, LocalizedEdgeWidths, SizeOptions, ResourceStr, Dimension, EdgeColors, LocalizedEdgeColors, EdgeStyles, LocalizedBorderRadiuses, Margin, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, EdgeWidth } from "./ArkUnitsInterfaces" +import { Resource } from "./ArkResourceInterfaces" import { ICurve } from "./ArkICurveMaterialized" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" -import { Resource } from "./ArkResourceInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" @@ -38,7 +38,7 @@ import { DrawModifier } from "./ArkDrawModifierMaterialized" import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { ClickEvent } from "./ArkClickEventMaterialized" import { HoverEvent } from "./ArkHoverEventMaterialized" @@ -69,9 +69,11 @@ export interface ProvideOptions { } export interface AnimatableArithmetic { } +declare function getContext(arg0: Object): Context export interface Context { _ContextStub: string; } +declare function postCardAction(arg0: Object, arg1: Object): void export interface Configuration { colorMode: string; fontScale: number; @@ -87,6 +89,8 @@ export interface ExpectedFrameRateRange { max: number; expected: number; } +declare function dollar_r(arg0: string, arg1: Array): Resource +declare function dollar_rawfile(arg0: string): Resource export enum FinishCallbackType { REMOVED, LOGICALLY = 1, @@ -238,6 +242,14 @@ export interface DragItemInfo { builder?: CustomBuilder; extraInfo?: string; } +declare function animateTo(arg0: AnimateParam, arg1: (() => void)): void +declare function animateToImmediately(arg0: AnimateParam, arg1: (() => void)): void +declare function vp2px(arg0: number): number +declare function px2vp(arg0: number): number +declare function fp2px(arg0: number): number +declare function px2fp(arg0: number): number +declare function lpx2px(arg0: number): number +declare function px2lpx(arg0: number): number export interface EventTarget { area: Area; } diff --git a/arkoala/arkui/src/ArkCommonTsEtsApiInterfaces.ts b/arkoala/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkCommonTsEtsApiInterfaces.ts rename to arkoala/arkui/src/generated/ArkCommonTsEtsApiInterfaces.ts diff --git a/arkoala/arkui/src/ArkComponent3d.ts b/arkoala/arkui/src/generated/ArkComponent3d.ts similarity index 97% rename from arkoala/arkui/src/ArkComponent3d.ts rename to arkoala/arkui/src/generated/ArkComponent3d.ts index 611cbc1a5526b7b653371b9009dc20b2e6604a50..15cce97af5fff8da6a4deec92a7751f5c8862fdb 100644 --- a/arkoala/arkui/src/ArkComponent3d.ts +++ b/arkoala/arkui/src/generated/ArkComponent3d.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkComponent3DPeer } from "./peers/ArkComponent3dPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkComponent3dInterfaces.ts b/arkoala/arkui/src/generated/ArkComponent3dInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkComponent3dInterfaces.ts rename to arkoala/arkui/src/generated/ArkComponent3dInterfaces.ts index 58961e662975d44d910766031864c5d7f9800198..0536628925b96520ebcebe70c7a4745be91e2770 100644 --- a/arkoala/arkui/src/ArkComponent3dInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkComponent3dInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts b/arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkConsoleMessageMaterialized.ts rename to arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts index a4772167e1d495f912510cde20df65ba32be7069..c206c538d713521b0c2963a699f064a2a4dc88bc 100644 --- a/arkoala/arkui/src/ArkConsoleMessageMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkConsoleMessageMaterialized.ts @@ -17,28 +17,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { MessageLevel } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ConsoleMessageInternal { + public static fromPtr(ptr: KPointer): ConsoleMessage { + const obj: ConsoleMessage = new ConsoleMessage(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ConsoleMessage.getFinalizer()) + return obj + } +} export class ConsoleMessage implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { + static ctor_consolemessage(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel): KPointer { const retval = ArkUIGeneratedNativeModule._ConsoleMessage_ctor(message, sourceId, lineNumber, messageLevel) return retval } constructor(message?: string, sourceId?: string, lineNumber?: number, messageLevel?: MessageLevel) { if (((message) !== (undefined)) && ((sourceId) !== (undefined)) && ((lineNumber) !== (undefined)) && ((messageLevel) !== (undefined))) { - const ctorPtr: KPointer = ConsoleMessage.ctor(message, sourceId, lineNumber, messageLevel) + const ctorPtr: KPointer = ConsoleMessage.ctor_consolemessage(message, sourceId, lineNumber, messageLevel) this.peer = new Finalizable(ctorPtr, ConsoleMessage.getFinalizer()) } } @@ -74,10 +79,3 @@ export class ConsoleMessage implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ConsoleMessageInternal { - public static fromPtr(ptr: KPointer): ConsoleMessage { - const obj: ConsoleMessage = new ConsoleMessage(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ConsoleMessage.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkContainerSpan.ts b/arkoala/arkui/src/generated/ArkContainerSpan.ts similarity index 93% rename from arkoala/arkui/src/ArkContainerSpan.ts rename to arkoala/arkui/src/generated/ArkContainerSpan.ts index 5193919648799ac8d0ff50a2e44c89a3e820d76c..2b69b1c082e71b3e66787a76475a248d97e83bc6 100644 --- a/arkoala/arkui/src/ArkContainerSpan.ts +++ b/arkoala/arkui/src/generated/ArkContainerSpan.ts @@ -16,14 +16,13 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkContainerSpanPeer } from "./peers/ArkContainerSpanPeer" import { TextBackgroundStyle } from "./ArkSpanInterfaces" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { ContainerSpanAttribute } from "./ArkContainerSpanInterfaces" import { ResourceColor, Dimension, BorderRadiuses, Length } from "./ArkUnitsInterfaces" /** @memo:stable */ diff --git a/arkoala/arkui/src/ArkContainerSpanInterfaces.ts b/arkoala/arkui/src/generated/ArkContainerSpanInterfaces.ts similarity index 96% rename from arkoala/arkui/src/ArkContainerSpanInterfaces.ts rename to arkoala/arkui/src/generated/ArkContainerSpanInterfaces.ts index 15a15144f3e089613f9d1774f409b24c97992caa..7fdd7ba2233038f16e8d702b091563e3e268b570 100644 --- a/arkoala/arkui/src/ArkContainerSpanInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkContainerSpanInterfaces.ts @@ -20,7 +20,7 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" import { TextBackgroundStyle } from "./ArkSpanInterfaces" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { ResourceColor, Dimension, BorderRadiuses, Length } from "./ArkUnitsInterfaces" export type ContainerSpanInterface = () => ContainerSpanAttribute; export interface ContainerSpanAttribute { diff --git a/arkoala/arkui/src/ArkContentSlotInterfaces.ts b/arkoala/arkui/src/generated/ArkContentSlotInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkContentSlotInterfaces.ts rename to arkoala/arkui/src/generated/ArkContentSlotInterfaces.ts diff --git a/arkoala/arkui/src/ArkContextMenuMaterialized.ts b/arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkContextMenuMaterialized.ts rename to arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts index eb97c9b74ecdf73e3df207dac83a93382e14ac10..e4971e5ca8a664303d9e87f361530535494598e5 100644 --- a/arkoala/arkui/src/ArkContextMenuMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkContextMenuMaterialized.ts @@ -16,21 +16,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ContextMenuInternal { + public static fromPtr(ptr: KPointer): ContextMenu { + const obj: ContextMenu = new ContextMenu() + obj.peer = new Finalizable(ptr, ContextMenu.getFinalizer()) + return obj + } +} export class ContextMenu implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_contextmenu(): KPointer { const retval = ArkUIGeneratedNativeModule._ContextMenu_ctor() return retval } @@ -38,7 +43,7 @@ export class ContextMenu implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = ContextMenu.ctor() + const ctorPtr: KPointer = ContextMenu.ctor_contextmenu() this.peer = new Finalizable(ctorPtr, ContextMenu.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,10 +57,3 @@ export class ContextMenu implements MaterializedBase { return retval } } -export class ContextMenuInternal { - public static fromPtr(ptr: KPointer): ContextMenu { - const obj: ContextMenu = new ContextMenu() - obj.peer = new Finalizable(ptr, ContextMenu.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkControllerHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts index 4fe650371bf223888070afa0924906adc4607d14..e0495fcd014a387bc20962dac0f2d9f774a396e2 100644 --- a/arkoala/arkui/src/ArkControllerHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkControllerHandlerMaterialized.ts @@ -19,26 +19,31 @@ import { WebviewController, WebviewControllerInternal } from "./ArkWebviewControllerMaterialized" import { Resource } from "./ArkResourceInterfaces" import { WebHeader } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ControllerHandlerInternal { + public static fromPtr(ptr: KPointer): ControllerHandler { + const obj: ControllerHandler = new ControllerHandler() + obj.peer = new Finalizable(ptr, ControllerHandler.getFinalizer()) + return obj + } +} export class ControllerHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_controllerhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ControllerHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = ControllerHandler.ctor() + const ctorPtr: KPointer = ControllerHandler.ctor_controllerhandler() this.peer = new Finalizable(ctorPtr, ControllerHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class ControllerHandler implements MaterializedBase { thisSerializer.release() } } -export class ControllerHandlerInternal { - public static fromPtr(ptr: KPointer): ControllerHandler { - const obj: ControllerHandler = new ControllerHandler() - obj.peer = new Finalizable(ptr, ControllerHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCounter.ts b/arkoala/arkui/src/generated/ArkCounter.ts similarity index 97% rename from arkoala/arkui/src/ArkCounter.ts rename to arkoala/arkui/src/generated/ArkCounter.ts index 7e5dea1d417da3b7f04a3f37147d48e5377b86f9..b8e7b8b7db99b070efa4c81f0ea45871537f79f2 100644 --- a/arkoala/arkui/src/ArkCounter.ts +++ b/arkoala/arkui/src/generated/ArkCounter.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkCounterPeer } from "./peers/ArkCounterPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkCounterInterfaces.ts b/arkoala/arkui/src/generated/ArkCounterInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkCounterInterfaces.ts rename to arkoala/arkui/src/generated/ArkCounterInterfaces.ts index 021e309006040e7e2169cd11ea81ccbbb2fcbdbc..a960c23ac48fea47dce1bb44fc5db2b14c71df74 100644 --- a/arkoala/arkui/src/ArkCounterInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkCounterInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts b/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts new file mode 100644 index 0000000000000000000000000000000000000000..cdbf60458e390e8f87dc3da68c59278551d0e4e4 --- /dev/null +++ b/arkoala/arkui/src/generated/ArkCursorControlNamespace.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export namespace cursorControl { + export class GlobalScope_cursorControl_common { + public static setCursor(value: PointerStyle): void { + const value_casted = value as (PointerStyle) + GlobalScope_cursorControl_common.setCursor_serialize(value_casted) + return + } + public static restoreDefault(): void { + GlobalScope_cursorControl_common.restoreDefault_serialize() + return + } + private static setCursor_serialize(value: PointerStyle): void { + ArkUIGeneratedNativeModule._GlobalScope_cursorControl_common_setCursor(value) + } + private static restoreDefault_serialize(): void { + ArkUIGeneratedNativeModule._GlobalScope_cursorControl_common_restoreDefault() + } + } +} +export namespace cursorControl { + export function setCursor(value: PointerStyle): void { + GlobalScope_cursorControl_common.setCursor(value) + } + export function restoreDefault(): void { + GlobalScope_cursorControl_common.restoreDefault() + } +} diff --git a/arkoala/arkui/src/generated/ArkCustomBuilderInterfaces.ts b/arkoala/arkui/src/generated/ArkCustomBuilderInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..56aa34a09cb26f9ed71c1a47794334e6381279e3 --- /dev/null +++ b/arkoala/arkui/src/generated/ArkCustomBuilderInterfaces.ts @@ -0,0 +1,22 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +export type CustomNodeBuilder = (parentNode: KPointer) => KPointer; diff --git a/arkoala/arkui/src/ArkCustomDialogControllerInterfaces.ts b/arkoala/arkui/src/generated/ArkCustomDialogControllerInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkCustomDialogControllerInterfaces.ts rename to arkoala/arkui/src/generated/ArkCustomDialogControllerInterfaces.ts diff --git a/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts index 7c06f4fd75d07d8eff675182a72d0018c91c84ad..4e3f32311feb35bf87b6982d81d6fad72d98257e 100644 --- a/arkoala/arkui/src/ArkCustomDialogControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCustomDialogControllerMaterialized.ts @@ -24,21 +24,26 @@ import { BorderStyle, Curve, PlayMode, Color, ColoringStrategy } from "./ArkEnum import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { DismissDialogAction } from "./ArkActionSheetInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CustomDialogControllerInternal { + public static fromPtr(ptr: KPointer): CustomDialogController { + const obj: CustomDialogController = new CustomDialogController(undefined) + obj.peer = new Finalizable(ptr, CustomDialogController.getFinalizer()) + return obj + } +} export class CustomDialogController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: CustomDialogControllerOptions): KPointer { + static ctor_customdialogcontroller(value: CustomDialogControllerOptions): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeCustomDialogControllerOptions(value) const retval = ArkUIGeneratedNativeModule._CustomDialogController_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -46,9 +51,9 @@ export class CustomDialogController implements MaterializedBase { return retval } constructor(value?: CustomDialogControllerOptions) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = CustomDialogController.ctor(value) + const ctorPtr: KPointer = CustomDialogController.ctor_customdialogcontroller(value) this.peer = new Finalizable(ctorPtr, CustomDialogController.getFinalizer()) } } @@ -70,10 +75,3 @@ export class CustomDialogController implements MaterializedBase { return retval } } -export class CustomDialogControllerInternal { - public static fromPtr(ptr: KPointer): CustomDialogController { - const obj: CustomDialogController = new CustomDialogController(undefined) - obj.peer = new Finalizable(ptr, CustomDialogController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkCustomSpanMaterialized.ts b/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkCustomSpanMaterialized.ts rename to arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts index 40e0197b9928d9d81892568d0b7b9bdbd1cb5748..591db04bc9fb7db13a4b83d08f052464e6e3dc4e 100644 --- a/arkoala/arkui/src/ArkCustomSpanMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkCustomSpanMaterialized.ts @@ -18,26 +18,31 @@ import { CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo } from "./ArkStyledStringInterfaces" import { DrawContext } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class CustomSpanInternal { + public static fromPtr(ptr: KPointer): CustomSpan { + const obj: CustomSpan = new CustomSpan() + obj.peer = new Finalizable(ptr, CustomSpan.getFinalizer()) + return obj + } +} export class CustomSpan implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_customspan(): KPointer { const retval = ArkUIGeneratedNativeModule._CustomSpan_ctor() return retval } constructor() { - const ctorPtr: KPointer = CustomSpan.ctor() + const ctorPtr: KPointer = CustomSpan.ctor_customspan() this.peer = new Finalizable(ctorPtr, CustomSpan.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,7 +67,7 @@ export class CustomSpan implements MaterializedBase { thisSerializer.writeCustomSpanMeasureInfo(measureInfo) const retval = ArkUIGeneratedNativeModule._CustomSpan_onMeasure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readCustomSpanMetrics() } private onDraw_serialize(context: DrawContext, drawInfo: CustomSpanDrawInfo): void { const thisSerializer: Serializer = Serializer.hold() @@ -75,10 +80,3 @@ export class CustomSpan implements MaterializedBase { ArkUIGeneratedNativeModule._CustomSpan_invalidate(this.peer!.ptr) } } -export class CustomSpanInternal { - public static fromPtr(ptr: KPointer): CustomSpan { - const obj: CustomSpan = new CustomSpan() - obj.peer = new Finalizable(ptr, CustomSpan.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDataPanel.ts b/arkoala/arkui/src/generated/ArkDataPanel.ts similarity index 97% rename from arkoala/arkui/src/ArkDataPanel.ts rename to arkoala/arkui/src/generated/ArkDataPanel.ts index 64d336400c43754a5c5461f9863400eff4ccb5b2..fea30acc7d18896457b3169fca5cf0370ae2df58 100644 --- a/arkoala/arkui/src/ArkDataPanel.ts +++ b/arkoala/arkui/src/generated/ArkDataPanel.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDataPanelPeer } from "./peers/ArkDataPanelPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDataPanelInterfaces.ts b/arkoala/arkui/src/generated/ArkDataPanelInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkDataPanelInterfaces.ts rename to arkoala/arkui/src/generated/ArkDataPanelInterfaces.ts index 7614adc97f43d62ddac1a7427c83f587dba7b43d..b01d741a2d57ea102d5207146e0d99dd2590f6d5 100644 --- a/arkoala/arkui/src/ArkDataPanelInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkDataPanelInterfaces.ts @@ -30,7 +30,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts index 1d21bd95dfb8908bb30cdd2f296397e41e544be8..f96084bde0602f8a6221c8660ed2d71352cacbe2 100644 --- a/arkoala/arkui/src/ArkDataResubmissionHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDataResubmissionHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DataResubmissionHandlerInternal { + public static fromPtr(ptr: KPointer): DataResubmissionHandler { + const obj: DataResubmissionHandler = new DataResubmissionHandler() + obj.peer = new Finalizable(ptr, DataResubmissionHandler.getFinalizer()) + return obj + } +} export class DataResubmissionHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_dataresubmissionhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._DataResubmissionHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = DataResubmissionHandler.ctor() + const ctorPtr: KPointer = DataResubmissionHandler.ctor_dataresubmissionhandler() this.peer = new Finalizable(ctorPtr, DataResubmissionHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class DataResubmissionHandler implements MaterializedBase { ArkUIGeneratedNativeModule._DataResubmissionHandler_cancel(this.peer!.ptr) } } -export class DataResubmissionHandlerInternal { - public static fromPtr(ptr: KPointer): DataResubmissionHandler { - const obj: DataResubmissionHandler = new DataResubmissionHandler() - obj.peer = new Finalizable(ptr, DataResubmissionHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDatePicker.ts b/arkoala/arkui/src/generated/ArkDatePicker.ts similarity index 98% rename from arkoala/arkui/src/ArkDatePicker.ts rename to arkoala/arkui/src/generated/ArkDatePicker.ts index 0eec52abcaddf5b0e17c1a694f5a01125555c7d3..2167a95450b0efafbb87974cdc1250f2d291c928 100644 --- a/arkoala/arkui/src/ArkDatePicker.ts +++ b/arkoala/arkui/src/generated/ArkDatePicker.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDatePickerPeer } from "./peers/ArkDatePickerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts index 6ffe8405e178a7ec417b27ffe1ce048ba533a99b..db44ef50b6079e5c395486b6b53ae9030b414912 100644 --- a/arkoala/arkui/src/ArkDatePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDatePickerDialogMaterialized.ts @@ -24,21 +24,26 @@ import { DateTimeOptions } from "./ArkTimePickerInterfaces" import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DatePickerDialogInternal { + public static fromPtr(ptr: KPointer): DatePickerDialog { + const obj: DatePickerDialog = new DatePickerDialog() + obj.peer = new Finalizable(ptr, DatePickerDialog.getFinalizer()) + return obj + } +} export class DatePickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_datepickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._DatePickerDialog_ctor() return retval } @@ -46,7 +51,7 @@ export class DatePickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = DatePickerDialog.ctor() + const ctorPtr: KPointer = DatePickerDialog.ctor_datepickerdialog() this.peer = new Finalizable(ctorPtr, DatePickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -70,10 +75,3 @@ export class DatePickerDialog implements MaterializedBase { return retval } } -export class DatePickerDialogInternal { - public static fromPtr(ptr: KPointer): DatePickerDialog { - const obj: DatePickerDialog = new DatePickerDialog() - obj.peer = new Finalizable(ptr, DatePickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDatePickerInterfaces.ts b/arkoala/arkui/src/generated/ArkDatePickerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkDatePickerInterfaces.ts rename to arkoala/arkui/src/generated/ArkDatePickerInterfaces.ts index 95e880fc2b6c7fe98c4aba8aad0e6fca85b9e043..2664a63f88697394d1d3648fe0831249acb12565 100644 --- a/arkoala/arkui/src/ArkDatePickerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkDatePickerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDecorationStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkDecorationStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts index 68e1c7eab22a9ff7a40923467cc8eed110053f8e..8a9c5857ca8f4e6d62eb4c085224ddf1d100a037 100644 --- a/arkoala/arkui/src/ArkDecorationStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDecorationStyleMaterialized.ts @@ -20,15 +20,20 @@ import { TextDecorationType, TextDecorationStyle, Color } from "./ArkEnumsInterf import { ResourceColor } from "./ArkUnitsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DecorationStyleInternal { + public static fromPtr(ptr: KPointer): DecorationStyle { + const obj: DecorationStyle = new DecorationStyle(undefined) + obj.peer = new Finalizable(ptr, DecorationStyle.getFinalizer()) + return obj + } +} export class DecorationStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -43,7 +48,7 @@ export class DecorationStyle implements MaterializedBase { get style(): TextDecorationStyle { return this.getStyle() } - static ctor(value: DecorationStyleInterface): KPointer { + static ctor_decorationstyle(value: DecorationStyleInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeDecorationStyleInterface(value) const retval = ArkUIGeneratedNativeModule._DecorationStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -51,9 +56,9 @@ export class DecorationStyle implements MaterializedBase { return retval } constructor(value?: DecorationStyleInterface) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = DecorationStyle.ctor(value) + const ctorPtr: KPointer = DecorationStyle.ctor_decorationstyle(value) this.peer = new Finalizable(ctorPtr, DecorationStyle.getFinalizer()) } } @@ -75,10 +80,3 @@ export class DecorationStyle implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class DecorationStyleInternal { - public static fromPtr(ptr: KPointer): DecorationStyle { - const obj: DecorationStyle = new DecorationStyle(undefined) - obj.peer = new Finalizable(ptr, DecorationStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDigitIndicatorBuilder.ts b/arkoala/arkui/src/generated/ArkDigitIndicatorBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkDigitIndicatorBuilder.ts rename to arkoala/arkui/src/generated/ArkDigitIndicatorBuilder.ts diff --git a/arkoala/arkui/src/ArkDisappearSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkDisappearSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts index d6dabd63adffac43e8f74c0bc702e4ef277c7b65..cafe1f2d72b78231d849744eb64e0cac0d7a82f1 100644 --- a/arkoala/arkui/src/ArkDisappearSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDisappearSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DisappearSymbolEffectInternal { + public static fromPtr(ptr: KPointer): DisappearSymbolEffect { + const obj: DisappearSymbolEffect = new DisappearSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, DisappearSymbolEffect.getFinalizer()) + return obj + } +} export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +43,7 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_disappearsymboleffect(scope?: EffectScope): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -52,7 +57,7 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr: KPointer = DisappearSymbolEffect.ctor(scope) + const ctorPtr: KPointer = DisappearSymbolEffect.ctor_disappearsymboleffect(scope) this.peer = new Finalizable(ctorPtr, DisappearSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class DisappearSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._DisappearSymbolEffect_setScope(this.peer!.ptr, scope) } } -export class DisappearSymbolEffectInternal { - public static fromPtr(ptr: KPointer): DisappearSymbolEffect { - const obj: DisappearSymbolEffect = new DisappearSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, DisappearSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDivider.ts b/arkoala/arkui/src/generated/ArkDivider.ts similarity index 97% rename from arkoala/arkui/src/ArkDivider.ts rename to arkoala/arkui/src/generated/ArkDivider.ts index c16926aee56f8f40d9acb4d71540c76ba38e70e4..e50cbd47e793d518b5981cc0978928f0bb1e2634 100644 --- a/arkoala/arkui/src/ArkDivider.ts +++ b/arkoala/arkui/src/generated/ArkDivider.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkDividerPeer } from "./peers/ArkDividerPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDividerInterfaces.ts b/arkoala/arkui/src/generated/ArkDividerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkDividerInterfaces.ts rename to arkoala/arkui/src/generated/ArkDividerInterfaces.ts index 888379d19f8d898dd2ab5a56f06e70cabcf51226..82314ce51c09cbd5df98cc8adf26d1b112eaa3c8 100644 --- a/arkoala/arkui/src/ArkDividerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkDividerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkDotIndicatorBuilder.ts b/arkoala/arkui/src/generated/ArkDotIndicatorBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkDotIndicatorBuilder.ts rename to arkoala/arkui/src/generated/ArkDotIndicatorBuilder.ts diff --git a/arkoala/arkui/src/ArkDragEventMaterialized.ts b/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkDragEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkDragEventMaterialized.ts index f6e245835a4ce73aab3c84f3887c6dd2ea1df10e..918c350395a59f968cfa8ae5ac22041e484f6d67 100644 --- a/arkoala/arkui/src/ArkDragEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDragEventMaterialized.ts @@ -19,12 +19,11 @@ import { DragBehavior, Summary, DragResult, Rectangle } from "./ArkCommonInterfaces" import { UnifiedData, UnifiedDataInternal } from "./ArkUnifiedDataMaterialized" import { Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -65,12 +64,12 @@ export class DragEventInternal implements MaterializedBase,DragEvent { set useCustomDropAnimation(useCustomDropAnimation: boolean) { this.setUseCustomDropAnimation(useCustomDropAnimation) } - static ctor(): KPointer { + static ctor_dragevent(): KPointer { const retval = ArkUIGeneratedNativeModule._DragEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = DragEventInternal.ctor() + const ctorPtr: KPointer = DragEventInternal.ctor_dragevent() this.peer = new Finalizable(ctorPtr, DragEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -181,7 +180,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getSummary_serialize(): Summary { const retval = ArkUIGeneratedNativeModule._DragEvent_getSummary(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readSummary() } private setResult_serialize(dragResult: DragResult): void { ArkUIGeneratedNativeModule._DragEvent_setResult(this.peer!.ptr, dragResult) @@ -192,7 +191,7 @@ export class DragEventInternal implements MaterializedBase,DragEvent { } private getPreviewRect_serialize(): Rectangle { const retval = ArkUIGeneratedNativeModule._DragEvent_getPreviewRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readRectangle() } private getVelocityX_serialize(): number { const retval = ArkUIGeneratedNativeModule._DragEvent_getVelocityX(this.peer!.ptr) diff --git a/arkoala/arkui/src/ArkDrawModifierMaterialized.ts b/arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkDrawModifierMaterialized.ts rename to arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts index ad2be30b0aa8a0e62e7598fe6126989c904c6eb3..9517a2a9646f617b735de113d920a5f088432674 100644 --- a/arkoala/arkui/src/ArkDrawModifierMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDrawModifierMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { DrawContext } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DrawModifierInternal { + public static fromPtr(ptr: KPointer): DrawModifier { + const obj: DrawModifier = new DrawModifier() + obj.peer = new Finalizable(ptr, DrawModifier.getFinalizer()) + return obj + } +} export class DrawModifier implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_drawmodifier(): KPointer { const retval = ArkUIGeneratedNativeModule._DrawModifier_ctor() return retval } constructor() { - const ctorPtr: KPointer = DrawModifier.ctor() + const ctorPtr: KPointer = DrawModifier.ctor_drawmodifier() this.peer = new Finalizable(ctorPtr, DrawModifier.getFinalizer()) } static getFinalizer(): KPointer { @@ -83,10 +88,3 @@ export class DrawModifier implements MaterializedBase { ArkUIGeneratedNativeModule._DrawModifier_invalidate(this.peer!.ptr) } } -export class DrawModifierInternal { - public static fromPtr(ptr: KPointer): DrawModifier { - const obj: DrawModifier = new DrawModifier() - obj.peer = new Finalizable(ptr, DrawModifier.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts b/arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts rename to arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts index 542d343017c043c8bbc6d8c0b6b33e8a1809fbfb..bb2fc63d4dcec9b40aad0ef401a15982db9822c5 100644 --- a/arkoala/arkui/src/ArkDrawingCanvasMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDrawingCanvasMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DrawingCanvasInternal { + public static fromPtr(ptr: KPointer): DrawingCanvas { + const obj: DrawingCanvas = new DrawingCanvas(undefined) + obj.peer = new Finalizable(ptr, DrawingCanvas.getFinalizer()) + return obj + } +} export class DrawingCanvas implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(pixelmap: PixelMap): KPointer { + static ctor_drawingcanvas(pixelmap: PixelMap): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writePixelMap(pixelmap) const retval = ArkUIGeneratedNativeModule._DrawingCanvas_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -39,9 +44,9 @@ export class DrawingCanvas implements MaterializedBase { return retval } constructor(pixelmap?: PixelMap) { - if (((pixelmap) !== (undefined))) + if ((pixelmap) !== (undefined)) { - const ctorPtr: KPointer = DrawingCanvas.ctor(pixelmap) + const ctorPtr: KPointer = DrawingCanvas.ctor_drawingcanvas(pixelmap) this.peer = new Finalizable(ctorPtr, DrawingCanvas.getFinalizer()) } } @@ -60,10 +65,3 @@ export class DrawingCanvas implements MaterializedBase { ArkUIGeneratedNativeModule._DrawingCanvas_drawRect(this.peer!.ptr, left, top, right, bottom) } } -export class DrawingCanvasInternal { - public static fromPtr(ptr: KPointer): DrawingCanvas { - const obj: DrawingCanvas = new DrawingCanvas(undefined) - obj.peer = new Finalizable(ptr, DrawingCanvas.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts b/arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts rename to arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts index aa2970a4f11a4a2aa3ffbe88f102d8aafb8db0c0..b5d6478674958d6cb844149815b175d938d75683 100644 --- a/arkoala/arkui/src/ArkDrawingRenderingContextMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDrawingRenderingContextMaterialized.ts @@ -20,15 +20,20 @@ import { Size } from "./ArkCanvasInterfaces" import { DrawingCanvas, DrawingCanvasInternal } from "./ArkDrawingCanvasMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DrawingRenderingContextInternal { + public static fromPtr(ptr: KPointer): DrawingRenderingContext { + const obj: DrawingRenderingContext = new DrawingRenderingContext(undefined) + obj.peer = new Finalizable(ptr, DrawingRenderingContext.getFinalizer()) + return obj + } +} export class DrawingRenderingContext implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -40,7 +45,7 @@ export class DrawingRenderingContext implements MaterializedBase { get canvas(): DrawingCanvas { throw new Error("Not implemented") } - static ctor(unit?: LengthMetricsUnit): KPointer { + static ctor_drawingrenderingcontext(unit?: LengthMetricsUnit): KPointer { const thisSerializer: Serializer = Serializer.hold() let unit_type: int32 = RuntimeType.UNDEFINED unit_type = runtimeType(unit) @@ -54,7 +59,7 @@ export class DrawingRenderingContext implements MaterializedBase { return retval } constructor(unit?: LengthMetricsUnit) { - const ctorPtr: KPointer = DrawingRenderingContext.ctor(unit) + const ctorPtr: KPointer = DrawingRenderingContext.ctor_drawingrenderingcontext(unit) this.peer = new Finalizable(ctorPtr, DrawingRenderingContext.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,10 +73,3 @@ export class DrawingRenderingContext implements MaterializedBase { ArkUIGeneratedNativeModule._DrawingRenderingContext_invalidate(this.peer!.ptr) } } -export class DrawingRenderingContextInternal { - public static fromPtr(ptr: KPointer): DrawingRenderingContext { - const obj: DrawingRenderingContext = new DrawingRenderingContext(undefined) - obj.peer = new Finalizable(ptr, DrawingRenderingContext.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts b/arkoala/arkui/src/generated/ArkDynamicNodeMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkDynamicNodeMaterialized.ts rename to arkoala/arkui/src/generated/ArkDynamicNodeMaterialized.ts index 79b47879ceef1bba27abfa5ede5fb89e16866a4f..beff44b3557747a82ae76ac97ab05599967bdc6b 100644 --- a/arkoala/arkui/src/ArkDynamicNodeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkDynamicNodeMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { OnMoveHandler } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class DynamicNodeInternal { + public static fromPtr(ptr: KPointer): DynamicNode { + const obj: DynamicNode = new DynamicNode() + obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) + return obj + } +} export class DynamicNode implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_dynamicnode(): KPointer { const retval = ArkUIGeneratedNativeModule._DynamicNode_ctor() return retval } constructor() { - const ctorPtr: KPointer = DynamicNode.ctor() + const ctorPtr: KPointer = DynamicNode.ctor_dynamicnode() this.peer = new Finalizable(ctorPtr, DynamicNode.getFinalizer()) } static getFinalizer(): KPointer { @@ -60,10 +65,3 @@ export class DynamicNode implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class DynamicNodeInternal { - public static fromPtr(ptr: KPointer): DynamicNode { - const obj: DynamicNode = new DynamicNode() - obj.peer = new Finalizable(ptr, DynamicNode.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts b/arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts rename to arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts index dff3d3684c3df17ffdfa8564ce24392afacd9fb7..045c522447336328e6ff7a9bdaad4ce67c43216a 100644 --- a/arkoala/arkui/src/ArkEditMenuOptionsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEditMenuOptionsMaterialized.ts @@ -20,12 +20,10 @@ import { TextMenuItem, TextRange } from "./ArkTextCommonInterfaces" import { ResourceStr } from "./ArkUnitsInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./ArkTextMenuItemIdMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -38,12 +36,12 @@ export class EditMenuOptionsInternal implements MaterializedBase,EditMenuOptions public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_editmenuoptions(): KPointer { const retval = ArkUIGeneratedNativeModule._EditMenuOptions_ctor() return retval } constructor() { - const ctorPtr: KPointer = EditMenuOptionsInternal.ctor() + const ctorPtr: KPointer = EditMenuOptionsInternal.ctor_editmenuoptions() this.peer = new Finalizable(ctorPtr, EditMenuOptionsInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkEffectComponent.ts b/arkoala/arkui/src/generated/ArkEffectComponent.ts similarity index 97% rename from arkoala/arkui/src/ArkEffectComponent.ts rename to arkoala/arkui/src/generated/ArkEffectComponent.ts index 174dd20e33e9f9462993cc75e601ee79afcc0fab..4bc1be8e2ff30c23135ad92ef7992cd3fcd973b9 100644 --- a/arkoala/arkui/src/ArkEffectComponent.ts +++ b/arkoala/arkui/src/generated/ArkEffectComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEffectComponentPeer } from "./peers/ArkEffectComponentPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEffectComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkEffectComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkEffectComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkEffectComponentInterfaces.ts index e6ab52291871db86517cefdbc0d420d7cabe9dad..a77cdd6538a7969c4a7cf32ae083ce9a3b232efa 100644 --- a/arkoala/arkui/src/ArkEffectComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkEffectComponentInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEllipse.ts b/arkoala/arkui/src/generated/ArkEllipse.ts similarity index 97% rename from arkoala/arkui/src/ArkEllipse.ts rename to arkoala/arkui/src/generated/ArkEllipse.ts index 9df03fe3f0688896bd366bfde3c65e76ec44f4ea..971cb0b17304c05f1b96e82f8807fd61a63f2478 100644 --- a/arkoala/arkui/src/ArkEllipse.ts +++ b/arkoala/arkui/src/generated/ArkEllipse.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkEllipsePeer } from "./peers/ArkEllipsePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEllipseInterfaces.ts b/arkoala/arkui/src/generated/ArkEllipseInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkEllipseInterfaces.ts rename to arkoala/arkui/src/generated/ArkEllipseInterfaces.ts index 7378bcafb85e9e22c29d97a9e851996dc80a2042..d66ab3799cc91c8d63905b7c03d2d59ed91740e2 100644 --- a/arkoala/arkui/src/ArkEllipseInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkEllipseInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEmbeddedComponent.ts b/arkoala/arkui/src/generated/ArkEmbeddedComponent.ts similarity index 97% rename from arkoala/arkui/src/ArkEmbeddedComponent.ts rename to arkoala/arkui/src/generated/ArkEmbeddedComponent.ts index 8b4ad74f14069b3c9901dfd73973ddd63f8fc0fd..995ec38adcb5a590a37b0d4c15441663494bdcc0 100644 --- a/arkoala/arkui/src/ArkEmbeddedComponent.ts +++ b/arkoala/arkui/src/generated/ArkEmbeddedComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkEmbeddedComponentPeer } from "./peers/ArkEmbeddedComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEmbeddedComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkEmbeddedComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts index 4e68bfe9532607150e6dbce761ebd4aa420f52be..92f0695f7fcbdfb4bc66cd121a1b608d1fcb192e 100644 --- a/arkoala/arkui/src/ArkEmbeddedComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkEmbeddedComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkEnumsInterfaces.ts b/arkoala/arkui/src/generated/ArkEnumsInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkEnumsInterfaces.ts rename to arkoala/arkui/src/generated/ArkEnumsInterfaces.ts diff --git a/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts b/arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkEventEmulatorMaterialized.ts rename to arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts index 5024cdc4408000c2b773f874f4613a364faa2446..d97c98763d08238cd7e5b23ed4755a58b3220acc 100644 --- a/arkoala/arkui/src/ArkEventEmulatorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEventEmulatorMaterialized.ts @@ -20,21 +20,26 @@ import { ClickEvent, ClickEventInternal } from "./ArkClickEventMaterialized" import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class EventEmulatorInternal { + public static fromPtr(ptr: KPointer): EventEmulator { + const obj: EventEmulator = new EventEmulator() + obj.peer = new Finalizable(ptr, EventEmulator.getFinalizer()) + return obj + } +} export class EventEmulator implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventemulator(): KPointer { const retval = ArkUIGeneratedNativeModule._EventEmulator_ctor() return retval } @@ -42,7 +47,7 @@ export class EventEmulator implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = EventEmulator.ctor() + const ctorPtr: KPointer = EventEmulator.ctor_eventemulator() this.peer = new Finalizable(ctorPtr, EventEmulator.getFinalizer()) } static getFinalizer(): KPointer { @@ -70,10 +75,3 @@ export class EventEmulator implements MaterializedBase { ArkUIGeneratedNativeModule._EventEmulator_emitTextInputEvent(node, text) } } -export class EventEmulatorInternal { - public static fromPtr(ptr: KPointer): EventEmulator { - const obj: EventEmulator = new EventEmulator() - obj.peer = new Finalizable(ptr, EventEmulator.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkEventResultMaterialized.ts b/arkoala/arkui/src/generated/ArkEventResultMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkEventResultMaterialized.ts rename to arkoala/arkui/src/generated/ArkEventResultMaterialized.ts index ae32b7c072709c85494d2fe111bea960479eaff9..dda7217298f1830ea804a172c14de9441ac27011 100644 --- a/arkoala/arkui/src/ArkEventResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEventResultMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class EventResultInternal { + public static fromPtr(ptr: KPointer): EventResult { + const obj: EventResult = new EventResult() + obj.peer = new Finalizable(ptr, EventResult.getFinalizer()) + return obj + } +} export class EventResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventresult(): KPointer { const retval = ArkUIGeneratedNativeModule._EventResult_ctor() return retval } constructor() { - const ctorPtr: KPointer = EventResult.ctor() + const ctorPtr: KPointer = EventResult.ctor_eventresult() this.peer = new Finalizable(ctorPtr, EventResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -50,10 +55,3 @@ export class EventResult implements MaterializedBase { ArkUIGeneratedNativeModule._EventResult_setGestureEventResult(this.peer!.ptr, +result) } } -export class EventResultInternal { - public static fromPtr(ptr: KPointer): EventResult { - const obj: EventResult = new EventResult() - obj.peer = new Finalizable(ptr, EventResult.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts b/arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts rename to arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts index cd5baa79ab90df87fc80562e7bed8ef948c4dbf5..61643afab35b9cf9d2cc1fce203cba49d9d20880 100644 --- a/arkoala/arkui/src/ArkEventTargetInfoMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkEventTargetInfoMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class EventTargetInfoInternal { + public static fromPtr(ptr: KPointer): EventTargetInfo { + const obj: EventTargetInfo = new EventTargetInfo() + obj.peer = new Finalizable(ptr, EventTargetInfo.getFinalizer()) + return obj + } +} export class EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_eventtargetinfo(): KPointer { const retval = ArkUIGeneratedNativeModule._EventTargetInfo_ctor() return retval } constructor() { - const ctorPtr: KPointer = EventTargetInfo.ctor() + const ctorPtr: KPointer = EventTargetInfo.ctor_eventtargetinfo() this.peer = new Finalizable(ctorPtr, EventTargetInfo.getFinalizer()) } static getFinalizer(): KPointer { @@ -49,10 +54,3 @@ export class EventTargetInfo implements MaterializedBase { return retval } } -export class EventTargetInfoInternal { - public static fromPtr(ptr: KPointer): EventTargetInfo { - const obj: EventTargetInfo = new EventTargetInfo() - obj.peer = new Finalizable(ptr, EventTargetInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts b/arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts rename to arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts index e8cc5f30639e6a04f1c5a6f8119121cf0e3fcaa9..40124145088195d38504fa2db236e217c7049f66 100644 --- a/arkoala/arkui/src/ArkFileSelectorParamMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFileSelectorParamMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { FileSelectorMode } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FileSelectorParamInternal { + public static fromPtr(ptr: KPointer): FileSelectorParam { + const obj: FileSelectorParam = new FileSelectorParam() + obj.peer = new Finalizable(ptr, FileSelectorParam.getFinalizer()) + return obj + } +} export class FileSelectorParam implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fileselectorparam(): KPointer { const retval = ArkUIGeneratedNativeModule._FileSelectorParam_ctor() return retval } constructor() { - const ctorPtr: KPointer = FileSelectorParam.ctor() + const ctorPtr: KPointer = FileSelectorParam.ctor_fileselectorparam() this.peer = new Finalizable(ctorPtr, FileSelectorParam.getFinalizer()) } static getFinalizer(): KPointer { @@ -71,10 +76,3 @@ export class FileSelectorParam implements MaterializedBase { return retval } } -export class FileSelectorParamInternal { - public static fromPtr(ptr: KPointer): FileSelectorParam { - const obj: FileSelectorParam = new FileSelectorParam() - obj.peer = new Finalizable(ptr, FileSelectorParam.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts b/arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts rename to arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts index 4a912028e40198118955bac070b219e2f28cb226..a7c04040a8e6b27a550dd5437dbb29eb2cb8460a 100644 --- a/arkoala/arkui/src/ArkFileSelectorResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFileSelectorResultMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FileSelectorResultInternal { + public static fromPtr(ptr: KPointer): FileSelectorResult { + const obj: FileSelectorResult = new FileSelectorResult() + obj.peer = new Finalizable(ptr, FileSelectorResult.getFinalizer()) + return obj + } +} export class FileSelectorResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fileselectorresult(): KPointer { const retval = ArkUIGeneratedNativeModule._FileSelectorResult_ctor() return retval } constructor() { - const ctorPtr: KPointer = FileSelectorResult.ctor() + const ctorPtr: KPointer = FileSelectorResult.ctor_fileselectorresult() this.peer = new Finalizable(ctorPtr, FileSelectorResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -57,10 +62,3 @@ export class FileSelectorResult implements MaterializedBase { thisSerializer.release() } } -export class FileSelectorResultInternal { - public static fromPtr(ptr: KPointer): FileSelectorResult { - const obj: FileSelectorResult = new FileSelectorResult() - obj.peer = new Finalizable(ptr, FileSelectorResult.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkFlex.ts b/arkoala/arkui/src/generated/ArkFlex.ts similarity index 97% rename from arkoala/arkui/src/ArkFlex.ts rename to arkoala/arkui/src/generated/ArkFlex.ts index 16caa8a5b77f143f4b067197dcf531480464ff5c..95797168c6a29673fdcc55cf7b272f61cb7af826 100644 --- a/arkoala/arkui/src/ArkFlex.ts +++ b/arkoala/arkui/src/generated/ArkFlex.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlexPeer } from "./peers/ArkFlexPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFlexInterfaces.ts b/arkoala/arkui/src/generated/ArkFlexInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFlexInterfaces.ts rename to arkoala/arkui/src/generated/ArkFlexInterfaces.ts index 583af4efc4270fbf9fdd4106fb02b3f855f0b299..4ba88f8c83b076cb463b1a2ebe4e0df14bf5d5ee 100644 --- a/arkoala/arkui/src/ArkFlexInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFlexInterfaces.ts @@ -30,7 +30,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFlowItem.ts b/arkoala/arkui/src/generated/ArkFlowItem.ts similarity index 97% rename from arkoala/arkui/src/ArkFlowItem.ts rename to arkoala/arkui/src/generated/ArkFlowItem.ts index 5bd108f32a23ce70af7a9f40522813ae0e5c3e1d..c1744583f5ac481f69e40505e230e3f2811322fc 100644 --- a/arkoala/arkui/src/ArkFlowItem.ts +++ b/arkoala/arkui/src/generated/ArkFlowItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFlowItemPeer } from "./peers/ArkFlowItemPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFlowItemInterfaces.ts b/arkoala/arkui/src/generated/ArkFlowItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFlowItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkFlowItemInterfaces.ts index 9c15f3cb2bacd43da1d8234391beb495777ecfdf..5ba889be683a4e6081c1ce9424edc4c02c564d53 100644 --- a/arkoala/arkui/src/ArkFlowItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFlowItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkFocusControlNamespace.ts b/arkoala/arkui/src/generated/ArkFocusControlNamespace.ts new file mode 100644 index 0000000000000000000000000000000000000000..0c776fff354494ed9c8460782d2213c36670c6e0 --- /dev/null +++ b/arkoala/arkui/src/generated/ArkFocusControlNamespace.ts @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export namespace focusControl { + export class GlobalScope_focusControl_common { + public static requestFocus(value: string): boolean { + const value_casted = value as (string) + return GlobalScope_focusControl_common.requestFocus_serialize(value_casted) + } + private static requestFocus_serialize(value: string): boolean { + const retval = ArkUIGeneratedNativeModule._GlobalScope_focusControl_common_requestFocus(value) + return retval + } + } +} +export namespace focusControl { + export function requestFocus(value: string): boolean { + return GlobalScope_focusControl_common.requestFocus(value) + } +} diff --git a/arkoala/arkui/src/ArkFocusInterfaces.ts b/arkoala/arkui/src/generated/ArkFocusInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkFocusInterfaces.ts rename to arkoala/arkui/src/generated/ArkFocusInterfaces.ts diff --git a/arkoala/arkui/src/ArkFolderStack.ts b/arkoala/arkui/src/generated/ArkFolderStack.ts similarity index 97% rename from arkoala/arkui/src/ArkFolderStack.ts rename to arkoala/arkui/src/generated/ArkFolderStack.ts index 2d8c16d865e0e45e80c0a7d942332d2a6dea666e..95f2421543262754f72fed2163bafc5f3fb00c4a 100644 --- a/arkoala/arkui/src/ArkFolderStack.ts +++ b/arkoala/arkui/src/generated/ArkFolderStack.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFolderStackPeer } from "./peers/ArkFolderStackPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFolderStackInterfaces.ts b/arkoala/arkui/src/generated/ArkFolderStackInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFolderStackInterfaces.ts rename to arkoala/arkui/src/generated/ArkFolderStackInterfaces.ts index b42fe6d9a3f31e599b22cf19d7d057b94bb249c8..534dbef58367f753653669d1c290998e6a297a23 100644 --- a/arkoala/arkui/src/ArkFolderStackInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFolderStackInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFormComponent.ts b/arkoala/arkui/src/generated/ArkFormComponent.ts similarity index 98% rename from arkoala/arkui/src/ArkFormComponent.ts rename to arkoala/arkui/src/generated/ArkFormComponent.ts index 187992b71a219a13e6e424ee8a97f8bbd3948948..adeb4cdc1c013f946acf1ccef489cb7d4f9a1d32 100644 --- a/arkoala/arkui/src/ArkFormComponent.ts +++ b/arkoala/arkui/src/generated/ArkFormComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormComponentPeer } from "./peers/ArkFormComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFormComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkFormComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFormComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkFormComponentInterfaces.ts index b739117e8638a0984adda91664ae92e852d192bd..995aafe544517d2b5283d100c3b73d861e80ec65 100644 --- a/arkoala/arkui/src/ArkFormComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFormComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFormLink.ts b/arkoala/arkui/src/generated/ArkFormLink.ts similarity index 97% rename from arkoala/arkui/src/ArkFormLink.ts rename to arkoala/arkui/src/generated/ArkFormLink.ts index 1e5194e0a0e8132b90904050d5b8bc093889eb42..c652f789f7b9cd791a2ea81a41325300216d1f3e 100644 --- a/arkoala/arkui/src/ArkFormLink.ts +++ b/arkoala/arkui/src/generated/ArkFormLink.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkFormLinkPeer } from "./peers/ArkFormLinkPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFormLinkInterfaces.ts b/arkoala/arkui/src/generated/ArkFormLinkInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkFormLinkInterfaces.ts rename to arkoala/arkui/src/generated/ArkFormLinkInterfaces.ts index c43384f922e68ad50409e96cbad1b4973b63131b..9f7203848579028dd824466a9b91f9bafa567ea6 100644 --- a/arkoala/arkui/src/ArkFormLinkInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkFormLinkInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkFrameNodeMaterialized.ts b/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkFrameNodeMaterialized.ts rename to arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts index 8b1132e488a10cc170592dda6d1100aaafed3d3f..7953cc536efe591b94544772e7498c9cb3a9ebba 100644 --- a/arkoala/arkui/src/ArkFrameNodeMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFrameNodeMaterialized.ts @@ -18,21 +18,26 @@ import { UIContext } from "./ArkCommonInterfaces" import { Position, Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FrameNodeInternal { + public static fromPtr(ptr: KPointer): FrameNode { + const obj: FrameNode = new FrameNode(undefined) + obj.peer = new Finalizable(ptr, FrameNode.getFinalizer()) + return obj + } +} export class FrameNode implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(uiContext: UIContext): KPointer { + static ctor_framenode(uiContext: UIContext): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeUIContext(uiContext) const retval = ArkUIGeneratedNativeModule._FrameNode_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -40,9 +45,9 @@ export class FrameNode implements MaterializedBase { return retval } constructor(uiContext?: UIContext) { - if (((uiContext) !== (undefined))) + if ((uiContext) !== (undefined)) { - const ctorPtr: KPointer = FrameNode.ctor(uiContext) + const ctorPtr: KPointer = FrameNode.ctor_framenode(uiContext) this.peer = new Finalizable(ctorPtr, FrameNode.getFinalizer()) } } @@ -165,13 +170,6 @@ export class FrameNode implements MaterializedBase { } private getPositionToWindowWithTransform_serialize(): Position { const retval = ArkUIGeneratedNativeModule._FrameNode_getPositionToWindowWithTransform(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } -} -export class FrameNodeInternal { - public static fromPtr(ptr: KPointer): FrameNode { - const obj: FrameNode = new FrameNode(undefined) - obj.peer = new Finalizable(ptr, FrameNode.getFinalizer()) - return obj + return new Deserializer(retval.buffer, retval.byteLength).readPosition() } } diff --git a/arkoala/arkui/src/ArkFrictionMotionMaterialized.ts b/arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts similarity index 85% rename from arkoala/arkui/src/ArkFrictionMotionMaterialized.ts rename to arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts index ed526f5e99d7d15665e26ccb423cf6e8929ab526..1473dc5fff4e0fc51a05f096e27a579746009ecc 100644 --- a/arkoala/arkui/src/ArkFrictionMotionMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFrictionMotionMaterialized.ts @@ -16,28 +16,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FrictionMotionInternal { + public static fromPtr(ptr: KPointer): FrictionMotion { + const obj: FrictionMotion = new FrictionMotion(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, FrictionMotion.getFinalizer()) + return obj + } +} export class FrictionMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(friction: number, position: number, velocity: number): KPointer { + static ctor_frictionmotion(friction: number, position: number, velocity: number): KPointer { const retval = ArkUIGeneratedNativeModule._FrictionMotion_ctor(friction, position, velocity) return retval } constructor(friction?: number, position?: number, velocity?: number) { if (((friction) !== (undefined)) && ((position) !== (undefined)) && ((velocity) !== (undefined))) { - const ctorPtr: KPointer = FrictionMotion.ctor(friction, position, velocity) + const ctorPtr: KPointer = FrictionMotion.ctor_frictionmotion(friction, position, velocity) this.peer = new Finalizable(ctorPtr, FrictionMotion.getFinalizer()) } } @@ -45,10 +50,3 @@ export class FrictionMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._FrictionMotion_getFinalizer() } } -export class FrictionMotionInternal { - public static fromPtr(ptr: KPointer): FrictionMotion { - const obj: FrictionMotion = new FrictionMotion(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, FrictionMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkFullScreenExitHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkFullScreenExitHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts index 8dff82d9d9e621f90495334795902ec13e2a0f4b..c7c68bde0b1acf457b52857be3544e75a6d845ec 100644 --- a/arkoala/arkui/src/ArkFullScreenExitHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkFullScreenExitHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class FullScreenExitHandlerInternal { + public static fromPtr(ptr: KPointer): FullScreenExitHandler { + const obj: FullScreenExitHandler = new FullScreenExitHandler() + obj.peer = new Finalizable(ptr, FullScreenExitHandler.getFinalizer()) + return obj + } +} export class FullScreenExitHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_fullscreenexithandler(): KPointer { const retval = ArkUIGeneratedNativeModule._FullScreenExitHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = FullScreenExitHandler.ctor() + const ctorPtr: KPointer = FullScreenExitHandler.ctor_fullscreenexithandler() this.peer = new Finalizable(ctorPtr, FullScreenExitHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -49,10 +54,3 @@ export class FullScreenExitHandler implements MaterializedBase { ArkUIGeneratedNativeModule._FullScreenExitHandler_exitFullScreen(this.peer!.ptr) } } -export class FullScreenExitHandlerInternal { - public static fromPtr(ptr: KPointer): FullScreenExitHandler { - const obj: FullScreenExitHandler = new FullScreenExitHandler() - obj.peer = new Finalizable(ptr, FullScreenExitHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGauge.ts b/arkoala/arkui/src/generated/ArkGauge.ts similarity index 98% rename from arkoala/arkui/src/ArkGauge.ts rename to arkoala/arkui/src/generated/ArkGauge.ts index 984793a04f0f82aca661b37a98b9710da53cf8bb..00dafcc49fe4be5bc68ce52d6f1820459a484a92 100644 --- a/arkoala/arkui/src/ArkGauge.ts +++ b/arkoala/arkui/src/generated/ArkGauge.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGaugePeer } from "./peers/ArkGaugePeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGaugeInterfaces.ts b/arkoala/arkui/src/generated/ArkGaugeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGaugeInterfaces.ts rename to arkoala/arkui/src/generated/ArkGaugeInterfaces.ts index 35ba2b0ea08cadd1f8e90fea1a57b939d0504bd8..add4207d397e0f8749fbf802a973bb0824482a16 100644 --- a/arkoala/arkui/src/ArkGaugeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGaugeInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGestureControlNamespace.ts b/arkoala/arkui/src/generated/ArkGestureControlNamespace.ts similarity index 100% rename from arkoala/arkui/src/ArkGestureControlNamespace.ts rename to arkoala/arkui/src/generated/ArkGestureControlNamespace.ts diff --git a/arkoala/arkui/src/ArkGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts index a27ee6e2119e5c5a946608a15e425f496161ee29..bfe48a117e3a160af37f06099c99a354280efdd2 100644 --- a/arkoala/arkui/src/ArkGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -120,13 +119,13 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali set velocity(velocity: number) { this.setVelocity(velocity) } - static ctor(): KPointer { + static ctor_gestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = GestureEventInternal.ctor() + const ctorPtr: KPointer = GestureEventInternal.ctor_gestureevent() this.peer = new Finalizable(ctorPtr, GestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -140,6 +139,9 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali this?.setRepeat_serialize(repeat_casted) return } + private getFingerList(): Array { + return this.getFingerList_serialize() + } private setFingerList(fingerList: Array): void { const fingerList_casted = fingerList as (Array) this?.setFingerList_serialize(fingerList_casted) @@ -232,6 +234,10 @@ export class GestureEventInternal extends BaseEventInternal implements Materiali private setRepeat_serialize(repeat: boolean): void { ArkUIGeneratedNativeModule._GestureEvent_setRepeat(this.peer!.ptr, +repeat) } + private getFingerList_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._GestureEvent_getFingerList(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setFingerList_serialize(fingerList: Array): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(fingerList.length) diff --git a/arkoala/arkui/src/ArkGestureInterfaces.ts b/arkoala/arkui/src/generated/ArkGestureInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkGestureInterfaces.ts rename to arkoala/arkui/src/generated/ArkGestureInterfaces.ts diff --git a/arkoala/arkui/src/ArkGestureModifierMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkGestureModifierMaterialized.ts rename to arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts index 40dce61c6ef4ed1fcb03b1f7d297e286548ec369..b6b06f17266d8ef74a924e50bff119f2a1b8e4d0 100644 --- a/arkoala/arkui/src/ArkGestureModifierMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureModifierMaterialized.ts @@ -18,12 +18,10 @@ import { UIGestureEvent, SourceTool } from "./ArkCommonInterfaces" import { GestureHandler, GesturePriority, GestureMask, GestureInterface } from "./ArkGestureInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -35,12 +33,12 @@ export class GestureModifierInternal implements MaterializedBase,GestureModifier public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_gesturemodifier(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureModifier_ctor() return retval } constructor() { - const ctorPtr: KPointer = GestureModifierInternal.ctor() + const ctorPtr: KPointer = GestureModifierInternal.ctor_gesturemodifier() this.peer = new Finalizable(ctorPtr, GestureModifierInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts rename to arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts index 2193cdf8ee8bfe3824a69e05f921e770895fb06c..b53bbfa00eaeb08a78b04506c746e0ed48e8aa30 100644 --- a/arkoala/arkui/src/ArkGestureRecognizerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureRecognizerMaterialized.ts @@ -19,26 +19,31 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { GestureRecognizerState } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class GestureRecognizerInternal { + public static fromPtr(ptr: KPointer): GestureRecognizer { + const obj: GestureRecognizer = new GestureRecognizer() + obj.peer = new Finalizable(ptr, GestureRecognizer.getFinalizer()) + return obj + } +} export class GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_gesturerecognizer(): KPointer { const retval = ArkUIGeneratedNativeModule._GestureRecognizer_ctor() return retval } constructor() { - const ctorPtr: KPointer = GestureRecognizer.ctor() + const ctorPtr: KPointer = GestureRecognizer.ctor_gesturerecognizer() this.peer = new Finalizable(ctorPtr, GestureRecognizer.getFinalizer()) } static getFinalizer(): KPointer { @@ -102,10 +107,3 @@ export class GestureRecognizer implements MaterializedBase { return retval } } -export class GestureRecognizerInternal { - public static fromPtr(ptr: KPointer): GestureRecognizer { - const obj: GestureRecognizer = new GestureRecognizer() - obj.peer = new Finalizable(ptr, GestureRecognizer.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGestureStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkGestureStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts index 6af754a3e6238fa21e0f741bb9484f8040c55e17..8dcdb12aca709471b836fe4f9b627c9432f3b655 100644 --- a/arkoala/arkui/src/ArkGestureStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGestureStyleMaterialized.ts @@ -23,21 +23,27 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { GestureEvent, GestureEventInternal } from "./ArkGestureEventMaterialized" import { FingerInfo } from "./ArkGestureInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class GestureStyleInternal { + public static fromPtr(ptr: KPointer): GestureStyle { + const obj: GestureStyle = new GestureStyle(undefined) + obj.peer = new Finalizable(ptr, GestureStyle.getFinalizer()) + return obj + } +} export class GestureStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value?: GestureStyleInterface): KPointer { + static ctor_gesturestyle(value?: GestureStyleInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -51,17 +57,10 @@ export class GestureStyle implements MaterializedBase { return retval } constructor(value?: GestureStyleInterface) { - const ctorPtr: KPointer = GestureStyle.ctor(value) + const ctorPtr: KPointer = GestureStyle.ctor_gesturestyle(value) this.peer = new Finalizable(ctorPtr, GestureStyle.getFinalizer()) } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._GestureStyle_getFinalizer() } } -export class GestureStyleInternal { - public static fromPtr(ptr: KPointer): GestureStyle { - const obj: GestureStyle = new GestureStyle(undefined) - obj.peer = new Finalizable(ptr, GestureStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts rename to arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts index 48fbd6788dd6c27c658a29bbed89190e4d0fc4b2..f21d97d46e93f4ffb1b2c3c0a8c61cd5f39f1587 100644 --- a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized.ts @@ -18,21 +18,26 @@ import { SnapshotOptions } from "./ArkArkuiExternalInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class GlobalScope_ohos_arkui_componentSnapshotInternal { + public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_componentSnapshot { + const obj: GlobalScope_ohos_arkui_componentSnapshot = new GlobalScope_ohos_arkui_componentSnapshot() + obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) + return obj + } +} export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_globalscope_ohos_arkui_componentsnapshot(): KPointer { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_componentSnapshot_ctor() return retval } @@ -40,7 +45,7 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = GlobalScope_ohos_arkui_componentSnapshot.ctor() + const ctorPtr: KPointer = GlobalScope_ohos_arkui_componentSnapshot.ctor_globalscope_ohos_arkui_componentsnapshot() this.peer = new Finalizable(ctorPtr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) } static getFinalizer(): KPointer { @@ -67,10 +72,3 @@ export class GlobalScope_ohos_arkui_componentSnapshot implements MaterializedBas thisSerializer.release() } } -export class GlobalScope_ohos_arkui_componentSnapshotInternal { - public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_componentSnapshot { - const obj: GlobalScope_ohos_arkui_componentSnapshot = new GlobalScope_ohos_arkui_componentSnapshot() - obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_componentSnapshot.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts rename to arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts index 24b4d5a915a81d2cac2bb00e345880826cd14f18..9a9cf7789ca84655af28a884f240bdea9e3cdc9a 100644 --- a/arkoala/arkui/src/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PerfMonitorActionType, PerfMonitorSourceType } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class GlobalScope_ohos_arkui_performanceMonitorInternal { + public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_performanceMonitor { + const obj: GlobalScope_ohos_arkui_performanceMonitor = new GlobalScope_ohos_arkui_performanceMonitor() + obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) + return obj + } +} export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_globalscope_ohos_arkui_performancemonitor(): KPointer { const retval = ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_ctor() return retval } @@ -39,7 +44,7 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = GlobalScope_ohos_arkui_performanceMonitor.ctor() + const ctorPtr: KPointer = GlobalScope_ohos_arkui_performanceMonitor.ctor_globalscope_ohos_arkui_performancemonitor() this.peer = new Finalizable(ctorPtr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) } static getFinalizer(): KPointer { @@ -83,10 +88,3 @@ export class GlobalScope_ohos_arkui_performanceMonitor implements MaterializedBa ArkUIGeneratedNativeModule._GlobalScope_ohos_arkui_performanceMonitor_recordInputEventTime(actionType, sourceType, time) } } -export class GlobalScope_ohos_arkui_performanceMonitorInternal { - public static fromPtr(ptr: KPointer): GlobalScope_ohos_arkui_performanceMonitor { - const obj: GlobalScope_ohos_arkui_performanceMonitor = new GlobalScope_ohos_arkui_performanceMonitor() - obj.peer = new Finalizable(ptr, GlobalScope_ohos_arkui_performanceMonitor.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkGrid.ts b/arkoala/arkui/src/generated/ArkGrid.ts similarity index 98% rename from arkoala/arkui/src/ArkGrid.ts rename to arkoala/arkui/src/generated/ArkGrid.ts index b32d15421a48a7cc7f605765a5423d7b8aeac3c5..f8df4b93654242d1aabdb762c038479290dffc3f 100644 --- a/arkoala/arkui/src/ArkGrid.ts +++ b/arkoala/arkui/src/generated/ArkGrid.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkGridPeer } from "./peers/ArkGridPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -159,12 +158,12 @@ export class ArkGridComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala/arkui/src/ArkGridCol.ts b/arkoala/arkui/src/generated/ArkGridCol.ts similarity index 97% rename from arkoala/arkui/src/ArkGridCol.ts rename to arkoala/arkui/src/generated/ArkGridCol.ts index 6d1b0e483a41a43eae4dfbf5e98e10a04b7e5000..f12236e13666c1a488eb06b152febd2c487a0c39 100644 --- a/arkoala/arkui/src/ArkGridCol.ts +++ b/arkoala/arkui/src/generated/ArkGridCol.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridColPeer } from "./peers/ArkGridColPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridColInterfaces.ts b/arkoala/arkui/src/generated/ArkGridColInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridColInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridColInterfaces.ts index ad6f5e22cb51c029918f14aabcdcbbdfdb12efc5..906206fa167708a82adf97508f3ccb487c7a62c6 100644 --- a/arkoala/arkui/src/ArkGridColInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridColInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridContainer.ts b/arkoala/arkui/src/generated/ArkGridContainer.ts similarity index 97% rename from arkoala/arkui/src/ArkGridContainer.ts rename to arkoala/arkui/src/generated/ArkGridContainer.ts index 168437aed5254663f97a06ca041c4916f59b9333..12897142b20427738d7190be77ec256aa1f31516 100644 --- a/arkoala/arkui/src/ArkGridContainer.ts +++ b/arkoala/arkui/src/generated/ArkGridContainer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkColumnComponent } from "./ArkColumn" import { ArkGridContainerPeer } from "./peers/ArkGridContainerPeer" import { ColumnAttribute } from "./ArkColumnInterfaces" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridContainerInterfaces.ts b/arkoala/arkui/src/generated/ArkGridContainerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridContainerInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridContainerInterfaces.ts index 46c65f535b45f61255215ae612af44af913d8f1d..37ce4205259ad93292d4ee48ef9baef5a68f78f5 100644 --- a/arkoala/arkui/src/ArkGridContainerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridContainerInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridInterfaces.ts b/arkoala/arkui/src/generated/ArkGridInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridInterfaces.ts index 6825effaf224df032fd47fc74259a3abadfed17a..0d41339105031752a1645f64c21ab38cbd03d948 100644 --- a/arkoala/arkui/src/ArkGridInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridInterfaces.ts @@ -31,7 +31,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridItem.ts b/arkoala/arkui/src/generated/ArkGridItem.ts similarity index 98% rename from arkoala/arkui/src/ArkGridItem.ts rename to arkoala/arkui/src/generated/ArkGridItem.ts index 4b775117ba8d8605bf07042452ff5d092baa872c..017252a2f22429e3cfb70b6b8800387b7fff0d06 100644 --- a/arkoala/arkui/src/ArkGridItem.ts +++ b/arkoala/arkui/src/generated/ArkGridItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridItemPeer } from "./peers/ArkGridItemPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridItemInterfaces.ts b/arkoala/arkui/src/generated/ArkGridItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridItemInterfaces.ts index e1cb0d8f55382f3d4b818905e22024b17ac6011e..4d47c2b1c4f22c307ad532fbd70a4fb664dc3a75 100644 --- a/arkoala/arkui/src/ArkGridItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridRow.ts b/arkoala/arkui/src/generated/ArkGridRow.ts similarity index 97% rename from arkoala/arkui/src/ArkGridRow.ts rename to arkoala/arkui/src/generated/ArkGridRow.ts index 702b65ad5cf9367089ecf1ed1a269695313117e7..3c1c444feb3fd317387412681deb57406f99178d 100644 --- a/arkoala/arkui/src/ArkGridRow.ts +++ b/arkoala/arkui/src/generated/ArkGridRow.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkGridRowPeer } from "./peers/ArkGridRowPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGridRowInterfaces.ts b/arkoala/arkui/src/generated/ArkGridRowInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkGridRowInterfaces.ts rename to arkoala/arkui/src/generated/ArkGridRowInterfaces.ts index 3dce728d69fe1074b42188a6897fd86b262eddb7..a777d2ee7303df14d753c3cf121177c70b1ba479 100644 --- a/arkoala/arkui/src/ArkGridRowInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkGridRowInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts index 44a25301c091ed89b48a3ffef678c373bb5aa428..a32e649c8939f0805db3e6ec4a7c4235fdf57004 100644 --- a/arkoala/arkui/src/ArkHierarchicalSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkHierarchicalSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectFillStyle } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class HierarchicalSymbolEffectInternal { + public static fromPtr(ptr: KPointer): HierarchicalSymbolEffect { + const obj: HierarchicalSymbolEffect = new HierarchicalSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, HierarchicalSymbolEffect.getFinalizer()) + return obj + } +} export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +43,7 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { const fillStyle_NonNull = (fillStyle as EffectFillStyle) this.setFillStyle(fillStyle_NonNull) } - static ctor(fillStyle?: EffectFillStyle): KPointer { + static ctor_hierarchicalsymboleffect(fillStyle?: EffectFillStyle): KPointer { const thisSerializer: Serializer = Serializer.hold() let fillStyle_type: int32 = RuntimeType.UNDEFINED fillStyle_type = runtimeType(fillStyle) @@ -52,7 +57,7 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(fillStyle?: EffectFillStyle) { - const ctorPtr: KPointer = HierarchicalSymbolEffect.ctor(fillStyle) + const ctorPtr: KPointer = HierarchicalSymbolEffect.ctor_hierarchicalsymboleffect(fillStyle) this.peer = new Finalizable(ctorPtr, HierarchicalSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class HierarchicalSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._HierarchicalSymbolEffect_setFillStyle(this.peer!.ptr, fillStyle) } } -export class HierarchicalSymbolEffectInternal { - public static fromPtr(ptr: KPointer): HierarchicalSymbolEffect { - const obj: HierarchicalSymbolEffect = new HierarchicalSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, HierarchicalSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkHoverEventMaterialized.ts b/arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkHoverEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts index ceae531070f921d18bfc687699eb6546b637d529..8ab4eee8997f73303ddaebc9fcb71c8a33270a61 100644 --- a/arkoala/arkui/src/ArkHoverEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkHoverEventMaterialized.ts @@ -19,12 +19,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,13 +41,13 @@ export class HoverEventInternal extends BaseEventInternal implements Materialize set stopPropagation(stopPropagation: (() => void)) { this.setStopPropagation(stopPropagation) } - static ctor(): KPointer { + static ctor_hoverevent(): KPointer { const retval = ArkUIGeneratedNativeModule._HoverEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = HoverEventInternal.ctor() + const ctorPtr: KPointer = HoverEventInternal.ctor_hoverevent() this.peer = new Finalizable(ctorPtr, HoverEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts index d2c8c14c65895a9183043fd6176ba5ed975be4c3..9f378488e42f17e57b74aa8745f8480e6ed37f20 100644 --- a/arkoala/arkui/src/ArkHttpAuthHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkHttpAuthHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class HttpAuthHandlerInternal { + public static fromPtr(ptr: KPointer): HttpAuthHandler { + const obj: HttpAuthHandler = new HttpAuthHandler() + obj.peer = new Finalizable(ptr, HttpAuthHandler.getFinalizer()) + return obj + } +} export class HttpAuthHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_httpauthhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._HttpAuthHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = HttpAuthHandler.ctor() + const ctorPtr: KPointer = HttpAuthHandler.ctor_httpauthhandler() this.peer = new Finalizable(ctorPtr, HttpAuthHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,10 +70,3 @@ export class HttpAuthHandler implements MaterializedBase { return retval } } -export class HttpAuthHandlerInternal { - public static fromPtr(ptr: KPointer): HttpAuthHandler { - const obj: HttpAuthHandler = new HttpAuthHandler() - obj.peer = new Finalizable(ptr, HttpAuthHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkHyperlink.ts b/arkoala/arkui/src/generated/ArkHyperlink.ts similarity index 97% rename from arkoala/arkui/src/ArkHyperlink.ts rename to arkoala/arkui/src/generated/ArkHyperlink.ts index ec08a8f48eda5877e7e37ee80ca4231e74d38d02..77f95abd1b762e92f59a71309c4f91193d798597 100644 --- a/arkoala/arkui/src/ArkHyperlink.ts +++ b/arkoala/arkui/src/generated/ArkHyperlink.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkHyperlinkPeer } from "./peers/ArkHyperlinkPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkHyperlinkInterfaces.ts b/arkoala/arkui/src/generated/ArkHyperlinkInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkHyperlinkInterfaces.ts rename to arkoala/arkui/src/generated/ArkHyperlinkInterfaces.ts index a04641a0f3e11b10b447ee0ae7839b7cd790fb75..0ef4bcefd893b0ae8dc0e78df78ebce5eff2e793 100644 --- a/arkoala/arkui/src/ArkHyperlinkInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkHyperlinkInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkICurveMaterialized.ts b/arkoala/arkui/src/generated/ArkICurveMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkICurveMaterialized.ts rename to arkoala/arkui/src/generated/ArkICurveMaterialized.ts index 7c70763ad866305c8c65e2c0a258f4ff12a64ccb..f1ac9e18be4b2fa031e3dc2a1ea777dcea3bdcf2 100644 --- a/arkoala/arkui/src/ArkICurveMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkICurveMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -33,12 +31,12 @@ export class ICurveInternal implements MaterializedBase,ICurve { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_icurve(): KPointer { const retval = ArkUIGeneratedNativeModule._ICurve_ctor() return retval } constructor() { - const ctorPtr: KPointer = ICurveInternal.ctor() + const ctorPtr: KPointer = ICurveInternal.ctor_icurve() this.peer = new Finalizable(ctorPtr, ICurveInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkImage.ts b/arkoala/arkui/src/generated/ArkImage.ts similarity index 93% rename from arkoala/arkui/src/ArkImage.ts rename to arkoala/arkui/src/generated/ArkImage.ts index 63bd982a80f119fb0ad07cfd3ca3ea1450756097..42ffc5374fa8bdcb448e97552a6e83eb4bbcd583 100644 --- a/arkoala/arkui/src/ArkImage.ts +++ b/arkoala/arkui/src/generated/ArkImage.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImagePeer } from "./peers/ArkImagePeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -65,18 +64,18 @@ export class ArkImageComponent extends ArkCommonMethodComponent { if (this.checkPriority("setImageOptions")) { const src_type = runtimeType(src) const imageAIOptions_type = runtimeType(imageAIOptions) - if (((((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub")))))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub"))))) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) this.getPeer()?.setImageOptions0Attribute(src_casted) return this } - if (((((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub")))))) && (((RuntimeType.OBJECT == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub"))))) && (RuntimeType.OBJECT == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor) const imageAIOptions_casted = imageAIOptions as (ImageAIOptions) this.getPeer()?.setImageOptions2Attribute(src_casted, imageAIOptions_casted) return this } - if (((((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) || ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) || (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) || (((RuntimeType.NUMBER == src_type)))) && (((RuntimeType.UNDEFINED == imageAIOptions_type)))) { + if (((((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) || ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) || (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) || (RuntimeType.NUMBER == src_type)) && (RuntimeType.UNDEFINED == imageAIOptions_type)) { const src_casted = src as (PixelMap | ResourceStr | DrawableDescriptor | ImageContent) this.getPeer()?.setImageOptions1Attribute(src_casted) return this diff --git a/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts index 6566b71aa58bfb805d7e8248e25ce14a333d4f0f..510ec1d29da2d501f16cc6b44c21d490f121ee92 100644 --- a/arkoala/arkui/src/ArkImageAnalyzerControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageAnalyzerControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ImageAnalyzerType } from "./ArkImageCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ImageAnalyzerControllerInternal { + public static fromPtr(ptr: KPointer): ImageAnalyzerController { + const obj: ImageAnalyzerController = new ImageAnalyzerController() + obj.peer = new Finalizable(ptr, ImageAnalyzerController.getFinalizer()) + return obj + } +} export class ImageAnalyzerController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_imageanalyzercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._ImageAnalyzerController_ctor() return retval } constructor() { - const ctorPtr: KPointer = ImageAnalyzerController.ctor() + const ctorPtr: KPointer = ImageAnalyzerController.ctor_imageanalyzercontroller() this.peer = new Finalizable(ctorPtr, ImageAnalyzerController.getFinalizer()) } static getFinalizer(): KPointer { @@ -50,10 +55,3 @@ export class ImageAnalyzerController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ImageAnalyzerControllerInternal { - public static fromPtr(ptr: KPointer): ImageAnalyzerController { - const obj: ImageAnalyzerController = new ImageAnalyzerController() - obj.peer = new Finalizable(ptr, ImageAnalyzerController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkImageAnimator.ts b/arkoala/arkui/src/generated/ArkImageAnimator.ts similarity index 98% rename from arkoala/arkui/src/ArkImageAnimator.ts rename to arkoala/arkui/src/generated/ArkImageAnimator.ts index 82571e076fe638fc6ce4e6bf02b2e81dc09f378c..63edd16d1619fae95f7f98b060523f4b84a7ee26 100644 --- a/arkoala/arkui/src/ArkImageAnimator.ts +++ b/arkoala/arkui/src/generated/ArkImageAnimator.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkImageAnimatorPeer } from "./peers/ArkImageAnimatorPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkImageAnimatorInterfaces.ts b/arkoala/arkui/src/generated/ArkImageAnimatorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkImageAnimatorInterfaces.ts rename to arkoala/arkui/src/generated/ArkImageAnimatorInterfaces.ts index 43f11dfcfc6ec67b9e13db350adb5c5ba22fe6f7..09a446222bf3b1f9828d59e8e4fcf664d1c0f97d 100644 --- a/arkoala/arkui/src/ArkImageAnimatorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkImageAnimatorInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkImageAttachmentMaterialized.ts b/arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkImageAttachmentMaterialized.ts rename to arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts index 8f5dded253fd099113b04ab3b225e367b3bfe921..bad719627d3439161c2f1dca6e0b943c1731d718 100644 --- a/arkoala/arkui/src/ArkImageAttachmentMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageAttachmentMaterialized.ts @@ -23,15 +23,20 @@ import { ImageAttachmentLayoutStyle, ImageAttachmentInterface } from "./ArkStyle import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ImageAttachmentInternal { + public static fromPtr(ptr: KPointer): ImageAttachment { + const obj: ImageAttachment = new ImageAttachment(undefined) + obj.peer = new Finalizable(ptr, ImageAttachment.getFinalizer()) + return obj + } +} export class ImageAttachment implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -52,7 +57,7 @@ export class ImageAttachment implements MaterializedBase { get layoutStyle(): ImageAttachmentLayoutStyle { throw new Error("Not implemented") } - static ctor(value: ImageAttachmentInterface): KPointer { + static ctor_imageattachment(value: ImageAttachmentInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeImageAttachmentInterface(value) const retval = ArkUIGeneratedNativeModule._ImageAttachment_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -60,9 +65,9 @@ export class ImageAttachment implements MaterializedBase { return retval } constructor(value?: ImageAttachmentInterface) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = ImageAttachment.ctor(value) + const ctorPtr: KPointer = ImageAttachment.ctor_imageattachment(value) this.peer = new Finalizable(ctorPtr, ImageAttachment.getFinalizer()) } } @@ -84,10 +89,3 @@ export class ImageAttachment implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ImageAttachmentInternal { - public static fromPtr(ptr: KPointer): ImageAttachment { - const obj: ImageAttachment = new ImageAttachment(undefined) - obj.peer = new Finalizable(ptr, ImageAttachment.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkImageBitmapMaterialized.ts b/arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkImageBitmapMaterialized.ts rename to arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts index 7ee93d18f6fb9b77e26f91597f10252cbc5c428b..cb05f2503b5110ef2358126cee633fe74465f78b 100644 --- a/arkoala/arkui/src/ArkImageBitmapMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageBitmapMaterialized.ts @@ -18,15 +18,20 @@ import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ImageBitmapInternal { + public static fromPtr(ptr: KPointer): ImageBitmap { + const obj: ImageBitmap = new ImageBitmap(undefined) + obj.peer = new Finalizable(ptr, ImageBitmap.getFinalizer()) + return obj + } +} export class ImageBitmap implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,14 +43,14 @@ export class ImageBitmap implements MaterializedBase { get width(): number { return this.getWidth() } - static ctor(src: string): KPointer { + static ctor_imagebitmap(src: string): KPointer { const retval = ArkUIGeneratedNativeModule._ImageBitmap_ctor(src) return retval } constructor(src?: string) { - if (((src) !== (undefined))) + if ((src) !== (undefined)) { - const ctorPtr: KPointer = ImageBitmap.ctor(src) + const ctorPtr: KPointer = ImageBitmap.ctor_imagebitmap(src) this.peer = new Finalizable(ctorPtr, ImageBitmap.getFinalizer()) } } @@ -74,10 +79,3 @@ export class ImageBitmap implements MaterializedBase { return retval } } -export class ImageBitmapInternal { - public static fromPtr(ptr: KPointer): ImageBitmap { - const obj: ImageBitmap = new ImageBitmap(undefined) - obj.peer = new Finalizable(ptr, ImageBitmap.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkImageCommonInterfaces.ts b/arkoala/arkui/src/generated/ArkImageCommonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkImageCommonInterfaces.ts rename to arkoala/arkui/src/generated/ArkImageCommonInterfaces.ts diff --git a/arkoala/arkui/src/ArkImageDataMaterialized.ts b/arkoala/arkui/src/generated/ArkImageDataMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkImageDataMaterialized.ts rename to arkoala/arkui/src/generated/ArkImageDataMaterialized.ts index d467de1b5e0ffd84683a433b474fb0e869384e8a..b705a6472b07383d0526b0a0e4e6415a38ac2b86 100644 --- a/arkoala/arkui/src/ArkImageDataMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkImageDataMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ImageDataInternal { + public static fromPtr(ptr: KPointer): ImageData { + const obj: ImageData = new ImageData(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ImageData.getFinalizer()) + return obj + } +} export class ImageData implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -40,7 +45,7 @@ export class ImageData implements MaterializedBase { get width(): number { return this.getWidth() } - static ctor(width: number, height: number, data?: ArrayBuffer): KPointer { + static ctor_imagedata(width: number, height: number, data?: ArrayBuffer): KPointer { const thisSerializer: Serializer = Serializer.hold() let data_type: int32 = RuntimeType.UNDEFINED data_type = runtimeType(data) @@ -56,7 +61,7 @@ export class ImageData implements MaterializedBase { constructor(width?: number, height?: number, data?: ArrayBuffer) { if (((width) !== (undefined)) && ((height) !== (undefined)) && ((data) !== (undefined))) { - const ctorPtr: KPointer = ImageData.ctor(width, height, data) + const ctorPtr: KPointer = ImageData.ctor_imagedata(width, height, data) this.peer = new Finalizable(ctorPtr, ImageData.getFinalizer()) } } @@ -78,10 +83,3 @@ export class ImageData implements MaterializedBase { return retval } } -export class ImageDataInternal { - public static fromPtr(ptr: KPointer): ImageData { - const obj: ImageData = new ImageData(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ImageData.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkImageInterfaces.ts b/arkoala/arkui/src/generated/ArkImageInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkImageInterfaces.ts rename to arkoala/arkui/src/generated/ArkImageInterfaces.ts index eec90f31299749855125ea7e3785fe7fdfb51f92..364cb3eb8d3fb54b83ac9b9f66baa29ebc236783 100644 --- a/arkoala/arkui/src/ArkImageInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkImageInterfaces.ts @@ -30,7 +30,7 @@ import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkImageSpan.ts b/arkoala/arkui/src/generated/ArkImageSpan.ts similarity index 97% rename from arkoala/arkui/src/ArkImageSpan.ts rename to arkoala/arkui/src/generated/ArkImageSpan.ts index 7b937558d5970bb9980ad384489ac69b02b2e94c..33d239e372b5b518ee3fcc61edfa1cf7753b2cbe 100644 --- a/arkoala/arkui/src/ArkImageSpan.ts +++ b/arkoala/arkui/src/generated/ArkImageSpan.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkBaseSpanComponent } from "./ArkSpan" import { ArkImageSpanPeer } from "./peers/ArkImageSpanPeer" import { UseEventsProperties } from "./use_properties" @@ -35,7 +34,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkImageSpanInterfaces.ts b/arkoala/arkui/src/generated/ArkImageSpanInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkImageSpanInterfaces.ts rename to arkoala/arkui/src/generated/ArkImageSpanInterfaces.ts index fe0da8e63615058fa306b67a0667bd5b595597fa..52612fdaa793508ef4ecb1f2a20bbd9d3a801f60 100644 --- a/arkoala/arkui/src/ArkImageSpanInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkImageSpanInterfaces.ts @@ -31,7 +31,7 @@ import { ResizableOptions, DrawingLattice, DrawingColorFilter, ImageErrorCallbac import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkIndicatorBuilder.ts b/arkoala/arkui/src/generated/ArkIndicatorBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkIndicatorBuilder.ts rename to arkoala/arkui/src/generated/ArkIndicatorBuilder.ts diff --git a/arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts index f5be89f2ffa7709f3e814eba275604b1191e9b50..e805ea9779358863afb21951bd27d0a9db380b04 100644 --- a/arkoala/arkui/src/ArkIndicatorComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkIndicatorComponentControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class IndicatorComponentControllerInternal { + public static fromPtr(ptr: KPointer): IndicatorComponentController { + const obj: IndicatorComponentController = new IndicatorComponentController() + obj.peer = new Finalizable(ptr, IndicatorComponentController.getFinalizer()) + return obj + } +} export class IndicatorComponentController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_indicatorcomponentcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._IndicatorComponentController_ctor() return retval } constructor() { - const ctorPtr: KPointer = IndicatorComponentController.ctor() + const ctorPtr: KPointer = IndicatorComponentController.ctor_indicatorcomponentcontroller() this.peer = new Finalizable(ctorPtr, IndicatorComponentController.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class IndicatorComponentController implements MaterializedBase { thisSerializer.release() } } -export class IndicatorComponentControllerInternal { - public static fromPtr(ptr: KPointer): IndicatorComponentController { - const obj: IndicatorComponentController = new IndicatorComponentController() - obj.peer = new Finalizable(ptr, IndicatorComponentController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkIndicatorcomponent.ts b/arkoala/arkui/src/generated/ArkIndicatorcomponent.ts similarity index 97% rename from arkoala/arkui/src/ArkIndicatorcomponent.ts rename to arkoala/arkui/src/generated/ArkIndicatorcomponent.ts index 4c111db2c659ed1a8a71ff67d40203545b87032c..5537a7dfbf1a2571e50b85db4d0df914a85b95c3 100644 --- a/arkoala/arkui/src/ArkIndicatorcomponent.ts +++ b/arkoala/arkui/src/generated/ArkIndicatorcomponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkIndicatorComponentPeer } from "./peers/ArkIndicatorcomponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkIndicatorcomponentInterfaces.ts b/arkoala/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkIndicatorcomponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts index bc32572da008b95724db09c3c116a5ac51344a3b..e8a1663406c6b0a828596e4593d18acfb810e3fd 100644 --- a/arkoala/arkui/src/ArkIndicatorcomponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkIndicatorcomponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkInspectorInterfaces.ts b/arkoala/arkui/src/generated/ArkInspectorInterfaces.ts new file mode 100644 index 0000000000000000000000000000000000000000..a9e69bb1f2f07ffe4e1dd0d468138b772ef4a4d7 --- /dev/null +++ b/arkoala/arkui/src/generated/ArkInspectorInterfaces.ts @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, KStringPtr, wrapCallback } from "@koalaui/interop" +import { NodeAttach, remember } from "@koalaui/runtime" +declare function getInspectorNodes(): Object +declare function getInspectorNodeById(arg0: number): Object +declare function setAppBgColor(arg0: string): void diff --git a/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkIsolatedComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkIsolatedComponentInterfaces.ts index 1e0ca34a4769b7bf90f0ff2d4c736c0adb416751..7ce1d59558d919f5623e49581be664b84ac73888 100644 --- a/arkoala/arkui/src/ArkIsolatedComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkIsolatedComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkJsGeolocationMaterialized.ts b/arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkJsGeolocationMaterialized.ts rename to arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts index ce2f13d0e53583f31a89937ed5fff154eb003ae4..054de3d65ed6fce181efc1030747a1ddb93796c7 100644 --- a/arkoala/arkui/src/ArkJsGeolocationMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkJsGeolocationMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class JsGeolocationInternal { + public static fromPtr(ptr: KPointer): JsGeolocation { + const obj: JsGeolocation = new JsGeolocation() + obj.peer = new Finalizable(ptr, JsGeolocation.getFinalizer()) + return obj + } +} export class JsGeolocation implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_jsgeolocation(): KPointer { const retval = ArkUIGeneratedNativeModule._JsGeolocation_ctor() return retval } constructor() { - const ctorPtr: KPointer = JsGeolocation.ctor() + const ctorPtr: KPointer = JsGeolocation.ctor_jsgeolocation() this.peer = new Finalizable(ctorPtr, JsGeolocation.getFinalizer()) } static getFinalizer(): KPointer { @@ -52,10 +57,3 @@ export class JsGeolocation implements MaterializedBase { ArkUIGeneratedNativeModule._JsGeolocation_invoke(this.peer!.ptr, origin, +allow, +retain) } } -export class JsGeolocationInternal { - public static fromPtr(ptr: KPointer): JsGeolocation { - const obj: JsGeolocation = new JsGeolocation() - obj.peer = new Finalizable(ptr, JsGeolocation.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkJsResultMaterialized.ts b/arkoala/arkui/src/generated/ArkJsResultMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkJsResultMaterialized.ts rename to arkoala/arkui/src/generated/ArkJsResultMaterialized.ts index b49f6493421ad196c50c1318861919da1ad1dcf0..ec37b7428a8b37ed682e25e57f2e42ae818d6ba7 100644 --- a/arkoala/arkui/src/ArkJsResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkJsResultMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class JsResultInternal { + public static fromPtr(ptr: KPointer): JsResult { + const obj: JsResult = new JsResult() + obj.peer = new Finalizable(ptr, JsResult.getFinalizer()) + return obj + } +} export class JsResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_jsresult(): KPointer { const retval = ArkUIGeneratedNativeModule._JsResult_ctor() return retval } constructor() { - const ctorPtr: KPointer = JsResult.ctor() + const ctorPtr: KPointer = JsResult.ctor_jsresult() this.peer = new Finalizable(ctorPtr, JsResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -64,10 +69,3 @@ export class JsResult implements MaterializedBase { ArkUIGeneratedNativeModule._JsResult_handlePromptConfirm(this.peer!.ptr, result) } } -export class JsResultInternal { - public static fromPtr(ptr: KPointer): JsResult { - const obj: JsResult = new JsResult() - obj.peer = new Finalizable(ptr, JsResult.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkKeyEventMaterialized.ts b/arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts similarity index 97% rename from arkoala/arkui/src/ArkKeyEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts index 74a0dc443e415e6607097aa02e323541b8443687..a5c6209df6e75980b36601386f102ac676160cd9 100644 --- a/arkoala/arkui/src/ArkKeyEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkKeyEventMaterialized.ts @@ -18,12 +18,10 @@ import { KeyType, KeySource } from "./ArkEnumsInterfaces" import { IntentionCode } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -106,12 +104,12 @@ export class KeyEventInternal implements MaterializedBase,KeyEvent { const unicode_NonNull = (unicode as number) this.setUnicode(unicode_NonNull) } - static ctor(): KPointer { + static ctor_keyevent(): KPointer { const retval = ArkUIGeneratedNativeModule._KeyEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = KeyEventInternal.ctor() + const ctorPtr: KPointer = KeyEventInternal.ctor_keyevent() this.peer = new Finalizable(ctorPtr, KeyEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts b/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkLayoutManagerMaterialized.ts rename to arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts index ed3beb9b7a11a69f2bb1ef9edfc216a6658b4a4c..72fdd0935cd61fdc174cdc20157da61006672a9c 100644 --- a/arkoala/arkui/src/ArkLayoutManagerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLayoutManagerMaterialized.ts @@ -18,12 +18,10 @@ import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -38,12 +36,12 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_layoutmanager(): KPointer { const retval = ArkUIGeneratedNativeModule._LayoutManager_ctor() return retval } constructor() { - const ctorPtr: KPointer = LayoutManagerInternal.ctor() + const ctorPtr: KPointer = LayoutManagerInternal.ctor_layoutmanager() this.peer = new Finalizable(ctorPtr, LayoutManagerInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,11 +71,11 @@ export class LayoutManagerInternal implements MaterializedBase,LayoutManager { } private getGlyphPositionAtCoordinate_serialize(x: number, y: number): PositionWithAffinity { const retval = ArkUIGeneratedNativeModule._LayoutManager_getGlyphPositionAtCoordinate(this.peer!.ptr, x, y) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readPositionWithAffinity() } private getLineMetrics_serialize(lineNumber: number): LineMetrics { const retval = ArkUIGeneratedNativeModule._LayoutManager_getLineMetrics(this.peer!.ptr, lineNumber) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readLineMetrics() } private getRectsForRange_serialize(range: TextRange, widthStyle: RectWidthStyle, heightStyle: RectHeightStyle): Array { const thisSerializer: Serializer = Serializer.hold() diff --git a/arkoala/arkui/src/ArkLazyForEachInterfaces.ts b/arkoala/arkui/src/generated/ArkLazyForEachInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkLazyForEachInterfaces.ts rename to arkoala/arkui/src/generated/ArkLazyForEachInterfaces.ts diff --git a/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts b/arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts rename to arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts index 9cf3affbaf5e71b0e98d5db7d5228bdd182625c7..2b6eff7fd879b0ea82235f86765c3386782797ce 100644 --- a/arkoala/arkui/src/ArkLazyForEachOpsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLazyForEachOpsMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Callback_RangeUpdate } from "./ArkArkuiCustomInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LazyForEachOpsInternal { + public static fromPtr(ptr: KPointer): LazyForEachOps { + const obj: LazyForEachOps = new LazyForEachOps() + obj.peer = new Finalizable(ptr, LazyForEachOps.getFinalizer()) + return obj + } +} export class LazyForEachOps implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_lazyforeachops(): KPointer { const retval = ArkUIGeneratedNativeModule._LazyForEachOps_ctor() return retval } @@ -39,7 +44,7 @@ export class LazyForEachOps implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = LazyForEachOps.ctor() + const ctorPtr: KPointer = LazyForEachOps.ctor_lazyforeachops() this.peer = new Finalizable(ctorPtr, LazyForEachOps.getFinalizer()) } static getFinalizer(): KPointer { @@ -86,10 +91,3 @@ export class LazyForEachOps implements MaterializedBase { ArkUIGeneratedNativeModule._LazyForEachOps_Prepare(node) } } -export class LazyForEachOpsInternal { - public static fromPtr(ptr: KPointer): LazyForEachOps { - const obj: LazyForEachOps = new LazyForEachOps() - obj.peer = new Finalizable(ptr, LazyForEachOps.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts b/arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkLengthMetricsMaterialized.ts rename to arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts index 4a7f1bdee3e22bcecea0f3a939f2ac5362b8d06c..ae1da8ffa8eabea11213c9684e2daee96af3461f 100644 --- a/arkoala/arkui/src/ArkLengthMetricsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLengthMetricsMaterialized.ts @@ -18,15 +18,20 @@ import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LengthMetricsInternal { + public static fromPtr(ptr: KPointer): LengthMetrics { + const obj: LengthMetrics = new LengthMetrics() + obj.peer = new Finalizable(ptr, LengthMetrics.getFinalizer()) + return obj + } +} export class LengthMetrics implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -44,7 +49,7 @@ export class LengthMetrics implements MaterializedBase { set value(value: number) { this.setValue(value) } - static ctor(): KPointer { + static ctor_lengthmetrics(): KPointer { const retval = ArkUIGeneratedNativeModule._LengthMetrics_ctor() return retval } @@ -52,7 +57,7 @@ export class LengthMetrics implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = LengthMetrics.ctor() + const ctorPtr: KPointer = LengthMetrics.ctor_lengthmetrics() this.peer = new Finalizable(ctorPtr, LengthMetrics.getFinalizer()) } static getFinalizer(): KPointer { @@ -110,10 +115,3 @@ export class LengthMetrics implements MaterializedBase { ArkUIGeneratedNativeModule._LengthMetrics_setValue(this.peer!.ptr, value) } } -export class LengthMetricsInternal { - public static fromPtr(ptr: KPointer): LengthMetrics { - const obj: LengthMetrics = new LengthMetrics() - obj.peer = new Finalizable(ptr, LengthMetrics.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts index dc5eca95a139dc3b340da18ab9f33d76c254b1c4..13e77496d376b5a2869c4175956e55c6d9298f90 100644 --- a/arkoala/arkui/src/ArkLetterSpacingStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLetterSpacingStyleMaterialized.ts @@ -19,15 +19,20 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LetterSpacingStyleInternal { + public static fromPtr(ptr: KPointer): LetterSpacingStyle { + const obj: LetterSpacingStyle = new LetterSpacingStyle(undefined) + obj.peer = new Finalizable(ptr, LetterSpacingStyle.getFinalizer()) + return obj + } +} export class LetterSpacingStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,7 +41,7 @@ export class LetterSpacingStyle implements MaterializedBase { get letterSpacing(): number { return this.getLetterSpacing() } - static ctor(value: LengthMetrics): KPointer { + static ctor_letterspacingstyle(value: LengthMetrics): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(value) const retval = ArkUIGeneratedNativeModule._LetterSpacingStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -44,9 +49,9 @@ export class LetterSpacingStyle implements MaterializedBase { return retval } constructor(value?: LengthMetrics) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = LetterSpacingStyle.ctor(value) + const ctorPtr: KPointer = LetterSpacingStyle.ctor_letterspacingstyle(value) this.peer = new Finalizable(ctorPtr, LetterSpacingStyle.getFinalizer()) } } @@ -61,10 +66,3 @@ export class LetterSpacingStyle implements MaterializedBase { return retval } } -export class LetterSpacingStyleInternal { - public static fromPtr(ptr: KPointer): LetterSpacingStyle { - const obj: LetterSpacingStyle = new LetterSpacingStyle(undefined) - obj.peer = new Finalizable(ptr, LetterSpacingStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLine.ts b/arkoala/arkui/src/generated/ArkLine.ts similarity index 97% rename from arkoala/arkui/src/ArkLine.ts rename to arkoala/arkui/src/generated/ArkLine.ts index 1c5ece0d980b7b63637c856a891933c9a1c7807a..00063e53ae59c61aaed5c33d4fbfa74f6c56afa1 100644 --- a/arkoala/arkui/src/ArkLine.ts +++ b/arkoala/arkui/src/generated/ArkLine.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkLinePeer } from "./peers/ArkLinePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts index d1f636c97c4c2f8d076d33d87bf255becfce2e44..378ab7b116f826568cd8068175b5458273849078 100644 --- a/arkoala/arkui/src/ArkLineHeightStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLineHeightStyleMaterialized.ts @@ -19,15 +19,20 @@ import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LineHeightStyleInternal { + public static fromPtr(ptr: KPointer): LineHeightStyle { + const obj: LineHeightStyle = new LineHeightStyle(undefined) + obj.peer = new Finalizable(ptr, LineHeightStyle.getFinalizer()) + return obj + } +} export class LineHeightStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,7 +41,7 @@ export class LineHeightStyle implements MaterializedBase { get lineHeight(): number { return this.getLineHeight() } - static ctor(lineHeight: LengthMetrics): KPointer { + static ctor_lineheightstyle(lineHeight: LengthMetrics): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeLengthMetrics(lineHeight) const retval = ArkUIGeneratedNativeModule._LineHeightStyle_ctor(thisSerializer.asArray(), thisSerializer.length()) @@ -44,9 +49,9 @@ export class LineHeightStyle implements MaterializedBase { return retval } constructor(lineHeight?: LengthMetrics) { - if (((lineHeight) !== (undefined))) + if ((lineHeight) !== (undefined)) { - const ctorPtr: KPointer = LineHeightStyle.ctor(lineHeight) + const ctorPtr: KPointer = LineHeightStyle.ctor_lineheightstyle(lineHeight) this.peer = new Finalizable(ctorPtr, LineHeightStyle.getFinalizer()) } } @@ -61,10 +66,3 @@ export class LineHeightStyle implements MaterializedBase { return retval } } -export class LineHeightStyleInternal { - public static fromPtr(ptr: KPointer): LineHeightStyle { - const obj: LineHeightStyle = new LineHeightStyle(undefined) - obj.peer = new Finalizable(ptr, LineHeightStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLineInterfaces.ts b/arkoala/arkui/src/generated/ArkLineInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkLineInterfaces.ts rename to arkoala/arkui/src/generated/ArkLineInterfaces.ts index b07770efedf67780536c370a0f4e4a70b3fb6af0..07bcb47d1f7f59fe912aacf9306bdf61a731dd53 100644 --- a/arkoala/arkui/src/ArkLineInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkLineInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLinearGradientMaterialized.ts b/arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts similarity index 87% rename from arkoala/arkui/src/ArkLinearGradientMaterialized.ts rename to arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts index 96ebf16d288ac3c4c3ec6d68a7cbb124e2d6b7ec..e03c1a0de204efb47861159d77317ab570946a9a 100644 --- a/arkoala/arkui/src/ArkLinearGradientMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLinearGradientMaterialized.ts @@ -18,21 +18,26 @@ import { ColorStop } from "./ArkDataPanelInterfaces" import { ResourceColor, Length } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LinearGradientInternal { + public static fromPtr(ptr: KPointer): LinearGradient { + const obj: LinearGradient = new LinearGradient(undefined) + obj.peer = new Finalizable(ptr, LinearGradient.getFinalizer()) + return obj + } +} export class LinearGradient implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(colorStops: Array): KPointer { + static ctor_lineargradient(colorStops: Array): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(colorStops.length) for (let i = 0; i < colorStops.length; i++) { @@ -44,9 +49,9 @@ export class LinearGradient implements MaterializedBase { return retval } constructor(colorStops?: Array) { - if (((colorStops) !== (undefined))) + if ((colorStops) !== (undefined)) { - const ctorPtr: KPointer = LinearGradient.ctor(colorStops) + const ctorPtr: KPointer = LinearGradient.ctor_lineargradient(colorStops) this.peer = new Finalizable(ctorPtr, LinearGradient.getFinalizer()) } } @@ -54,10 +59,3 @@ export class LinearGradient implements MaterializedBase { return ArkUIGeneratedNativeModule._LinearGradient_getFinalizer() } } -export class LinearGradientInternal { - public static fromPtr(ptr: KPointer): LinearGradient { - const obj: LinearGradient = new LinearGradient(undefined) - obj.peer = new Finalizable(ptr, LinearGradient.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts index 35f8b726828846cd2d4793cbfb45d3c52398c0f6..d3512be3122603043ecb5931be674f7ffa492212 100644 --- a/arkoala/arkui/src/ArkLinearIndicatorControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLinearIndicatorControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LinearIndicatorStartOptions } from "./ArkLinearindicatorInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class LinearIndicatorControllerInternal { + public static fromPtr(ptr: KPointer): LinearIndicatorController { + const obj: LinearIndicatorController = new LinearIndicatorController() + obj.peer = new Finalizable(ptr, LinearIndicatorController.getFinalizer()) + return obj + } +} export class LinearIndicatorController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_linearindicatorcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._LinearIndicatorController_ctor() return retval } constructor() { - const ctorPtr: KPointer = LinearIndicatorController.ctor() + const ctorPtr: KPointer = LinearIndicatorController.ctor_linearindicatorcontroller() this.peer = new Finalizable(ctorPtr, LinearIndicatorController.getFinalizer()) } static getFinalizer(): KPointer { @@ -83,10 +88,3 @@ export class LinearIndicatorController implements MaterializedBase { ArkUIGeneratedNativeModule._LinearIndicatorController_stop(this.peer!.ptr) } } -export class LinearIndicatorControllerInternal { - public static fromPtr(ptr: KPointer): LinearIndicatorController { - const obj: LinearIndicatorController = new LinearIndicatorController() - obj.peer = new Finalizable(ptr, LinearIndicatorController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkLinearindicator.ts b/arkoala/arkui/src/generated/ArkLinearindicator.ts similarity index 97% rename from arkoala/arkui/src/ArkLinearindicator.ts rename to arkoala/arkui/src/generated/ArkLinearindicator.ts index 7b81bdd7019ec37b9ec368aac7a9b18ac89e21c6..a1ccba729025ba54c4e9e0be1a525868d8196859 100644 --- a/arkoala/arkui/src/ArkLinearindicator.ts +++ b/arkoala/arkui/src/generated/ArkLinearindicator.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLinearIndicatorPeer } from "./peers/ArkLinearindicatorPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLinearindicatorInterfaces.ts b/arkoala/arkui/src/generated/ArkLinearindicatorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkLinearindicatorInterfaces.ts rename to arkoala/arkui/src/generated/ArkLinearindicatorInterfaces.ts index 6730d744fdf05c2f56f13d5cd3fcd6f267d10ecf..c3329e2a0210fedd7284d9eb16dd919d68519e41 100644 --- a/arkoala/arkui/src/ArkLinearindicatorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkLinearindicatorInterfaces.ts @@ -31,7 +31,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkList.ts b/arkoala/arkui/src/generated/ArkList.ts similarity index 98% rename from arkoala/arkui/src/ArkList.ts rename to arkoala/arkui/src/generated/ArkList.ts index e9d428bf8b8e0f25d7dd4931b6dc13365832e850..934f498d1af9db16ac6f071758c18516eec27bd5 100644 --- a/arkoala/arkui/src/ArkList.ts +++ b/arkoala/arkui/src/generated/ArkList.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkListPeer } from "./peers/ArkListPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -147,12 +146,12 @@ export class ArkListComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala/arkui/src/ArkListInterfaces.ts b/arkoala/arkui/src/generated/ArkListInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkListInterfaces.ts rename to arkoala/arkui/src/generated/ArkListInterfaces.ts index 7d1ac33bf14de33ec7729a4c6fdda209abd75707..d99cf5b7084f7340c2e7ab5eee343350538e05d3 100644 --- a/arkoala/arkui/src/ArkListInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkListInterfaces.ts @@ -33,7 +33,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkListItem.ts b/arkoala/arkui/src/generated/ArkListItem.ts similarity index 96% rename from arkoala/arkui/src/ArkListItem.ts rename to arkoala/arkui/src/generated/ArkListItem.ts index b813f01e8fe526be78473ba9615081c8ed7ec00d..f1f5e8c92e668e22419b19c83c0333b5ee2d0af8 100644 --- a/arkoala/arkui/src/ArkListItem.ts +++ b/arkoala/arkui/src/generated/ArkListItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemPeer } from "./peers/ArkListItemPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -62,12 +61,12 @@ export class ArkListItemComponent extends ArkCommonMethodComponent { public setListItemOptions(value?: ListItemOptions | undefined | string | undefined): this { if (this.checkPriority("setListItemOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (ListItemOptions | undefined) this.getPeer()?.setListItemOptions0Attribute(value_casted) return this } - if ((((RuntimeType.STRING == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as (string | undefined) this.getPeer()?.setListItemOptions1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkListItemGroup.ts b/arkoala/arkui/src/generated/ArkListItemGroup.ts similarity index 97% rename from arkoala/arkui/src/ArkListItemGroup.ts rename to arkoala/arkui/src/generated/ArkListItemGroup.ts index 7a8e19e381d7eb4ff8f17ff8adbd3208cd8655f6..3c15fc044deab4e297825631d549d694a13ee706 100644 --- a/arkoala/arkui/src/ArkListItemGroup.ts +++ b/arkoala/arkui/src/generated/ArkListItemGroup.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkListItemGroupPeer } from "./peers/ArkListItemGroupPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkListItemGroupInterfaces.ts b/arkoala/arkui/src/generated/ArkListItemGroupInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkListItemGroupInterfaces.ts rename to arkoala/arkui/src/generated/ArkListItemGroupInterfaces.ts index 3e51021e5541ded3fef5bfadc0ac9b2ee4006a14..b73926294c254a15c6b0a4a17c335361e2d3c416 100644 --- a/arkoala/arkui/src/ArkListItemGroupInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkListItemGroupInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkListItemInterfaces.ts b/arkoala/arkui/src/generated/ArkListItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkListItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkListItemInterfaces.ts index 11044f2fdfa1e8d77b8873b28ae44f35362deb63..4c6cf4441847eac4227ae695f5284528b4daadec 100644 --- a/arkoala/arkui/src/ArkListItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkListItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkListScrollerMaterialized.ts b/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkListScrollerMaterialized.ts rename to arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts index 2834bdedc9ecafaa4411e5ad71d059664082068d..6f9df2801eddb13bb764553c724e310355c297df 100644 --- a/arkoala/arkui/src/ArkListScrollerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkListScrollerMaterialized.ts @@ -26,27 +26,32 @@ import { Resource } from "./ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ListScrollerInternal { + public static fromPtr(ptr: KPointer): ListScroller { + const obj: ListScroller = new ListScroller() + obj.peer = new Finalizable(ptr, ListScroller.getFinalizer()) + return obj + } +} export class ListScroller extends Scroller implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_listscroller(): KPointer { const retval = ArkUIGeneratedNativeModule._ListScroller_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = ListScroller.ctor() + const ctorPtr: KPointer = ListScroller.ctor_listscroller() this.peer = new Finalizable(ctorPtr, ListScroller.getFinalizer()) } static getFinalizer(): KPointer { @@ -77,7 +82,7 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getItemRectInGroup_serialize(index: number, indexInGroup: number): RectResult { const retval = ArkUIGeneratedNativeModule._ListScroller_getItemRectInGroup(this.peer!.ptr, index, indexInGroup) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readRectResult() } private scrollToItemInGroup_serialize(index: number, indexInGroup: number, smooth?: boolean, align?: ScrollAlign): void { const thisSerializer: Serializer = Serializer.hold() @@ -112,13 +117,6 @@ export class ListScroller extends Scroller implements MaterializedBase { } private getVisibleListContentInfo_serialize(x: number, y: number): VisibleListContentInfo { const retval = ArkUIGeneratedNativeModule._ListScroller_getVisibleListContentInfo(this.peer!.ptr, x, y) - throw new Error("Object deserialization is not implemented.") - } -} -export class ListScrollerInternal { - public static fromPtr(ptr: KPointer): ListScroller { - const obj: ListScroller = new ListScroller() - obj.peer = new Finalizable(ptr, ListScroller.getFinalizer()) - return obj + return new Deserializer(retval.buffer, retval.byteLength).readVisibleListContentInfo() } } diff --git a/arkoala/arkui/src/ArkLoadingProgress.ts b/arkoala/arkui/src/generated/ArkLoadingProgress.ts similarity index 97% rename from arkoala/arkui/src/ArkLoadingProgress.ts rename to arkoala/arkui/src/generated/ArkLoadingProgress.ts index 48d6a641ce7e943670d2cd1cf53e3643953cd4f9..069758ae326bdb0ed35f24e373c1add85fe134a9 100644 --- a/arkoala/arkui/src/ArkLoadingProgress.ts +++ b/arkoala/arkui/src/generated/ArkLoadingProgress.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkLoadingProgressPeer } from "./peers/ArkLoadingProgressPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLoadingProgressInterfaces.ts b/arkoala/arkui/src/generated/ArkLoadingProgressInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkLoadingProgressInterfaces.ts rename to arkoala/arkui/src/generated/ArkLoadingProgressInterfaces.ts index 75dac5dd5c3f4c2d74fd96a8d9de1bf82bb17cfc..55b1f71d41bf5f6683d25064f21918b7e8dff7a9 100644 --- a/arkoala/arkui/src/ArkLoadingProgressInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkLoadingProgressInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkLocationButton.ts b/arkoala/arkui/src/generated/ArkLocationButton.ts similarity index 93% rename from arkoala/arkui/src/ArkLocationButton.ts rename to arkoala/arkui/src/generated/ArkLocationButton.ts index df570efad5dfd5a5f70a169c8dc55f960e19c2a8..aa274eb34c0e0d947d7a8d0bb403fa8fc22d71c2 100644 --- a/arkoala/arkui/src/ArkLocationButton.ts +++ b/arkoala/arkui/src/generated/ArkLocationButton.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkLocationButtonPeer } from "./peers/ArkLocationButtonPeer" import { UseEventsProperties } from "./use_properties" @@ -44,11 +43,11 @@ export class ArkLocationButtonComponent extends ArkSecurityComponentMethodCompon public setLocationButtonOptions(options?: LocationButtonOptions): this { if (this.checkPriority("setLocationButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setLocationButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (LocationButtonOptions) this.getPeer()?.setLocationButtonOptions1Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkLocationButtonInterfaces.ts b/arkoala/arkui/src/generated/ArkLocationButtonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkLocationButtonInterfaces.ts rename to arkoala/arkui/src/generated/ArkLocationButtonInterfaces.ts diff --git a/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts index 2b7f79782b6a9ee9252116623518c6787bcffad3..806f659312679eb561d901bc974036868f977a52 100644 --- a/arkoala/arkui/src/ArkLongPressGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkLongPressGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -45,13 +43,13 @@ export class LongPressGestureEventInternal extends BaseGestureEventInternal impl set repeat(repeat: boolean) { this.setRepeat(repeat) } - static ctor(): KPointer { + static ctor_longpressgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._LongPressGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = LongPressGestureEventInternal.ctor() + const ctorPtr: KPointer = LongPressGestureEventInternal.ctor_longpressgestureevent() this.peer = new Finalizable(ctorPtr, LongPressGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkMarquee.ts b/arkoala/arkui/src/generated/ArkMarquee.ts similarity index 98% rename from arkoala/arkui/src/ArkMarquee.ts rename to arkoala/arkui/src/generated/ArkMarquee.ts index 8291ab041542397eb401f4fd8ac8b9984a7a98e5..df77b61d4a4ee8cb3a1bc163ec68b4b0b51b2ec2 100644 --- a/arkoala/arkui/src/ArkMarquee.ts +++ b/arkoala/arkui/src/generated/ArkMarquee.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMarqueePeer } from "./peers/ArkMarqueePeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMarqueeInterfaces.ts b/arkoala/arkui/src/generated/ArkMarqueeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMarqueeInterfaces.ts rename to arkoala/arkui/src/generated/ArkMarqueeInterfaces.ts index 9c0b5d30fc6dbc968fe33f37603401ad5496576a..4e424dee383f2b3cfa9bb11b2212236df6b35a26 100644 --- a/arkoala/arkui/src/ArkMarqueeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMarqueeInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMatrix2DMaterialized.ts b/arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkMatrix2DMaterialized.ts rename to arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts index 4acd3aa071768fd269c1e27d7c23e7527f0f4c57..5f09dc11158c36c20c139afe21a419b5b8567f1d 100644 --- a/arkoala/arkui/src/ArkMatrix2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMatrix2DMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { LengthMetricsUnit } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class Matrix2DInternal { + public static fromPtr(ptr: KPointer): Matrix2D { + const obj: Matrix2D = new Matrix2D() + obj.peer = new Finalizable(ptr, Matrix2D.getFinalizer()) + return obj + } +} export class Matrix2D implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -73,12 +78,12 @@ export class Matrix2D implements MaterializedBase { const translateY_NonNull = (translateY as number) this.setTranslateY(translateY_NonNull) } - static ctor(): KPointer { + static ctor_matrix2d(): KPointer { const retval = ArkUIGeneratedNativeModule._Matrix2D_ctor() return retval } constructor() { - const ctorPtr: KPointer = Matrix2D.ctor() + const ctorPtr: KPointer = Matrix2D.ctor_matrix2d() this.peer = new Finalizable(ctorPtr, Matrix2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -98,12 +103,12 @@ export class Matrix2D implements MaterializedBase { const degree_type = runtimeType(degree) const rx_type = runtimeType(rx) const ry_type = runtimeType(ry) - if ((((RuntimeType.NUMBER == degree_type)) || ((RuntimeType.UNDEFINED == degree_type))) && (((RuntimeType.NUMBER == rx_type)) || ((RuntimeType.UNDEFINED == rx_type))) && (((RuntimeType.UNDEFINED == ry_type)))) { + if (((RuntimeType.NUMBER == degree_type) || (RuntimeType.UNDEFINED == degree_type)) && ((RuntimeType.NUMBER == rx_type) || (RuntimeType.UNDEFINED == rx_type)) && (RuntimeType.UNDEFINED == ry_type)) { const rx_casted = degree as (number | undefined) const ry_casted = rx as (number | undefined) return this.rotate0_serialize(rx_casted, ry_casted) } - if ((((RuntimeType.NUMBER == degree_type))) && (((RuntimeType.NUMBER == rx_type)) || ((RuntimeType.UNDEFINED == rx_type))) && (((RuntimeType.NUMBER == ry_type)) || ((RuntimeType.UNDEFINED == ry_type)))) { + if ((RuntimeType.NUMBER == degree_type) && ((RuntimeType.NUMBER == rx_type) || (RuntimeType.UNDEFINED == rx_type)) && ((RuntimeType.NUMBER == ry_type) || (RuntimeType.UNDEFINED == ry_type))) { const degree_casted = degree as (number) const rx_casted = rx as (number | undefined) const ry_casted = ry as (number | undefined) @@ -320,10 +325,3 @@ export class Matrix2D implements MaterializedBase { ArkUIGeneratedNativeModule._Matrix2D_setTranslateY(this.peer!.ptr, translateY) } } -export class Matrix2DInternal { - public static fromPtr(ptr: KPointer): Matrix2D { - const obj: Matrix2D = new Matrix2D() - obj.peer = new Finalizable(ptr, Matrix2D.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkMeasurableMaterialized.ts b/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts similarity index 75% rename from arkoala/arkui/src/ArkMeasurableMaterialized.ts rename to arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts index 24616a3596210f46170ef1b62b78279a20e1d5cc..cf5c278c9ae5287fdc4068f70adf491de79fa4aa 100644 --- a/arkoala/arkui/src/ArkMeasurableMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMeasurableMaterialized.ts @@ -18,32 +18,31 @@ import { ConstraintSizeOptions, DirectionalEdgesT, Length } from "./ArkUnitsInterfaces" import { MeasureResult, SizeResult } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" export interface Measurable { measure(constraint: ConstraintSizeOptions): MeasureResult - getMargin(): DirectionalEdgesT - getPadding(): DirectionalEdgesT - getBorderWidth(): DirectionalEdgesT + getMargin(): DirectionalEdgesT + getPadding(): DirectionalEdgesT + getBorderWidth(): DirectionalEdgesT } export class MeasurableInternal implements MaterializedBase,Measurable { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_measurable(): KPointer { const retval = ArkUIGeneratedNativeModule._Measurable_ctor() return retval } constructor() { - const ctorPtr: KPointer = MeasurableInternal.ctor() + const ctorPtr: KPointer = MeasurableInternal.ctor_measurable() this.peer = new Finalizable(ctorPtr, MeasurableInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,13 +52,13 @@ export class MeasurableInternal implements MaterializedBase,Measurable { const constraint_casted = constraint as (ConstraintSizeOptions) return this.measure_serialize(constraint_casted) } - public getMargin(): DirectionalEdgesT { + public getMargin(): DirectionalEdgesT { return this.getMargin_serialize() } - public getPadding(): DirectionalEdgesT { + public getPadding(): DirectionalEdgesT { return this.getPadding_serialize() } - public getBorderWidth(): DirectionalEdgesT { + public getBorderWidth(): DirectionalEdgesT { return this.getBorderWidth_serialize() } private measure_serialize(constraint: ConstraintSizeOptions): MeasureResult { @@ -67,19 +66,19 @@ export class MeasurableInternal implements MaterializedBase,Measurable { thisSerializer.writeConstraintSizeOptions(constraint) const retval = ArkUIGeneratedNativeModule._Measurable_measure(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readMeasureResult() } - private getMargin_serialize(): DirectionalEdgesT { + private getMargin_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getMargin(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readDirectionalEdgesT() } - private getPadding_serialize(): DirectionalEdgesT { + private getPadding_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getPadding(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readDirectionalEdgesT() } - private getBorderWidth_serialize(): DirectionalEdgesT { + private getBorderWidth_serialize(): DirectionalEdgesT { const retval = ArkUIGeneratedNativeModule._Measurable_getBorderWidth(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readDirectionalEdgesT() } public static fromPtr(ptr: KPointer): MeasurableInternal { const obj: MeasurableInternal = new MeasurableInternal() diff --git a/arkoala/arkui/src/ArkMediaCachedImage.ts b/arkoala/arkui/src/generated/ArkMediaCachedImage.ts similarity index 97% rename from arkoala/arkui/src/ArkMediaCachedImage.ts rename to arkoala/arkui/src/generated/ArkMediaCachedImage.ts index 6c0b2b1415455d95a1d351519b824d6808edcdeb..b952cfaab277013338fc030cfc9e073381429900 100644 --- a/arkoala/arkui/src/ArkMediaCachedImage.ts +++ b/arkoala/arkui/src/generated/ArkMediaCachedImage.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkImageComponent } from "./ArkImage" import { ArkMediaCachedImagePeer } from "./peers/ArkMediaCachedImagePeer" import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./ArkImageInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts b/arkoala/arkui/src/generated/ArkMediaCachedImageInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts rename to arkoala/arkui/src/generated/ArkMediaCachedImageInterfaces.ts index ae4a43dc2b255c94d7bbca68c8d3100f652b6285..4d1ce89d09dbec2d3be2ec031084679bf60d7de5 100644 --- a/arkoala/arkui/src/ArkMediaCachedImageInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMediaCachedImageInterfaces.ts @@ -30,7 +30,7 @@ import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkMenu.ts b/arkoala/arkui/src/generated/ArkMenu.ts similarity index 97% rename from arkoala/arkui/src/ArkMenu.ts rename to arkoala/arkui/src/generated/ArkMenu.ts index ef6f00fd54fc13df912c256322aba8ff5bc6f233..8dd7d1b51198ae3d9df4c9633173f277deca47b8 100644 --- a/arkoala/arkui/src/ArkMenu.ts +++ b/arkoala/arkui/src/generated/ArkMenu.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuPeer } from "./peers/ArkMenuPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuInterfaces.ts b/arkoala/arkui/src/generated/ArkMenuInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMenuInterfaces.ts rename to arkoala/arkui/src/generated/ArkMenuInterfaces.ts index cb777876d3fafd667b039ef735f1a71dc3861bb0..657d88864ad7309a9f887fc3d89dc68cbd5f8c03 100644 --- a/arkoala/arkui/src/ArkMenuInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMenuInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuItem.ts b/arkoala/arkui/src/generated/ArkMenuItem.ts similarity index 98% rename from arkoala/arkui/src/ArkMenuItem.ts rename to arkoala/arkui/src/generated/ArkMenuItem.ts index b529ff4bc73249b16dd0f0af5fc647dcdd47ea9a..7a715f3d66c58056869d6ef4148f2cf37c9f6749 100644 --- a/arkoala/arkui/src/ArkMenuItem.ts +++ b/arkoala/arkui/src/generated/ArkMenuItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemPeer } from "./peers/ArkMenuItemPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuItemGroup.ts b/arkoala/arkui/src/generated/ArkMenuItemGroup.ts similarity index 97% rename from arkoala/arkui/src/ArkMenuItemGroup.ts rename to arkoala/arkui/src/generated/ArkMenuItemGroup.ts index db6e1d48ddcfd4220f4ef0b25d0b722fdeff13e1..c4941b554f73662c3e867393e30625c6411a82da 100644 --- a/arkoala/arkui/src/ArkMenuItemGroup.ts +++ b/arkoala/arkui/src/generated/ArkMenuItemGroup.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkMenuItemGroupPeer } from "./peers/ArkMenuItemGroupPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuItemGroupInterfaces.ts b/arkoala/arkui/src/generated/ArkMenuItemGroupInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMenuItemGroupInterfaces.ts rename to arkoala/arkui/src/generated/ArkMenuItemGroupInterfaces.ts index 685d11395e9cd0f0f169241d8f8dbc8e68b0a863..2e9d330d3ee38aea55cbae429d2ff6a8af9ea709 100644 --- a/arkoala/arkui/src/ArkMenuItemGroupInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMenuItemGroupInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMenuItemInterfaces.ts b/arkoala/arkui/src/generated/ArkMenuItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkMenuItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkMenuItemInterfaces.ts index 952dff602c5cdb85c40a6822ac1f3b40d7f645e8..3c580f4cd444bf2941c8c1e41778e22f85f355a3 100644 --- a/arkoala/arkui/src/ArkMenuItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkMenuItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkMouseEventMaterialized.ts b/arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts similarity index 97% rename from arkoala/arkui/src/ArkMouseEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts index 063e077d1444b246133fc8a5294bc05b8cedc278..189a5b5fb7adf3b7efb84899a5c283c940f7e2c1 100644 --- a/arkoala/arkui/src/ArkMouseEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMouseEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { MouseButton, MouseAction } from "./ArkEnumsInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -113,13 +112,13 @@ export class MouseEventInternal extends BaseEventInternal implements Materialize set stopPropagation(stopPropagation: (() => void)) { this.setStopPropagation(stopPropagation) } - static ctor(): KPointer { + static ctor_mouseevent(): KPointer { const retval = ArkUIGeneratedNativeModule._MouseEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = MouseEventInternal.ctor() + const ctorPtr: KPointer = MouseEventInternal.ctor_mouseevent() this.peer = new Finalizable(ctorPtr, MouseEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts b/arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts rename to arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts index 61b300cc9c683920e87a8fb3dad3592d8397a842..2f97cdb6db0adf743949bc11a06e57278200bc86 100644 --- a/arkoala/arkui/src/ArkMutableStyledStringMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkMutableStyledStringMaterialized.ts @@ -27,27 +27,32 @@ import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class MutableStyledStringInternal { + public static fromPtr(ptr: KPointer): MutableStyledString { + const obj: MutableStyledString = new MutableStyledString() + obj.peer = new Finalizable(ptr, MutableStyledString.getFinalizer()) + return obj + } +} export class MutableStyledString extends StyledString implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_mutablestyledstring(): KPointer { const retval = ArkUIGeneratedNativeModule._MutableStyledString_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = MutableStyledString.ctor() + const ctorPtr: KPointer = MutableStyledString.ctor_mutablestyledstring() this.peer = new Finalizable(ctorPtr, MutableStyledString.getFinalizer()) } static getFinalizer(): KPointer { @@ -166,10 +171,3 @@ export class MutableStyledString extends StyledString implements MaterializedBas thisSerializer.release() } } -export class MutableStyledStringInternal { - public static fromPtr(ptr: KPointer): MutableStyledString { - const obj: MutableStyledString = new MutableStyledString() - obj.peer = new Finalizable(ptr, MutableStyledString.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkNavDestination.ts b/arkoala/arkui/src/generated/ArkNavDestination.ts similarity index 97% rename from arkoala/arkui/src/ArkNavDestination.ts rename to arkoala/arkui/src/generated/ArkNavDestination.ts index 75e1c0c7e4ea99d4f50c6c5b0511721f5ce767b4..4958bcd4600d5206c52928fcb99d5355ad095ddf 100644 --- a/arkoala/arkui/src/ArkNavDestination.ts +++ b/arkoala/arkui/src/generated/ArkNavDestination.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavDestinationPeer } from "./peers/ArkNavDestinationPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -75,12 +74,12 @@ export class ArkNavDestinationComponent extends ArkCommonMethodComponent { if (this.checkPriority("hideTitleBar")) { const hide_type = runtimeType(hide) const animated_type = runtimeType(animated) - if ((((RuntimeType.UNDEFINED == animated_type)))) { + if (RuntimeType.UNDEFINED == animated_type) { const value_casted = hide as (boolean) this.getPeer()?.hideTitleBar0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == animated_type)))) { + if (RuntimeType.BOOLEAN == animated_type) { const hide_casted = hide as (boolean) const animated_casted = animated as (boolean) this.getPeer()?.hideTitleBar1Attribute(hide_casted, animated_casted) diff --git a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts b/arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts index f838f23ad2492a9c04fbd016ff13949749479a8d..973354d39f0b680f398ca2f047189388cccd5705 100644 --- a/arkoala/arkui/src/ArkNavDestinationContextMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavDestinationContextMaterialized.ts @@ -20,12 +20,10 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialized" import { RouteMapConfig } from "./ArkNavDestinationInterfaces" import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -59,12 +57,12 @@ export class NavDestinationContextInternal implements MaterializedBase,NavDestin const navDestinationId_NonNull = (navDestinationId as string) this.setNavDestinationId(navDestinationId_NonNull) } - static ctor(): KPointer { + static ctor_navdestinationcontext(): KPointer { const retval = ArkUIGeneratedNativeModule._NavDestinationContext_ctor() return retval } constructor() { - const ctorPtr: KPointer = NavDestinationContextInternal.ctor() + const ctorPtr: KPointer = NavDestinationContextInternal.ctor_navdestinationcontext() this.peer = new Finalizable(ctorPtr, NavDestinationContextInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkNavDestinationInterfaces.ts b/arkoala/arkui/src/generated/ArkNavDestinationInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNavDestinationInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavDestinationInterfaces.ts index 91587f336105765e67234e9b0e28f36172dcc856..d1dfe611058a21da9b894662e4564ff515d8adfb 100644 --- a/arkoala/arkui/src/ArkNavDestinationInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNavDestinationInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkNavExtenderMaterialized.ts b/arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkNavExtenderMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts index 2ca57ca1933af2aa8a6463737c407add4dc734bc..c3dd32b2770283be6dac253b578790b8a675499a 100644 --- a/arkoala/arkui/src/ArkNavExtenderMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavExtenderMaterialized.ts @@ -20,21 +20,26 @@ import { NavPathStack, NavPathStackInternal } from "./ArkNavPathStackMaterialize import { NavExtender_OnUpdateStack } from "./ArkNavigationExtenderInterfaces" import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavigationOptions, NavigationInterception, LaunchMode, PopInfo, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class NavExtenderInternal { + public static fromPtr(ptr: KPointer): NavExtender { + const obj: NavExtender = new NavExtender() + obj.peer = new Finalizable(ptr, NavExtender.getFinalizer()) + return obj + } +} export class NavExtender implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_navextender(): KPointer { const retval = ArkUIGeneratedNativeModule._NavExtender_ctor() return retval } @@ -42,7 +47,7 @@ export class NavExtender implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = NavExtender.ctor() + const ctorPtr: KPointer = NavExtender.ctor_navextender() this.peer = new Finalizable(ctorPtr, NavExtender.getFinalizer()) } static getFinalizer(): KPointer { @@ -62,10 +67,3 @@ export class NavExtender implements MaterializedBase { thisSerializer.release() } } -export class NavExtenderInternal { - public static fromPtr(ptr: KPointer): NavExtender { - const obj: NavExtender = new NavExtender() - obj.peer = new Finalizable(ptr, NavExtender.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkNavPathInfoMaterialized.ts b/arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkNavPathInfoMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts index 82c2934e74e4a9c1e752cfd89912d722e3954318..9bc882ecb8ed3ca803ceffe7d7f6e2b1c01a3cb9 100644 --- a/arkoala/arkui/src/ArkNavPathInfoMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavPathInfoMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PopInfo } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class NavPathInfoInternal { + public static fromPtr(ptr: KPointer): NavPathInfo { + const obj: NavPathInfo = new NavPathInfo(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, NavPathInfo.getFinalizer()) + return obj + } +} export class NavPathInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -58,7 +63,7 @@ export class NavPathInfo implements MaterializedBase { const isEntry_NonNull = (isEntry as boolean) this.setIsEntry(isEntry_NonNull) } - static ctor(name: string, param: unknown, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean): KPointer { + static ctor_navpathinfo(name: string, param: unknown, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeCustomObject("Any", param) let onPop_type: int32 = RuntimeType.UNDEFINED @@ -82,7 +87,7 @@ export class NavPathInfo implements MaterializedBase { constructor(name?: string, param?: unknown, onPop?: ((parameter: PopInfo) => void), isEntry?: boolean) { if (((name) !== (undefined)) && ((param) !== (undefined)) && ((onPop) !== (undefined)) && ((isEntry) !== (undefined))) { - const ctorPtr: KPointer = NavPathInfo.ctor(name, param, onPop, isEntry) + const ctorPtr: KPointer = NavPathInfo.ctor_navpathinfo(name, param, onPop, isEntry) this.peer = new Finalizable(ctorPtr, NavPathInfo.getFinalizer()) } } @@ -149,10 +154,3 @@ export class NavPathInfo implements MaterializedBase { ArkUIGeneratedNativeModule._NavPathInfo_setIsEntry(this.peer!.ptr, +isEntry) } } -export class NavPathInfoInternal { - public static fromPtr(ptr: KPointer): NavPathInfo { - const obj: NavPathInfo = new NavPathInfo(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, NavPathInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkNavPathStackMaterialized.ts b/arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkNavPathStackMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts index 818dc798fae0ef74faa19045bd863c75e5ec7553..36e278a2f7f2f9e33265679e1045591aacf1e7fb 100644 --- a/arkoala/arkui/src/ArkNavPathStackMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavPathStackMaterialized.ts @@ -18,26 +18,31 @@ import { NavPathInfo, NavPathInfoInternal } from "./ArkNavPathInfoMaterialized" import { NavigationOptions, NavigationInterception, PopInfo, LaunchMode, InterceptionShowCallback, InterceptionModeCallback } from "./ArkNavigationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class NavPathStackInternal { + public static fromPtr(ptr: KPointer): NavPathStack { + const obj: NavPathStack = new NavPathStack() + obj.peer = new Finalizable(ptr, NavPathStack.getFinalizer()) + return obj + } +} export class NavPathStack implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_navpathstack(): KPointer { const retval = ArkUIGeneratedNativeModule._NavPathStack_ctor() return retval } constructor() { - const ctorPtr: KPointer = NavPathStack.ctor() + const ctorPtr: KPointer = NavPathStack.ctor_navpathstack() this.peer = new Finalizable(ctorPtr, NavPathStack.getFinalizer()) } static getFinalizer(): KPointer { @@ -46,13 +51,13 @@ export class NavPathStack implements MaterializedBase { public pushPath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) this?.pushPath0_serialize(info_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) this?.pushPath1_serialize(info_casted, options_casted) @@ -63,12 +68,12 @@ export class NavPathStack implements MaterializedBase { public pushDestination(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): Promise { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) return this.pushDestination0_serialize(info_casted, animated_casted) } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) return this.pushDestination1_serialize(info_casted, options_casted) @@ -80,14 +85,14 @@ export class NavPathStack implements MaterializedBase { const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) const animated_type = runtimeType(animated) - if ((((RuntimeType.OBJECT == param_type))) && (((RuntimeType.BOOLEAN == onPop_type)) || ((RuntimeType.UNDEFINED == onPop_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == param_type) && ((RuntimeType.BOOLEAN == onPop_type) || (RuntimeType.UNDEFINED == onPop_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const param_casted = param as (unknown) const animated_casted = onPop as (boolean | undefined) this?.pushPathByName0_serialize(name_casted, param_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == param_type))) && (((RuntimeType.FUNCTION == onPop_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == param_type) && (RuntimeType.FUNCTION == onPop_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const param_casted = param as (Object) const onPop_casted = onPop as (((parameter: PopInfo) => void)) @@ -102,13 +107,13 @@ export class NavPathStack implements MaterializedBase { const param_type = runtimeType(param) const onPop_type = runtimeType(onPop) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == onPop_type)) || ((RuntimeType.UNDEFINED == onPop_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == onPop_type) || (RuntimeType.UNDEFINED == onPop_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const param_casted = param as (Object) const animated_casted = onPop as (boolean | undefined) return this.pushDestinationByName0_serialize(name_casted, param_casted, animated_casted) } - if ((((RuntimeType.FUNCTION == onPop_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.FUNCTION == onPop_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const param_casted = param as (Object) const onPop_casted = onPop as (((parameter: PopInfo) => void)) @@ -120,13 +125,13 @@ export class NavPathStack implements MaterializedBase { public replacePath(info: NavPathInfo, animated?: boolean | undefined | NavigationOptions | undefined): void { const info_type = runtimeType(info) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const animated_casted = animated as (boolean | undefined) this?.replacePath0_serialize(info_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == animated_type) || (RuntimeType.UNDEFINED == animated_type)) { const info_casted = info as (NavPathInfo) const options_casted = animated as (NavigationOptions | undefined) this?.replacePath1_serialize(info_casted, options_casted) @@ -161,11 +166,11 @@ export class NavPathStack implements MaterializedBase { public pop(result?: boolean | undefined | Object, animated?: boolean): NavPathInfo | undefined { const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const animated_casted = result as (boolean | undefined) return this.pop0_serialize(animated_casted) } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) return this.pop1_serialize(result_casted, animated_casted) @@ -176,12 +181,12 @@ export class NavPathStack implements MaterializedBase { const name_type = runtimeType(name) const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const name_casted = name as (string) const animated_casted = result as (boolean | undefined) return this.popToName0_serialize(name_casted, animated_casted) } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const name_casted = name as (string) const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) @@ -193,13 +198,13 @@ export class NavPathStack implements MaterializedBase { const index_type = runtimeType(index) const result_type = runtimeType(result) const animated_type = runtimeType(animated) - if ((((RuntimeType.BOOLEAN == result_type)) || ((RuntimeType.UNDEFINED == result_type))) && (((RuntimeType.UNDEFINED == animated_type)))) { + if (((RuntimeType.BOOLEAN == result_type) || (RuntimeType.UNDEFINED == result_type)) && (RuntimeType.UNDEFINED == animated_type)) { const index_casted = index as (number) const animated_casted = result as (boolean | undefined) this?.popToIndex0_serialize(index_casted, animated_casted) return } - if ((((RuntimeType.OBJECT == result_type))) && (((RuntimeType.BOOLEAN == animated_type)) || ((RuntimeType.UNDEFINED == animated_type)))) { + if ((RuntimeType.OBJECT == result_type) && ((RuntimeType.BOOLEAN == animated_type) || (RuntimeType.UNDEFINED == animated_type))) { const index_casted = index as (number) const result_casted = result as (Object) const animated_casted = animated as (boolean | undefined) @@ -599,10 +604,3 @@ export class NavPathStack implements MaterializedBase { thisSerializer.release() } } -export class NavPathStackInternal { - public static fromPtr(ptr: KPointer): NavPathStack { - const obj: NavPathStack = new NavPathStack() - obj.peer = new Finalizable(ptr, NavPathStack.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkNavRouter.ts b/arkoala/arkui/src/generated/ArkNavRouter.ts similarity index 96% rename from arkoala/arkui/src/ArkNavRouter.ts rename to arkoala/arkui/src/generated/ArkNavRouter.ts index 5775d11d1cb8bb2919f6372128724cd32ef2b3c8..96a50b49ab88fed101f24a87719271f4c46733b4 100644 --- a/arkoala/arkui/src/ArkNavRouter.ts +++ b/arkoala/arkui/src/generated/ArkNavRouter.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavRouterPeer } from "./peers/ArkNavRouterPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -62,11 +61,11 @@ export class ArkNavRouterComponent extends ArkCommonMethodComponent { public setNavRouterOptions(value?: RouteInfo): this { if (this.checkPriority("setNavRouterOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setNavRouterOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (RouteInfo) this.getPeer()?.setNavRouterOptions1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkNavRouterInterfaces.ts b/arkoala/arkui/src/generated/ArkNavRouterInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNavRouterInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavRouterInterfaces.ts index 5b768264f6c2f68c1e28db882c341450a576129a..84bb69865e3c1f3b2685e5fb567c158df5274ac8 100644 --- a/arkoala/arkui/src/ArkNavRouterInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNavRouterInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkNavigationExtenderInterfaces.ts b/arkoala/arkui/src/generated/ArkNavigationExtenderInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkNavigationExtenderInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavigationExtenderInterfaces.ts diff --git a/arkoala/arkui/src/ArkNavigationInterfaces.ts b/arkoala/arkui/src/generated/ArkNavigationInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNavigationInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavigationInterfaces.ts index 57ee8b74d951a9fbbb3be0aab93a328c14f9dee6..19fd438fda96df671bc4b6bd18fd83f5fdf7405f 100644 --- a/arkoala/arkui/src/ArkNavigationInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNavigationInterfaces.ts @@ -27,7 +27,7 @@ import { NavPathInfo } from "./ArkNavPathInfoMaterialized" import { NavDestinationContext } from "./ArkNavDestinationContextMaterialized" import { NavPathStack } from "./ArkNavPathStackMaterialized" import { RouteMapConfig, NavDestinationMode } from "./ArkNavDestinationInterfaces" -import { NavigationAttribute, AttributeModifier } from "./handwritten" +import { NavigationAttribute, AttributeModifier } from "./../handwritten" import { DrawModifier } from "./ArkDrawModifierMaterialized" import { LengthMetrics } from "./ArkLengthMetricsMaterialized" import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" diff --git a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts rename to arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts index c6e4674f0afe3c68bad34075f7fe32f2a7b0619b..1e7339fbe8088586783dbffaf5334c9394f38daa 100644 --- a/arkoala/arkui/src/ArkNavigationTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkNavigationTransitionProxyMaterialized.ts @@ -18,12 +18,10 @@ import { NavContentInfo } from "./ArkNavigationInterfaces" import { NavDestinationMode } from "./ArkNavDestinationInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -59,12 +57,12 @@ export class NavigationTransitionProxyInternal implements MaterializedBase,Navig const isInteractive_NonNull = (isInteractive as boolean) this.setIsInteractive(isInteractive_NonNull) } - static ctor(): KPointer { + static ctor_navigationtransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._NavigationTransitionProxy_ctor() return retval } constructor() { - const ctorPtr: KPointer = NavigationTransitionProxyInternal.ctor() + const ctorPtr: KPointer = NavigationTransitionProxyInternal.ctor_navigationtransitionproxy() this.peer = new Finalizable(ctorPtr, NavigationTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkNavigator.ts b/arkoala/arkui/src/generated/ArkNavigator.ts similarity index 95% rename from arkoala/arkui/src/ArkNavigator.ts rename to arkoala/arkui/src/generated/ArkNavigator.ts index 6c59d128f17075e7302f5bcb2953ac7235beeac4..2c54f159722d2456dcf5e2cbbab78bb429e02ee0 100644 --- a/arkoala/arkui/src/ArkNavigator.ts +++ b/arkoala/arkui/src/generated/ArkNavigator.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNavigatorPeer } from "./peers/ArkNavigatorPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -61,11 +60,11 @@ export class ArkNavigatorComponent extends ArkCommonMethodComponent { public setNavigatorOptions(value?: { target: string, type?: NavigationType }): this { if (this.checkPriority("setNavigatorOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setNavigatorOptions1Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)) || ((RuntimeType.UNDEFINED == value_type)))) { + if ((RuntimeType.OBJECT == value_type) || (RuntimeType.UNDEFINED == value_type)) { const value_casted = value as ({ target: string, type?: NavigationType } | undefined) this.getPeer()?.setNavigatorOptions0Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkNavigatorInterfaces.ts b/arkoala/arkui/src/generated/ArkNavigatorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNavigatorInterfaces.ts rename to arkoala/arkui/src/generated/ArkNavigatorInterfaces.ts index 2a688cd60e543646eb921979d6810573625538e4..27b30c8b7bf7dddb05d6917bbd2d92399fbebe97 100644 --- a/arkoala/arkui/src/ArkNavigatorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNavigatorInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkNodeContainer.ts b/arkoala/arkui/src/generated/ArkNodeContainer.ts similarity index 97% rename from arkoala/arkui/src/ArkNodeContainer.ts rename to arkoala/arkui/src/generated/ArkNodeContainer.ts index 2a56e3c509850f17ac4c7c8e9ec934c7af40a1bb..ebf94be24857460e1512203f7de3f900856dcbbe 100644 --- a/arkoala/arkui/src/ArkNodeContainer.ts +++ b/arkoala/arkui/src/generated/ArkNodeContainer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkNodeContainerPeer } from "./peers/ArkNodeContainerPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkNodeContainerInterfaces.ts b/arkoala/arkui/src/generated/ArkNodeContainerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkNodeContainerInterfaces.ts rename to arkoala/arkui/src/generated/ArkNodeContainerInterfaces.ts index 4ac26adcc4eaf0aaa5e0eada45ecc902232bef05..586b968180859776e66db2d144efcf3dccf95d55 100644 --- a/arkoala/arkui/src/ArkNodeContainerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkNodeContainerInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts b/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts new file mode 100644 index 0000000000000000000000000000000000000000..ce81ebe7eedbd3c3127e6a91698b02386c0a3359 --- /dev/null +++ b/arkoala/arkui/src/generated/ArkOffscreenCanvasMaterialized.ts @@ -0,0 +1,134 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./ArkOffscreenCanvasRenderingContext2DMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./ArkCanvasInterfaces" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class OffscreenCanvasInternal { + public static fromPtr(ptr: KPointer): OffscreenCanvas { + const obj: OffscreenCanvas = new OffscreenCanvas(undefined, undefined) + obj.peer = new Finalizable(ptr, OffscreenCanvas.getFinalizer()) + return obj + } +} +export class OffscreenCanvas implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + get height(): number { + return this.getHeight() + } + set height(height: number) { + this.setHeight(height) + } + get width(): number { + return this.getWidth() + } + set width(width: number) { + this.setWidth(width) + } + static ctor_offscreencanvas(width: number, height: number): KPointer { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_ctor(width, height) + return retval + } + constructor(width?: number, height?: number) { + if (((width) !== (undefined)) && ((height) !== (undefined))) + { + const ctorPtr: KPointer = OffscreenCanvas.ctor_offscreencanvas(width, height) + this.peer = new Finalizable(ctorPtr, OffscreenCanvas.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._OffscreenCanvas_getFinalizer() + } + public transferToImageBitmap(): ImageBitmap { + return this.transferToImageBitmap_serialize() + } + public getContext2d(options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + const options_casted = options as (RenderingContextSettings | undefined) + return this.getContext2d_serialize(options_casted) + } + private getHeight(): number { + return this.getHeight_serialize() + } + private setHeight(height: number): void { + const height_casted = height as (number) + this?.setHeight_serialize(height_casted) + return + } + private getWidth(): number { + return this.getWidth_serialize() + } + private setWidth(width: number): void { + const width_casted = width as (number) + this?.setWidth_serialize(width_casted) + return + } + getContext(contextType: string, options: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + throw new Error("TBD") + } + private transferToImageBitmap_serialize(): ImageBitmap { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_transferToImageBitmap(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } + private getContext2d_serialize(options?: RenderingContextSettings): OffscreenCanvasRenderingContext2D { + const thisSerializer: Serializer = Serializer.hold() + let options_type: int32 = RuntimeType.UNDEFINED + options_type = runtimeType(options) + thisSerializer.writeInt8(options_type) + if ((RuntimeType.UNDEFINED) != (options_type)) { + const options_value = options! + thisSerializer.writeRenderingContextSettings(options_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getContext2d(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + throw new Error("Object deserialization is not implemented.") + } + private getHeight_serialize(): number { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getHeight(this.peer!.ptr) + return retval + } + private setHeight_serialize(height: number): void { + ArkUIGeneratedNativeModule._OffscreenCanvas_setHeight(this.peer!.ptr, height) + } + private getWidth_serialize(): number { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvas_getWidth(this.peer!.ptr) + return retval + } + private setWidth_serialize(width: number): void { + ArkUIGeneratedNativeModule._OffscreenCanvas_setWidth(this.peer!.ptr, width) + } +} diff --git a/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts b/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts new file mode 100644 index 0000000000000000000000000000000000000000..10afb8f8555379ca3910061d0414a14e78efa16f --- /dev/null +++ b/arkoala/arkui/src/generated/ArkOffscreenCanvasRenderingContext2DMaterialized.ts @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { CanvasRenderer, CanvasRendererInternal } from "./ArkCanvasRendererMaterialized" +import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" +import { CanvasGradient, CanvasGradientInternal } from "./ArkCanvasGradientMaterialized" +import { CanvasPattern, CanvasPatternInternal } from "./ArkCanvasPatternMaterialized" +import { ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./ArkCanvasInterfaces" +import { ImageBitmap, ImageBitmapInternal } from "./ArkImageBitmapMaterialized" +import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" +import { Path2D, Path2DInternal } from "./ArkPath2DMaterialized" +import { ImageData, ImageDataInternal } from "./ArkImageDataMaterialized" +import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" +import { LengthMetricsUnit } from "./ArkUnitsInterfaces" +import { RenderingContextSettings, RenderingContextSettingsInternal } from "./ArkRenderingContextSettingsMaterialized" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class OffscreenCanvasRenderingContext2DInternal { + public static fromPtr(ptr: KPointer): OffscreenCanvasRenderingContext2D { + const obj: OffscreenCanvasRenderingContext2D = new OffscreenCanvasRenderingContext2D(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, OffscreenCanvasRenderingContext2D.getFinalizer()) + return obj + } +} +export class OffscreenCanvasRenderingContext2D extends CanvasRenderer implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer + } + static ctor_offscreencanvasrenderingcontext2d(width: number, height: number, settings?: RenderingContextSettings): KPointer { + const thisSerializer: Serializer = Serializer.hold() + let settings_type: int32 = RuntimeType.UNDEFINED + settings_type = runtimeType(settings) + thisSerializer.writeInt8(settings_type) + if ((RuntimeType.UNDEFINED) != (settings_type)) { + const settings_value = settings! + thisSerializer.writeRenderingContextSettings(settings_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_ctor(width, height, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + constructor(width?: number, height?: number, settings?: RenderingContextSettings) { + super() + if (((width) !== (undefined)) && ((height) !== (undefined)) && ((settings) !== (undefined))) + { + const ctorPtr: KPointer = OffscreenCanvasRenderingContext2D.ctor_offscreencanvasrenderingcontext2d(width, height, settings) + this.peer = new Finalizable(ctorPtr, OffscreenCanvasRenderingContext2D.getFinalizer()) + } + } + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_getFinalizer() + } + public toDataURL(type?: string, quality?: float32): string { + const type_casted = type as (string | undefined) + const quality_casted = quality as (float32 | undefined) + return this.toDataURL_serialize(type_casted, quality_casted) + } + public transferToImageBitmap(): ImageBitmap { + return this.transferToImageBitmap_serialize() + } + private toDataURL_serialize(type?: string, quality?: float32): string { + const thisSerializer: Serializer = Serializer.hold() + let type_type: int32 = RuntimeType.UNDEFINED + type_type = runtimeType(type) + thisSerializer.writeInt8(type_type) + if ((RuntimeType.UNDEFINED) != (type_type)) { + const type_value = type! + thisSerializer.writeString(type_value) + } + let quality_type: int32 = RuntimeType.UNDEFINED + quality_type = runtimeType(quality) + thisSerializer.writeInt8(quality_type) + if ((RuntimeType.UNDEFINED) != (quality_type)) { + const quality_value = quality! + thisSerializer.writeFloat32(quality_value) + } + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_toDataURL(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + return retval + } + private transferToImageBitmap_serialize(): ImageBitmap { + const retval = ArkUIGeneratedNativeModule._OffscreenCanvasRenderingContext2D_transferToImageBitmap(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } +} diff --git a/arkoala/arkui/src/ArkPageTransitionInterfaces.ts b/arkoala/arkui/src/generated/ArkPageTransitionInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkPageTransitionInterfaces.ts rename to arkoala/arkui/src/generated/ArkPageTransitionInterfaces.ts diff --git a/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkPanGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts index 0d276d2488c4cc33f1bb3072edd35779978c59ad..54aa79713e00984cc5263a57fb01d3b32d11fe97 100644 --- a/arkoala/arkui/src/ArkPanGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPanGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -73,13 +71,13 @@ export class PanGestureEventInternal extends BaseGestureEventInternal implements set velocity(velocity: number) { this.setVelocity(velocity) } - static ctor(): KPointer { + static ctor_pangestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._PanGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = PanGestureEventInternal.ctor() + const ctorPtr: KPointer = PanGestureEventInternal.ctor_pangestureevent() this.peer = new Finalizable(ctorPtr, PanGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts b/arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts rename to arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts index 50d0001a8af1fac19bac8b4460b020751218ca77..26c2bf20c80cd1ab727bd7e3021fc80d1f502389 100644 --- a/arkoala/arkui/src/ArkPanGestureOptionsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPanGestureOptionsMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PanDirection } from "./ArkGestureInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class PanGestureOptionsInternal { + public static fromPtr(ptr: KPointer): PanGestureOptions { + const obj: PanGestureOptions = new PanGestureOptions(undefined) + obj.peer = new Finalizable(ptr, PanGestureOptions.getFinalizer()) + return obj + } +} export class PanGestureOptions implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value?: { fingers?: number, direction?: PanDirection, distance?: number }): KPointer { + static ctor_pangestureoptions(value?: { fingers?: number, direction?: PanDirection, distance?: number }): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -68,7 +73,7 @@ export class PanGestureOptions implements MaterializedBase { return retval } constructor(value?: { fingers?: number, direction?: PanDirection, distance?: number }) { - const ctorPtr: KPointer = PanGestureOptions.ctor(value) + const ctorPtr: KPointer = PanGestureOptions.ctor_pangestureoptions(value) this.peer = new Finalizable(ctorPtr, PanGestureOptions.getFinalizer()) } static getFinalizer(): KPointer { @@ -106,10 +111,3 @@ export class PanGestureOptions implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class PanGestureOptionsInternal { - public static fromPtr(ptr: KPointer): PanGestureOptions { - const obj: PanGestureOptions = new PanGestureOptions(undefined) - obj.peer = new Finalizable(ptr, PanGestureOptions.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts b/arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkPanRecognizerMaterialized.ts rename to arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts index 2828db1ea1d1048ab07c15ac69dddeb3d6c4e92e..0c18d779d58d56d820e8dfdf218b39c1e4736c0a 100644 --- a/arkoala/arkui/src/ArkPanRecognizerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPanRecognizerMaterialized.ts @@ -21,27 +21,32 @@ import { GestureControl } from "./ArkGestureControlNamespace" import { GestureRecognizerState, PanDirection } from "./ArkGestureInterfaces" import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" import { PanGestureOptions, PanGestureOptionsInternal } from "./ArkPanGestureOptionsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class PanRecognizerInternal { + public static fromPtr(ptr: KPointer): PanRecognizer { + const obj: PanRecognizer = new PanRecognizer() + obj.peer = new Finalizable(ptr, PanRecognizer.getFinalizer()) + return obj + } +} export class PanRecognizer extends GestureRecognizer implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_panrecognizer(): KPointer { const retval = ArkUIGeneratedNativeModule._PanRecognizer_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = PanRecognizer.ctor() + const ctorPtr: KPointer = PanRecognizer.ctor_panrecognizer() this.peer = new Finalizable(ctorPtr, PanRecognizer.getFinalizer()) } static getFinalizer(): KPointer { @@ -55,10 +60,3 @@ export class PanRecognizer extends GestureRecognizer implements MaterializedBase throw new Error("Object deserialization is not implemented.") } } -export class PanRecognizerInternal { - public static fromPtr(ptr: KPointer): PanRecognizer { - const obj: PanRecognizer = new PanRecognizer() - obj.peer = new Finalizable(ptr, PanRecognizer.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPanel.ts b/arkoala/arkui/src/generated/ArkPanel.ts similarity index 98% rename from arkoala/arkui/src/ArkPanel.ts rename to arkoala/arkui/src/generated/ArkPanel.ts index 2a6d95ba5fb36aa94b4826ceb67c1deced6b7bd5..d4d0efaff328d95828801641a764155f4fe616d4 100644 --- a/arkoala/arkui/src/ArkPanel.ts +++ b/arkoala/arkui/src/generated/ArkPanel.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPanelPeer } from "./peers/ArkPanelPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPanelInterfaces.ts b/arkoala/arkui/src/generated/ArkPanelInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPanelInterfaces.ts rename to arkoala/arkui/src/generated/ArkPanelInterfaces.ts index da29b1cc00843922dd8dc32060d3a996482de70d..576d228f45781b7765dcc112061760acf280286a 100644 --- a/arkoala/arkui/src/ArkPanelInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPanelInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkParagraphStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkParagraphStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts index 154770d3077c698097e982cc8621119123a36c1e..1dfbc453c2d4bb85669526480e49be1a3ea4ce9e 100644 --- a/arkoala/arkui/src/ArkParagraphStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkParagraphStyleMaterialized.ts @@ -24,15 +24,20 @@ import { Dimension } from "./ArkUnitsInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ParagraphStyleInternal { + public static fromPtr(ptr: KPointer): ParagraphStyle { + const obj: ParagraphStyle = new ParagraphStyle(undefined) + obj.peer = new Finalizable(ptr, ParagraphStyle.getFinalizer()) + return obj + } +} export class ParagraphStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -56,7 +61,7 @@ export class ParagraphStyle implements MaterializedBase { get leadingMargin(): number | LeadingMarginPlaceholder { throw new Error("Not implemented") } - static ctor(value?: ParagraphStyleInterface): KPointer { + static ctor_paragraphstyle(value?: ParagraphStyleInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -70,7 +75,7 @@ export class ParagraphStyle implements MaterializedBase { return retval } constructor(value?: ParagraphStyleInterface) { - const ctorPtr: KPointer = ParagraphStyle.ctor(value) + const ctorPtr: KPointer = ParagraphStyle.ctor_paragraphstyle(value) this.peer = new Finalizable(ctorPtr, ParagraphStyle.getFinalizer()) } static getFinalizer(): KPointer { @@ -112,10 +117,3 @@ export class ParagraphStyle implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class ParagraphStyleInternal { - public static fromPtr(ptr: KPointer): ParagraphStyle { - const obj: ParagraphStyle = new ParagraphStyle(undefined) - obj.peer = new Finalizable(ptr, ParagraphStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkParticleInterfaces.ts b/arkoala/arkui/src/generated/ArkParticleInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkParticleInterfaces.ts rename to arkoala/arkui/src/generated/ArkParticleInterfaces.ts diff --git a/arkoala/arkui/src/ArkPasteButton.ts b/arkoala/arkui/src/generated/ArkPasteButton.ts similarity index 93% rename from arkoala/arkui/src/ArkPasteButton.ts rename to arkoala/arkui/src/generated/ArkPasteButton.ts index fb4aa04c33aa8bbb7911fef94c1a8801d58a36f5..cfd3cca8929fc3614a9a08a53a0204480c6bf653 100644 --- a/arkoala/arkui/src/ArkPasteButton.ts +++ b/arkoala/arkui/src/generated/ArkPasteButton.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkPasteButtonPeer } from "./peers/ArkPasteButtonPeer" import { UseEventsProperties } from "./use_properties" @@ -44,11 +43,11 @@ export class ArkPasteButtonComponent extends ArkSecurityComponentMethodComponent public setPasteButtonOptions(options?: PasteButtonOptions): this { if (this.checkPriority("setPasteButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setPasteButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (PasteButtonOptions) this.getPeer()?.setPasteButtonOptions1Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkPasteButtonInterfaces.ts b/arkoala/arkui/src/generated/ArkPasteButtonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkPasteButtonInterfaces.ts rename to arkoala/arkui/src/generated/ArkPasteButtonInterfaces.ts diff --git a/arkoala/arkui/src/ArkPath.ts b/arkoala/arkui/src/generated/ArkPath.ts similarity index 97% rename from arkoala/arkui/src/ArkPath.ts rename to arkoala/arkui/src/generated/ArkPath.ts index 1f35d958ef8dff232c2acde5ae565e4b8abf2c48..75e1ca3d187609f487a9592fb0d29fc4b2a2ace4 100644 --- a/arkoala/arkui/src/ArkPath.ts +++ b/arkoala/arkui/src/generated/ArkPath.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPathPeer } from "./peers/ArkPathPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPath2DMaterialized.ts b/arkoala/arkui/src/generated/ArkPath2DMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkPath2DMaterialized.ts rename to arkoala/arkui/src/generated/ArkPath2DMaterialized.ts index 57d2aa7d129d2a81490fceea520a526c7fbc88d3..4d0f4bf4cb0372d4c6c5733a4ac374fa9d7cf2cc 100644 --- a/arkoala/arkui/src/ArkPath2DMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPath2DMaterialized.ts @@ -19,27 +19,32 @@ import { CanvasPath, CanvasPathInternal } from "./ArkCanvasPathMaterialized" import { LengthMetricsUnit } from "./ArkUnitsInterfaces" import { Matrix2D, Matrix2DInternal } from "./ArkMatrix2DMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class Path2DInternal { + public static fromPtr(ptr: KPointer): Path2D { + const obj: Path2D = new Path2D() + obj.peer = new Finalizable(ptr, Path2D.getFinalizer()) + return obj + } +} export class Path2D extends CanvasPath implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_path2d(): KPointer { const retval = ArkUIGeneratedNativeModule._Path2D_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = Path2D.ctor() + const ctorPtr: KPointer = Path2D.ctor_path2d() this.peer = new Finalizable(ctorPtr, Path2D.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,10 +70,3 @@ export class Path2D extends CanvasPath implements MaterializedBase { thisSerializer.release() } } -export class Path2DInternal { - public static fromPtr(ptr: KPointer): Path2D { - const obj: Path2D = new Path2D() - obj.peer = new Finalizable(ptr, Path2D.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPathInterfaces.ts b/arkoala/arkui/src/generated/ArkPathInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPathInterfaces.ts rename to arkoala/arkui/src/generated/ArkPathInterfaces.ts index 1e7f95f78cf3b2a652977a1f5b75c0a325fd8434..b2c14459dafc64aeeb3e4ee33df61acb4e19e037 100644 --- a/arkoala/arkui/src/ArkPathInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPathInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPatternLock.ts b/arkoala/arkui/src/generated/ArkPatternLock.ts similarity index 98% rename from arkoala/arkui/src/ArkPatternLock.ts rename to arkoala/arkui/src/generated/ArkPatternLock.ts index 1e3e908f09b1b6c2918b1b4adcf9b261f7488a86..42fb14532fc1eecba480923cbb55f50d15845441 100644 --- a/arkoala/arkui/src/ArkPatternLock.ts +++ b/arkoala/arkui/src/generated/ArkPatternLock.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPatternLockPeer } from "./peers/ArkPatternLockPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts index 49807a325683d407a013f7da61df28c6c8217ddd..c209ba88b81fdfe6becac272775d481846255f34 100644 --- a/arkoala/arkui/src/ArkPatternLockControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPatternLockControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { PatternLockChallengeResult } from "./ArkPatternLockInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class PatternLockControllerInternal { + public static fromPtr(ptr: KPointer): PatternLockController { + const obj: PatternLockController = new PatternLockController() + obj.peer = new Finalizable(ptr, PatternLockController.getFinalizer()) + return obj + } +} export class PatternLockController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_patternlockcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._PatternLockController_ctor() return retval } constructor() { - const ctorPtr: KPointer = PatternLockController.ctor() + const ctorPtr: KPointer = PatternLockController.ctor_patternlockcontroller() this.peer = new Finalizable(ctorPtr, PatternLockController.getFinalizer()) } static getFinalizer(): KPointer { @@ -58,10 +63,3 @@ export class PatternLockController implements MaterializedBase { ArkUIGeneratedNativeModule._PatternLockController_setChallengeResult(this.peer!.ptr, result) } } -export class PatternLockControllerInternal { - public static fromPtr(ptr: KPointer): PatternLockController { - const obj: PatternLockController = new PatternLockController() - obj.peer = new Finalizable(ptr, PatternLockController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPatternLockInterfaces.ts b/arkoala/arkui/src/generated/ArkPatternLockInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPatternLockInterfaces.ts rename to arkoala/arkui/src/generated/ArkPatternLockInterfaces.ts index 2a0e0a0f2ff7424dc4e8f9edc23ebf8a31d4e51d..3423ba772176fc778770354e5f043f1da17a8035 100644 --- a/arkoala/arkui/src/ArkPatternLockInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPatternLockInterfaces.ts @@ -31,7 +31,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPermissionRequestMaterialized.ts b/arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkPermissionRequestMaterialized.ts rename to arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts index 79a4fb58764cb18b3d7ec33bc809e49e43a7c589..9691575d2453328230095bd8a0919403fc2506a8 100644 --- a/arkoala/arkui/src/ArkPermissionRequestMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPermissionRequestMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class PermissionRequestInternal { + public static fromPtr(ptr: KPointer): PermissionRequest { + const obj: PermissionRequest = new PermissionRequest() + obj.peer = new Finalizable(ptr, PermissionRequest.getFinalizer()) + return obj + } +} export class PermissionRequest implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_permissionrequest(): KPointer { const retval = ArkUIGeneratedNativeModule._PermissionRequest_ctor() return retval } constructor() { - const ctorPtr: KPointer = PermissionRequest.ctor() + const ctorPtr: KPointer = PermissionRequest.ctor_permissionrequest() this.peer = new Finalizable(ctorPtr, PermissionRequest.getFinalizer()) } static getFinalizer(): KPointer { @@ -78,10 +83,3 @@ export class PermissionRequest implements MaterializedBase { thisSerializer.release() } } -export class PermissionRequestInternal { - public static fromPtr(ptr: KPointer): PermissionRequest { - const obj: PermissionRequest = new PermissionRequest() - obj.peer = new Finalizable(ptr, PermissionRequest.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts index 9212a47308b656ce74af8e4edadf2ec7b0064643..6a2c07fed85242ca020bb74f81dcd0047ce206ea 100644 --- a/arkoala/arkui/src/ArkPinchGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPinchGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -59,13 +57,13 @@ export class PinchGestureEventInternal extends BaseGestureEventInternal implemen set pinchCenterY(pinchCenterY: number) { this.setPinchCenterY(pinchCenterY) } - static ctor(): KPointer { + static ctor_pinchgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._PinchGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = PinchGestureEventInternal.ctor() + const ctorPtr: KPointer = PinchGestureEventInternal.ctor_pinchgestureevent() this.peer = new Finalizable(ctorPtr, PinchGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkPixelMapMaterialized.ts b/arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts similarity index 69% rename from arkoala/arkui/src/ArkPixelMapMaterialized.ts rename to arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts index cc341818405597408abd21f2ad7d1e936a4b4098..0f9b2688b798515f56efc1862da2584df761473b 100644 --- a/arkoala/arkui/src/ArkPixelMapMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPixelMapMaterialized.ts @@ -16,18 +16,16 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" export interface PixelMap { - isEditable: int32 - isStrideAlignment: int32 + readonly isEditable: boolean + readonly isStrideAlignment: boolean readPixelsToBufferSync(dst: ArrayBuffer): void writeBufferToPixels(src: ArrayBuffer): void } @@ -36,24 +34,18 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { public getPeer(): Finalizable | undefined { return this.peer } - get isEditable(): int32 { + get isEditable(): boolean { return this.getIsEditable() } - set isEditable(isEditable: int32) { - this.setIsEditable(isEditable) - } - get isStrideAlignment(): int32 { + get isStrideAlignment(): boolean { return this.getIsStrideAlignment() } - set isStrideAlignment(isStrideAlignment: int32) { - this.setIsStrideAlignment(isStrideAlignment) - } - static ctor(): KPointer { + static ctor_pixelmap(): KPointer { const retval = ArkUIGeneratedNativeModule._PixelMap_ctor() return retval } constructor() { - const ctorPtr: KPointer = PixelMapInternal.ctor() + const ctorPtr: KPointer = PixelMapInternal.ctor_pixelmap() this.peer = new Finalizable(ctorPtr, PixelMapInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -69,22 +61,12 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { this?.writeBufferToPixels_serialize(src_casted) return } - private getIsEditable(): int32 { + private getIsEditable(): boolean { return this.getIsEditable_serialize() } - private setIsEditable(isEditable: int32): void { - const isEditable_casted = isEditable as (int32) - this?.setIsEditable_serialize(isEditable_casted) - return - } - private getIsStrideAlignment(): int32 { + private getIsStrideAlignment(): boolean { return this.getIsStrideAlignment_serialize() } - private setIsStrideAlignment(isStrideAlignment: int32): void { - const isStrideAlignment_casted = isStrideAlignment as (int32) - this?.setIsStrideAlignment_serialize(isStrideAlignment_casted) - return - } private readPixelsToBufferSync_serialize(dst: ArrayBuffer): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeBuffer(dst) @@ -97,20 +79,14 @@ export class PixelMapInternal implements MaterializedBase,PixelMap { ArkUIGeneratedNativeModule._PixelMap_writeBufferToPixels(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } - private getIsEditable_serialize(): int32 { + private getIsEditable_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._PixelMap_getIsEditable(this.peer!.ptr) return retval } - private setIsEditable_serialize(isEditable: int32): void { - ArkUIGeneratedNativeModule._PixelMap_setIsEditable(this.peer!.ptr, isEditable) - } - private getIsStrideAlignment_serialize(): int32 { + private getIsStrideAlignment_serialize(): boolean { const retval = ArkUIGeneratedNativeModule._PixelMap_getIsStrideAlignment(this.peer!.ptr) return retval } - private setIsStrideAlignment_serialize(isStrideAlignment: int32): void { - ArkUIGeneratedNativeModule._PixelMap_setIsStrideAlignment(this.peer!.ptr, isStrideAlignment) - } public static fromPtr(ptr: KPointer): PixelMapInternal { const obj: PixelMapInternal = new PixelMapInternal() obj.peer = new Finalizable(ptr, PixelMapInternal.getFinalizer()) diff --git a/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts b/arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkPixelMapMockMaterialized.ts rename to arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts index c1f7140847ba4961e95bd7f4a3d64701b444a18c..e72527342c62506b6a124ac70ad0a5735b02898f 100644 --- a/arkoala/arkui/src/ArkPixelMapMockMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkPixelMapMockMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -33,12 +31,12 @@ export class PixelMapMockInternal implements MaterializedBase,PixelMapMock { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_pixelmapmock(): KPointer { const retval = ArkUIGeneratedNativeModule._PixelMapMock_ctor() return retval } constructor() { - const ctorPtr: KPointer = PixelMapMockInternal.ctor() + const ctorPtr: KPointer = PixelMapMockInternal.ctor_pixelmapmock() this.peer = new Finalizable(ctorPtr, PixelMapMockInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkPluginComponent.ts b/arkoala/arkui/src/generated/ArkPluginComponent.ts similarity index 97% rename from arkoala/arkui/src/ArkPluginComponent.ts rename to arkoala/arkui/src/generated/ArkPluginComponent.ts index c0f917f19938cb221cfb64e1101d47904d0f989c..dd53cf2b21b4b111ad6a9eb97cd21ff3c9fef3c2 100644 --- a/arkoala/arkui/src/ArkPluginComponent.ts +++ b/arkoala/arkui/src/generated/ArkPluginComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkPluginComponentPeer } from "./peers/ArkPluginComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPluginComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkPluginComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPluginComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkPluginComponentInterfaces.ts index d3514051ae188606e7a53f4c072afde314f14b20..98de27111db88f7c560d3d96d1af9f559df10cf2 100644 --- a/arkoala/arkui/src/ArkPluginComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPluginComponentInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPointInterfaces.ts b/arkoala/arkui/src/generated/ArkPointInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkPointInterfaces.ts rename to arkoala/arkui/src/generated/ArkPointInterfaces.ts diff --git a/arkoala/arkui/src/ArkPolygon.ts b/arkoala/arkui/src/generated/ArkPolygon.ts similarity index 97% rename from arkoala/arkui/src/ArkPolygon.ts rename to arkoala/arkui/src/generated/ArkPolygon.ts index 6515d6cc38e4554a391ade0d50bfc183d9097338..fa3a08af939e974930f93e0aac51d29b6c3a651a 100644 --- a/arkoala/arkui/src/ArkPolygon.ts +++ b/arkoala/arkui/src/generated/ArkPolygon.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolygonPeer } from "./peers/ArkPolygonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPolygonInterfaces.ts b/arkoala/arkui/src/generated/ArkPolygonInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPolygonInterfaces.ts rename to arkoala/arkui/src/generated/ArkPolygonInterfaces.ts index 5366dc94c5fa1196d3db65a3712e6daf7e60091f..fcf5d4c461b08b032a1960c0f9a3cbde307c2799 100644 --- a/arkoala/arkui/src/ArkPolygonInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPolygonInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPolyline.ts b/arkoala/arkui/src/generated/ArkPolyline.ts similarity index 97% rename from arkoala/arkui/src/ArkPolyline.ts rename to arkoala/arkui/src/generated/ArkPolyline.ts index 8b23617d48e2f32faf7e382616b586cc15238e35..a98d089b12fc1b0b2aa76638822b0439cc16a2a1 100644 --- a/arkoala/arkui/src/ArkPolyline.ts +++ b/arkoala/arkui/src/generated/ArkPolyline.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkPolylinePeer } from "./peers/ArkPolylinePeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkPolylineInterfaces.ts b/arkoala/arkui/src/generated/ArkPolylineInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkPolylineInterfaces.ts rename to arkoala/arkui/src/generated/ArkPolylineInterfaces.ts index 2c9ea29f6fa855cd3015c70a4a6c1ed7dcd92639..0d66c4567a02d5ff5af58015a6fc8910a62c5b48 100644 --- a/arkoala/arkui/src/ArkPolylineInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkPolylineInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/ArkProfilerNamespace.ts b/arkoala/arkui/src/generated/ArkProfilerNamespace.ts new file mode 100644 index 0000000000000000000000000000000000000000..7c57b334cbae15209b41ea011988b1c740cf6029 --- /dev/null +++ b/arkoala/arkui/src/generated/ArkProfilerNamespace.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer, createDeserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./peers/CallbackTransformer" +import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export namespace Profiler { + export class GlobalScope_Profiler_inspector { + public static registerVsyncCallback(callback_: ((info: string) => void)): void { + const callback__casted = callback_ as (((info: string) => void)) + GlobalScope_Profiler_inspector.registerVsyncCallback_serialize(callback__casted) + return + } + public static unregisterVsyncCallback(): void { + GlobalScope_Profiler_inspector.unregisterVsyncCallback_serialize() + return + } + private static registerVsyncCallback_serialize(callback_: ((info: string) => void)): void { + const thisSerializer: Serializer = Serializer.hold() + thisSerializer.holdAndWriteCallback(callback_) + ArkUIGeneratedNativeModule._GlobalScope_Profiler_inspector_registerVsyncCallback(thisSerializer.asArray(), thisSerializer.length()) + thisSerializer.release() + } + private static unregisterVsyncCallback_serialize(): void { + ArkUIGeneratedNativeModule._GlobalScope_Profiler_inspector_unregisterVsyncCallback() + } + } +} +export namespace Profiler { + export function registerVsyncCallback(callback_: ((info: string) => void)): void { + GlobalScope_Profiler_inspector.registerVsyncCallback(callback_) + } + export function unregisterVsyncCallback(): void { + GlobalScope_Profiler_inspector.unregisterVsyncCallback() + } +} diff --git a/arkoala/arkui/src/ArkProgress.ts b/arkoala/arkui/src/generated/ArkProgress.ts similarity index 97% rename from arkoala/arkui/src/ArkProgress.ts rename to arkoala/arkui/src/generated/ArkProgress.ts index 973e0d4092d0d49b09a213bae2878c4599acf54a..ea25b7cd6ce583449979f5f1ea4e80244a5ef298 100644 --- a/arkoala/arkui/src/ArkProgress.ts +++ b/arkoala/arkui/src/generated/ArkProgress.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkProgressPeer } from "./peers/ArkProgressPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkProgressInterfaces.ts b/arkoala/arkui/src/generated/ArkProgressInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkProgressInterfaces.ts rename to arkoala/arkui/src/generated/ArkProgressInterfaces.ts index 141e0f67c437d4d9107aca765159f0f6837bcf2b..70460c67d93be2feb1d350974a03ecaa4c0496ca 100644 --- a/arkoala/arkui/src/ArkProgressInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkProgressInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkProgressMaskMaterialized.ts b/arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts similarity index 88% rename from arkoala/arkui/src/ArkProgressMaskMaterialized.ts rename to arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts index bcb80e5dcb387ecf63f4853ef04a2dd0bc952e00..53b7a11e7aa01e95652d8019641aa9a554d605a9 100644 --- a/arkoala/arkui/src/ArkProgressMaskMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkProgressMaskMaterialized.ts @@ -19,21 +19,26 @@ import { ResourceColor } from "./ArkUnitsInterfaces" import { Color } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ProgressMaskInternal { + public static fromPtr(ptr: KPointer): ProgressMask { + const obj: ProgressMask = new ProgressMask(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ProgressMask.getFinalizer()) + return obj + } +} export class ProgressMask implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(value: number, total: number, color: ResourceColor): KPointer { + static ctor_progressmask(value: number, total: number, color: ResourceColor): KPointer { const thisSerializer: Serializer = Serializer.hold() let color_type: int32 = RuntimeType.UNDEFINED color_type = runtimeType(color) @@ -42,17 +47,17 @@ export class ProgressMask implements MaterializedBase { const color_0 = unsafeCast(color) thisSerializer.writeInt32(color_0) } - else if (((RuntimeType.NUMBER == color_type))) { + else if (RuntimeType.NUMBER == color_type) { thisSerializer.writeInt8(1) const color_1 = unsafeCast(color) thisSerializer.writeNumber(color_1) } - else if (((RuntimeType.STRING == color_type))) { + else if (RuntimeType.STRING == color_type) { thisSerializer.writeInt8(2) const color_2 = unsafeCast(color) thisSerializer.writeString(color_2) } - else if (((RuntimeType.OBJECT == color_type))) { + else if (RuntimeType.OBJECT == color_type) { thisSerializer.writeInt8(3) const color_3 = unsafeCast(color) thisSerializer.writeResource(color_3) @@ -64,7 +69,7 @@ export class ProgressMask implements MaterializedBase { constructor(value?: number, total?: number, color?: ResourceColor) { if (((value) !== (undefined)) && ((total) !== (undefined)) && ((color) !== (undefined))) { - const ctorPtr: KPointer = ProgressMask.ctor(value, total, color) + const ctorPtr: KPointer = ProgressMask.ctor_progressmask(value, total, color) this.peer = new Finalizable(ctorPtr, ProgressMask.getFinalizer()) } } @@ -98,17 +103,17 @@ export class ProgressMask implements MaterializedBase { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -120,10 +125,3 @@ export class ProgressMask implements MaterializedBase { ArkUIGeneratedNativeModule._ProgressMask_enableBreathingAnimation(this.peer!.ptr, +value) } } -export class ProgressMaskInternal { - public static fromPtr(ptr: KPointer): ProgressMask { - const obj: ProgressMask = new ProgressMask(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ProgressMask.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkQrcode.ts b/arkoala/arkui/src/generated/ArkQrcode.ts similarity index 97% rename from arkoala/arkui/src/ArkQrcode.ts rename to arkoala/arkui/src/generated/ArkQrcode.ts index 9994822effeb970d31aa6989018c24accccfcdd2..3048ded4a885cc8bb957c7850710efa16eaf8513 100644 --- a/arkoala/arkui/src/ArkQrcode.ts +++ b/arkoala/arkui/src/generated/ArkQrcode.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkQRCodePeer } from "./peers/ArkQrcodePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkQrcodeInterfaces.ts b/arkoala/arkui/src/generated/ArkQrcodeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkQrcodeInterfaces.ts rename to arkoala/arkui/src/generated/ArkQrcodeInterfaces.ts index f82195b216b9f6431201b369ed2ac4b8ad5675a8..2f7cc24f49e633400aeb0e5c97b7aba737a96351 100644 --- a/arkoala/arkui/src/ArkQrcodeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkQrcodeInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRadio.ts b/arkoala/arkui/src/generated/ArkRadio.ts similarity index 97% rename from arkoala/arkui/src/ArkRadio.ts rename to arkoala/arkui/src/generated/ArkRadio.ts index 0547373159de59034288dedee8605c4e9dfd5cd5..ccd646004a969ae1b5f75ab5b623058aa1903eb5 100644 --- a/arkoala/arkui/src/ArkRadio.ts +++ b/arkoala/arkui/src/generated/ArkRadio.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRadioPeer } from "./peers/ArkRadioPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRadioInterfaces.ts b/arkoala/arkui/src/generated/ArkRadioInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRadioInterfaces.ts rename to arkoala/arkui/src/generated/ArkRadioInterfaces.ts index 3b7abbafbcee1c04572408d69c874437ff8e03db..5bfee3e6dd003f55c107bf56bd5fd61b6bff19d1 100644 --- a/arkoala/arkui/src/ArkRadioInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRadioInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRating.ts b/arkoala/arkui/src/generated/ArkRating.ts similarity index 97% rename from arkoala/arkui/src/ArkRating.ts rename to arkoala/arkui/src/generated/ArkRating.ts index da26b0121d82677efef249b7020661f75013f88b..7eb77158b610b9be75b51917e748c8427a92a8a9 100644 --- a/arkoala/arkui/src/ArkRating.ts +++ b/arkoala/arkui/src/generated/ArkRating.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRatingPeer } from "./peers/ArkRatingPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRatingInterfaces.ts b/arkoala/arkui/src/generated/ArkRatingInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRatingInterfaces.ts rename to arkoala/arkui/src/generated/ArkRatingInterfaces.ts index 020402916d5777095f9a41ec25a7ba554734dc79..6ab12770acc4e00dc910fea52de0205fa39bcd40 100644 --- a/arkoala/arkui/src/ArkRatingInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRatingInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRawFileDescriptorInterfaces.ts b/arkoala/arkui/src/generated/ArkRawFileDescriptorInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkRawFileDescriptorInterfaces.ts rename to arkoala/arkui/src/generated/ArkRawFileDescriptorInterfaces.ts diff --git a/arkoala/arkui/src/ArkRect.ts b/arkoala/arkui/src/generated/ArkRect.ts similarity index 97% rename from arkoala/arkui/src/ArkRect.ts rename to arkoala/arkui/src/generated/ArkRect.ts index 4743efaa068c710879ccc157b55c4e53fb5443e5..d767f40d808c73bdf8eabb90893ed9dfd97af923 100644 --- a/arkoala/arkui/src/ArkRect.ts +++ b/arkoala/arkui/src/generated/ArkRect.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonShapeMethodComponent } from "./ArkCommon" import { ArkRectPeer } from "./peers/ArkRectPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRectInterfaces.ts b/arkoala/arkui/src/generated/ArkRectInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRectInterfaces.ts rename to arkoala/arkui/src/generated/ArkRectInterfaces.ts index 701b2ca93c4828bbc342d83433d53938d4dd9d2c..6864a0304250c42ddb45bbd2d9081fe5cf21da51 100644 --- a/arkoala/arkui/src/ArkRectInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRectInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRefresh.ts b/arkoala/arkui/src/generated/ArkRefresh.ts similarity index 97% rename from arkoala/arkui/src/ArkRefresh.ts rename to arkoala/arkui/src/generated/ArkRefresh.ts index e160d07215e9a9594b0dabecd8cfd2fe6b3f0c43..0485837833c0ae56480d0e550a597cac9ea5de16 100644 --- a/arkoala/arkui/src/ArkRefresh.ts +++ b/arkoala/arkui/src/generated/ArkRefresh.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRefreshPeer } from "./peers/ArkRefreshPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRefreshInterfaces.ts b/arkoala/arkui/src/generated/ArkRefreshInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRefreshInterfaces.ts rename to arkoala/arkui/src/generated/ArkRefreshInterfaces.ts index 7166b17076b1167b1406ea76579226cf5ef3f5cc..a0590515e5dde5a1f1cfac798352a8c3a6d7de1a 100644 --- a/arkoala/arkui/src/ArkRefreshInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRefreshInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRelativeContainer.ts b/arkoala/arkui/src/generated/ArkRelativeContainer.ts similarity index 95% rename from arkoala/arkui/src/ArkRelativeContainer.ts rename to arkoala/arkui/src/generated/ArkRelativeContainer.ts index b19756cab0d4e47c94501e668133cb51eac2f737..548ec05d89588d3a4d1481c7e7404c8a3e04f28d 100644 --- a/arkoala/arkui/src/ArkRelativeContainer.ts +++ b/arkoala/arkui/src/generated/ArkRelativeContainer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRelativeContainerPeer } from "./peers/ArkRelativeContainerPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -78,12 +77,12 @@ export class ArkRelativeContainerComponent extends ArkCommonMethodComponent { public barrier(value: Array | Array): this { if (this.checkPriority("barrier")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array))) { + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { const value_casted = value as (Array) this.getPeer()?.barrier0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array))) { + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof Array)) { const value_casted = value as (Array) this.getPeer()?.barrier1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkRelativeContainerInterfaces.ts b/arkoala/arkui/src/generated/ArkRelativeContainerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRelativeContainerInterfaces.ts rename to arkoala/arkui/src/generated/ArkRelativeContainerInterfaces.ts index 2f05edc547f1926d1a9f599120213a3dbec70b8a..fc709464f8dcc7988fa3647ab5fe81d0716393e8 100644 --- a/arkoala/arkui/src/ArkRelativeContainerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRelativeContainerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRemoteWindow.ts b/arkoala/arkui/src/generated/ArkRemoteWindow.ts similarity index 97% rename from arkoala/arkui/src/ArkRemoteWindow.ts rename to arkoala/arkui/src/generated/ArkRemoteWindow.ts index af3f081fec417ecf6de761264555b733e3568023..721e973a246593993885d42083bfe91852bf95c0 100644 --- a/arkoala/arkui/src/ArkRemoteWindow.ts +++ b/arkoala/arkui/src/generated/ArkRemoteWindow.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRemoteWindowPeer } from "./peers/ArkRemoteWindowPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRemoteWindowInterfaces.ts b/arkoala/arkui/src/generated/ArkRemoteWindowInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRemoteWindowInterfaces.ts rename to arkoala/arkui/src/generated/ArkRemoteWindowInterfaces.ts index 53ba498446b83b012f58dfd84231624c4ede4265..3a1256ec0908bc83bc793b4a8b9eba156b92c50c 100644 --- a/arkoala/arkui/src/ArkRemoteWindowInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRemoteWindowInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts b/arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts rename to arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts index 2701193fc01d3f328111d66e11deb56bce465830..4a85bfeaa8f03d19cdd99c368db63466335e9c0f 100644 --- a/arkoala/arkui/src/ArkRenderingContextSettingsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRenderingContextSettingsMaterialized.ts @@ -16,15 +16,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class RenderingContextSettingsInternal { + public static fromPtr(ptr: KPointer): RenderingContextSettings { + const obj: RenderingContextSettings = new RenderingContextSettings(undefined) + obj.peer = new Finalizable(ptr, RenderingContextSettings.getFinalizer()) + return obj + } +} export class RenderingContextSettings implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -37,7 +42,7 @@ export class RenderingContextSettings implements MaterializedBase { const antialias_NonNull = (antialias as boolean) this.setAntialias(antialias_NonNull) } - static ctor(antialias?: boolean): KPointer { + static ctor_renderingcontextsettings(antialias?: boolean): KPointer { const thisSerializer: Serializer = Serializer.hold() let antialias_type: int32 = RuntimeType.UNDEFINED antialias_type = runtimeType(antialias) @@ -51,7 +56,7 @@ export class RenderingContextSettings implements MaterializedBase { return retval } constructor(antialias?: boolean) { - const ctorPtr: KPointer = RenderingContextSettings.ctor(antialias) + const ctorPtr: KPointer = RenderingContextSettings.ctor_renderingcontextsettings(antialias) this.peer = new Finalizable(ctorPtr, RenderingContextSettings.getFinalizer()) } static getFinalizer(): KPointer { @@ -73,10 +78,3 @@ export class RenderingContextSettings implements MaterializedBase { ArkUIGeneratedNativeModule._RenderingContextSettings_setAntialias(this.peer!.ptr, +antialias) } } -export class RenderingContextSettingsInternal { - public static fromPtr(ptr: KPointer): RenderingContextSettings { - const obj: RenderingContextSettings = new RenderingContextSettings(undefined) - obj.peer = new Finalizable(ptr, RenderingContextSettings.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkRepeatInterfaces.ts b/arkoala/arkui/src/generated/ArkRepeatInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkRepeatInterfaces.ts rename to arkoala/arkui/src/generated/ArkRepeatInterfaces.ts diff --git a/arkoala/arkui/src/ArkReplaceSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkReplaceSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts index 37b9b2a8498ff180514cb419aff6ca3ce6a2dcfb..e96d09a4c5fdd9d0c83c68d765a3aa9e294692ff 100644 --- a/arkoala/arkui/src/ArkReplaceSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkReplaceSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ReplaceSymbolEffectInternal { + public static fromPtr(ptr: KPointer): ReplaceSymbolEffect { + const obj: ReplaceSymbolEffect = new ReplaceSymbolEffect(undefined) + obj.peer = new Finalizable(ptr, ReplaceSymbolEffect.getFinalizer()) + return obj + } +} export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -38,7 +43,7 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { const scope_NonNull = (scope as EffectScope) this.setScope(scope_NonNull) } - static ctor(scope?: EffectScope): KPointer { + static ctor_replacesymboleffect(scope?: EffectScope): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -52,7 +57,7 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope) { - const ctorPtr: KPointer = ReplaceSymbolEffect.ctor(scope) + const ctorPtr: KPointer = ReplaceSymbolEffect.ctor_replacesymboleffect(scope) this.peer = new Finalizable(ctorPtr, ReplaceSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -74,10 +79,3 @@ export class ReplaceSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._ReplaceSymbolEffect_setScope(this.peer!.ptr, scope) } } -export class ReplaceSymbolEffectInternal { - public static fromPtr(ptr: KPointer): ReplaceSymbolEffect { - const obj: ReplaceSymbolEffect = new ReplaceSymbolEffect(undefined) - obj.peer = new Finalizable(ptr, ReplaceSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkResourceInterfaces.ts b/arkoala/arkui/src/generated/ArkResourceInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkResourceInterfaces.ts rename to arkoala/arkui/src/generated/ArkResourceInterfaces.ts diff --git a/arkoala/arkui/src/ArkRichEditor.ts b/arkoala/arkui/src/generated/ArkRichEditor.ts similarity index 98% rename from arkoala/arkui/src/ArkRichEditor.ts rename to arkoala/arkui/src/generated/ArkRichEditor.ts index 7c4ae4b48638ee7f0776ca85e877dd8444c57197..0837acb571102481d992df9ddc473fd639e161a8 100644 --- a/arkoala/arkui/src/ArkRichEditor.ts +++ b/arkoala/arkui/src/generated/ArkRichEditor.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichEditorPeer } from "./peers/ArkRichEditorPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -79,12 +78,12 @@ export class ArkRichEditorComponent extends ArkCommonMethodComponent { public setRichEditorOptions(value: RichEditorOptions | RichEditorStyledStringOptions): this { if (this.checkPriority("setRichEditorOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (RichEditorOptions) this.getPeer()?.setRichEditorOptions0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const options_casted = value as (RichEditorStyledStringOptions) this.getPeer()?.setRichEditorOptions1Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts index cf3211a33542b62c67762b3d49f706a9fff72f17..79b31138fd7912ffde6be079c50e205c93fe3b93 100644 --- a/arkoala/arkui/src/ArkRichEditorBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorBaseControllerMaterialized.ts @@ -27,26 +27,31 @@ import { ResourceColor, Length, ResourceStr } from "./ArkUnitsInterfaces" import { FontStyle, FontWeight, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { DecorationStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class RichEditorBaseControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorBaseController { + const obj: RichEditorBaseController = new RichEditorBaseController() + obj.peer = new Finalizable(ptr, RichEditorBaseController.getFinalizer()) + return obj + } +} export class RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorbasecontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_ctor() return retval } constructor() { - const ctorPtr: KPointer = RichEditorBaseController.ctor() + const ctorPtr: KPointer = RichEditorBaseController.ctor_richeditorbasecontroller() this.peer = new Finalizable(ctorPtr, RichEditorBaseController.getFinalizer()) } static getFinalizer(): KPointer { @@ -104,7 +109,7 @@ export class RichEditorBaseController implements MaterializedBase { } private getTypingStyle_serialize(): RichEditorTextStyle { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getTypingStyle(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readRichEditorTextStyle() } private setTypingStyle_serialize(value: RichEditorTextStyle): void { const thisSerializer: Serializer = Serializer.hold() @@ -137,13 +142,6 @@ export class RichEditorBaseController implements MaterializedBase { } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._RichEditorBaseController_getPreviewText(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") - } -} -export class RichEditorBaseControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorBaseController { - const obj: RichEditorBaseController = new RichEditorBaseController() - obj.peer = new Finalizable(ptr, RichEditorBaseController.getFinalizer()) - return obj + return new Deserializer(retval.buffer, retval.byteLength).readPreviewText() } } diff --git a/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts index 35c2665cdb14bac782d5f74dcde855b9eb1db691..2a9e208e6562663cdc4a90ca3e650cd92cc432a5 100644 --- a/arkoala/arkui/src/ArkRichEditorControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorControllerMaterialized.ts @@ -25,6 +25,7 @@ import { PreviewText, DecorationStyleResult, PositionWithAffinity, LineMetrics, import { RichEditorTextStyle, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanPosition, RichEditorImageSpanStyleResult, RichEditorLayoutStyle, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, LeadingMarginPlaceholder, RichEditorGesture, RichEditorImageSpanStyle, RichEditorSpanStyleOptions } from "./ArkRichEditorInterfaces" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { ResourceStr, Dimension, Margin, BorderRadiuses, Length, ResourceColor, PX, VP, FP, LPX, Percentage, Padding, Area, Position, SizeOptions } from "./ArkUnitsInterfaces" +import { CustomNodeBuilder } from "./ArkCustomBuilderInterfaces" import { Resource } from "./ArkResourceInterfaces" import { StyledString, StyledStringInternal } from "./ArkStyledStringMaterialized" import { ImageSpanAlignment, ImageFit, FontStyle, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, FontWeight, TextAlign, WordBreak, LineBreakStrategy } from "./ArkEnumsInterfaces" @@ -38,27 +39,32 @@ import { FingerInfo } from "./ArkGestureInterfaces" import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class RichEditorControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorController { + const obj: RichEditorController = new RichEditorController() + obj.peer = new Finalizable(ptr, RichEditorController.getFinalizer()) + return obj + } +} export class RichEditorController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = RichEditorController.ctor() + const ctorPtr: KPointer = RichEditorController.ctor_richeditorcontroller() this.peer = new Finalizable(ctorPtr, RichEditorController.getFinalizer()) } static getFinalizer(): KPointer { @@ -135,22 +141,22 @@ export class RichEditorController extends RichEditorBaseController implements Ma const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writePixelMap(value_0) } - else if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + else if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) let value_1_type: int32 = RuntimeType.UNDEFINED value_1_type = runtimeType(value_1) - if (((RuntimeType.STRING == value_1_type))) { + if (RuntimeType.STRING == value_1_type) { thisSerializer.writeInt8(0) const value_1_0 = unsafeCast(value_1) thisSerializer.writeString(value_1_0) } - else if (((RuntimeType.OBJECT == value_1_type))) { + else if (RuntimeType.OBJECT == value_1_type) { thisSerializer.writeInt8(1) const value_1_1 = unsafeCast(value_1) thisSerializer.writeResource(value_1_1) @@ -199,17 +205,17 @@ export class RichEditorController extends RichEditorBaseController implements Ma const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("textStyle"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("textStyle")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeRichEditorUpdateTextSpanStyleOptions(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("imageStyle"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("imageStyle")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeRichEditorUpdateImageSpanStyleOptions(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("symbolStyle"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("symbolStyle")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeRichEditorUpdateSymbolSpanStyleOptions(value_2) @@ -263,7 +269,7 @@ export class RichEditorController extends RichEditorBaseController implements Ma } private getSelection_serialize(): RichEditorSelection { const retval = ArkUIGeneratedNativeModule._RichEditorController_getSelection(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readRichEditorSelection() } private fromStyledString_serialize(value: StyledString): Array { const thisSerializer: Serializer = Serializer.hold() @@ -280,10 +286,3 @@ export class RichEditorController extends RichEditorBaseController implements Ma throw new Error("Object deserialization is not implemented.") } } -export class RichEditorControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorController { - const obj: RichEditorController = new RichEditorController() - obj.peer = new Finalizable(ptr, RichEditorController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkRichEditorInterfaces.ts b/arkoala/arkui/src/generated/ArkRichEditorInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRichEditorInterfaces.ts rename to arkoala/arkui/src/generated/ArkRichEditorInterfaces.ts index 8a17cda3829eab4ec880bf4f88b9431fa4964a18..1740c435cdfc97cc22fd4bdb1a8b54d731064c12 100644 --- a/arkoala/arkui/src/ArkRichEditorInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorInterfaces.ts @@ -49,7 +49,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { HoverEvent } from "./ArkHoverEventMaterialized" import { MouseEvent } from "./ArkMouseEventMaterialized" diff --git a/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts index c5d0afc380b2a9cff09f331391258e7de0787e0d..071d4022c67ee16034db4b3c2c8c783feff9f755 100644 --- a/arkoala/arkui/src/ArkRichEditorStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRichEditorStyledStringControllerMaterialized.ts @@ -35,27 +35,32 @@ import { ImageAttachment, ImageAttachmentInternal } from "./ArkImageAttachmentMa import { CustomSpan, CustomSpanInternal } from "./ArkCustomSpanMaterialized" import { PixelMap, PixelMapInternal } from "./ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class RichEditorStyledStringControllerInternal { + public static fromPtr(ptr: KPointer): RichEditorStyledStringController { + const obj: RichEditorStyledStringController = new RichEditorStyledStringController() + obj.peer = new Finalizable(ptr, RichEditorStyledStringController.getFinalizer()) + return obj + } +} export class RichEditorStyledStringController extends RichEditorBaseController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_richeditorstyledstringcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = RichEditorStyledStringController.ctor() + const ctorPtr: KPointer = RichEditorStyledStringController.ctor_richeditorstyledstringcontroller() this.peer = new Finalizable(ctorPtr, RichEditorStyledStringController.getFinalizer()) } static getFinalizer(): KPointer { @@ -89,7 +94,7 @@ export class RichEditorStyledStringController extends RichEditorBaseController i } private getSelection_serialize(): RichEditorRange { const retval = ArkUIGeneratedNativeModule._RichEditorStyledStringController_getSelection(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readRichEditorRange() } private onContentChanged_serialize(listener: StyledStringChangedListener): void { const thisSerializer: Serializer = Serializer.hold() @@ -98,10 +103,3 @@ export class RichEditorStyledStringController extends RichEditorBaseController i thisSerializer.release() } } -export class RichEditorStyledStringControllerInternal { - public static fromPtr(ptr: KPointer): RichEditorStyledStringController { - const obj: RichEditorStyledStringController = new RichEditorStyledStringController() - obj.peer = new Finalizable(ptr, RichEditorStyledStringController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkRichText.ts b/arkoala/arkui/src/generated/ArkRichText.ts similarity index 97% rename from arkoala/arkui/src/ArkRichText.ts rename to arkoala/arkui/src/generated/ArkRichText.ts index e5386d4f2e2b2781b4910d6c85c3a574b7eecdf8..c364141f43441a665e23ee4101ddd6f1486815f3 100644 --- a/arkoala/arkui/src/ArkRichText.ts +++ b/arkoala/arkui/src/generated/ArkRichText.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRichTextPeer } from "./peers/ArkRichTextPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRichTextInterfaces.ts b/arkoala/arkui/src/generated/ArkRichTextInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRichTextInterfaces.ts rename to arkoala/arkui/src/generated/ArkRichTextInterfaces.ts index 78028d833c623bb7137548a36c9399a448689479..21be2bd44e64cdeae9ec2d40ad1d032e8f98fe8f 100644 --- a/arkoala/arkui/src/ArkRichTextInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRichTextInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRootScene.ts b/arkoala/arkui/src/generated/ArkRootScene.ts similarity index 97% rename from arkoala/arkui/src/ArkRootScene.ts rename to arkoala/arkui/src/generated/ArkRootScene.ts index 183da888207bdd801df4f31ced25367cd0291b15..687e9280d8d6a7d0120996a402a43fcb35145679 100644 --- a/arkoala/arkui/src/ArkRootScene.ts +++ b/arkoala/arkui/src/generated/ArkRootScene.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRootScenePeer } from "./peers/ArkRootScenePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRootSceneInterfaces.ts b/arkoala/arkui/src/generated/ArkRootSceneInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRootSceneInterfaces.ts rename to arkoala/arkui/src/generated/ArkRootSceneInterfaces.ts index 2f2cdb93af34edebe00a8b1ddebc4f97e402f241..5aed155bf618b637fe1b9f0f7b465424397c84d9 100644 --- a/arkoala/arkui/src/ArkRootSceneInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRootSceneInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts index c9f3d503b713d3d45c82320ef5cc0a919bea83e3..3a544e97b3ddce19b72d26fedef0e3aeb1081288 100644 --- a/arkoala/arkui/src/ArkRotationGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkRotationGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -45,13 +43,13 @@ export class RotationGestureEventInternal extends BaseGestureEventInternal imple set angle(angle: number) { this.setAngle(angle) } - static ctor(): KPointer { + static ctor_rotationgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._RotationGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = RotationGestureEventInternal.ctor() + const ctorPtr: KPointer = RotationGestureEventInternal.ctor_rotationgestureevent() this.peer = new Finalizable(ctorPtr, RotationGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkRow.ts b/arkoala/arkui/src/generated/ArkRow.ts similarity index 97% rename from arkoala/arkui/src/ArkRow.ts rename to arkoala/arkui/src/generated/ArkRow.ts index 7382348c89fa1892692e34d0f7eef7b4d99fb12f..a269dd024d8e98e0916f63dad1376bc96f9846ea 100644 --- a/arkoala/arkui/src/ArkRow.ts +++ b/arkoala/arkui/src/generated/ArkRow.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowPeer } from "./peers/ArkRowPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRowInterfaces.ts b/arkoala/arkui/src/generated/ArkRowInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRowInterfaces.ts rename to arkoala/arkui/src/generated/ArkRowInterfaces.ts index 93245e8fda9748005905f786b57eed44203d9099..ac645369d75cc19db2778353e7352b1b405c2973 100644 --- a/arkoala/arkui/src/ArkRowInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRowInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRowSplit.ts b/arkoala/arkui/src/generated/ArkRowSplit.ts similarity index 97% rename from arkoala/arkui/src/ArkRowSplit.ts rename to arkoala/arkui/src/generated/ArkRowSplit.ts index 4050b13f571107d841c72fe2916d33b13c928d0c..4f027b33090bb8dc2b90f4038d811346729b7f80 100644 --- a/arkoala/arkui/src/ArkRowSplit.ts +++ b/arkoala/arkui/src/generated/ArkRowSplit.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkRowSplitPeer } from "./peers/ArkRowSplitPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkRowSplitInterfaces.ts b/arkoala/arkui/src/generated/ArkRowSplitInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkRowSplitInterfaces.ts rename to arkoala/arkui/src/generated/ArkRowSplitInterfaces.ts index f47048bacfd7d96d449b42085ccf7988a4ee1ff0..ba6032a90524437214c93eec035e781bc7a65959 100644 --- a/arkoala/arkui/src/ArkRowSplitInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkRowSplitInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSaveButton.ts b/arkoala/arkui/src/generated/ArkSaveButton.ts similarity index 93% rename from arkoala/arkui/src/ArkSaveButton.ts rename to arkoala/arkui/src/generated/ArkSaveButton.ts index 08608ee3179eaf7a5fe68e7545372acdc2cae82d..6e083c08d871d0b69d14b49228fbe15eee3aad7b 100644 --- a/arkoala/arkui/src/ArkSaveButton.ts +++ b/arkoala/arkui/src/generated/ArkSaveButton.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkSecurityComponentMethodComponent } from "./ArkSecurityComponent" import { ArkSaveButtonPeer } from "./peers/ArkSaveButtonPeer" import { UseEventsProperties } from "./use_properties" @@ -44,11 +43,11 @@ export class ArkSaveButtonComponent extends ArkSecurityComponentMethodComponent public setSaveButtonOptions(options?: SaveButtonOptions): this { if (this.checkPriority("setSaveButtonOptions")) { const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { this.getPeer()?.setSaveButtonOptions0Attribute() return this } - if ((((RuntimeType.OBJECT == options_type)))) { + if (RuntimeType.OBJECT == options_type) { const options_casted = options as (SaveButtonOptions) this.getPeer()?.setSaveButtonOptions1Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkSaveButtonInterfaces.ts b/arkoala/arkui/src/generated/ArkSaveButtonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkSaveButtonInterfaces.ts rename to arkoala/arkui/src/generated/ArkSaveButtonInterfaces.ts diff --git a/arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts index 5b199f0ccc5459e9dfbdc51bcb950d864ea61bcf..140a96964c2d8bfca136e04a9f64b29cbc857788 100644 --- a/arkoala/arkui/src/ArkScaleSymbolEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScaleSymbolEffectMaterialized.ts @@ -17,15 +17,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SymbolEffect, EffectScope, EffectDirection } from "./ArkSymbolglyphInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScaleSymbolEffectInternal { + public static fromPtr(ptr: KPointer): ScaleSymbolEffect { + const obj: ScaleSymbolEffect = new ScaleSymbolEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, ScaleSymbolEffect.getFinalizer()) + return obj + } +} export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -45,7 +50,7 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { const direction_NonNull = (direction as EffectDirection) this.setDirection(direction_NonNull) } - static ctor(scope?: EffectScope, direction?: EffectDirection): KPointer { + static ctor_scalesymboleffect(scope?: EffectScope, direction?: EffectDirection): KPointer { const thisSerializer: Serializer = Serializer.hold() let scope_type: int32 = RuntimeType.UNDEFINED scope_type = runtimeType(scope) @@ -66,7 +71,7 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { return retval } constructor(scope?: EffectScope, direction?: EffectDirection) { - const ctorPtr: KPointer = ScaleSymbolEffect.ctor(scope, direction) + const ctorPtr: KPointer = ScaleSymbolEffect.ctor_scalesymboleffect(scope, direction) this.peer = new Finalizable(ctorPtr, ScaleSymbolEffect.getFinalizer()) } static getFinalizer(): KPointer { @@ -103,10 +108,3 @@ export class ScaleSymbolEffect implements MaterializedBase,SymbolEffect { ArkUIGeneratedNativeModule._ScaleSymbolEffect_setDirection(this.peer!.ptr, direction) } } -export class ScaleSymbolEffectInternal { - public static fromPtr(ptr: KPointer): ScaleSymbolEffect { - const obj: ScaleSymbolEffect = new ScaleSymbolEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, ScaleSymbolEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkScreen.ts b/arkoala/arkui/src/generated/ArkScreen.ts similarity index 97% rename from arkoala/arkui/src/ArkScreen.ts rename to arkoala/arkui/src/generated/ArkScreen.ts index 936e15ac846feda6d34d3c19d50a42d7bd14575c..97a2cb31152d2b250160f54061f9bff1abdae3b9 100644 --- a/arkoala/arkui/src/ArkScreen.ts +++ b/arkoala/arkui/src/generated/ArkScreen.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScreenPeer } from "./peers/ArkScreenPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts index a75a3501d76d557774d4c7b2e0c8d0faff58b517..95fdf101c49c85cd77e2a75af63cd6e949d8e4a0 100644 --- a/arkoala/arkui/src/ArkScreenCaptureHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScreenCaptureHandlerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ScreenCaptureConfig, WebCaptureMode } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScreenCaptureHandlerInternal { + public static fromPtr(ptr: KPointer): ScreenCaptureHandler { + const obj: ScreenCaptureHandler = new ScreenCaptureHandler() + obj.peer = new Finalizable(ptr, ScreenCaptureHandler.getFinalizer()) + return obj + } +} export class ScreenCaptureHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_screencapturehandler(): KPointer { const retval = ArkUIGeneratedNativeModule._ScreenCaptureHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = ScreenCaptureHandler.ctor() + const ctorPtr: KPointer = ScreenCaptureHandler.ctor_screencapturehandler() this.peer = new Finalizable(ctorPtr, ScreenCaptureHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -68,10 +73,3 @@ export class ScreenCaptureHandler implements MaterializedBase { ArkUIGeneratedNativeModule._ScreenCaptureHandler_deny(this.peer!.ptr) } } -export class ScreenCaptureHandlerInternal { - public static fromPtr(ptr: KPointer): ScreenCaptureHandler { - const obj: ScreenCaptureHandler = new ScreenCaptureHandler() - obj.peer = new Finalizable(ptr, ScreenCaptureHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkScreenInterfaces.ts b/arkoala/arkui/src/generated/ArkScreenInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkScreenInterfaces.ts rename to arkoala/arkui/src/generated/ArkScreenInterfaces.ts index 7be9685224dee4ad70c54ccb091ada0e52d06fa8..c5234ca793fcf99019574770de0ae9d7a90428db 100644 --- a/arkoala/arkui/src/ArkScreenInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkScreenInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScroll.ts b/arkoala/arkui/src/generated/ArkScroll.ts similarity index 98% rename from arkoala/arkui/src/ArkScroll.ts rename to arkoala/arkui/src/generated/ArkScroll.ts index 47ee5e2d75f1443d9e8583b4ca14187fcf6c80d4..446b03f71157b2671d176f4255ebf53d86f038f2 100644 --- a/arkoala/arkui/src/ArkScroll.ts +++ b/arkoala/arkui/src/generated/ArkScroll.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkScrollPeer } from "./peers/ArkScrollPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScrollBar.ts b/arkoala/arkui/src/generated/ArkScrollBar.ts similarity index 97% rename from arkoala/arkui/src/ArkScrollBar.ts rename to arkoala/arkui/src/generated/ArkScrollBar.ts index 6e2a099f19da636c5b0c7d200c899f6aa6f30321..e411ef2cf09945b9c89468dce47989de00e2e1c4 100644 --- a/arkoala/arkui/src/ArkScrollBar.ts +++ b/arkoala/arkui/src/generated/ArkScrollBar.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkScrollBarPeer } from "./peers/ArkScrollBarPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScrollBarInterfaces.ts b/arkoala/arkui/src/generated/ArkScrollBarInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkScrollBarInterfaces.ts rename to arkoala/arkui/src/generated/ArkScrollBarInterfaces.ts index 3eae51794afc4ff1344cea89ed28980df1e376da..822df8813bf5c8abd87cefdcb971464729cf675e 100644 --- a/arkoala/arkui/src/ArkScrollBarInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkScrollBarInterfaces.ts @@ -33,7 +33,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScrollInterfaces.ts b/arkoala/arkui/src/generated/ArkScrollInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkScrollInterfaces.ts rename to arkoala/arkui/src/generated/ArkScrollInterfaces.ts index d9e4afb493aef797ceab9c36e0c177f96e22690e..6cce2b8eb01fd1fb4ea6a775554cb5af455b73ec 100644 --- a/arkoala/arkui/src/ArkScrollInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkScrollInterfaces.ts @@ -33,7 +33,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkScrollMotionMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts similarity index 86% rename from arkoala/arkui/src/ArkScrollMotionMaterialized.ts rename to arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts index 6957376dcb3cb941a279d925f21e9a1689fd9038..aa3b90162137f7fa1b5c0f4bd046fc5ceb6a877c 100644 --- a/arkoala/arkui/src/ArkScrollMotionMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollMotionMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScrollMotionInternal { + public static fromPtr(ptr: KPointer): ScrollMotion { + const obj: ScrollMotion = new ScrollMotion(undefined, undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, ScrollMotion.getFinalizer()) + return obj + } +} export class ScrollMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(position: number, velocity: number, min: number, max: number, prop: SpringProp): KPointer { + static ctor_scrollmotion(position: number, velocity: number, min: number, max: number, prop: SpringProp): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeSpringProp(prop) const retval = ArkUIGeneratedNativeModule._ScrollMotion_ctor(position, velocity, min, max, thisSerializer.asArray(), thisSerializer.length()) @@ -41,7 +46,7 @@ export class ScrollMotion implements MaterializedBase { constructor(position?: number, velocity?: number, min?: number, max?: number, prop?: SpringProp) { if (((position) !== (undefined)) && ((velocity) !== (undefined)) && ((min) !== (undefined)) && ((max) !== (undefined)) && ((prop) !== (undefined))) { - const ctorPtr: KPointer = ScrollMotion.ctor(position, velocity, min, max, prop) + const ctorPtr: KPointer = ScrollMotion.ctor_scrollmotion(position, velocity, min, max, prop) this.peer = new Finalizable(ctorPtr, ScrollMotion.getFinalizer()) } } @@ -49,10 +54,3 @@ export class ScrollMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._ScrollMotion_getFinalizer() } } -export class ScrollMotionInternal { - public static fromPtr(ptr: KPointer): ScrollMotion { - const obj: ScrollMotion = new ScrollMotion(undefined, undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, ScrollMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts rename to arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts index 6c8aab0649b52d0d67cb3589fa6308166da5c413..0f3b3b2aa4fbc745675aa75683a623753407b8e0 100644 --- a/arkoala/arkui/src/ArkScrollableTargetInfoMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollableTargetInfoMaterialized.ts @@ -17,27 +17,32 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { EventTargetInfo, EventTargetInfoInternal } from "./ArkEventTargetInfoMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScrollableTargetInfoInternal { + public static fromPtr(ptr: KPointer): ScrollableTargetInfo { + const obj: ScrollableTargetInfo = new ScrollableTargetInfo() + obj.peer = new Finalizable(ptr, ScrollableTargetInfo.getFinalizer()) + return obj + } +} export class ScrollableTargetInfo extends EventTargetInfo implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_scrollabletargetinfo(): KPointer { const retval = ArkUIGeneratedNativeModule._ScrollableTargetInfo_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = ScrollableTargetInfo.ctor() + const ctorPtr: KPointer = ScrollableTargetInfo.ctor_scrollabletargetinfo() this.peer = new Finalizable(ctorPtr, ScrollableTargetInfo.getFinalizer()) } static getFinalizer(): KPointer { @@ -58,10 +63,3 @@ export class ScrollableTargetInfo extends EventTargetInfo implements Materialize return retval } } -export class ScrollableTargetInfoInternal { - public static fromPtr(ptr: KPointer): ScrollableTargetInfo { - const obj: ScrollableTargetInfo = new ScrollableTargetInfo() - obj.peer = new Finalizable(ptr, ScrollableTargetInfo.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkScrollerMaterialized.ts b/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkScrollerMaterialized.ts rename to arkoala/arkui/src/generated/ArkScrollerMaterialized.ts index f51436359f4355f64d36060b96528ac80db3fcfd..7cd46889ad18f6907e9914a608f0a971585fb6c4 100644 --- a/arkoala/arkui/src/ArkScrollerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkScrollerMaterialized.ts @@ -24,26 +24,31 @@ import { Resource } from "./ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ScrollerInternal { + public static fromPtr(ptr: KPointer): Scroller { + const obj: Scroller = new Scroller() + obj.peer = new Finalizable(ptr, Scroller.getFinalizer()) + return obj + } +} export class Scroller implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_scroller(): KPointer { const retval = ArkUIGeneratedNativeModule._Scroller_ctor() return retval } constructor() { - const ctorPtr: KPointer = Scroller.ctor() + const ctorPtr: KPointer = Scroller.ctor_scroller() this.peer = new Finalizable(ctorPtr, Scroller.getFinalizer()) } static getFinalizer(): KPointer { @@ -65,11 +70,11 @@ export class Scroller implements MaterializedBase { } public scrollPage(value: ScrollPageOptions | { next: boolean, direction?: Axis }): undefined { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("animation")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("animation")))) { const value_casted = value as (ScrollPageOptions) return this.scrollPage0_serialize(value_casted) } - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("direction")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("direction")))) { const value_casted = value as ({ next: boolean, direction?: Axis }) return this.scrollPage1_serialize(value_casted) } @@ -150,7 +155,7 @@ export class Scroller implements MaterializedBase { } private currentOffset_serialize(): OffsetResult { const retval = ArkUIGeneratedNativeModule._Scroller_currentOffset(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readOffsetResult() } private scrollToIndex_serialize(value: number, smooth?: boolean, align?: ScrollAlign, options?: ScrollToIndexOptions): undefined { const thisSerializer: Serializer = Serializer.hold() @@ -189,17 +194,10 @@ export class Scroller implements MaterializedBase { } private getItemRect_serialize(index: number): RectResult { const retval = ArkUIGeneratedNativeModule._Scroller_getItemRect(this.peer!.ptr, index) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readRectResult() } private getItemIndex_serialize(x: number, y: number): number { const retval = ArkUIGeneratedNativeModule._Scroller_getItemIndex(this.peer!.ptr, x, y) return retval } } -export class ScrollerInternal { - public static fromPtr(ptr: KPointer): Scroller { - const obj: Scroller = new Scroller() - obj.peer = new Finalizable(ptr, Scroller.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSearch.ts b/arkoala/arkui/src/generated/ArkSearch.ts similarity index 98% rename from arkoala/arkui/src/ArkSearch.ts rename to arkoala/arkui/src/generated/ArkSearch.ts index bed45e04af565d05f7829d36ce8b5553670b080f..ac3e54d5a85dfe0f8efe8e2568249e969163ae30 100644 --- a/arkoala/arkui/src/ArkSearch.ts +++ b/arkoala/arkui/src/generated/ArkSearch.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSearchPeer } from "./peers/ArkSearchPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -178,13 +177,13 @@ export class ArkSearchComponent extends ArkCommonMethodComponent { public onSubmit(value: ((breakpoints: string) => void) | SearchSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((breakpoints: string) => void)) UseEventsProperties({Search_onSubmit0: value_casted}) this.getPeer()?.onSubmit0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (SearchSubmitCallback) UseEventsProperties({Search_onSubmit1: value_casted}) this.getPeer()?.onSubmit1Attribute(value_casted) diff --git a/arkoala/arkui/src/ArkSearchControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkSearchControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts index 9bae7bfde33a9f3c452679d84e26fe3fc48a5113..3412c07bed7865c46db6d398e84bd979ff77e6a4 100644 --- a/arkoala/arkui/src/ArkSearchControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSearchControllerMaterialized.ts @@ -18,27 +18,32 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SearchControllerInternal { + public static fromPtr(ptr: KPointer): SearchController { + const obj: SearchController = new SearchController() + obj.peer = new Finalizable(ptr, SearchController.getFinalizer()) + return obj + } +} export class SearchController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_searchcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._SearchController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = SearchController.ctor() + const ctorPtr: KPointer = SearchController.ctor_searchcontroller() this.peer = new Finalizable(ctorPtr, SearchController.getFinalizer()) } static getFinalizer(): KPointer { @@ -79,10 +84,3 @@ export class SearchController extends TextContentControllerBase implements Mater thisSerializer.release() } } -export class SearchControllerInternal { - public static fromPtr(ptr: KPointer): SearchController { - const obj: SearchController = new SearchController() - obj.peer = new Finalizable(ptr, SearchController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSearchInterfaces.ts b/arkoala/arkui/src/generated/ArkSearchInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSearchInterfaces.ts rename to arkoala/arkui/src/generated/ArkSearchInterfaces.ts index 9a412b3818e65d60ce10a21b21678071ff7f3368..7d9b223edae36f6e1e80b16a72139c9021dab82b 100644 --- a/arkoala/arkui/src/ArkSearchInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSearchInterfaces.ts @@ -31,7 +31,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSecurityComponent.ts b/arkoala/arkui/src/generated/ArkSecurityComponent.ts similarity index 98% rename from arkoala/arkui/src/ArkSecurityComponent.ts rename to arkoala/arkui/src/generated/ArkSecurityComponent.ts index 25ba7cbcac2d7d2b57d8edd6b523766bf4b77c76..510cfdf7c6e3632bc5806b1b1ad7c0bd4f49524b 100644 --- a/arkoala/arkui/src/ArkSecurityComponent.ts +++ b/arkoala/arkui/src/generated/ArkSecurityComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkSecurityComponentMethodPeer } from "./peers/ArkSecurityComponentPeer" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./ArkUnitsInterfaces" import { SecurityComponentLayoutDirection } from "./ArkSecurityComponentInterfaces" diff --git a/arkoala/arkui/src/ArkSecurityComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkSecurityComponentInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkSecurityComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkSecurityComponentInterfaces.ts diff --git a/arkoala/arkui/src/ArkSelect.ts b/arkoala/arkui/src/generated/ArkSelect.ts similarity index 98% rename from arkoala/arkui/src/ArkSelect.ts rename to arkoala/arkui/src/generated/ArkSelect.ts index e6a8e3cbc3e412a152039e9b70ac8872cd39520f..a2b523b29adb9fee3077d44ddde57153ff4fe77c 100644 --- a/arkoala/arkui/src/ArkSelect.ts +++ b/arkoala/arkui/src/generated/ArkSelect.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSelectPeer } from "./peers/ArkSelectPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSelectInterfaces.ts b/arkoala/arkui/src/generated/ArkSelectInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSelectInterfaces.ts rename to arkoala/arkui/src/generated/ArkSelectInterfaces.ts index 780d7d82fa1af16beac42c61a9e04ddb358861f2..c4967093c02ea03c8179d035ec51775355073c43 100644 --- a/arkoala/arkui/src/ArkSelectInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSelectInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkShape.ts b/arkoala/arkui/src/generated/ArkShape.ts similarity index 97% rename from arkoala/arkui/src/ArkShape.ts rename to arkoala/arkui/src/generated/ArkShape.ts index cd28d22bf68da42ba22b58d628ad570b5ac92f53..9b98153da8e664b0f12b0eb1da4d260ab7ebb666 100644 --- a/arkoala/arkui/src/ArkShape.ts +++ b/arkoala/arkui/src/generated/ArkShape.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkShapePeer } from "./peers/ArkShapePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -61,11 +60,11 @@ export class ArkShapeComponent extends ArkCommonMethodComponent { public setShapeOptions(value?: PixelMap): this { if (this.checkPriority("setShapeOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.UNDEFINED == value_type)))) { + if (RuntimeType.UNDEFINED == value_type) { this.getPeer()?.setShapeOptions1Attribute() return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (PixelMap) this.getPeer()?.setShapeOptions0Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkShapeInterfaces.ts b/arkoala/arkui/src/generated/ArkShapeInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkShapeInterfaces.ts rename to arkoala/arkui/src/generated/ArkShapeInterfaces.ts index 29fd7f88ee7db9c344d995e7c45562abd3fdcfc5..d54746d4762c8d3158774536f87a69aa050c3e09 100644 --- a/arkoala/arkui/src/ArkShapeInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkShapeInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkSidebar.ts b/arkoala/arkui/src/generated/ArkSidebar.ts similarity index 93% rename from arkoala/arkui/src/ArkSidebar.ts rename to arkoala/arkui/src/generated/ArkSidebar.ts index 8348e29c16e213d58f1cfc2defc7a70bba9091fd..d151609c777947aab841ea0e7cbbf0bda818f272 100644 --- a/arkoala/arkui/src/ArkSidebar.ts +++ b/arkoala/arkui/src/generated/ArkSidebar.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSideBarContainerPeer } from "./peers/ArkSidebarPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -109,12 +108,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public sideBarWidth(value: number | Length): this { if (this.checkPriority("sideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.sideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.sideBarWidth1Attribute(value_casted) return this @@ -127,12 +126,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public minSideBarWidth(value: number | Length): this { if (this.checkPriority("minSideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.minSideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.minSideBarWidth1Attribute(value_casted) return this @@ -145,12 +144,12 @@ export class ArkSideBarContainerComponent extends ArkCommonMethodComponent { public maxSideBarWidth(value: number | Length): this { if (this.checkPriority("maxSideBarWidth")) { const value_type = runtimeType(value) - if ((((RuntimeType.NUMBER == value_type)))) { + if (RuntimeType.NUMBER == value_type) { const value_casted = value as (number) this.getPeer()?.maxSideBarWidth0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value))))) { + if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (isResource(value)))) { const value_casted = value as (Length) this.getPeer()?.maxSideBarWidth1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkSidebarInterfaces.ts b/arkoala/arkui/src/generated/ArkSidebarInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSidebarInterfaces.ts rename to arkoala/arkui/src/generated/ArkSidebarInterfaces.ts index 28daa13b8b0e0e9b1c1b6d7964275e650d1b9b02..43a9e8a995203be8e26350b2a3ac3dbc6df9bde0 100644 --- a/arkoala/arkui/src/ArkSidebarInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSidebarInterfaces.ts @@ -30,7 +30,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkSlider.ts b/arkoala/arkui/src/generated/ArkSlider.ts similarity index 98% rename from arkoala/arkui/src/ArkSlider.ts rename to arkoala/arkui/src/generated/ArkSlider.ts index 9afc0117969388217b3b25a57e1bc2bd6bb5995f..3732cb8bef81546be40e7a7f8273e8455faeaf9e 100644 --- a/arkoala/arkui/src/ArkSlider.ts +++ b/arkoala/arkui/src/generated/ArkSlider.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSliderPeer } from "./peers/ArkSliderPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSliderInterfaces.ts b/arkoala/arkui/src/generated/ArkSliderInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSliderInterfaces.ts rename to arkoala/arkui/src/generated/ArkSliderInterfaces.ts index 86085e580ea167fdba08dd6be37ddb03a3d7e8c5..4e15cfc51c10328abf3a4cb5cb79ebcc1ab57a1a 100644 --- a/arkoala/arkui/src/ArkSliderInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSliderInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSpan.ts b/arkoala/arkui/src/generated/ArkSpan.ts similarity index 98% rename from arkoala/arkui/src/ArkSpan.ts rename to arkoala/arkui/src/generated/ArkSpan.ts index c0f1f97447e1572ce5af004f68a97fda9e4ce620..b5ea42ededda25bf979d2dcc0023d4da3634413d 100644 --- a/arkoala/arkui/src/ArkSpan.ts +++ b/arkoala/arkui/src/generated/ArkSpan.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkBaseSpanPeer, ArkSpanPeer } from "./peers/ArkSpanPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSpanInterfaces.ts b/arkoala/arkui/src/generated/ArkSpanInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSpanInterfaces.ts rename to arkoala/arkui/src/generated/ArkSpanInterfaces.ts index f4e83b62e8e81a1e2500ff1079e469487d92ac36..5ad5b2913ffd39859fbff3746d71289d3c26dbce 100644 --- a/arkoala/arkui/src/ArkSpanInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSpanInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSpringMotionMaterialized.ts b/arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts similarity index 87% rename from arkoala/arkui/src/ArkSpringMotionMaterialized.ts rename to arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts index 8c266c3eb78f6e1a430ea6ba6f2b1fd010b82378..092b14268878baf5b14f664936455fedd8a58af0 100644 --- a/arkoala/arkui/src/ArkSpringMotionMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSpringMotionMaterialized.ts @@ -17,21 +17,26 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SpringProp, SpringPropInternal } from "./ArkSpringPropMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SpringMotionInternal { + public static fromPtr(ptr: KPointer): SpringMotion { + const obj: SpringMotion = new SpringMotion(undefined, undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, SpringMotion.getFinalizer()) + return obj + } +} export class SpringMotion implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(start: number, end: number, velocity: number, prop: SpringProp): KPointer { + static ctor_springmotion(start: number, end: number, velocity: number, prop: SpringProp): KPointer { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeSpringProp(prop) const retval = ArkUIGeneratedNativeModule._SpringMotion_ctor(start, end, velocity, thisSerializer.asArray(), thisSerializer.length()) @@ -41,7 +46,7 @@ export class SpringMotion implements MaterializedBase { constructor(start?: number, end?: number, velocity?: number, prop?: SpringProp) { if (((start) !== (undefined)) && ((end) !== (undefined)) && ((velocity) !== (undefined)) && ((prop) !== (undefined))) { - const ctorPtr: KPointer = SpringMotion.ctor(start, end, velocity, prop) + const ctorPtr: KPointer = SpringMotion.ctor_springmotion(start, end, velocity, prop) this.peer = new Finalizable(ctorPtr, SpringMotion.getFinalizer()) } } @@ -49,10 +54,3 @@ export class SpringMotion implements MaterializedBase { return ArkUIGeneratedNativeModule._SpringMotion_getFinalizer() } } -export class SpringMotionInternal { - public static fromPtr(ptr: KPointer): SpringMotion { - const obj: SpringMotion = new SpringMotion(undefined, undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, SpringMotion.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSpringPropMaterialized.ts b/arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts similarity index 85% rename from arkoala/arkui/src/ArkSpringPropMaterialized.ts rename to arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts index 109360384368324455ad25d73179bf1f989126a5..6db5e0df8e14f4e634db7d986b35425bb839f29a 100644 --- a/arkoala/arkui/src/ArkSpringPropMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSpringPropMaterialized.ts @@ -16,28 +16,33 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SpringPropInternal { + public static fromPtr(ptr: KPointer): SpringProp { + const obj: SpringProp = new SpringProp(undefined, undefined, undefined) + obj.peer = new Finalizable(ptr, SpringProp.getFinalizer()) + return obj + } +} export class SpringProp implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(mass: number, stiffness: number, damping: number): KPointer { + static ctor_springprop(mass: number, stiffness: number, damping: number): KPointer { const retval = ArkUIGeneratedNativeModule._SpringProp_ctor(mass, stiffness, damping) return retval } constructor(mass?: number, stiffness?: number, damping?: number) { if (((mass) !== (undefined)) && ((stiffness) !== (undefined)) && ((damping) !== (undefined))) { - const ctorPtr: KPointer = SpringProp.ctor(mass, stiffness, damping) + const ctorPtr: KPointer = SpringProp.ctor_springprop(mass, stiffness, damping) this.peer = new Finalizable(ctorPtr, SpringProp.getFinalizer()) } } @@ -45,10 +50,3 @@ export class SpringProp implements MaterializedBase { return ArkUIGeneratedNativeModule._SpringProp_getFinalizer() } } -export class SpringPropInternal { - public static fromPtr(ptr: KPointer): SpringProp { - const obj: SpringProp = new SpringProp(undefined, undefined, undefined) - obj.peer = new Finalizable(ptr, SpringProp.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSslErrorHandlerMaterialized.ts b/arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkSslErrorHandlerMaterialized.ts rename to arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts index d87e69d97aa465cbefd216d7c3811c49c45a2b37..3307fc1848f8e2b4adfc13c1b8addb463260fea0 100644 --- a/arkoala/arkui/src/ArkSslErrorHandlerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSslErrorHandlerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SslErrorHandlerInternal { + public static fromPtr(ptr: KPointer): SslErrorHandler { + const obj: SslErrorHandler = new SslErrorHandler() + obj.peer = new Finalizable(ptr, SslErrorHandler.getFinalizer()) + return obj + } +} export class SslErrorHandler implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_sslerrorhandler(): KPointer { const retval = ArkUIGeneratedNativeModule._SslErrorHandler_ctor() return retval } constructor() { - const ctorPtr: KPointer = SslErrorHandler.ctor() + const ctorPtr: KPointer = SslErrorHandler.ctor_sslerrorhandler() this.peer = new Finalizable(ctorPtr, SslErrorHandler.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class SslErrorHandler implements MaterializedBase { ArkUIGeneratedNativeModule._SslErrorHandler_handleCancel(this.peer!.ptr) } } -export class SslErrorHandlerInternal { - public static fromPtr(ptr: KPointer): SslErrorHandler { - const obj: SslErrorHandler = new SslErrorHandler() - obj.peer = new Finalizable(ptr, SslErrorHandler.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkStack.ts b/arkoala/arkui/src/generated/ArkStack.ts similarity index 97% rename from arkoala/arkui/src/ArkStack.ts rename to arkoala/arkui/src/generated/ArkStack.ts index 0960ec4ac0944480f3644173eed78b4721d0bc81..f8ce7b674d3bcf581ededb4bc59131d5c5e424da 100644 --- a/arkoala/arkui/src/ArkStack.ts +++ b/arkoala/arkui/src/generated/ArkStack.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStackPeer } from "./peers/ArkStackPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStackInterfaces.ts b/arkoala/arkui/src/generated/ArkStackInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkStackInterfaces.ts rename to arkoala/arkui/src/generated/ArkStackInterfaces.ts index 7b4fc95897ebcc81a02fd69c5bad4beb8be0ca49..6e092a3de59883768aefa7ce3fbe7374c116d0ff 100644 --- a/arkoala/arkui/src/ArkStackInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkStackInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStateManagementInterfaces.ts b/arkoala/arkui/src/generated/ArkStateManagementInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkStateManagementInterfaces.ts rename to arkoala/arkui/src/generated/ArkStateManagementInterfaces.ts diff --git a/arkoala/arkui/src/ArkStaticComponents.ts b/arkoala/arkui/src/generated/ArkStaticComponents.ts similarity index 91% rename from arkoala/arkui/src/ArkStaticComponents.ts rename to arkoala/arkui/src/generated/ArkStaticComponents.ts index 8c65a3341525923708e94011fa3a243b532d7d80..60f4f556adeab30f70c10b702817d103e730e58a 100644 --- a/arkoala/arkui/src/ArkStaticComponents.ts +++ b/arkoala/arkui/src/generated/ArkStaticComponents.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkRootPeer, ArkComponentRootPeer } from "./peers/ArkStaticComponentsPeer" /** @memo:stable */ export class ArkRootComponent extends ComponentBase { diff --git a/arkoala/arkui/src/ArkStaticComponentsInterfaces.ts b/arkoala/arkui/src/generated/ArkStaticComponentsInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkStaticComponentsInterfaces.ts rename to arkoala/arkui/src/generated/ArkStaticComponentsInterfaces.ts diff --git a/arkoala/arkui/src/ArkStdlibInterfaces.ts b/arkoala/arkui/src/generated/ArkStdlibInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkStdlibInterfaces.ts rename to arkoala/arkui/src/generated/ArkStdlibInterfaces.ts diff --git a/arkoala/arkui/src/ArkStepper.ts b/arkoala/arkui/src/generated/ArkStepper.ts similarity index 97% rename from arkoala/arkui/src/ArkStepper.ts rename to arkoala/arkui/src/generated/ArkStepper.ts index c1f31895a130416dd3e15ece0edbb295a9747e52..867abbc90b96bba72ce5bd252a3c9493eb9e16d4 100644 --- a/arkoala/arkui/src/ArkStepper.ts +++ b/arkoala/arkui/src/generated/ArkStepper.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperPeer } from "./peers/ArkStepperPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStepperInterfaces.ts b/arkoala/arkui/src/generated/ArkStepperInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkStepperInterfaces.ts rename to arkoala/arkui/src/generated/ArkStepperInterfaces.ts index 3341084a718ee46d58addc996b0726fc72920089..382beda4da854976cd1e868a685f4355ffae1b7b 100644 --- a/arkoala/arkui/src/ArkStepperInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkStepperInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStepperItem.ts b/arkoala/arkui/src/generated/ArkStepperItem.ts similarity index 97% rename from arkoala/arkui/src/ArkStepperItem.ts rename to arkoala/arkui/src/generated/ArkStepperItem.ts index a76edf96f6238b034c2b6b67fafb38df5aeef01e..35996f7cfcad3cc2c6b5d40ae12afd4f256223b2 100644 --- a/arkoala/arkui/src/ArkStepperItem.ts +++ b/arkoala/arkui/src/generated/ArkStepperItem.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkStepperItemPeer } from "./peers/ArkStepperItemPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStepperItemInterfaces.ts b/arkoala/arkui/src/generated/ArkStepperItemInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkStepperItemInterfaces.ts rename to arkoala/arkui/src/generated/ArkStepperItemInterfaces.ts index 8e858e2e920b8f0b9f899436e5b6a1e412c1bb8f..f85cc32af33a54dba2ec3e16e1822fa85a6efc4a 100644 --- a/arkoala/arkui/src/ArkStepperItemInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkStepperItemInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts index b1abee4bdec52cb061b47b2917dfe12d3abbdb5d..85cb1601996e1218fda58e75067832ebec603e4b 100644 --- a/arkoala/arkui/src/ArkStyledStringControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkStyledStringControllerMaterialized.ts @@ -28,12 +28,10 @@ import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -46,12 +44,12 @@ export class StyledStringControllerInternal implements MaterializedBase,StyledSt public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_styledstringcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._StyledStringController_ctor() return retval } constructor() { - const ctorPtr: KPointer = StyledStringControllerInternal.ctor() + const ctorPtr: KPointer = StyledStringControllerInternal.ctor_styledstringcontroller() this.peer = new Finalizable(ctorPtr, StyledStringControllerInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkStyledStringInterfaces.ts b/arkoala/arkui/src/generated/ArkStyledStringInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkStyledStringInterfaces.ts rename to arkoala/arkui/src/generated/ArkStyledStringInterfaces.ts diff --git a/arkoala/arkui/src/ArkStyledStringMaterialized.ts b/arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkStyledStringMaterialized.ts rename to arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts index d9cbaeb0c7f0ab9f49000492893d95bf0d929f42..127b29d7131787da27e8aec8abccfe90e77f494d 100644 --- a/arkoala/arkui/src/ArkStyledStringMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkStyledStringMaterialized.ts @@ -26,15 +26,20 @@ import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class StyledStringInternal { + public static fromPtr(ptr: KPointer): StyledString { + const obj: StyledString = new StyledString(undefined, undefined) + obj.peer = new Finalizable(ptr, StyledString.getFinalizer()) + return obj + } +} export class StyledString implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -43,11 +48,11 @@ export class StyledString implements MaterializedBase { get length(): number { return this.getLength() } - static ctor(value: string | ImageAttachment | CustomSpan, styles?: Array): KPointer { + static ctor_styledstring(value: string | ImageAttachment | CustomSpan, styles?: Array): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) @@ -80,7 +85,7 @@ export class StyledString implements MaterializedBase { constructor(value?: string | ImageAttachment | CustomSpan, styles?: Array) { if (((value) !== (undefined)) && ((styles) !== (undefined))) { - const ctorPtr: KPointer = StyledString.ctor(value, styles) + const ctorPtr: KPointer = StyledString.ctor_styledstring(value, styles) this.peer = new Finalizable(ctorPtr, StyledString.getFinalizer()) } } @@ -196,10 +201,3 @@ export class StyledString implements MaterializedBase { return retval } } -export class StyledStringInternal { - public static fromPtr(ptr: KPointer): StyledString { - const obj: StyledString = new StyledString(undefined, undefined) - obj.peer = new Finalizable(ptr, StyledString.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts b/arkoala/arkui/src/generated/ArkSubTabBarStyleBuilder.ts similarity index 100% rename from arkoala/arkui/src/ArkSubTabBarStyleBuilder.ts rename to arkoala/arkui/src/generated/ArkSubTabBarStyleBuilder.ts diff --git a/arkoala/arkui/src/ArkSubmitEventMaterialized.ts b/arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkSubmitEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts index 41766db35f0a9cc597cca41889cf5d9ae87fcb94..e73e574aedebec8936e1823ba643dbe6f01395b9 100644 --- a/arkoala/arkui/src/ArkSubmitEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSubmitEventMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -40,12 +38,12 @@ export class SubmitEventInternal implements MaterializedBase,SubmitEvent { set text(text: string) { this.setText(text) } - static ctor(): KPointer { + static ctor_submitevent(): KPointer { const retval = ArkUIGeneratedNativeModule._SubmitEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = SubmitEventInternal.ctor() + const ctorPtr: KPointer = SubmitEventInternal.ctor_submitevent() this.peer = new Finalizable(ctorPtr, SubmitEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts index 090ad14d6caf78eb4f9c4f23e10c29aaf45110b1..65db43892cda497607bc6b452140323c8d014cc3 100644 --- a/arkoala/arkui/src/ArkSwipeGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSwipeGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -52,13 +50,13 @@ export class SwipeGestureEventInternal extends BaseGestureEventInternal implemen set speed(speed: number) { this.setSpeed(speed) } - static ctor(): KPointer { + static ctor_swipegestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._SwipeGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = SwipeGestureEventInternal.ctor() + const ctorPtr: KPointer = SwipeGestureEventInternal.ctor_swipegestureevent() this.peer = new Finalizable(ctorPtr, SwipeGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkSwiper.ts b/arkoala/arkui/src/generated/ArkSwiper.ts similarity index 97% rename from arkoala/arkui/src/ArkSwiper.ts rename to arkoala/arkui/src/generated/ArkSwiper.ts index f4a8362b66787cb6b3ce4f8a1301c22ca05bc49e..baa1e9fa0639ccd665fbe5499824696e08642311 100644 --- a/arkoala/arkui/src/ArkSwiper.ts +++ b/arkoala/arkui/src/generated/ArkSwiper.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSwiperPeer } from "./peers/ArkSwiperPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -104,12 +103,12 @@ export class ArkSwiperComponent extends ArkCommonMethodComponent { public indicator(value: IndicatorComponentController | DotIndicator | DigitIndicator | boolean): this { if (this.checkPriority("indicator")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof IndicatorComponentController))) { + if (((RuntimeType.OBJECT) == (value_type)) && (value instanceof IndicatorComponentController)) { const value_casted = value as (IndicatorComponentController) this.getPeer()?.indicator1Attribute(value_casted) return this } - if (((((RuntimeType.OBJECT) == (value_type)) && (value instanceof DotIndicator)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof DigitIndicator)) || (((RuntimeType.BOOLEAN == value_type))))) { + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof DotIndicator)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof DigitIndicator)) || (RuntimeType.BOOLEAN == value_type)) { const value_casted = value as (DotIndicator | DigitIndicator | boolean) this.getPeer()?.indicator0Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts rename to arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts index 17735aadecc473ae376e2b05657b04573d1b3b82..746c53c19deeab92bc63321f54cb177a2432ba5a 100644 --- a/arkoala/arkui/src/ArkSwiperContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSwiperContentTransitionProxyMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -61,12 +59,12 @@ export class SwiperContentTransitionProxyInternal implements MaterializedBase,Sw set mainAxisLength(mainAxisLength: number) { this.setMainAxisLength(mainAxisLength) } - static ctor(): KPointer { + static ctor_swipercontenttransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._SwiperContentTransitionProxy_ctor() return retval } constructor() { - const ctorPtr: KPointer = SwiperContentTransitionProxyInternal.ctor() + const ctorPtr: KPointer = SwiperContentTransitionProxyInternal.ctor_swipercontenttransitionproxy() this.peer = new Finalizable(ctorPtr, SwiperContentTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkSwiperControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts index af05c1a5986843a7b15180df5e4a02ced60fe0f3..fd548afb4b9dfcfbf2289d41c7ac0c54b673651a 100644 --- a/arkoala/arkui/src/ArkSwiperControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSwiperControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { VoidCallback } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class SwiperControllerInternal { + public static fromPtr(ptr: KPointer): SwiperController { + const obj: SwiperController = new SwiperController() + obj.peer = new Finalizable(ptr, SwiperController.getFinalizer()) + return obj + } +} export class SwiperController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_swipercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._SwiperController_ctor() return retval } constructor() { - const ctorPtr: KPointer = SwiperController.ctor() + const ctorPtr: KPointer = SwiperController.ctor_swipercontroller() this.peer = new Finalizable(ctorPtr, SwiperController.getFinalizer()) } static getFinalizer(): KPointer { @@ -92,10 +97,3 @@ export class SwiperController implements MaterializedBase { return retval } } -export class SwiperControllerInternal { - public static fromPtr(ptr: KPointer): SwiperController { - const obj: SwiperController = new SwiperController() - obj.peer = new Finalizable(ptr, SwiperController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkSwiperInterfaces.ts b/arkoala/arkui/src/generated/ArkSwiperInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSwiperInterfaces.ts rename to arkoala/arkui/src/generated/ArkSwiperInterfaces.ts index cd250af2824f3f65c8c8e5c3a6555574c69ee330..1b06e933379f4aff87fa4a21363a5a5fad00db5a 100644 --- a/arkoala/arkui/src/ArkSwiperInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSwiperInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSymbolSpan.ts b/arkoala/arkui/src/generated/ArkSymbolSpan.ts similarity index 97% rename from arkoala/arkui/src/ArkSymbolSpan.ts rename to arkoala/arkui/src/generated/ArkSymbolSpan.ts index a91bda63a9a2d25b6602203df2c1b221978086c1..0ca9fe9aff94ead3b6d310e15f270dc01703e6db 100644 --- a/arkoala/arkui/src/ArkSymbolSpan.ts +++ b/arkoala/arkui/src/generated/ArkSymbolSpan.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolSpanPeer } from "./peers/ArkSymbolSpanPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSymbolSpanInterfaces.ts b/arkoala/arkui/src/generated/ArkSymbolSpanInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSymbolSpanInterfaces.ts rename to arkoala/arkui/src/generated/ArkSymbolSpanInterfaces.ts index 99bba51d6cfb8c00742b3a3e5b0094f63ca835e9..3af17a722c8e91edf50736929ff3f688b83e7be4 100644 --- a/arkoala/arkui/src/ArkSymbolSpanInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSymbolSpanInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkSymbolglyph.ts b/arkoala/arkui/src/generated/ArkSymbolglyph.ts similarity index 95% rename from arkoala/arkui/src/ArkSymbolglyph.ts rename to arkoala/arkui/src/generated/ArkSymbolglyph.ts index d9232dd4a420b4c84e635d067c7fcd24ae6d97c3..1c0b022851ea706ed8d6a2d95e837cf78b2be3c8 100644 --- a/arkoala/arkui/src/ArkSymbolglyph.ts +++ b/arkoala/arkui/src/generated/ArkSymbolglyph.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkSymbolGlyphPeer } from "./peers/ArkSymbolglyphPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -116,13 +115,13 @@ export class ArkSymbolGlyphComponent extends ArkCommonMethodComponent { if (this.checkPriority("symbolEffect")) { const symbolEffect_type = runtimeType(symbolEffect) const isActive_type = runtimeType(isActive) - if ((((RuntimeType.BOOLEAN == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + if ((RuntimeType.BOOLEAN == isActive_type) || (RuntimeType.UNDEFINED == isActive_type)) { const symbolEffect_casted = symbolEffect as (SymbolEffect) const isActive_casted = isActive as (boolean | undefined) this.getPeer()?.symbolEffect0Attribute(symbolEffect_casted, isActive_casted) return this } - if ((((RuntimeType.NUMBER == isActive_type)) || ((RuntimeType.UNDEFINED == isActive_type)))) { + if ((RuntimeType.NUMBER == isActive_type) || (RuntimeType.UNDEFINED == isActive_type)) { const symbolEffect_casted = symbolEffect as (SymbolEffect) const triggerValue_casted = isActive as (number | undefined) this.getPeer()?.symbolEffect1Attribute(symbolEffect_casted, triggerValue_casted) diff --git a/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts b/arkoala/arkui/src/generated/ArkSymbolglyphInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkSymbolglyphInterfaces.ts rename to arkoala/arkui/src/generated/ArkSymbolglyphInterfaces.ts index a58a7f6d06047ec4e6a1824479c955106fedab96..189724f5557230a13a30421875143fdc51842eb5 100644 --- a/arkoala/arkui/src/ArkSymbolglyphInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkSymbolglyphInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts b/arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts similarity index 35% rename from arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts rename to arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts index ac348a075a7aa694045d2521f0b16591e5e8b9b4..14f99a43b269230cb9488f6a2197311154c098aa 100644 --- a/arkoala/arkui/src/ArkGlobalScopeInspectorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkSystemOpsMaterialized.ts @@ -16,55 +16,52 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" -export class GlobalScope_inspector { - public static getInspectorNodes(): Object { - return GlobalScope_inspector.getInspectorNodes_serialize() +export class SystemOpsInternal { + public static fromPtr(ptr: KPointer): SystemOps { + const obj: SystemOps = new SystemOps() + obj.peer = new Finalizable(ptr, SystemOps.getFinalizer()) + return obj } - public static getInspectorNodeById(id: number): Object { - const id_casted = id as (number) - return GlobalScope_inspector.getInspectorNodeById_serialize(id_casted) - } - public static registerVsyncCallback(callback_: ((info: string) => void)): void { - const callback__casted = callback_ as (((info: string) => void)) - GlobalScope_inspector.registerVsyncCallback_serialize(callback__casted) - return +} +export class SystemOps implements MaterializedBase { + peer?: Finalizable | undefined + public getPeer(): Finalizable | undefined { + return this.peer } - public static unregisterVsyncCallback(): void { - GlobalScope_inspector.unregisterVsyncCallback_serialize() - return + static ctor_systemops(): KPointer { + const retval = ArkUIGeneratedNativeModule._SystemOps_ctor() + return retval } - public static setAppBgColor(value: string): void { - const value_casted = value as (string) - GlobalScope_inspector.setAppBgColor_serialize(value_casted) - return + constructor() { + // Constructor does not have parameters. + // It means that the static method call invokes ctor method as well + // when all arguments are undefined. + const ctorPtr: KPointer = SystemOps.ctor_systemops() + this.peer = new Finalizable(ctorPtr, SystemOps.getFinalizer()) } - private static getInspectorNodes_serialize(): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodes() - throw new Error("Object deserialization is not implemented.") + static getFinalizer(): KPointer { + return ArkUIGeneratedNativeModule._SystemOps_getFinalizer() } - private static getInspectorNodeById_serialize(id: number): Object { - const retval = ArkUIGeneratedNativeModule._GlobalScope_inspector_getInspectorNodeById(id) - throw new Error("Object deserialization is not implemented.") + public static StartFrame(): KPointer { + return SystemOps.StartFrame_serialize() } - private static registerVsyncCallback_serialize(callback_: ((info: string) => void)): void { - const thisSerializer: Serializer = Serializer.hold() - thisSerializer.holdAndWriteCallback(callback_) - ArkUIGeneratedNativeModule._GlobalScope_inspector_registerVsyncCallback(thisSerializer.asArray(), thisSerializer.length()) - thisSerializer.release() + public static EndFrame(root: KPointer): void { + const root_casted = root as (KPointer) + SystemOps.EndFrame_serialize(root_casted) + return } - private static unregisterVsyncCallback_serialize(): void { - ArkUIGeneratedNativeModule._GlobalScope_inspector_unregisterVsyncCallback() + private static StartFrame_serialize(): KPointer { + const retval = ArkUIGeneratedNativeModule._SystemOps_StartFrame() + return retval } - private static setAppBgColor_serialize(value: string): void { - ArkUIGeneratedNativeModule._GlobalScope_inspector_setAppBgColor(value) + private static EndFrame_serialize(root: KPointer): void { + ArkUIGeneratedNativeModule._SystemOps_EndFrame(root) } } diff --git a/arkoala/arkui/src/ArkTabContent.ts b/arkoala/arkui/src/generated/ArkTabContent.ts similarity index 92% rename from arkoala/arkui/src/ArkTabContent.ts rename to arkoala/arkui/src/generated/ArkTabContent.ts index 74e17a52e82651d406f8788cec39320e34e6cad5..5fcb8f1d3242111b01e103be8a87adf1e624cb0a 100644 --- a/arkoala/arkui/src/ArkTabContent.ts +++ b/arkoala/arkui/src/generated/ArkTabContent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabContentPeer } from "./peers/ArkTabContentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -74,12 +73,12 @@ export class ArkTabContentComponent extends ArkCommonMethodComponent { public tabBar(value: SubTabBarStyle | BottomTabBarStyle | string | Resource | CustomBuilder | TabBarOptions): this { if (this.checkPriority("tabBar")) { const value_type = runtimeType(value) - if (((((RuntimeType.OBJECT) == (value_type)) && (value instanceof SubTabBarStyle)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof BottomTabBarStyle)))) { + if ((((RuntimeType.OBJECT) == (value_type)) && (value instanceof SubTabBarStyle)) || (((RuntimeType.OBJECT) == (value_type)) && (value instanceof BottomTabBarStyle))) { const value_casted = value as (SubTabBarStyle | BottomTabBarStyle) this.getPeer()?.tabBar1Attribute(value_casted) return this } - if (((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) || (((RuntimeType.FUNCTION == value_type))) || (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("icon")) || (value!.hasOwnProperty("text"))))))) { + if ((RuntimeType.STRING == value_type) || (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("bundleName")))) || (RuntimeType.FUNCTION == value_type) || (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("icon")) || (value!.hasOwnProperty("text")))))) { const value_casted = value as (string | Resource | CustomBuilder | TabBarOptions) this.getPeer()?.tabBar0Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkTabContentInterfaces.ts b/arkoala/arkui/src/generated/ArkTabContentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTabContentInterfaces.ts rename to arkoala/arkui/src/generated/ArkTabContentInterfaces.ts index 5c0b3b734a237c6ccb9b4dd4bfdafb058fb6296c..c51dd7e1378bbb1850b75f58df526045becf22f9 100644 --- a/arkoala/arkui/src/ArkTabContentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTabContentInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts rename to arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts index d2b59bfb470fe1aadea8e995161cb51f2e7313b9..e1d4eec94535db23de81483b865040c67d20920f 100644 --- a/arkoala/arkui/src/ArkTabContentTransitionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTabContentTransitionProxyMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -47,12 +45,12 @@ export class TabContentTransitionProxyInternal implements MaterializedBase,TabCo set to(to: number) { this.setTo(to) } - static ctor(): KPointer { + static ctor_tabcontenttransitionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._TabContentTransitionProxy_ctor() return retval } constructor() { - const ctorPtr: KPointer = TabContentTransitionProxyInternal.ctor() + const ctorPtr: KPointer = TabContentTransitionProxyInternal.ctor_tabcontenttransitionproxy() this.peer = new Finalizable(ctorPtr, TabContentTransitionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkTabs.ts b/arkoala/arkui/src/generated/ArkTabs.ts similarity index 97% rename from arkoala/arkui/src/ArkTabs.ts rename to arkoala/arkui/src/generated/ArkTabs.ts index 230ed7763db81cb7e8c5ee871c75cf90b79327e6..205f99b884dcd91ac4fb37faef4327c7d1f9003f 100644 --- a/arkoala/arkui/src/ArkTabs.ts +++ b/arkoala/arkui/src/generated/ArkTabs.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTabsPeer } from "./peers/ArkTabsPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -100,12 +99,12 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { if (this.checkPriority("barMode")) { const value_type = runtimeType(value) const options_type = runtimeType(options) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (1))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (1))) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = value as (BarMode) this.getPeer()?.barMode0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (1))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (1))) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const value_casted = value as (BarMode) const options_casted = options as (ScrollableBarModeOptions | undefined) this.getPeer()?.barMode1Attribute(value_casted, options_casted) @@ -270,12 +269,12 @@ export class ArkTabsComponent extends ArkCommonMethodComponent { if (this.checkPriority("barBackgroundBlurStyle")) { const style_type = runtimeType(style) const options_type = runtimeType(options) - if ((((RuntimeType.NUMBER) == (style_type)) && ((unsafeCast(style)) >= (0)) && ((unsafeCast(style)) <= (12))) && (((RuntimeType.UNDEFINED == options_type)))) { + if ((((RuntimeType.NUMBER) == (style_type)) && ((unsafeCast(style)) >= (0)) && ((unsafeCast(style)) <= (12))) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = style as (BlurStyle) this.getPeer()?.barBackgroundBlurStyle0Attribute(value_casted) return this } - if ((((RuntimeType.NUMBER) == (style_type)) && ((unsafeCast(style)) >= (0)) && ((unsafeCast(style)) <= (12))) && (((RuntimeType.OBJECT == options_type)))) { + if ((((RuntimeType.NUMBER) == (style_type)) && ((unsafeCast(style)) >= (0)) && ((unsafeCast(style)) <= (12))) && (RuntimeType.OBJECT == options_type)) { const style_casted = style as (BlurStyle) const options_casted = options as (BackgroundBlurStyleOptions) this.getPeer()?.barBackgroundBlurStyle1Attribute(style_casted, options_casted) diff --git a/arkoala/arkui/src/ArkTabsControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkTabsControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts index b939caa506f0e566ed8ceb4162375954923dc7a8..9df4861f85698bced3f7530cc0a22215012456eb 100644 --- a/arkoala/arkui/src/ArkTabsControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTabsControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { TranslateOptions } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TabsControllerInternal { + public static fromPtr(ptr: KPointer): TabsController { + const obj: TabsController = new TabsController() + obj.peer = new Finalizable(ptr, TabsController.getFinalizer()) + return obj + } +} export class TabsController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_tabscontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TabsController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TabsController.ctor() + const ctorPtr: KPointer = TabsController.ctor_tabscontroller() this.peer = new Finalizable(ctorPtr, TabsController.getFinalizer()) } static getFinalizer(): KPointer { @@ -92,10 +97,3 @@ export class TabsController implements MaterializedBase { ArkUIGeneratedNativeModule._TabsController_setTabBarOpacity(this.peer!.ptr, opacity) } } -export class TabsControllerInternal { - public static fromPtr(ptr: KPointer): TabsController { - const obj: TabsController = new TabsController() - obj.peer = new Finalizable(ptr, TabsController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTabsInterfaces.ts b/arkoala/arkui/src/generated/ArkTabsInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTabsInterfaces.ts rename to arkoala/arkui/src/generated/ArkTabsInterfaces.ts index 366d66b2ffdfb564d58fbd5f9b45378382d1fec0..99bca997a6c5fbe1aa60426958563f77d8bc495e 100644 --- a/arkoala/arkui/src/ArkTabsInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTabsInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts b/arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkTapGestureEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts index 5df229f637d834d0fa1a7fb4cd85c0a7c6caa63f..3a8cdbe26f9b724315b55e2fba2570e8e69169f1 100644 --- a/arkoala/arkui/src/ArkTapGestureEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTapGestureEventMaterialized.ts @@ -22,12 +22,10 @@ import { EventTarget, SourceType, SourceTool } from "./ArkCommonInterfaces" import { FingerInfo } from "./ArkGestureInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -38,13 +36,13 @@ export class TapGestureEventInternal extends BaseGestureEventInternal implements public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_tapgestureevent(): KPointer { const retval = ArkUIGeneratedNativeModule._TapGestureEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TapGestureEventInternal.ctor() + const ctorPtr: KPointer = TapGestureEventInternal.ctor_tapgestureevent() this.peer = new Finalizable(ctorPtr, TapGestureEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkText.ts b/arkoala/arkui/src/generated/ArkText.ts similarity index 95% rename from arkoala/arkui/src/ArkText.ts rename to arkoala/arkui/src/generated/ArkText.ts index e6e3e45dde7440ec23e279474880b6fb6f6e0a20..9a812ab3a4c2c3282611ffb74c83881518de12d4 100644 --- a/arkoala/arkui/src/ArkText.ts +++ b/arkoala/arkui/src/generated/ArkText.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPeer } from "./peers/ArkTextPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -83,12 +82,12 @@ export class ArkTextComponent extends ArkCommonMethodComponent { if (this.checkPriority("font")) { const fontValue_type = runtimeType(fontValue) const options_type = runtimeType(options) - if ((((RuntimeType.UNDEFINED == options_type)))) { + if (RuntimeType.UNDEFINED == options_type) { const value_casted = fontValue as (Font) this.getPeer()?.font0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type)) { const fontValue_casted = fontValue as (Font) const options_casted = options as (FontSettingOptions | undefined) this.getPeer()?.font1Attribute(fontValue_casted, options_casted) @@ -166,12 +165,12 @@ export class ArkTextComponent extends ArkCommonMethodComponent { if (this.checkPriority("fontWeight")) { const weight_type = runtimeType(weight) const options_type = runtimeType(options) - if (((((RuntimeType.NUMBER == weight_type))) || (((RuntimeType.NUMBER) == (weight_type)) && ((unsafeCast(weight)) >= (0)) && ((unsafeCast(weight)) <= (5))) || (((RuntimeType.STRING == weight_type)))) && (((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.NUMBER == weight_type) || (((RuntimeType.NUMBER) == (weight_type)) && ((unsafeCast(weight)) >= (0)) && ((unsafeCast(weight)) <= (5))) || (RuntimeType.STRING == weight_type)) && (RuntimeType.UNDEFINED == options_type)) { const value_casted = weight as (number | FontWeight | string) this.getPeer()?.fontWeight0Attribute(value_casted) return this } - if (((((RuntimeType.NUMBER == weight_type))) || (((RuntimeType.NUMBER) == (weight_type)) && ((unsafeCast(weight)) >= (0)) && ((unsafeCast(weight)) <= (5))) || (((RuntimeType.STRING == weight_type)))) && (((RuntimeType.OBJECT == options_type)) || ((RuntimeType.UNDEFINED == options_type)))) { + if (((RuntimeType.NUMBER == weight_type) || (((RuntimeType.NUMBER) == (weight_type)) && ((unsafeCast(weight)) >= (0)) && ((unsafeCast(weight)) <= (5))) || (RuntimeType.STRING == weight_type)) && ((RuntimeType.OBJECT == options_type) || (RuntimeType.UNDEFINED == options_type))) { const weight_casted = weight as (number | FontWeight | string) const options_casted = options as (FontSettingOptions | undefined) this.getPeer()?.fontWeight1Attribute(weight_casted, options_casted) diff --git a/arkoala/arkui/src/ArkTextArea.ts b/arkoala/arkui/src/generated/ArkTextArea.ts similarity index 98% rename from arkoala/arkui/src/ArkTextArea.ts rename to arkoala/arkui/src/generated/ArkTextArea.ts index ee71a42cf89ddd8ed682c21fc3b368fc2281099f..0bbfaa3f6d4cf9c80c371c77682dc0e228999835 100644 --- a/arkoala/arkui/src/ArkTextArea.ts +++ b/arkoala/arkui/src/generated/ArkTextArea.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextAreaPeer } from "./peers/ArkTextAreaPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -204,13 +203,13 @@ export class ArkTextAreaComponent extends ArkCommonMethodComponent { public onSubmit(value: ((enterKey: EnterKeyType) => void) | TextAreaSubmitCallback): this { if (this.checkPriority("onSubmit")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((enterKey: EnterKeyType) => void)) UseEventsProperties({TextArea_onSubmit0: value_casted}) this.getPeer()?.onSubmit0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (TextAreaSubmitCallback) UseEventsProperties({TextArea_onSubmit1: value_casted}) this.getPeer()?.onSubmit1Attribute(value_casted) diff --git a/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts index 7f5375d84eea49d9ba690499bf1fa86d44d050fb..1365d645614333a94db3995b7010b0f509090fdf 100644 --- a/arkoala/arkui/src/ArkTextAreaControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextAreaControllerMaterialized.ts @@ -18,27 +18,32 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextAreaControllerInternal { + public static fromPtr(ptr: KPointer): TextAreaController { + const obj: TextAreaController = new TextAreaController() + obj.peer = new Finalizable(ptr, TextAreaController.getFinalizer()) + return obj + } +} export class TextAreaController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textareacontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextAreaController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TextAreaController.ctor() + const ctorPtr: KPointer = TextAreaController.ctor_textareacontroller() this.peer = new Finalizable(ctorPtr, TextAreaController.getFinalizer()) } static getFinalizer(): KPointer { @@ -79,10 +84,3 @@ export class TextAreaController extends TextContentControllerBase implements Mat ArkUIGeneratedNativeModule._TextAreaController_stopEditing(this.peer!.ptr) } } -export class TextAreaControllerInternal { - public static fromPtr(ptr: KPointer): TextAreaController { - const obj: TextAreaController = new TextAreaController() - obj.peer = new Finalizable(ptr, TextAreaController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextAreaInterfaces.ts b/arkoala/arkui/src/generated/ArkTextAreaInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextAreaInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextAreaInterfaces.ts index aa2b07aac9099df6cf58dc8ca51b687281e674bd..556f5bc3e8c640fda0a7b305b1362cf46626b1ac 100644 --- a/arkoala/arkui/src/ArkTextAreaInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextAreaInterfaces.ts @@ -31,7 +31,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts index 7ea88b758fec9ec63f61ff38658f55c6314eae75..25f0bd05c413cad789856923147f8ecec84a5db5 100644 --- a/arkoala/arkui/src/ArkTextBaseControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextBaseControllerMaterialized.ts @@ -20,12 +20,10 @@ import { SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -39,12 +37,12 @@ export class TextBaseControllerInternal implements MaterializedBase,TextBaseCont public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textbasecontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextBaseController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextBaseControllerInternal.ctor() + const ctorPtr: KPointer = TextBaseControllerInternal.ctor_textbasecontroller() this.peer = new Finalizable(ctorPtr, TextBaseControllerInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkTextClock.ts b/arkoala/arkui/src/generated/ArkTextClock.ts similarity index 98% rename from arkoala/arkui/src/ArkTextClock.ts rename to arkoala/arkui/src/generated/ArkTextClock.ts index f04d5c363b9e660f1aa79592a79123ea446e3ba1..0487f38351e3623fdeec8fe03270091d65a57221 100644 --- a/arkoala/arkui/src/ArkTextClock.ts +++ b/arkoala/arkui/src/generated/ArkTextClock.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextClockPeer } from "./peers/ArkTextClockPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextClockControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkTextClockControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts index e1c529e426f0dd85a38af01635ce4ef26c4aaf26..046e03f3751ad4e200d2219d915488efebb882b6 100644 --- a/arkoala/arkui/src/ArkTextClockControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextClockControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextClockControllerInternal { + public static fromPtr(ptr: KPointer): TextClockController { + const obj: TextClockController = new TextClockController() + obj.peer = new Finalizable(ptr, TextClockController.getFinalizer()) + return obj + } +} export class TextClockController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textclockcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextClockController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextClockController.ctor() + const ctorPtr: KPointer = TextClockController.ctor_textclockcontroller() this.peer = new Finalizable(ctorPtr, TextClockController.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class TextClockController implements MaterializedBase { return retval } } -export class TextClockControllerInternal { - public static fromPtr(ptr: KPointer): TextClockController { - const obj: TextClockController = new TextClockController() - obj.peer = new Finalizable(ptr, TextClockController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextClockInterfaces.ts b/arkoala/arkui/src/generated/ArkTextClockInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextClockInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextClockInterfaces.ts index 90294354450516f091708e0929ffc6b4a9b1cdff..dc7759ee4b5de53de78b2bb4f8a4a07df0679cd0 100644 --- a/arkoala/arkui/src/ArkTextClockInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextClockInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextCommonInterfaces.ts b/arkoala/arkui/src/generated/ArkTextCommonInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkTextCommonInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextCommonInterfaces.ts diff --git a/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts b/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts index 9d59c677fd4ae12e4b357f2c8bf05240d7306bb4..853da9233d8d7f8abc95cdaecdb1904aa873f0e8 100644 --- a/arkoala/arkui/src/ArkTextContentControllerBaseMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextContentControllerBaseMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { CaretOffset, RectResult } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextContentControllerBaseInternal { + public static fromPtr(ptr: KPointer): TextContentControllerBase { + const obj: TextContentControllerBase = new TextContentControllerBase() + obj.peer = new Finalizable(ptr, TextContentControllerBase.getFinalizer()) + return obj + } +} export class TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textcontentcontrollerbase(): KPointer { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextContentControllerBase.ctor() + const ctorPtr: KPointer = TextContentControllerBase.ctor_textcontentcontrollerbase() this.peer = new Finalizable(ctorPtr, TextContentControllerBase.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,21 +58,14 @@ export class TextContentControllerBase implements MaterializedBase { } private getCaretOffset_serialize(): CaretOffset { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getCaretOffset(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readCaretOffset() } private getTextContentRect_serialize(): RectResult { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readRectResult() } private getTextContentLineCount_serialize(): number { const retval = ArkUIGeneratedNativeModule._TextContentControllerBase_getTextContentLineCount(this.peer!.ptr) return retval } } -export class TextContentControllerBaseInternal { - public static fromPtr(ptr: KPointer): TextContentControllerBase { - const obj: TextContentControllerBase = new TextContentControllerBase() - obj.peer = new Finalizable(ptr, TextContentControllerBase.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts index 56324a020fc3fa9453754e26bc26f4f8a239f790..43e8c47bb94558862aa4f44642c1f1f15c1b1ded 100644 --- a/arkoala/arkui/src/ArkTextControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextControllerMaterialized.ts @@ -29,26 +29,31 @@ import { ImageSpanAlignment, ImageFit } from "./ArkEnumsInterfaces" import { DrawContext } from "./ArkCommonInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextControllerInternal { + public static fromPtr(ptr: KPointer): TextController { + const obj: TextController = new TextController() + obj.peer = new Finalizable(ptr, TextController.getFinalizer()) + return obj + } +} export class TextController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextController.ctor() + const ctorPtr: KPointer = TextController.ctor_textcontroller() this.peer = new Finalizable(ctorPtr, TextController.getFinalizer()) } static getFinalizer(): KPointer { @@ -80,10 +85,3 @@ export class TextController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class TextControllerInternal { - public static fromPtr(ptr: KPointer): TextController { - const obj: TextController = new TextController() - obj.peer = new Finalizable(ptr, TextController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts b/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts index fd764695d506a666fa289793a4094e4084424c86..bd9c2d9240a7e3ea7a820af9edc5c0c5a2ee40d1 100644 --- a/arkoala/arkui/src/ArkTextEditControllerExMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextEditControllerExMaterialized.ts @@ -21,12 +21,10 @@ import { SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" import { LayoutManager, LayoutManagerInternal } from "./ArkLayoutManagerMaterialized" import { PreviewText, PositionWithAffinity, LineMetrics, TextRange, TextBox, Affinity } from "./ArkTextCommonInterfaces" import { RectWidthStyle, RectHeightStyle } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -42,13 +40,13 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_texteditcontrollerex(): KPointer { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TextEditControllerExInternal.ctor() + const ctorPtr: KPointer = TextEditControllerExInternal.ctor_texteditcontrollerex() this.peer = new Finalizable(ctorPtr, TextEditControllerExInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -88,7 +86,7 @@ export class TextEditControllerExInternal extends TextBaseControllerInternal imp } private getPreviewText_serialize(): PreviewText { const retval = ArkUIGeneratedNativeModule._TextEditControllerEx_getPreviewText(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readPreviewText() } public static fromPtr(ptr: KPointer): TextEditControllerExInternal { const obj: TextEditControllerExInternal = new TextEditControllerExInternal() diff --git a/arkoala/arkui/src/ArkTextInput.ts b/arkoala/arkui/src/generated/ArkTextInput.ts similarity index 98% rename from arkoala/arkui/src/ArkTextInput.ts rename to arkoala/arkui/src/generated/ArkTextInput.ts index 961aad4d183f1dfebe01f90ab891720dcfe9647d..142539f9d051c809d3b994a33a02c77b55bc4835 100644 --- a/arkoala/arkui/src/ArkTextInput.ts +++ b/arkoala/arkui/src/generated/ArkTextInput.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextInputPeer } from "./peers/ArkTextInputPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -458,12 +457,12 @@ export class ArkTextInputComponent extends ArkCommonMethodComponent { public cancelButton(value: CancelButtonOptions | CancelButtonSymbolOptions): this { if (this.checkPriority("cancelButton")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as (CancelButtonOptions) this.getPeer()?.cancelButton0Attribute(value_casted) return this } - if (((value.hasOwnProperty("icon")) && (isInstanceOf("SymbolGlyphModifier", value.icon)))) { + if ((value.hasOwnProperty("icon")) && (isInstanceOf("SymbolGlyphModifier", value.icon))) { const value_casted = value as (CancelButtonSymbolOptions) this.getPeer()?.cancelButton1Attribute(value_casted) return this diff --git a/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextInputControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts index 51f37cabffe7a5116d92b394ef5242252fc46ec7..fe4b38b1c2118b9dbee5b5f54b13885265ba7496 100644 --- a/arkoala/arkui/src/ArkTextInputControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextInputControllerMaterialized.ts @@ -18,27 +18,32 @@ import { TextContentControllerBase, TextContentControllerBaseInternal } from "./ArkTextContentControllerBaseMaterialized" import { CaretOffset, RectResult, SelectionOptions, MenuPolicy } from "./ArkCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextInputControllerInternal { + public static fromPtr(ptr: KPointer): TextInputController { + const obj: TextInputController = new TextInputController() + obj.peer = new Finalizable(ptr, TextInputController.getFinalizer()) + return obj + } +} export class TextInputController extends TextContentControllerBase implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textinputcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextInputController_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TextInputController.ctor() + const ctorPtr: KPointer = TextInputController.ctor_textinputcontroller() this.peer = new Finalizable(ctorPtr, TextInputController.getFinalizer()) } static getFinalizer(): KPointer { @@ -79,10 +84,3 @@ export class TextInputController extends TextContentControllerBase implements Ma ArkUIGeneratedNativeModule._TextInputController_stopEditing(this.peer!.ptr) } } -export class TextInputControllerInternal { - public static fromPtr(ptr: KPointer): TextInputController { - const obj: TextInputController = new TextInputController() - obj.peer = new Finalizable(ptr, TextInputController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextInputInterfaces.ts b/arkoala/arkui/src/generated/ArkTextInputInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextInputInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextInputInterfaces.ts index c31a9b368776474538cfa09394fd9371f0a2b5b4..f5f6521d96f4ac36c098e2958d3036d09c48e79c 100644 --- a/arkoala/arkui/src/ArkTextInputInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextInputInterfaces.ts @@ -31,7 +31,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextInterfaces.ts b/arkoala/arkui/src/generated/ArkTextInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextInterfaces.ts index c68a5a1a386fa5051fd2f28d786178137204e4aa..912f9d65053a3d4d46f57acef32dde5672a8c1f8 100644 --- a/arkoala/arkui/src/ArkTextInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextInterfaces.ts @@ -30,7 +30,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts b/arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts index aed7ecb9dd66a964c693023044264801d2eab040..7a0b2cdfcecb7a56b3bb8b193e679277e626ec21 100644 --- a/arkoala/arkui/src/ArkTextMenuItemIdMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextMenuItemIdMaterialized.ts @@ -18,15 +18,20 @@ import { ResourceStr } from "./ArkUnitsInterfaces" import { Resource } from "./ArkResourceInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextMenuItemIdInternal { + public static fromPtr(ptr: KPointer): TextMenuItemId { + const obj: TextMenuItemId = new TextMenuItemId() + obj.peer = new Finalizable(ptr, TextMenuItemId.getFinalizer()) + return obj + } +} export class TextMenuItemId implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -53,7 +58,7 @@ export class TextMenuItemId implements MaterializedBase { get AI_WRITER(): TextMenuItemId { throw new Error("Not implemented") } - static ctor(): KPointer { + static ctor_textmenuitemid(): KPointer { const retval = ArkUIGeneratedNativeModule._TextMenuItemId_ctor() return retval } @@ -61,7 +66,7 @@ export class TextMenuItemId implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = TextMenuItemId.ctor() + const ctorPtr: KPointer = TextMenuItemId.ctor_textmenuitemid() this.peer = new Finalizable(ctorPtr, TextMenuItemId.getFinalizer()) } static getFinalizer(): KPointer { @@ -79,12 +84,12 @@ export class TextMenuItemId implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let id_type: int32 = RuntimeType.UNDEFINED id_type = runtimeType(id) - if (((RuntimeType.STRING == id_type))) { + if (RuntimeType.STRING == id_type) { thisSerializer.writeInt8(0) const id_0 = unsafeCast(id) thisSerializer.writeString(id_0) } - else if (((RuntimeType.OBJECT == id_type))) { + else if (RuntimeType.OBJECT == id_type) { thisSerializer.writeInt8(1) const id_1 = unsafeCast(id) thisSerializer.writeResource(id_1) @@ -102,10 +107,3 @@ export class TextMenuItemId implements MaterializedBase { return retval } } -export class TextMenuItemIdInternal { - public static fromPtr(ptr: KPointer): TextMenuItemId { - const obj: TextMenuItemId = new TextMenuItemId() - obj.peer = new Finalizable(ptr, TextMenuItemId.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextPicker.ts b/arkoala/arkui/src/generated/ArkTextPicker.ts similarity index 98% rename from arkoala/arkui/src/ArkTextPicker.ts rename to arkoala/arkui/src/generated/ArkTextPicker.ts index 44d5ad85668a15d14268e6742e94fb31bbd59f6b..fd6ffb312cbdcecbcaffc7fc20fed1f3a47afb82 100644 --- a/arkoala/arkui/src/ArkTextPicker.ts +++ b/arkoala/arkui/src/generated/ArkTextPicker.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextPickerPeer } from "./peers/ArkTextPickerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts index b4b8d19f521a613626bb2ee350eda11424afbaaa..78e94e78b784890e6bd75774fc99156e9ba06a52 100644 --- a/arkoala/arkui/src/ArkTextPickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextPickerDialogMaterialized.ts @@ -23,21 +23,26 @@ import { DialogAlignment } from "./ArkAlertDialogInterfaces" import { Offset, ResourceColor, Font, Length, BorderRadiuses } from "./ArkUnitsInterfaces" import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextPickerDialogInternal { + public static fromPtr(ptr: KPointer): TextPickerDialog { + const obj: TextPickerDialog = new TextPickerDialog() + obj.peer = new Finalizable(ptr, TextPickerDialog.getFinalizer()) + return obj + } +} export class TextPickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_textpickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._TextPickerDialog_ctor() return retval } @@ -45,7 +50,7 @@ export class TextPickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = TextPickerDialog.ctor() + const ctorPtr: KPointer = TextPickerDialog.ctor_textpickerdialog() this.peer = new Finalizable(ctorPtr, TextPickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -69,10 +74,3 @@ export class TextPickerDialog implements MaterializedBase { return retval } } -export class TextPickerDialogInternal { - public static fromPtr(ptr: KPointer): TextPickerDialog { - const obj: TextPickerDialog = new TextPickerDialog() - obj.peer = new Finalizable(ptr, TextPickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextPickerInterfaces.ts b/arkoala/arkui/src/generated/ArkTextPickerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextPickerInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextPickerInterfaces.ts index d7837a900a3161bf8a5e79dd7d0ae12d4e744809..aab04653c884d4d336be177c76e36ed95f590b34 100644 --- a/arkoala/arkui/src/ArkTextPickerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextPickerInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts similarity index 80% rename from arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts index 9b4456e8e54d0c5d40d6387deb26462d538e1a75..9514371b5207c429062d6b12d1fb043fa2ea2497 100644 --- a/arkoala/arkui/src/ArkTextShadowStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextShadowStyleMaterialized.ts @@ -19,15 +19,20 @@ import { ShadowOptions, ShadowType } from "./ArkCommonInterfaces" import { Resource } from "./ArkResourceInterfaces" import { Color, ColoringStrategy } from "./ArkEnumsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextShadowStyleInternal { + public static fromPtr(ptr: KPointer): TextShadowStyle { + const obj: TextShadowStyle = new TextShadowStyle(undefined) + obj.peer = new Finalizable(ptr, TextShadowStyle.getFinalizer()) + return obj + } +} export class TextShadowStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -36,11 +41,11 @@ export class TextShadowStyle implements MaterializedBase { get textShadow(): Array { throw new Error("Not implemented") } - static ctor(value: ShadowOptions | Array): KPointer { + static ctor_textshadowstyle(value: ShadowOptions | Array): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) @@ -59,20 +64,20 @@ export class TextShadowStyle implements MaterializedBase { return retval } constructor(value?: ShadowOptions | Array) { - if (((value) !== (undefined))) + if ((value) !== (undefined)) { - const ctorPtr: KPointer = TextShadowStyle.ctor(value) + const ctorPtr: KPointer = TextShadowStyle.ctor_textshadowstyle(value) this.peer = new Finalizable(ctorPtr, TextShadowStyle.getFinalizer()) } } static getFinalizer(): KPointer { return ArkUIGeneratedNativeModule._TextShadowStyle_getFinalizer() } -} -export class TextShadowStyleInternal { - public static fromPtr(ptr: KPointer): TextShadowStyle { - const obj: TextShadowStyle = new TextShadowStyle(undefined) - obj.peer = new Finalizable(ptr, TextShadowStyle.getFinalizer()) - return obj + private getTextShadow(): Array { + return this.getTextShadow_serialize() + } + private getTextShadow_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TextShadowStyle_getTextShadow(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") } } diff --git a/arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts b/arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts similarity index 93% rename from arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts index 6abb64b29d8df583b8aaede4c52686581fcb8037..2a46e95443266d839492c0cfaf9bfeb795be2f63 100644 --- a/arkoala/arkui/src/ArkTextStyleStyledStringMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextStyleStyledStringMaterialized.ts @@ -22,15 +22,20 @@ import { TextStyleInterface } from "./ArkStyledStringInterfaces" import { Resource } from "./ArkResourceInterfaces" import { LengthMetrics, LengthMetricsInternal } from "./ArkLengthMetricsMaterialized" import { LengthUnit } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextStyle_styled_stringInternal { + public static fromPtr(ptr: KPointer): TextStyle_styled_string { + const obj: TextStyle_styled_string = new TextStyle_styled_string(undefined) + obj.peer = new Finalizable(ptr, TextStyle_styled_string.getFinalizer()) + return obj + } +} export class TextStyle_styled_string implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -51,7 +56,7 @@ export class TextStyle_styled_string implements MaterializedBase { get fontStyle(): FontStyle { return this.getFontStyle() } - static ctor(value?: TextStyleInterface): KPointer { + static ctor_textstyle_styled_string(value?: TextStyleInterface): KPointer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) @@ -65,7 +70,7 @@ export class TextStyle_styled_string implements MaterializedBase { return retval } constructor(value?: TextStyleInterface) { - const ctorPtr: KPointer = TextStyle_styled_string.ctor(value) + const ctorPtr: KPointer = TextStyle_styled_string.ctor_textstyle_styled_string(value) this.peer = new Finalizable(ctorPtr, TextStyle_styled_string.getFinalizer()) } static getFinalizer(): KPointer { @@ -100,10 +105,3 @@ export class TextStyle_styled_string implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class TextStyle_styled_stringInternal { - public static fromPtr(ptr: KPointer): TextStyle_styled_string { - const obj: TextStyle_styled_string = new TextStyle_styled_string(undefined) - obj.peer = new Finalizable(ptr, TextStyle_styled_string.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextTimer.ts b/arkoala/arkui/src/generated/ArkTextTimer.ts similarity index 98% rename from arkoala/arkui/src/ArkTextTimer.ts rename to arkoala/arkui/src/generated/ArkTextTimer.ts index 48e0a29ab8e9847a6fa317a470addfd4ca638f96..6d9d05ddd098e4e058cb06a41bee18e13424e219 100644 --- a/arkoala/arkui/src/ArkTextTimer.ts +++ b/arkoala/arkui/src/generated/ArkTextTimer.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTextTimerPeer } from "./peers/ArkTextTimerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts index 3b808572b10cef35bcf7d39a16eec43de212287e..083c0be4f9e9ed89df7d137def59379cab06e723 100644 --- a/arkoala/arkui/src/ArkTextTimerControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTextTimerControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TextTimerControllerInternal { + public static fromPtr(ptr: KPointer): TextTimerController { + const obj: TextTimerController = new TextTimerController() + obj.peer = new Finalizable(ptr, TextTimerController.getFinalizer()) + return obj + } +} export class TextTimerController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_texttimercontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._TextTimerController_ctor() return retval } constructor() { - const ctorPtr: KPointer = TextTimerController.ctor() + const ctorPtr: KPointer = TextTimerController.ctor_texttimercontroller() this.peer = new Finalizable(ctorPtr, TextTimerController.getFinalizer()) } static getFinalizer(): KPointer { @@ -63,10 +68,3 @@ export class TextTimerController implements MaterializedBase { return retval } } -export class TextTimerControllerInternal { - public static fromPtr(ptr: KPointer): TextTimerController { - const obj: TextTimerController = new TextTimerController() - obj.peer = new Finalizable(ptr, TextTimerController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTextTimerInterfaces.ts b/arkoala/arkui/src/generated/ArkTextTimerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTextTimerInterfaces.ts rename to arkoala/arkui/src/generated/ArkTextTimerInterfaces.ts index 2761fb4ec232b0e820c744473410b8398b07889d..0639ca9156d579aed479c1366a0c0417698ca68d 100644 --- a/arkoala/arkui/src/ArkTextTimerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTextTimerInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTimePicker.ts b/arkoala/arkui/src/generated/ArkTimePicker.ts similarity index 98% rename from arkoala/arkui/src/ArkTimePicker.ts rename to arkoala/arkui/src/generated/ArkTimePicker.ts index 190d7f9b7e57c8e8a67b45148987db740b1dac58..5598bb1cd62f4063ab25b8a26403e80bb6cd3f32 100644 --- a/arkoala/arkui/src/ArkTimePicker.ts +++ b/arkoala/arkui/src/generated/ArkTimePicker.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTimePickerPeer } from "./peers/ArkTimePickerPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts b/arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts rename to arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts index d34d208a9d68a85e357d7f65e17aeedc0402711d..941c695cd7baafc2c3ca85647a0ead0c36e7b113 100644 --- a/arkoala/arkui/src/ArkTimePickerDialogMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTimePickerDialogMaterialized.ts @@ -23,21 +23,26 @@ import { Offset, ResourceColor, Font, Length, BorderRadiuses } from "./ArkUnitsI import { FontWeight, FontStyle, Color, ColoringStrategy } from "./ArkEnumsInterfaces" import { Resource } from "./ArkResourceInterfaces" import { ButtonType, ButtonStyleMode, ButtonRole } from "./ArkButtonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TimePickerDialogInternal { + public static fromPtr(ptr: KPointer): TimePickerDialog { + const obj: TimePickerDialog = new TimePickerDialog() + obj.peer = new Finalizable(ptr, TimePickerDialog.getFinalizer()) + return obj + } +} export class TimePickerDialog implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_timepickerdialog(): KPointer { const retval = ArkUIGeneratedNativeModule._TimePickerDialog_ctor() return retval } @@ -45,7 +50,7 @@ export class TimePickerDialog implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = TimePickerDialog.ctor() + const ctorPtr: KPointer = TimePickerDialog.ctor_timepickerdialog() this.peer = new Finalizable(ctorPtr, TimePickerDialog.getFinalizer()) } static getFinalizer(): KPointer { @@ -69,10 +74,3 @@ export class TimePickerDialog implements MaterializedBase { return retval } } -export class TimePickerDialogInternal { - public static fromPtr(ptr: KPointer): TimePickerDialog { - const obj: TimePickerDialog = new TimePickerDialog() - obj.peer = new Finalizable(ptr, TimePickerDialog.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkTimePickerInterfaces.ts b/arkoala/arkui/src/generated/ArkTimePickerInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkTimePickerInterfaces.ts rename to arkoala/arkui/src/generated/ArkTimePickerInterfaces.ts index 59f22c246f0990317849d5df56c380b1b8e82874..c92d78c9a3e264f90a43dba1213516dbd8b236ba 100644 --- a/arkoala/arkui/src/ArkTimePickerInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkTimePickerInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkToggle.ts b/arkoala/arkui/src/generated/ArkToggle.ts similarity index 97% rename from arkoala/arkui/src/ArkToggle.ts rename to arkoala/arkui/src/generated/ArkToggle.ts index 58f437cfbd3d9db6f5098989fc94dfa7e70a76b9..3b28a30fe445a76ead020d5741874ff5db485329 100644 --- a/arkoala/arkui/src/ArkToggle.ts +++ b/arkoala/arkui/src/generated/ArkToggle.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkTogglePeer } from "./peers/ArkTogglePeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkToggleInterfaces.ts b/arkoala/arkui/src/generated/ArkToggleInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkToggleInterfaces.ts rename to arkoala/arkui/src/generated/ArkToggleInterfaces.ts index d16a66332a5c0ba4e9da98942ff7ba3b6ad996e2..2c3a541639ed7a7a99ec7d97b027d736b1e50002 100644 --- a/arkoala/arkui/src/ArkToggleInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkToggleInterfaces.ts @@ -29,7 +29,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkTouchEventMaterialized.ts b/arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkTouchEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts index c4bef320ede093f120ff47c6f3e6cc546664493b..8aa9a32b189f8dde018941a3f275112ba7223baf 100644 --- a/arkoala/arkui/src/ArkTouchEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTouchEventMaterialized.ts @@ -20,12 +20,11 @@ import { BaseEvent, BaseEventInternal } from "./ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool, TouchObject, HistoricalPoint } from "./ArkCommonInterfaces" import { TouchType } from "./ArkEnumsInterfaces" import { Area, Length, Position } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -72,13 +71,13 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize set preventDefault(preventDefault: (() => void)) { this.setPreventDefault(preventDefault) } - static ctor(): KPointer { + static ctor_touchevent(): KPointer { const retval = ArkUIGeneratedNativeModule._TouchEvent_ctor() return retval } constructor() { super() - const ctorPtr: KPointer = TouchEventInternal.ctor() + const ctorPtr: KPointer = TouchEventInternal.ctor_touchevent() this.peer = new Finalizable(ctorPtr, TouchEventInternal.getFinalizer()) } static getFinalizer(): KPointer { @@ -95,11 +94,17 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize this?.setType_serialize(type_casted) return } + private getTouches(): Array { + return this.getTouches_serialize() + } private setTouches(touches: Array): void { const touches_casted = touches as (Array) this?.setTouches_serialize(touches_casted) return } + private getChangedTouches(): Array { + return this.getChangedTouches_serialize() + } private setChangedTouches(changedTouches: Array): void { const changedTouches_casted = changedTouches as (Array) this?.setChangedTouches_serialize(changedTouches_casted) @@ -132,6 +137,10 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize private setType_serialize(type: TouchType): void { ArkUIGeneratedNativeModule._TouchEvent_setType(this.peer!.ptr, type) } + private getTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getTouches(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setTouches_serialize(touches: Array): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(touches.length) @@ -142,6 +151,10 @@ export class TouchEventInternal extends BaseEventInternal implements Materialize ArkUIGeneratedNativeModule._TouchEvent_setTouches(this.peer!.ptr, thisSerializer.asArray(), thisSerializer.length()) thisSerializer.release() } + private getChangedTouches_serialize(): Array { + const retval = ArkUIGeneratedNativeModule._TouchEvent_getChangedTouches(this.peer!.ptr) + throw new Error("Object deserialization is not implemented.") + } private setChangedTouches_serialize(changedTouches: Array): void { const thisSerializer: Serializer = Serializer.hold() thisSerializer.writeInt32(changedTouches.length) diff --git a/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts b/arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkTransitionEffectMaterialized.ts rename to arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts index ee3f25140bae5321c07331b1ac370f3f6f5cdf3a..a54247fa7097bf2940d661f04fb5277a10fc4027 100644 --- a/arkoala/arkui/src/ArkTransitionEffectMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkTransitionEffectMaterialized.ts @@ -19,15 +19,20 @@ import { TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange } from "./ArkCommonInterfaces" import { Curve, PlayMode } from "./ArkEnumsInterfaces" import { ICurve, ICurveInternal } from "./ArkICurveMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class TransitionEffectInternal { + public static fromPtr(ptr: KPointer): TransitionEffect { + const obj: TransitionEffect = new TransitionEffect(undefined, undefined) + obj.peer = new Finalizable(ptr, TransitionEffect.getFinalizer()) + return obj + } +} export class TransitionEffect implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -45,7 +50,7 @@ export class TransitionEffect implements MaterializedBase { get SLIDE_SWITCH(): TransitionEffect { throw new Error("Not implemented") } - static ctor(type: string, effect: TransitionEffects): KPointer { + static ctor_transitioneffect(type: string, effect: TransitionEffects): KPointer { const thisSerializer: Serializer = Serializer.hold() const effect_identity = effect.identity const effect_opacity = effect.opacity @@ -71,7 +76,7 @@ export class TransitionEffect implements MaterializedBase { constructor(type?: string, effect?: TransitionEffects) { if (((type) !== (undefined)) && ((effect) !== (undefined))) { - const ctorPtr: KPointer = TransitionEffect.ctor(type, effect) + const ctorPtr: KPointer = TransitionEffect.ctor_transitioneffect(type, effect) this.peer = new Finalizable(ctorPtr, TransitionEffect.getFinalizer()) } } @@ -171,10 +176,3 @@ export class TransitionEffect implements MaterializedBase { return obj } } -export class TransitionEffectInternal { - public static fromPtr(ptr: KPointer): TransitionEffect { - const obj: TransitionEffect = new TransitionEffect(undefined, undefined) - obj.peer = new Finalizable(ptr, TransitionEffect.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkUICommonEventMaterialized.ts b/arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts similarity index 97% rename from arkoala/arkui/src/ArkUICommonEventMaterialized.ts rename to arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts index 78f6fb499b242c8ebafd686160a68cb847a0a202..809c475a17b2a8581ed84b9449db1585f4180a87 100644 --- a/arkoala/arkui/src/ArkUICommonEventMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUICommonEventMaterialized.ts @@ -24,12 +24,11 @@ import { TouchEvent, TouchEventInternal } from "./ArkTouchEventMaterialized" import { TouchType, KeyType, KeySource, MouseButton, MouseAction } from "./ArkEnumsInterfaces" import { KeyEvent, KeyEventInternal } from "./ArkKeyEventMaterialized" import { MouseEvent, MouseEventInternal } from "./ArkMouseEventMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Resource } from "./ArkResourceInterfaces" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -51,12 +50,12 @@ export class UICommonEventInternal implements MaterializedBase,UICommonEvent { public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_uicommonevent(): KPointer { const retval = ArkUIGeneratedNativeModule._UICommonEvent_ctor() return retval } constructor() { - const ctorPtr: KPointer = UICommonEventInternal.ctor() + const ctorPtr: KPointer = UICommonEventInternal.ctor_uicommonevent() this.peer = new Finalizable(ctorPtr, UICommonEventInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts b/arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts rename to arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts index d0d052d048fc4c9b5549f26f00bfddfcfa4afad3..e19f5fa4b449ecc43352d2dd5fe24779ed261716 100644 --- a/arkoala/arkui/src/ArkUIExtensionProxyMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUIExtensionProxyMaterialized.ts @@ -16,12 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" @@ -38,12 +36,12 @@ export class UIExtensionProxyInternal implements MaterializedBase,UIExtensionPro public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_uiextensionproxy(): KPointer { const retval = ArkUIGeneratedNativeModule._UIExtensionProxy_ctor() return retval } constructor() { - const ctorPtr: KPointer = UIExtensionProxyInternal.ctor() + const ctorPtr: KPointer = UIExtensionProxyInternal.ctor_uiextensionproxy() this.peer = new Finalizable(ctorPtr, UIExtensionProxyInternal.getFinalizer()) } static getFinalizer(): KPointer { diff --git a/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts similarity index 99% rename from arkoala/arkui/src/ArkUIGeneratedNativeModule.ts rename to arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts index efe5d1fa860c3d25aa52a40077a33b16e8799d4c..25f6eb6a8ac3194281fc3241e8d60876216398f5 100644 --- a/arkoala/arkui/src/ArkUIGeneratedNativeModule.ts +++ b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" import { Length } from "./ArkUnitsInterfaces" @@ -10913,6 +10913,34 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _SystemOps_ctor(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SystemOps_ctor() + } + throw new Error("Not implemented") + } + static _SystemOps_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SystemOps_getFinalizer() + } + throw new Error("Not implemented") + } + static _SystemOps_StartFrame(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._SystemOps_StartFrame() + } + throw new Error("Not implemented") + } + static _SystemOps_EndFrame(root: KPointer): void { + if ((this._LoadOnce()) == (true)) + { + return this._SystemOps_EndFrame(root) + } + throw new Error("Not implemented") + } static _DrawingCanvas_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { @@ -11179,7 +11207,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KPointer { + static _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._FrameNode_getPositionToWindowWithTransform(ptr) @@ -11214,34 +11242,20 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _PixelMap_getIsEditable(ptr: KPointer): int32 { + static _PixelMap_getIsEditable(ptr: KPointer): boolean { if ((this._LoadOnce()) == (true)) { return this._PixelMap_getIsEditable(ptr) } throw new Error("Not implemented") } - static _PixelMap_setIsEditable(ptr: KPointer, isEditable: KInt): void { - if ((this._LoadOnce()) == (true)) - { - return this._PixelMap_setIsEditable(ptr, isEditable) - } - throw new Error("Not implemented") - } - static _PixelMap_getIsStrideAlignment(ptr: KPointer): int32 { + static _PixelMap_getIsStrideAlignment(ptr: KPointer): boolean { if ((this._LoadOnce()) == (true)) { return this._PixelMap_getIsStrideAlignment(ptr) } throw new Error("Not implemented") } - static _PixelMap_setIsStrideAlignment(ptr: KPointer, isStrideAlignment: KInt): void { - if ((this._LoadOnce()) == (true)) - { - return this._PixelMap_setIsStrideAlignment(ptr, isStrideAlignment) - } - throw new Error("Not implemented") - } static _NavExtender_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -11879,7 +11893,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KPointer { + static _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._CanvasRenderer_measureText(ptr, text) @@ -12327,6 +12341,90 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _OffscreenCanvasRenderingContext2D_ctor(width: number, height: number, thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvasRenderingContext2D_ctor(width, height, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _OffscreenCanvasRenderingContext2D_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvasRenderingContext2D_getFinalizer() + } + throw new Error("Not implemented") + } + static _OffscreenCanvasRenderingContext2D_toDataURL(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): string { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvasRenderingContext2D_toDataURL(ptr, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _OffscreenCanvasRenderingContext2D_transferToImageBitmap(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvasRenderingContext2D_transferToImageBitmap(ptr) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_ctor(width: number, height: number): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_ctor(width, height) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_getFinalizer(): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_getFinalizer() + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_transferToImageBitmap(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_transferToImageBitmap(ptr) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_getContext2d(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_getContext2d(ptr, thisArray, thisLength) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_getHeight(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_getHeight(ptr) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_setHeight(ptr: KPointer, height: number): void { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_setHeight(ptr, height) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_getWidth(ptr: KPointer): number { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_getWidth(ptr) + } + throw new Error("Not implemented") + } + static _OffscreenCanvas_setWidth(ptr: KPointer, width: number): void { + if ((this._LoadOnce()) == (true)) + { + return this._OffscreenCanvas_setWidth(ptr, width) + } + throw new Error("Not implemented") + } static _DrawingRenderingContext_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { @@ -12481,6 +12579,27 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean { + if ((this._LoadOnce()) == (true)) + { + return this._GlobalScope_focusControl_common_requestFocus(value) + } + throw new Error("Not implemented") + } + static _GlobalScope_cursorControl_common_setCursor(value: KInt): void { + if ((this._LoadOnce()) == (true)) + { + return this._GlobalScope_cursorControl_common_setCursor(value) + } + throw new Error("Not implemented") + } + static _GlobalScope_cursorControl_common_restoreDefault(): void { + if ((this._LoadOnce()) == (true)) + { + return this._GlobalScope_cursorControl_common_restoreDefault() + } + throw new Error("Not implemented") + } static _BaseEvent_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -13118,6 +13237,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _TouchEvent_getTouches(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TouchEvent_getTouches(ptr) + } + throw new Error("Not implemented") + } static _TouchEvent_setTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -13125,6 +13251,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _TouchEvent_getChangedTouches(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TouchEvent_getChangedTouches(ptr) + } + throw new Error("Not implemented") + } static _TouchEvent_setChangedTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -13251,7 +13384,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _DragEvent_getSummary(ptr: KPointer): KPointer { + static _DragEvent_getSummary(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._DragEvent_getSummary(ptr) @@ -13272,7 +13405,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _DragEvent_getPreviewRect(ptr: KPointer): KPointer { + static _DragEvent_getPreviewRect(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._DragEvent_getPreviewRect(ptr) @@ -13538,28 +13671,28 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _Measurable_measure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + static _Measurable_measure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Measurable_measure(ptr, thisArray, thisLength) } throw new Error("Not implemented") } - static _Measurable_getMargin(ptr: KPointer): KPointer { + static _Measurable_getMargin(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Measurable_getMargin(ptr) } throw new Error("Not implemented") } - static _Measurable_getPadding(ptr: KPointer): KPointer { + static _Measurable_getPadding(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Measurable_getPadding(ptr) } throw new Error("Not implemented") } - static _Measurable_getBorderWidth(ptr: KPointer): KPointer { + static _Measurable_getBorderWidth(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Measurable_getBorderWidth(ptr) @@ -13601,14 +13734,14 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KPointer { + static _TextContentControllerBase_getCaretOffset(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TextContentControllerBase_getCaretOffset(ptr) } throw new Error("Not implemented") } - static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KPointer { + static _TextContentControllerBase_getTextContentRect(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TextContentControllerBase_getTextContentRect(ptr) @@ -13797,111 +13930,6 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScope_common_getContext(thisArray: Uint8Array, thisLength: int32): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_getContext(thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_postCardAction(thisArray: Uint8Array, thisLength: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_postCardAction(thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_dollar_r(value: KStringPtr, thisArray: Uint8Array, thisLength: int32): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_dollar_r(value, thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_dollar_rawfile(value: KStringPtr): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_dollar_rawfile(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_animateTo(thisArray: Uint8Array, thisLength: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_animateTo(thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_animateToImmediately(thisArray: Uint8Array, thisLength: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_animateToImmediately(thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_vp2px(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_vp2px(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_px2vp(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_px2vp(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_fp2px(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_fp2px(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_px2fp(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_px2fp(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_lpx2px(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_lpx2px(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_px2lpx(value: number): number { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_px2lpx(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_requestFocus(value: KStringPtr): boolean { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_requestFocus(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_setCursor(value: KInt): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_setCursor(value) - } - throw new Error("Not implemented") - } - static _GlobalScope_common_restoreDefault(): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_common_restoreDefault() - } - throw new Error("Not implemented") - } static _ContextMenu_ctor(): KPointer { if ((this._LoadOnce()) == (true)) { @@ -14000,6 +14028,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _BaseGestureEvent_getFingerList(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._BaseGestureEvent_getFingerList(ptr) + } + throw new Error("Not implemented") + } static _BaseGestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -14287,6 +14322,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _GestureEvent_getFingerList(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._GestureEvent_getFingerList(ptr) + } + throw new Error("Not implemented") + } static _GestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { @@ -14651,7 +14693,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KPointer { + static _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._ListScroller_getItemRectInGroup(ptr, index, indexInGroup) @@ -14672,7 +14714,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KPointer { + static _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._ListScroller_getVisibleListContentInfo(ptr, x, y) @@ -15302,7 +15344,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorBaseController_getTypingStyle(ptr: KPointer): KPointer { + static _RichEditorBaseController_getTypingStyle(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorBaseController_getTypingStyle(ptr) @@ -15344,7 +15386,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorBaseController_getPreviewText(ptr: KPointer): KPointer { + static _RichEditorBaseController_getPreviewText(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorBaseController_getPreviewText(ptr) @@ -15428,7 +15470,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorController_getSelection(ptr: KPointer): KPointer { + static _RichEditorController_getSelection(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorController_getSelection(ptr) @@ -15477,7 +15519,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _RichEditorStyledStringController_getSelection(ptr: KPointer): KPointer { + static _RichEditorStyledStringController_getSelection(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._RichEditorStyledStringController_getSelection(ptr) @@ -15540,7 +15582,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _Scroller_currentOffset(ptr: KPointer): KPointer { + static _Scroller_currentOffset(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Scroller_currentOffset(ptr) @@ -15568,7 +15610,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _Scroller_getItemRect(ptr: KPointer, index: number): KPointer { + static _Scroller_getItemRect(ptr: KPointer, index: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._Scroller_getItemRect(ptr, index) @@ -16233,7 +16275,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _TextEditControllerEx_getPreviewText(ptr: KPointer): KPointer { + static _TextEditControllerEx_getPreviewText(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._TextEditControllerEx_getPreviewText(ptr) @@ -16289,14 +16331,14 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KPointer { + static _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._LayoutManager_getGlyphPositionAtCoordinate(ptr, x, y) } throw new Error("Not implemented") } - static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KPointer { + static _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._LayoutManager_getLineMetrics(ptr, lineNumber) @@ -17668,7 +17710,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KPointer { + static _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._XComponentController_getXComponentSurfaceRect(ptr) @@ -17682,7 +17724,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KPointer { + static _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._XComponentController_getXComponentSurfaceRotation(ptr) @@ -18032,6 +18074,13 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } + static _TextShadowStyle_getTextShadow(ptr: KPointer): KPointer { + if ((this._LoadOnce()) == (true)) + { + return this._TextShadowStyle_getTextShadow(ptr) + } + throw new Error("Not implemented") + } static _BackgroundColorStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { if ((this._LoadOnce()) == (true)) { @@ -18284,7 +18333,7 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _CustomSpan_onMeasure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + static _CustomSpan_onMeasure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { if ((this._LoadOnce()) == (true)) { return this._CustomSpan_onMeasure(ptr, thisArray, thisLength) @@ -18347,38 +18396,17 @@ export class ArkUIGeneratedNativeModule { } throw new Error("Not implemented") } - static _GlobalScope_inspector_getInspectorNodes(): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_inspector_getInspectorNodes() - } - throw new Error("Not implemented") - } - static _GlobalScope_inspector_getInspectorNodeById(id: number): KPointer { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_inspector_getInspectorNodeById(id) - } - throw new Error("Not implemented") - } - static _GlobalScope_inspector_registerVsyncCallback(thisArray: Uint8Array, thisLength: int32): void { - if ((this._LoadOnce()) == (true)) - { - return this._GlobalScope_inspector_registerVsyncCallback(thisArray, thisLength) - } - throw new Error("Not implemented") - } - static _GlobalScope_inspector_unregisterVsyncCallback(): void { + static _GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray: Uint8Array, thisLength: int32): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_inspector_unregisterVsyncCallback() + return this._GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray, thisLength) } throw new Error("Not implemented") } - static _GlobalScope_inspector_setAppBgColor(value: KStringPtr): void { + static _GlobalScope_Profiler_inspector_unregisterVsyncCallback(): void { if ((this._LoadOnce()) == (true)) { - return this._GlobalScope_inspector_setAppBgColor(value) + return this._GlobalScope_Profiler_inspector_unregisterVsyncCallback() } throw new Error("Not implemented") } diff --git a/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts similarity index 98% rename from arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts rename to arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts index 15246be94e1cf8fba1c0b927516c78237552146b..31d753f5988b12b7e97676d95da16f933c35cc4d 100644 --- a/arkoala/arkui/src/ArkUIGeneratedNativeModuleEmpty.ts +++ b/arkoala/arkui/src/generated/ArkUIGeneratedNativeModuleEmpty.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" import { Length } from "./ArkUnitsInterfaces" @@ -4807,6 +4807,21 @@ export class ArkUIGeneratedNativeModuleEmpty { _LazyForEachOps_Prepare(node: KPointer): void { console.log("_LazyForEachOps_Prepare") } + _SystemOps_ctor(): KPointer { + console.log("_SystemOps_ctor") + return -1 + } + _SystemOps_getFinalizer(): KPointer { + console.log("_SystemOps_getFinalizer") + return -1 + } + _SystemOps_StartFrame(): KPointer { + console.log("_SystemOps_StartFrame") + return -1 + } + _SystemOps_EndFrame(root: KPointer): void { + console.log("_SystemOps_EndFrame") + } _DrawingCanvas_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_DrawingCanvas_ctor") return -1 @@ -4945,9 +4960,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_FrameNode_getOpacity") return 1 } - _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KPointer { + _FrameNode_getPositionToWindowWithTransform(ptr: KPointer): KInteropReturnBuffer { console.log("_FrameNode_getPositionToWindowWithTransform") - return -1 + return new Uint8Array() } _PixelMap_ctor(): KPointer { console.log("_PixelMap_ctor") @@ -4963,19 +4978,13 @@ export class ArkUIGeneratedNativeModuleEmpty { _PixelMap_writeBufferToPixels(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_PixelMap_writeBufferToPixels") } - _PixelMap_getIsEditable(ptr: KPointer): int32 { + _PixelMap_getIsEditable(ptr: KPointer): boolean { console.log("_PixelMap_getIsEditable") - return 0 - } - _PixelMap_setIsEditable(ptr: KPointer, isEditable: KInt): void { - console.log("_PixelMap_setIsEditable") + return false } - _PixelMap_getIsStrideAlignment(ptr: KPointer): int32 { + _PixelMap_getIsStrideAlignment(ptr: KPointer): boolean { console.log("_PixelMap_getIsStrideAlignment") - return 0 - } - _PixelMap_setIsStrideAlignment(ptr: KPointer, isStrideAlignment: KInt): void { - console.log("_PixelMap_setIsStrideAlignment") + return false } _NavExtender_ctor(): KPointer { console.log("_NavExtender_ctor") @@ -5304,9 +5313,9 @@ export class ArkUIGeneratedNativeModuleEmpty { _CanvasRenderer_fillText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: Uint8Array, thisLength: int32): void { console.log("_CanvasRenderer_fillText") } - _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KPointer { + _CanvasRenderer_measureText(ptr: KPointer, text: KStringPtr): KInteropReturnBuffer { console.log("_CanvasRenderer_measureText") - return -1 + return new Uint8Array() } _CanvasRenderer_strokeText(ptr: KPointer, text: KStringPtr, x: number, y: number, thisArray: Uint8Array, thisLength: int32): void { console.log("_CanvasRenderer_strokeText") @@ -5522,6 +5531,52 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_CanvasRenderingContext2D_getWidth") return 1 } + _OffscreenCanvasRenderingContext2D_ctor(width: number, height: number, thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_OffscreenCanvasRenderingContext2D_ctor") + return -1 + } + _OffscreenCanvasRenderingContext2D_getFinalizer(): KPointer { + console.log("_OffscreenCanvasRenderingContext2D_getFinalizer") + return -1 + } + _OffscreenCanvasRenderingContext2D_toDataURL(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): string { + console.log("_OffscreenCanvasRenderingContext2D_toDataURL") + return "" + } + _OffscreenCanvasRenderingContext2D_transferToImageBitmap(ptr: KPointer): KPointer { + console.log("_OffscreenCanvasRenderingContext2D_transferToImageBitmap") + return -1 + } + _OffscreenCanvas_ctor(width: number, height: number): KPointer { + console.log("_OffscreenCanvas_ctor") + return -1 + } + _OffscreenCanvas_getFinalizer(): KPointer { + console.log("_OffscreenCanvas_getFinalizer") + return -1 + } + _OffscreenCanvas_transferToImageBitmap(ptr: KPointer): KPointer { + console.log("_OffscreenCanvas_transferToImageBitmap") + return -1 + } + _OffscreenCanvas_getContext2d(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + console.log("_OffscreenCanvas_getContext2d") + return -1 + } + _OffscreenCanvas_getHeight(ptr: KPointer): number { + console.log("_OffscreenCanvas_getHeight") + return 1 + } + _OffscreenCanvas_setHeight(ptr: KPointer, height: number): void { + console.log("_OffscreenCanvas_setHeight") + } + _OffscreenCanvas_getWidth(ptr: KPointer): number { + console.log("_OffscreenCanvas_getWidth") + return 1 + } + _OffscreenCanvas_setWidth(ptr: KPointer, width: number): void { + console.log("_OffscreenCanvas_setWidth") + } _DrawingRenderingContext_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_DrawingRenderingContext_ctor") return -1 @@ -5605,6 +5660,16 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TransitionEffect_combine") return -1 } + _GlobalScope_focusControl_common_requestFocus(value: KStringPtr): boolean { + console.log("_GlobalScope_focusControl_common_requestFocus") + return false + } + _GlobalScope_cursorControl_common_setCursor(value: KInt): void { + console.log("_GlobalScope_cursorControl_common_setCursor") + } + _GlobalScope_cursorControl_common_restoreDefault(): void { + console.log("_GlobalScope_cursorControl_common_restoreDefault") + } _BaseEvent_ctor(): KPointer { console.log("_BaseEvent_ctor") return -1 @@ -5930,9 +5995,17 @@ export class ArkUIGeneratedNativeModuleEmpty { _TouchEvent_setType(ptr: KPointer, type: KInt): void { console.log("_TouchEvent_setType") } + _TouchEvent_getTouches(ptr: KPointer): KPointer { + console.log("_TouchEvent_getTouches") + return -1 + } _TouchEvent_setTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TouchEvent_setTouches") } + _TouchEvent_getChangedTouches(ptr: KPointer): KPointer { + console.log("_TouchEvent_getChangedTouches") + return -1 + } _TouchEvent_setChangedTouches(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_TouchEvent_setChangedTouches") } @@ -6000,9 +6073,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_DragEvent_getData") return -1 } - _DragEvent_getSummary(ptr: KPointer): KPointer { + _DragEvent_getSummary(ptr: KPointer): KInteropReturnBuffer { console.log("_DragEvent_getSummary") - return -1 + return new Uint8Array() } _DragEvent_setResult(ptr: KPointer, dragResult: KInt): void { console.log("_DragEvent_setResult") @@ -6011,9 +6084,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_DragEvent_getResult") return -1 } - _DragEvent_getPreviewRect(ptr: KPointer): KPointer { + _DragEvent_getPreviewRect(ptr: KPointer): KInteropReturnBuffer { console.log("_DragEvent_getPreviewRect") - return -1 + return new Uint8Array() } _DragEvent_getVelocityX(ptr: KPointer): number { console.log("_DragEvent_getVelocityX") @@ -6148,21 +6221,21 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_Measurable_getFinalizer") return -1 } - _Measurable_measure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + _Measurable_measure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { console.log("_Measurable_measure") - return -1 + return new Uint8Array() } - _Measurable_getMargin(ptr: KPointer): KPointer { + _Measurable_getMargin(ptr: KPointer): KInteropReturnBuffer { console.log("_Measurable_getMargin") - return -1 + return new Uint8Array() } - _Measurable_getPadding(ptr: KPointer): KPointer { + _Measurable_getPadding(ptr: KPointer): KInteropReturnBuffer { console.log("_Measurable_getPadding") - return -1 + return new Uint8Array() } - _Measurable_getBorderWidth(ptr: KPointer): KPointer { + _Measurable_getBorderWidth(ptr: KPointer): KInteropReturnBuffer { console.log("_Measurable_getBorderWidth") - return -1 + return new Uint8Array() } _View_ctor(): KPointer { console.log("_View_ctor") @@ -6184,13 +6257,13 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TextContentControllerBase_getFinalizer") return -1 } - _TextContentControllerBase_getCaretOffset(ptr: KPointer): KPointer { + _TextContentControllerBase_getCaretOffset(ptr: KPointer): KInteropReturnBuffer { console.log("_TextContentControllerBase_getCaretOffset") - return -1 + return new Uint8Array() } - _TextContentControllerBase_getTextContentRect(ptr: KPointer): KPointer { + _TextContentControllerBase_getTextContentRect(ptr: KPointer): KInteropReturnBuffer { console.log("_TextContentControllerBase_getTextContentRect") - return -1 + return new Uint8Array() } _TextContentControllerBase_getTextContentLineCount(ptr: KPointer): number { console.log("_TextContentControllerBase_getTextContentLineCount") @@ -6281,61 +6354,6 @@ export class ArkUIGeneratedNativeModuleEmpty { _GestureModifier_applyGesture(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_GestureModifier_applyGesture") } - _GlobalScope_common_getContext(thisArray: Uint8Array, thisLength: int32): KPointer { - console.log("_GlobalScope_common_getContext") - return -1 - } - _GlobalScope_common_postCardAction(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScope_common_postCardAction") - } - _GlobalScope_common_dollar_r(value: KStringPtr, thisArray: Uint8Array, thisLength: int32): KPointer { - console.log("_GlobalScope_common_dollar_r") - return -1 - } - _GlobalScope_common_dollar_rawfile(value: KStringPtr): KPointer { - console.log("_GlobalScope_common_dollar_rawfile") - return -1 - } - _GlobalScope_common_animateTo(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScope_common_animateTo") - } - _GlobalScope_common_animateToImmediately(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScope_common_animateToImmediately") - } - _GlobalScope_common_vp2px(value: number): number { - console.log("_GlobalScope_common_vp2px") - return 1 - } - _GlobalScope_common_px2vp(value: number): number { - console.log("_GlobalScope_common_px2vp") - return 1 - } - _GlobalScope_common_fp2px(value: number): number { - console.log("_GlobalScope_common_fp2px") - return 1 - } - _GlobalScope_common_px2fp(value: number): number { - console.log("_GlobalScope_common_px2fp") - return 1 - } - _GlobalScope_common_lpx2px(value: number): number { - console.log("_GlobalScope_common_lpx2px") - return 1 - } - _GlobalScope_common_px2lpx(value: number): number { - console.log("_GlobalScope_common_px2lpx") - return 1 - } - _GlobalScope_common_requestFocus(value: KStringPtr): boolean { - console.log("_GlobalScope_common_requestFocus") - return false - } - _GlobalScope_common_setCursor(value: KInt): void { - console.log("_GlobalScope_common_setCursor") - } - _GlobalScope_common_restoreDefault(): void { - console.log("_GlobalScope_common_restoreDefault") - } _ContextMenu_ctor(): KPointer { console.log("_ContextMenu_ctor") return -1 @@ -6392,6 +6410,10 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_BaseGestureEvent_getFinalizer") return -1 } + _BaseGestureEvent_getFingerList(ptr: KPointer): KPointer { + console.log("_BaseGestureEvent_getFingerList") + return -1 + } _BaseGestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_BaseGestureEvent_setFingerList") } @@ -6542,6 +6564,10 @@ export class ArkUIGeneratedNativeModuleEmpty { _GestureEvent_setRepeat(ptr: KPointer, repeat: KInt): void { console.log("_GestureEvent_setRepeat") } + _GestureEvent_getFingerList(ptr: KPointer): KPointer { + console.log("_GestureEvent_getFingerList") + return -1 + } _GestureEvent_setFingerList(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_GestureEvent_setFingerList") } @@ -6738,9 +6764,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_ListScroller_getFinalizer") return -1 } - _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KPointer { + _ListScroller_getItemRectInGroup(ptr: KPointer, index: number, indexInGroup: number): KInteropReturnBuffer { console.log("_ListScroller_getItemRectInGroup") - return -1 + return new Uint8Array() } _ListScroller_scrollToItemInGroup(ptr: KPointer, index: number, indexInGroup: number, thisArray: Uint8Array, thisLength: int32): void { console.log("_ListScroller_scrollToItemInGroup") @@ -6748,9 +6774,9 @@ export class ArkUIGeneratedNativeModuleEmpty { _ListScroller_closeAllSwipeActions(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_ListScroller_closeAllSwipeActions") } - _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KPointer { + _ListScroller_getVisibleListContentInfo(ptr: KPointer, x: number, y: number): KInteropReturnBuffer { console.log("_ListScroller_getVisibleListContentInfo") - return -1 + return new Uint8Array() } _Matrix2D_ctor(): KPointer { console.log("_Matrix2D_ctor") @@ -7074,9 +7100,9 @@ export class ArkUIGeneratedNativeModuleEmpty { _RichEditorBaseController_closeSelectionMenu(ptr: KPointer): void { console.log("_RichEditorBaseController_closeSelectionMenu") } - _RichEditorBaseController_getTypingStyle(ptr: KPointer): KPointer { + _RichEditorBaseController_getTypingStyle(ptr: KPointer): KInteropReturnBuffer { console.log("_RichEditorBaseController_getTypingStyle") - return -1 + return new Uint8Array() } _RichEditorBaseController_setTypingStyle(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_RichEditorBaseController_setTypingStyle") @@ -7095,9 +7121,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_RichEditorBaseController_getLayoutManager") return -1 } - _RichEditorBaseController_getPreviewText(ptr: KPointer): KPointer { + _RichEditorBaseController_getPreviewText(ptr: KPointer): KInteropReturnBuffer { console.log("_RichEditorBaseController_getPreviewText") - return -1 + return new Uint8Array() } _RichEditorController_ctor(): KPointer { console.log("_RichEditorController_ctor") @@ -7140,9 +7166,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_RichEditorController_getParagraphs") return -1 } - _RichEditorController_getSelection(ptr: KPointer): KPointer { + _RichEditorController_getSelection(ptr: KPointer): KInteropReturnBuffer { console.log("_RichEditorController_getSelection") - return -1 + return new Uint8Array() } _RichEditorController_fromStyledString(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_RichEditorController_fromStyledString") @@ -7167,9 +7193,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_RichEditorStyledStringController_getStyledString") return -1 } - _RichEditorStyledStringController_getSelection(ptr: KPointer): KPointer { + _RichEditorStyledStringController_getSelection(ptr: KPointer): KInteropReturnBuffer { console.log("_RichEditorStyledStringController_getSelection") - return -1 + return new Uint8Array() } _RichEditorStyledStringController_onContentChanged(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_RichEditorStyledStringController_onContentChanged") @@ -7201,9 +7227,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_Scroller_scrollPage1") return undefined } - _Scroller_currentOffset(ptr: KPointer): KPointer { + _Scroller_currentOffset(ptr: KPointer): KInteropReturnBuffer { console.log("_Scroller_currentOffset") - return -1 + return new Uint8Array() } _Scroller_scrollToIndex(ptr: KPointer, value: number, thisArray: Uint8Array, thisLength: int32): undefined { console.log("_Scroller_scrollToIndex") @@ -7217,9 +7243,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_Scroller_isAtEnd") return false } - _Scroller_getItemRect(ptr: KPointer, index: number): KPointer { + _Scroller_getItemRect(ptr: KPointer, index: number): KInteropReturnBuffer { console.log("_Scroller_getItemRect") - return -1 + return new Uint8Array() } _Scroller_getItemIndex(ptr: KPointer, x: number, y: number): number { console.log("_Scroller_getItemIndex") @@ -7564,9 +7590,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TextEditControllerEx_getCaretOffset") return 1 } - _TextEditControllerEx_getPreviewText(ptr: KPointer): KPointer { + _TextEditControllerEx_getPreviewText(ptr: KPointer): KInteropReturnBuffer { console.log("_TextEditControllerEx_getPreviewText") - return -1 + return new Uint8Array() } _StyledStringController_ctor(): KPointer { console.log("_StyledStringController_ctor") @@ -7595,13 +7621,13 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_LayoutManager_getLineCount") return 1 } - _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KPointer { + _LayoutManager_getGlyphPositionAtCoordinate(ptr: KPointer, x: number, y: number): KInteropReturnBuffer { console.log("_LayoutManager_getGlyphPositionAtCoordinate") - return -1 + return new Uint8Array() } - _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KPointer { + _LayoutManager_getLineMetrics(ptr: KPointer, lineNumber: number): KInteropReturnBuffer { console.log("_LayoutManager_getLineMetrics") - return -1 + return new Uint8Array() } _LayoutManager_getRectsForRange(ptr: KPointer, thisArray: Uint8Array, thisLength: int32, widthStyle: KInt, heightStyle: KInt): KPointer { console.log("_LayoutManager_getRectsForRange") @@ -8332,16 +8358,16 @@ export class ArkUIGeneratedNativeModuleEmpty { _XComponentController_setXComponentSurfaceRect(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_XComponentController_setXComponentSurfaceRect") } - _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KPointer { + _XComponentController_getXComponentSurfaceRect(ptr: KPointer): KInteropReturnBuffer { console.log("_XComponentController_getXComponentSurfaceRect") - return -1 + return new Uint8Array() } _XComponentController_setXComponentSurfaceRotation(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_XComponentController_setXComponentSurfaceRotation") } - _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KPointer { + _XComponentController_getXComponentSurfaceRotation(ptr: KPointer): KInteropReturnBuffer { console.log("_XComponentController_getXComponentSurfaceRotation") - return -1 + return new Uint8Array() } _XComponentController_onSurfaceCreated(ptr: KPointer, surfaceId: KStringPtr): void { console.log("_XComponentController_onSurfaceCreated") @@ -8530,6 +8556,10 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_TextShadowStyle_getFinalizer") return -1 } + _TextShadowStyle_getTextShadow(ptr: KPointer): KPointer { + console.log("_TextShadowStyle_getTextShadow") + return -1 + } _BackgroundColorStyle_ctor(thisArray: Uint8Array, thisLength: int32): KPointer { console.log("_BackgroundColorStyle_ctor") return -1 @@ -8663,9 +8693,9 @@ export class ArkUIGeneratedNativeModuleEmpty { console.log("_CustomSpan_getFinalizer") return -1 } - _CustomSpan_onMeasure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KPointer { + _CustomSpan_onMeasure(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): KInteropReturnBuffer { console.log("_CustomSpan_onMeasure") - return -1 + return new Uint8Array() } _CustomSpan_onDraw(ptr: KPointer, thisArray: Uint8Array, thisLength: int32): void { console.log("_CustomSpan_onDraw") @@ -8693,21 +8723,10 @@ export class ArkUIGeneratedNativeModuleEmpty { _LinearIndicatorController_stop(ptr: KPointer): void { console.log("_LinearIndicatorController_stop") } - _GlobalScope_inspector_getInspectorNodes(): KPointer { - console.log("_GlobalScope_inspector_getInspectorNodes") - return -1 - } - _GlobalScope_inspector_getInspectorNodeById(id: number): KPointer { - console.log("_GlobalScope_inspector_getInspectorNodeById") - return -1 - } - _GlobalScope_inspector_registerVsyncCallback(thisArray: Uint8Array, thisLength: int32): void { - console.log("_GlobalScope_inspector_registerVsyncCallback") - } - _GlobalScope_inspector_unregisterVsyncCallback(): void { - console.log("_GlobalScope_inspector_unregisterVsyncCallback") + _GlobalScope_Profiler_inspector_registerVsyncCallback(thisArray: Uint8Array, thisLength: int32): void { + console.log("_GlobalScope_Profiler_inspector_registerVsyncCallback") } - _GlobalScope_inspector_setAppBgColor(value: KStringPtr): void { - console.log("_GlobalScope_inspector_setAppBgColor") + _GlobalScope_Profiler_inspector_unregisterVsyncCallback(): void { + console.log("_GlobalScope_Profiler_inspector_unregisterVsyncCallback") } } \ No newline at end of file diff --git a/arkoala/arkui/src/ArkUiExtensionComponent.ts b/arkoala/arkui/src/generated/ArkUiExtensionComponent.ts similarity index 98% rename from arkoala/arkui/src/ArkUiExtensionComponent.ts rename to arkoala/arkui/src/generated/ArkUiExtensionComponent.ts index 33f40b0057d11638b84491b56c8d3d2424db2fc5..cc9f5a0b977d67b03c8087d1b5033af55e8ef22f 100644 --- a/arkoala/arkui/src/ArkUiExtensionComponent.ts +++ b/arkoala/arkui/src/generated/ArkUiExtensionComponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkUIExtensionComponentPeer } from "./peers/ArkUiExtensionComponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts b/arkoala/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts index cd0401d315d9719f776e83694a741ffcd5098aa1..cc88fe85156dae7a69b8facfdfabc51ec404f4b5 100644 --- a/arkoala/arkui/src/ArkUiExtensionComponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkUiExtensionComponentInterfaces.ts @@ -30,7 +30,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkUnifiedDataMaterialized.ts b/arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts similarity index 90% rename from arkoala/arkui/src/ArkUnifiedDataMaterialized.ts rename to arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts index 944a74b6e4a46c3c26d0eac98146e0055f8b1b04..df9f0d4ad5f43fc8b8878847fc3e94966f3a3007 100644 --- a/arkoala/arkui/src/ArkUnifiedDataMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUnifiedDataMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class UnifiedDataInternal { + public static fromPtr(ptr: KPointer): UnifiedData { + const obj: UnifiedData = new UnifiedData() + obj.peer = new Finalizable(ptr, UnifiedData.getFinalizer()) + return obj + } +} export class UnifiedData implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_unifieddata(): KPointer { const retval = ArkUIGeneratedNativeModule._UnifiedData_ctor() return retval } constructor() { - const ctorPtr: KPointer = UnifiedData.ctor() + const ctorPtr: KPointer = UnifiedData.ctor_unifieddata() this.peer = new Finalizable(ctorPtr, UnifiedData.getFinalizer()) } static getFinalizer(): KPointer { @@ -57,10 +62,3 @@ export class UnifiedData implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class UnifiedDataInternal { - public static fromPtr(ptr: KPointer): UnifiedData { - const obj: UnifiedData = new UnifiedData() - obj.peer = new Finalizable(ptr, UnifiedData.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkUnitsInterfaces.ts b/arkoala/arkui/src/generated/ArkUnitsInterfaces.ts similarity index 98% rename from arkoala/arkui/src/ArkUnitsInterfaces.ts rename to arkoala/arkui/src/generated/ArkUnitsInterfaces.ts index 0e53fb4285ddd447583b3a25b1830e6f8f6844b3..62d135914bf0f611de6082752afcd620a62e6c06 100644 --- a/arkoala/arkui/src/ArkUnitsInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkUnitsInterfaces.ts @@ -190,11 +190,11 @@ export interface TouchPoint { x: Dimension; y: Dimension; } -export interface DirectionalEdgesT { - start: T; - end: T; - top: T; - bottom: T; +export interface DirectionalEdgesT { + start: number; + end: number; + top: number; + bottom: number; } export interface DividerStyleOptions { strokeWidth?: LengthMetrics; diff --git a/arkoala/arkui/src/ArkUrlStyleMaterialized.ts b/arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts similarity index 87% rename from arkoala/arkui/src/ArkUrlStyleMaterialized.ts rename to arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts index d301475a16a80e3c17fb12715e349bb2e8b01c62..79bb73ee3d8c288baae6e0f8058ff0f6586f394d 100644 --- a/arkoala/arkui/src/ArkUrlStyleMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkUrlStyleMaterialized.ts @@ -16,15 +16,20 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class UrlStyleInternal { + public static fromPtr(ptr: KPointer): UrlStyle { + const obj: UrlStyle = new UrlStyle(undefined) + obj.peer = new Finalizable(ptr, UrlStyle.getFinalizer()) + return obj + } +} export class UrlStyle implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { @@ -33,14 +38,14 @@ export class UrlStyle implements MaterializedBase { get url(): string { return this.getUrl() } - static ctor(url: string): KPointer { + static ctor_urlstyle(url: string): KPointer { const retval = ArkUIGeneratedNativeModule._UrlStyle_ctor(url) return retval } constructor(url?: string) { - if (((url) !== (undefined))) + if ((url) !== (undefined)) { - const ctorPtr: KPointer = UrlStyle.ctor(url) + const ctorPtr: KPointer = UrlStyle.ctor_urlstyle(url) this.peer = new Finalizable(ctorPtr, UrlStyle.getFinalizer()) } } @@ -55,10 +60,3 @@ export class UrlStyle implements MaterializedBase { return retval } } -export class UrlStyleInternal { - public static fromPtr(ptr: KPointer): UrlStyle { - const obj: UrlStyle = new UrlStyle(undefined) - obj.peer = new Finalizable(ptr, UrlStyle.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkVideo.ts b/arkoala/arkui/src/generated/ArkVideo.ts similarity index 98% rename from arkoala/arkui/src/ArkVideo.ts rename to arkoala/arkui/src/generated/ArkVideo.ts index a81d8d7230573b32c772598856b7ab06cb664914..f7a53e9ee9ec197dda9522e7d6b45265b0cbec08 100644 --- a/arkoala/arkui/src/ArkVideo.ts +++ b/arkoala/arkui/src/generated/ArkVideo.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkVideoPeer } from "./peers/ArkVideoPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkVideoControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkVideoControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts index d474bf6839c11f9c365bc23ae5a1676d213a85f3..32c1a40002929cbee8fc086d1c8a0089b817c01f 100644 --- a/arkoala/arkui/src/ArkVideoControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkVideoControllerMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { SeekMode } from "./ArkVideoInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class VideoControllerInternal { + public static fromPtr(ptr: KPointer): VideoController { + const obj: VideoController = new VideoController() + obj.peer = new Finalizable(ptr, VideoController.getFinalizer()) + return obj + } +} export class VideoController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_videocontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._VideoController_ctor() return retval } constructor() { - const ctorPtr: KPointer = VideoController.ctor() + const ctorPtr: KPointer = VideoController.ctor_videocontroller() this.peer = new Finalizable(ctorPtr, VideoController.getFinalizer()) } static getFinalizer(): KPointer { @@ -54,11 +59,11 @@ export class VideoController implements MaterializedBase { public setCurrentTime(value: number, seekMode?: SeekMode): undefined { const value_type = runtimeType(value) const seekMode_type = runtimeType(seekMode) - if ((((RuntimeType.UNDEFINED == seekMode_type)))) { + if (RuntimeType.UNDEFINED == seekMode_type) { const value_casted = value as (number) return this.setCurrentTime0_serialize(value_casted) } - if ((((RuntimeType.NUMBER == seekMode_type)))) { + if (RuntimeType.NUMBER == seekMode_type) { const value_casted = value as (number) const seekMode_casted = seekMode as (SeekMode) return this.setCurrentTime1_serialize(value_casted, seekMode_casted) @@ -108,10 +113,3 @@ export class VideoController implements MaterializedBase { ArkUIGeneratedNativeModule._VideoController_reset(this.peer!.ptr) } } -export class VideoControllerInternal { - public static fromPtr(ptr: KPointer): VideoController { - const obj: VideoController = new VideoController() - obj.peer = new Finalizable(ptr, VideoController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkVideoInterfaces.ts b/arkoala/arkui/src/generated/ArkVideoInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkVideoInterfaces.ts rename to arkoala/arkui/src/generated/ArkVideoInterfaces.ts index 7e03fb3d2276613a59dae9d027a6d60eb8cb4bcd..9144d955fe5a6cc7dbebd330b61a5f1dc33b53af 100644 --- a/arkoala/arkui/src/ArkVideoInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkVideoInterfaces.ts @@ -33,7 +33,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" import { LengthUnit } from "./ArkArkuiExternalInterfaces" diff --git a/arkoala/arkui/src/ArkViewMaterialized.ts b/arkoala/arkui/src/generated/ArkViewMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkViewMaterialized.ts rename to arkoala/arkui/src/generated/ArkViewMaterialized.ts index 0ac2e2757a0c729e81e7acf06c80344c1edba47d..165e0bdb2b2c743194f9df015980bcd26188a82d 100644 --- a/arkoala/arkui/src/ArkViewMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkViewMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class ViewInternal { + public static fromPtr(ptr: KPointer): View { + const obj: View = new View() + obj.peer = new Finalizable(ptr, View.getFinalizer()) + return obj + } +} export class View implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_view(): KPointer { const retval = ArkUIGeneratedNativeModule._View_ctor() return retval } constructor() { - const ctorPtr: KPointer = View.ctor() + const ctorPtr: KPointer = View.ctor_view() this.peer = new Finalizable(ctorPtr, View.getFinalizer()) } static getFinalizer(): KPointer { @@ -53,10 +58,3 @@ export class View implements MaterializedBase { return retval } } -export class ViewInternal { - public static fromPtr(ptr: KPointer): View { - const obj: View = new View() - obj.peer = new Finalizable(ptr, View.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWaterFlow.ts b/arkoala/arkui/src/generated/ArkWaterFlow.ts similarity index 97% rename from arkoala/arkui/src/ArkWaterFlow.ts rename to arkoala/arkui/src/generated/ArkWaterFlow.ts index 544ef8ccb5671f19832bb7423e97f01bd44d23a2..21e2347f35acc590939d96354f6c0114bedbe8b8 100644 --- a/arkoala/arkui/src/ArkWaterFlow.ts +++ b/arkoala/arkui/src/generated/ArkWaterFlow.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkScrollableCommonMethodComponent } from "./ArkCommon" import { ArkWaterFlowPeer } from "./peers/ArkWaterFlowPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -157,12 +156,12 @@ export class ArkWaterFlowComponent extends ArkScrollableCommonMethodComponent { if (this.checkPriority("cachedCount")) { const count_type = runtimeType(count) const show_type = runtimeType(show) - if ((((RuntimeType.UNDEFINED == show_type)))) { + if (RuntimeType.UNDEFINED == show_type) { const value_casted = count as (number) this.getPeer()?.cachedCount0Attribute(value_casted) return this } - if ((((RuntimeType.BOOLEAN == show_type)))) { + if (RuntimeType.BOOLEAN == show_type) { const count_casted = count as (number) const show_casted = show as (boolean) this.getPeer()?.cachedCount1Attribute(count_casted, show_casted) diff --git a/arkoala/arkui/src/ArkWaterFlowInterfaces.ts b/arkoala/arkui/src/generated/ArkWaterFlowInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkWaterFlowInterfaces.ts rename to arkoala/arkui/src/generated/ArkWaterFlowInterfaces.ts index 85dbd38e25807f76e83e614451989da2421fffa4..f5286773935bf001cd4aa3048876e7a6236a9e52 100644 --- a/arkoala/arkui/src/ArkWaterFlowInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkWaterFlowInterfaces.ts @@ -34,7 +34,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts b/arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts rename to arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts index 3b6e1baec3176a7725104f982c1b44c43d52a10c..4253a9a2d5aafdd6cd8c717d39426510a9587679 100644 --- a/arkoala/arkui/src/ArkWaterFlowSectionsMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWaterFlowSectionsMaterialized.ts @@ -18,26 +18,31 @@ import { SectionOptions, GetItemMainSizeByIndex } from "./ArkWaterFlowInterfaces" import { Dimension, Margin } from "./ArkUnitsInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WaterFlowSectionsInternal { + public static fromPtr(ptr: KPointer): WaterFlowSections { + const obj: WaterFlowSections = new WaterFlowSections() + obj.peer = new Finalizable(ptr, WaterFlowSections.getFinalizer()) + return obj + } +} export class WaterFlowSections implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_waterflowsections(): KPointer { const retval = ArkUIGeneratedNativeModule._WaterFlowSections_ctor() return retval } constructor() { - const ctorPtr: KPointer = WaterFlowSections.ctor() + const ctorPtr: KPointer = WaterFlowSections.ctor_waterflowsections() this.peer = new Finalizable(ctorPtr, WaterFlowSections.getFinalizer()) } static getFinalizer(): KPointer { @@ -111,10 +116,3 @@ export class WaterFlowSections implements MaterializedBase { return retval } } -export class WaterFlowSectionsInternal { - public static fromPtr(ptr: KPointer): WaterFlowSections { - const obj: WaterFlowSections = new WaterFlowSections() - obj.peer = new Finalizable(ptr, WaterFlowSections.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWeb.ts b/arkoala/arkui/src/generated/ArkWeb.ts similarity index 99% rename from arkoala/arkui/src/ArkWeb.ts rename to arkoala/arkui/src/generated/ArkWeb.ts index 32f7c4edc4883b78b2f5c3684dcca0475efd8498..1fe2a9b52464951c838d9bee1379eeb3f6efc687 100644 --- a/arkoala/arkui/src/ArkWeb.ts +++ b/arkoala/arkui/src/generated/ArkWeb.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWebPeer } from "./peers/ArkWebPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -491,13 +490,13 @@ export class ArkWebComponent extends ArkCommonMethodComponent { public onRenderExited(value: ((parameter: OnRenderExitedEvent) => void) | ((event?: { detail: Object }) => boolean)): this { if (this.checkPriority("onRenderExited")) { const value_type = runtimeType(value) - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((parameter: OnRenderExitedEvent) => void)) UseEventsProperties({Web_onRenderExited0: value_casted}) this.getPeer()?.onRenderExited0Attribute(value_casted) return this } - if ((((RuntimeType.FUNCTION == value_type)))) { + if (RuntimeType.FUNCTION == value_type) { const value_casted = value as (((event?: { detail: Object }) => boolean)) UseEventsProperties({Web_onRenderExited1: value_casted}) this.getPeer()?.onRenderExited1Attribute(value_casted) diff --git a/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts b/arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts similarity index 95% rename from arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts index d3399a0c3c25d11c97c093c9d1f84a1d8e7c603b..25f2eaa2fac95165403b10aef2d1872c6dbf6375 100644 --- a/arkoala/arkui/src/ArkWebContextMenuParamMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebContextMenuParamMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebContextMenuParamInternal { + public static fromPtr(ptr: KPointer): WebContextMenuParam { + const obj: WebContextMenuParam = new WebContextMenuParam() + obj.peer = new Finalizable(ptr, WebContextMenuParam.getFinalizer()) + return obj + } +} export class WebContextMenuParam implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontextmenuparam(): KPointer { const retval = ArkUIGeneratedNativeModule._WebContextMenuParam_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebContextMenuParam.ctor() + const ctorPtr: KPointer = WebContextMenuParam.ctor_webcontextmenuparam() this.peer = new Finalizable(ctorPtr, WebContextMenuParam.getFinalizer()) } static getFinalizer(): KPointer { @@ -141,10 +146,3 @@ export class WebContextMenuParam implements MaterializedBase { return retval } } -export class WebContextMenuParamInternal { - public static fromPtr(ptr: KPointer): WebContextMenuParam { - const obj: WebContextMenuParam = new WebContextMenuParam() - obj.peer = new Finalizable(ptr, WebContextMenuParam.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts b/arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts index 361cbc1d2860fac6146659e72a511f77934293d0..059dc1a9f30858c806539149bd4fc5cb4dea5ecf 100644 --- a/arkoala/arkui/src/ArkWebContextMenuResultMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebContextMenuResultMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebContextMenuResultInternal { + public static fromPtr(ptr: KPointer): WebContextMenuResult { + const obj: WebContextMenuResult = new WebContextMenuResult() + obj.peer = new Finalizable(ptr, WebContextMenuResult.getFinalizer()) + return obj + } +} export class WebContextMenuResult implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontextmenuresult(): KPointer { const retval = ArkUIGeneratedNativeModule._WebContextMenuResult_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebContextMenuResult.ctor() + const ctorPtr: KPointer = WebContextMenuResult.ctor_webcontextmenuresult() this.peer = new Finalizable(ctorPtr, WebContextMenuResult.getFinalizer()) } static getFinalizer(): KPointer { @@ -84,10 +89,3 @@ export class WebContextMenuResult implements MaterializedBase { ArkUIGeneratedNativeModule._WebContextMenuResult_selectAll(this.peer!.ptr) } } -export class WebContextMenuResultInternal { - public static fromPtr(ptr: KPointer): WebContextMenuResult { - const obj: WebContextMenuResult = new WebContextMenuResult() - obj.peer = new Finalizable(ptr, WebContextMenuResult.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts similarity index 96% rename from arkoala/arkui/src/ArkWebControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts index 767bf0c64ec2414281964a3473cd8ca2d85cb8c7..70b43d038a631c73fb0fae992dada99af7d09ccb 100644 --- a/arkoala/arkui/src/ArkWebControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebControllerMaterialized.ts @@ -19,26 +19,31 @@ import { Resource } from "./ArkResourceInterfaces" import { Header, HitTestType } from "./ArkWebInterfaces" import { WebCookie, WebCookieInternal } from "./ArkWebCookieMaterialized" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebControllerInternal { + public static fromPtr(ptr: KPointer): WebController { + const obj: WebController = new WebController() + obj.peer = new Finalizable(ptr, WebController.getFinalizer()) + return obj + } +} export class WebController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebController_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebController.ctor() + const ctorPtr: KPointer = WebController.ctor_webcontroller() this.peer = new Finalizable(ctorPtr, WebController.getFinalizer()) } static getFinalizer(): KPointer { @@ -173,12 +178,12 @@ export class WebController implements MaterializedBase { const options_url = options.url let options_url_type: int32 = RuntimeType.UNDEFINED options_url_type = runtimeType(options_url) - if (((RuntimeType.STRING == options_url_type))) { + if (RuntimeType.STRING == options_url_type) { thisSerializer.writeInt8(0) const options_url_0 = unsafeCast(options_url) thisSerializer.writeString(options_url_0) } - else if (((RuntimeType.OBJECT == options_url_type))) { + else if (RuntimeType.OBJECT == options_url_type) { thisSerializer.writeInt8(1) const options_url_1 = unsafeCast(options_url) thisSerializer.writeResource(options_url_1) @@ -260,10 +265,3 @@ export class WebController implements MaterializedBase { throw new Error("Object deserialization is not implemented.") } } -export class WebControllerInternal { - public static fromPtr(ptr: KPointer): WebController { - const obj: WebController = new WebController() - obj.peer = new Finalizable(ptr, WebController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebCookieMaterialized.ts b/arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkWebCookieMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts index 18ec8d1b8e497994135b99d09ba38a03fb430828..a84e7baf02ea9290f7f9c263a9f11ff50f90a50f 100644 --- a/arkoala/arkui/src/ArkWebCookieMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebCookieMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebCookieInternal { + public static fromPtr(ptr: KPointer): WebCookie { + const obj: WebCookie = new WebCookie() + obj.peer = new Finalizable(ptr, WebCookie.getFinalizer()) + return obj + } +} export class WebCookie implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webcookie(): KPointer { const retval = ArkUIGeneratedNativeModule._WebCookie_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebCookie.ctor() + const ctorPtr: KPointer = WebCookie.ctor_webcookie() this.peer = new Finalizable(ctorPtr, WebCookie.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class WebCookie implements MaterializedBase { return retval } } -export class WebCookieInternal { - public static fromPtr(ptr: KPointer): WebCookie { - const obj: WebCookie = new WebCookie() - obj.peer = new Finalizable(ptr, WebCookie.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebInterfaces.ts b/arkoala/arkui/src/generated/ArkWebInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkWebInterfaces.ts rename to arkoala/arkui/src/generated/ArkWebInterfaces.ts index 074f92f8f6649f5bef5043c55e1cb8ccb0ce506c..96ff5148313ed17db897aa71e0be0526fce3945c 100644 --- a/arkoala/arkui/src/ArkWebInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkWebInterfaces.ts @@ -37,7 +37,7 @@ import { ResizableOptions, DrawingLattice } from "./ArkImageInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts index 9e8a3bd3b0927c818a607dc6829065dffc95867d..3e1bdb0d77531d0c0786567fb1ca48c77141e01a 100644 --- a/arkoala/arkui/src/ArkWebKeyboardControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebKeyboardControllerMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebKeyboardControllerInternal { + public static fromPtr(ptr: KPointer): WebKeyboardController { + const obj: WebKeyboardController = new WebKeyboardController() + obj.peer = new Finalizable(ptr, WebKeyboardController.getFinalizer()) + return obj + } +} export class WebKeyboardController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webkeyboardcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebKeyboardController_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebKeyboardController.ctor() + const ctorPtr: KPointer = WebKeyboardController.ctor_webkeyboardcontroller() this.peer = new Finalizable(ctorPtr, WebKeyboardController.getFinalizer()) } static getFinalizer(): KPointer { @@ -81,10 +86,3 @@ export class WebKeyboardController implements MaterializedBase { ArkUIGeneratedNativeModule._WebKeyboardController_close(this.peer!.ptr) } } -export class WebKeyboardControllerInternal { - public static fromPtr(ptr: KPointer): WebKeyboardController { - const obj: WebKeyboardController = new WebKeyboardController() - obj.peer = new Finalizable(ptr, WebKeyboardController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts b/arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts similarity index 89% rename from arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts index 3cf53e0efb3a3892a3aa422cc691a15e902b63ee..480e2e4a683a01d667af92e67c1519b124c0e576 100644 --- a/arkoala/arkui/src/ArkWebResourceErrorMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebResourceErrorMaterialized.ts @@ -16,26 +16,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebResourceErrorInternal { + public static fromPtr(ptr: KPointer): WebResourceError { + const obj: WebResourceError = new WebResourceError() + obj.peer = new Finalizable(ptr, WebResourceError.getFinalizer()) + return obj + } +} export class WebResourceError implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourceerror(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceError_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebResourceError.ctor() + const ctorPtr: KPointer = WebResourceError.ctor_webresourceerror() this.peer = new Finalizable(ctorPtr, WebResourceError.getFinalizer()) } static getFinalizer(): KPointer { @@ -56,10 +61,3 @@ export class WebResourceError implements MaterializedBase { return retval } } -export class WebResourceErrorInternal { - public static fromPtr(ptr: KPointer): WebResourceError { - const obj: WebResourceError = new WebResourceError() - obj.peer = new Finalizable(ptr, WebResourceError.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts b/arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts similarity index 92% rename from arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts index 62c02cf1caf0691813f4672d1bf1280761b564b5..939194eccf2e9f24b2234d433dddbcf2516dd8cf 100644 --- a/arkoala/arkui/src/ArkWebResourceRequestMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebResourceRequestMaterialized.ts @@ -17,26 +17,31 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { Header } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebResourceRequestInternal { + public static fromPtr(ptr: KPointer): WebResourceRequest { + const obj: WebResourceRequest = new WebResourceRequest() + obj.peer = new Finalizable(ptr, WebResourceRequest.getFinalizer()) + return obj + } +} export class WebResourceRequest implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourcerequest(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceRequest_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebResourceRequest.ctor() + const ctorPtr: KPointer = WebResourceRequest.ctor_webresourcerequest() this.peer = new Finalizable(ctorPtr, WebResourceRequest.getFinalizer()) } static getFinalizer(): KPointer { @@ -85,10 +90,3 @@ export class WebResourceRequest implements MaterializedBase { return retval } } -export class WebResourceRequestInternal { - public static fromPtr(ptr: KPointer): WebResourceRequest { - const obj: WebResourceRequest = new WebResourceRequest() - obj.peer = new Finalizable(ptr, WebResourceRequest.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts b/arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts index c953eb0cb1ea130d0547a8d349c37ba098e5246c..f6268026dd524de4ba05e39846062af35586ebbb 100644 --- a/arkoala/arkui/src/ArkWebResourceResponseMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebResourceResponseMaterialized.ts @@ -18,26 +18,31 @@ import { Resource } from "./ArkResourceInterfaces" import { Header } from "./ArkWebInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebResourceResponseInternal { + public static fromPtr(ptr: KPointer): WebResourceResponse { + const obj: WebResourceResponse = new WebResourceResponse() + obj.peer = new Finalizable(ptr, WebResourceResponse.getFinalizer()) + return obj + } +} export class WebResourceResponse implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webresourceresponse(): KPointer { const retval = ArkUIGeneratedNativeModule._WebResourceResponse_ctor() return retval } constructor() { - const ctorPtr: KPointer = WebResourceResponse.ctor() + const ctorPtr: KPointer = WebResourceResponse.ctor_webresourceresponse() this.peer = new Finalizable(ctorPtr, WebResourceResponse.getFinalizer()) } static getFinalizer(): KPointer { @@ -134,17 +139,17 @@ export class WebResourceResponse implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let data_type: int32 = RuntimeType.UNDEFINED data_type = runtimeType(data) - if (((RuntimeType.STRING == data_type))) { + if (RuntimeType.STRING == data_type) { thisSerializer.writeInt8(0) const data_0 = unsafeCast(data) thisSerializer.writeString(data_0) } - else if (((RuntimeType.NUMBER == data_type))) { + else if (RuntimeType.NUMBER == data_type) { thisSerializer.writeInt8(1) const data_1 = unsafeCast(data) thisSerializer.writeNumber(data_1) } - else if (((RuntimeType.OBJECT) == (data_type)) && (((data!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (data_type)) && ((data!.hasOwnProperty("bundleName")))) { thisSerializer.writeInt8(2) const data_2 = unsafeCast(data) thisSerializer.writeResource(data_2) @@ -187,10 +192,3 @@ export class WebResourceResponse implements MaterializedBase { return retval } } -export class WebResourceResponseInternal { - public static fromPtr(ptr: KPointer): WebResourceResponse { - const obj: WebResourceResponse = new WebResourceResponse() - obj.peer = new Finalizable(ptr, WebResourceResponse.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts similarity index 91% rename from arkoala/arkui/src/ArkWebviewControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts index e7b101d8a3cf26d7174056120a220ab17d832fce..e347085f5cb841a9fcb8bc06a31787ad20ab0fb6 100644 --- a/arkoala/arkui/src/ArkWebviewControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkWebviewControllerMaterialized.ts @@ -18,21 +18,26 @@ import { Resource } from "./ArkResourceInterfaces" import { WebHeader } from "./ArkArkuiExternalInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class WebviewControllerInternal { + public static fromPtr(ptr: KPointer): WebviewController { + const obj: WebviewController = new WebviewController() + obj.peer = new Finalizable(ptr, WebviewController.getFinalizer()) + return obj + } +} export class WebviewController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_webviewcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._WebviewController_ctor() return retval } @@ -40,7 +45,7 @@ export class WebviewController implements MaterializedBase { // Constructor does not have parameters. // It means that the static method call invokes ctor method as well // when all arguments are undefined. - const ctorPtr: KPointer = WebviewController.ctor() + const ctorPtr: KPointer = WebviewController.ctor_webviewcontroller() this.peer = new Finalizable(ctorPtr, WebviewController.getFinalizer()) } static getFinalizer(): KPointer { @@ -63,12 +68,12 @@ export class WebviewController implements MaterializedBase { const thisSerializer: Serializer = Serializer.hold() let url_type: int32 = RuntimeType.UNDEFINED url_type = runtimeType(url) - if (((RuntimeType.STRING == url_type))) { + if (RuntimeType.STRING == url_type) { thisSerializer.writeInt8(0) const url_0 = unsafeCast(url) thisSerializer.writeString(url_0) } - else if (((RuntimeType.OBJECT == url_type))) { + else if (RuntimeType.OBJECT == url_type) { thisSerializer.writeInt8(1) const url_1 = unsafeCast(url) thisSerializer.writeResource(url_1) @@ -88,10 +93,3 @@ export class WebviewController implements MaterializedBase { thisSerializer.release() } } -export class WebviewControllerInternal { - public static fromPtr(ptr: KPointer): WebviewController { - const obj: WebviewController = new WebviewController() - obj.peer = new Finalizable(ptr, WebviewController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkWindowScene.ts b/arkoala/arkui/src/generated/ArkWindowScene.ts similarity index 97% rename from arkoala/arkui/src/ArkWindowScene.ts rename to arkoala/arkui/src/generated/ArkWindowScene.ts index 82938b2cba22418956876f73381a9ec80f511203..fdfe8717458cc2d345c0df97d550e0ff63d4fa44 100644 --- a/arkoala/arkui/src/ArkWindowScene.ts +++ b/arkoala/arkui/src/generated/ArkWindowScene.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkWindowScenePeer } from "./peers/ArkWindowScenePeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./ArkCommonInterfaces" @@ -33,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkWindowSceneInterfaces.ts b/arkoala/arkui/src/generated/ArkWindowSceneInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkWindowSceneInterfaces.ts rename to arkoala/arkui/src/generated/ArkWindowSceneInterfaces.ts index 1445b24b290ebf5e2ecfc87b12ea22b3b60edaa3..95aa1c861bf9529e462cdf1833dd43a77e69c36a 100644 --- a/arkoala/arkui/src/ArkWindowSceneInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkWindowSceneInterfaces.ts @@ -29,7 +29,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/ArkWithThemeInterfaces.ts b/arkoala/arkui/src/generated/ArkWithThemeInterfaces.ts similarity index 100% rename from arkoala/arkui/src/ArkWithThemeInterfaces.ts rename to arkoala/arkui/src/generated/ArkWithThemeInterfaces.ts diff --git a/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts b/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts similarity index 94% rename from arkoala/arkui/src/ArkXComponentControllerMaterialized.ts rename to arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts index f4fbdf2f167d7e0664e7fcd573c6221e8a7bfe2d..925249690fd5f97ff1a378f25ba573eb34492394 100644 --- a/arkoala/arkui/src/ArkXComponentControllerMaterialized.ts +++ b/arkoala/arkui/src/generated/ArkXComponentControllerMaterialized.ts @@ -18,26 +18,31 @@ import { SurfaceRect, SurfaceRotationOptions } from "./ArkXcomponentInterfaces" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./ArkImageCommonInterfaces" -import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer } from "@koalaui/interop" -import { MaterializedBase } from "./MaterializedBase" +import { Finalizable, isResource, isInstanceOf, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, KPointer, MaterializedBase } from "@koalaui/interop" +import { unsafeCast, int32, float32 } from "@koalaui/common" import { Serializer } from "./peers/Serializer" -import { unsafeCast } from "./shared/generated-utils" import { CallbackKind } from "./peers/CallbackKind" -import { int32, float32 } from "@koalaui/common" import { Deserializer, createDeserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./peers/CallbackTransformer" import { ArkUIGeneratedNativeModule } from "./ArkUIGeneratedNativeModule" +export class XComponentControllerInternal { + public static fromPtr(ptr: KPointer): XComponentController { + const obj: XComponentController = new XComponentController() + obj.peer = new Finalizable(ptr, XComponentController.getFinalizer()) + return obj + } +} export class XComponentController implements MaterializedBase { peer?: Finalizable | undefined public getPeer(): Finalizable | undefined { return this.peer } - static ctor(): KPointer { + static ctor_xcomponentcontroller(): KPointer { const retval = ArkUIGeneratedNativeModule._XComponentController_ctor() return retval } constructor() { - const ctorPtr: KPointer = XComponentController.ctor() + const ctorPtr: KPointer = XComponentController.ctor_xcomponentcontroller() this.peer = new Finalizable(ctorPtr, XComponentController.getFinalizer()) } static getFinalizer(): KPointer { @@ -119,7 +124,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRect_serialize(): SurfaceRect { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRect(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readSurfaceRect() } private setXComponentSurfaceRotation_serialize(rotationOptions: SurfaceRotationOptions): void { const thisSerializer: Serializer = Serializer.hold() @@ -129,7 +134,7 @@ export class XComponentController implements MaterializedBase { } private getXComponentSurfaceRotation_serialize(): SurfaceRotationOptions { const retval = ArkUIGeneratedNativeModule._XComponentController_getXComponentSurfaceRotation(this.peer!.ptr) - throw new Error("Object deserialization is not implemented.") + return new Deserializer(retval.buffer, retval.byteLength).readSurfaceRotationOptions() } private onSurfaceCreated_serialize(surfaceId: string): void { ArkUIGeneratedNativeModule._XComponentController_onSurfaceCreated(this.peer!.ptr, surfaceId) @@ -155,10 +160,3 @@ export class XComponentController implements MaterializedBase { ArkUIGeneratedNativeModule._XComponentController_stopImageAnalyzer(this.peer!.ptr) } } -export class XComponentControllerInternal { - public static fromPtr(ptr: KPointer): XComponentController { - const obj: XComponentController = new XComponentController() - obj.peer = new Finalizable(ptr, XComponentController.getFinalizer()) - return obj - } -} diff --git a/arkoala/arkui/src/ArkXcomponent.ts b/arkoala/arkui/src/generated/ArkXcomponent.ts similarity index 95% rename from arkoala/arkui/src/ArkXcomponent.ts rename to arkoala/arkui/src/generated/ArkXcomponent.ts index 35b29d854e46a4504c1adfcc2020073ce95896e7..a8bbd24bcfb9c9ed51b52e5d27c870f8014c894d 100644 --- a/arkoala/arkui/src/ArkXcomponent.ts +++ b/arkoala/arkui/src/generated/ArkXcomponent.ts @@ -16,11 +16,10 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! -import { int32, float32 } from "@koalaui/common" +import { int32, float32, unsafeCast } from "@koalaui/common" import { KStringPtr, KBoolean, RuntimeType, runtimeType, isResource, isInstanceOf } from "@koalaui/interop" import { NodeAttach, remember } from "@koalaui/runtime" -import { ComponentBase } from "./ComponentBase" -import { unsafeCast } from "./shared/generated-utils" +import { ComponentBase } from "./../ComponentBase" import { ArkCommonMethodComponent } from "./ArkCommon" import { ArkXComponentPeer } from "./peers/ArkXcomponentPeer" import { UseEventsProperties } from "./use_properties" @@ -34,7 +33,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" @@ -65,17 +64,17 @@ export class ArkXComponentComponent extends ArkCommonMethodComponent { public setXComponentOptions(value: { id: string, type: string, libraryname?: string, controller?: XComponentController } | XComponentOptions): this { if (this.checkPriority("setXComponentOptions")) { const value_type = runtimeType(value) - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as ({ id: string, type: string, libraryname?: string, controller?: XComponentController }) this.getPeer()?.setXComponentOptions0Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT == value_type)))) { + if (RuntimeType.OBJECT == value_type) { const value_casted = value as ({ id: string, type: string, libraryname?: string, controller?: XComponentController }) this.getPeer()?.setXComponentOptions1Attribute(value_casted) return this } - if ((((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("imageAIOptions")))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("imageAIOptions")))) { const options_casted = value as (XComponentOptions) this.getPeer()?.setXComponentOptions2Attribute(options_casted) return this diff --git a/arkoala/arkui/src/ArkXcomponentInterfaces.ts b/arkoala/arkui/src/generated/ArkXcomponentInterfaces.ts similarity index 99% rename from arkoala/arkui/src/ArkXcomponentInterfaces.ts rename to arkoala/arkui/src/generated/ArkXcomponentInterfaces.ts index 0599708969d0b0b0e2dd8861ef0fa80a39fc4849..c5bdc864409ae22450fd0cc4f9b7de93ca5f3106 100644 --- a/arkoala/arkui/src/ArkXcomponentInterfaces.ts +++ b/arkoala/arkui/src/generated/ArkXcomponentInterfaces.ts @@ -32,7 +32,7 @@ import { Resource } from "./ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./ArkFocusInterfaces" import { TransitionEffect } from "./ArkTransitionEffectMaterialized" import { ProgressMask } from "./ArkProgressMaskMaterialized" -import { AttributeModifier } from "./handwritten" +import { AttributeModifier } from "./../handwritten" import { GestureModifier } from "./ArkGestureModifierMaterialized" import { PixelMap } from "./ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./ArkGestureInterfaces" diff --git a/arkoala/arkui/src/generated/EnumsImpl.ts b/arkoala/arkui/src/generated/EnumsImpl.ts new file mode 100644 index 0000000000000000000000000000000000000000..5dae340fdec6a9e176524d802db5710bad640674 --- /dev/null +++ b/arkoala/arkui/src/generated/EnumsImpl.ts @@ -0,0 +1,2415 @@ +import { int32, float32 } from "@koalaui/common" +export enum PointerStyle { + DEFAULT, + EAST = 1, + WEST = 2, + SOUTH = 3, + NORTH = 4, + WEST_EAST = 5, + NORTH_SOUTH = 6, + NORTH_EAST = 7, + NORTH_WEST = 8, + SOUTH_EAST = 9, + SOUTH_WEST = 10, + NORTH_EAST_SOUTH_WEST = 11, + NORTH_WEST_SOUTH_EAST = 12, + CROSS = 13, + CURSOR_COPY = 14, + CURSOR_FORBID = 15, + COLOR_SUCKER = 16, + HAND_GRABBING = 17, + HAND_OPEN = 18, + HAND_POINTING = 19, + HELP = 20, + MOVE = 21, + RESIZE_LEFT_RIGHT = 22, + RESIZE_UP_DOWN = 23, + SCREENSHOT_CHOOSE = 24, + SCREENSHOT_CURSOR = 25, + TEXT_CURSOR = 26, + ZOOM_IN = 27, + ZOOM_OUT = 28, + MIDDLE_BTN_EAST = 29, + MIDDLE_BTN_WEST = 30, + MIDDLE_BTN_SOUTH = 31, + MIDDLE_BTN_NORTH = 32, + MIDDLE_BTN_NORTH_SOUTH = 33, + MIDDLE_BTN_NORTH_EAST = 34, + MIDDLE_BTN_NORTH_WEST = 35, + MIDDLE_BTN_SOUTH_EAST = 36, + MIDDLE_BTN_SOUTH_WEST = 37, + MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, + HORIZONTAL_TEXT_CURSOR = 39, + CURSOR_CROSS = 40, + CURSOR_CIRCLE = 41, + LOADING = 42, + RUNNING = 43, +} +export enum RectWidthStyle { + TIGHT, + MAX = 1, +} +export enum RectHeightStyle { + TIGHT, + MAX = 1, + INCLUDE_LINE_SPACE_MIDDLE = 2, + INCLUDE_LINE_SPACE_TOP = 3, + INCLUDE_LINE_SPACE_BOTTOM = 4, + STRUT = 5, +} +export enum LengthUnit { + PX, + VP = 1, + FP = 2, + PERCENT = 3, + LPX = 4, +} +export enum PerfMonitorActionType { + LAST_DOWN, + LAST_UP = 1, + FIRST_MOVE = 2, +} +export enum PerfMonitorSourceType { + PERF_TOUCH_EVENT, + PERF_MOUSE_EVENT = 1, + PERF_TOUCHPAD_EVENT = 2, + PERF_JOYSTICK_EVENT = 3, + PERF_KEY_EVENT = 4, +} +export enum DialogAlignment { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, + DEFAULT = 3, + Default = DEFAULT, + TOP_START = 4, + TopStart = TOP_START, + TOP_END = 5, + TopEnd = TOP_END, + CENTER_START = 6, + CenterStart = CENTER_START, + CENTER_END = 7, + CenterEnd = CENTER_END, + BOTTOM_START = 8, + BottomStart = BOTTOM_START, + BOTTOM_END = 9, + BottomEnd = BOTTOM_END, +} +export enum DialogButtonDirection { + AUTO, + HORIZONTAL = 1, + VERTICAL = 2, +} +export enum IndexerAlign { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + START = 2, + END = 3, +} +export enum BadgePosition { + RIGHT_TOP, + RightTop = RIGHT_TOP, + RIGHT = 1, + Right = RIGHT, + LEFT = 2, + Left = LEFT, +} +export enum ButtonType { + CAPSULE, + Capsule = CAPSULE, + CIRCLE = 1, + Circle = CIRCLE, + NORMAL = 2, + Normal = NORMAL, + ROUNDED_RECTANGLE = 3, +} +export enum ButtonStyleMode { + NORMAL, + EMPHASIZED = 1, + TEXTUAL = 2, +} +export enum ButtonRole { + NORMAL, + ERROR = 1, +} +export enum ControlSize { + SMALL = "small", + NORMAL = "normal", +} +export enum CalendarAlign { + START, + CENTER = 1, + END = 2, +} +export enum SelectStatus { + ALL, + All = ALL, + PART = 1, + Part = PART, + NONE = 2, + None = NONE, +} +export enum FinishCallbackType { + REMOVED, + LOGICALLY = 1, +} +export enum TouchTestStrategy { + DEFAULT, + FORWARD_COMPETITION = 1, + FORWARD = 2, +} +export enum TransitionHierarchyStrategy { + NONE, + ADAPTIVE = 1, +} +export enum ChainStyle { + SPREAD, + SPREAD_INSIDE = 1, + PACKED = 2, +} +export enum TransitionEdge { + TOP, + BOTTOM = 1, + START = 2, + END = 3, +} +export enum EffectType { + DEFAULT, + WINDOW_EFFECT = 1, +} +export enum PreDragStatus { + ACTION_DETECTING_STATUS, + READY_TO_TRIGGER_DRAG_ACTION = 1, + PREVIEW_LIFT_STARTED = 2, + PREVIEW_LIFT_FINISHED = 3, + PREVIEW_LANDING_STARTED = 4, + PREVIEW_LANDING_FINISHED = 5, + ACTION_CANCELED_BEFORE_DRAG = 6, +} +export enum SourceType { + UNKNOWN, + Unknown = UNKNOWN, + MOUSE = 1, + Mouse = MOUSE, + TOUCH_SCREEN = 2, + TouchScreen = TOUCH_SCREEN, +} +export enum SourceTool { + UNKNOWN, + Unknown = UNKNOWN, + FINGER = 1, + Finger = FINGER, + PEN = 2, + Pen = PEN, + MOUSE = 3, + TOUCHPAD = 4, + JOYSTICK = 5, +} +export enum RepeatMode { + REPEAT, + Repeat = REPEAT, + STRETCH = 1, + Stretch = STRETCH, + ROUND = 2, + Round = ROUND, + SPACE = 3, + Space = SPACE, +} +export enum BlurStyle { + THIN, + Thin = THIN, + REGULAR = 1, + Regular = REGULAR, + THICK = 2, + Thick = THICK, + BACKGROUND_THIN = 3, + BACKGROUND_REGULAR = 4, + BACKGROUND_THICK = 5, + BACKGROUND_ULTRA_THICK = 6, + NONE = 7, + COMPONENT_ULTRA_THIN = 8, + COMPONENT_THIN = 9, + COMPONENT_REGULAR = 10, + COMPONENT_THICK = 11, + COMPONENT_ULTRA_THICK = 12, +} +export enum BlurStyleActivePolicy { + FOLLOWS_WINDOW_ACTIVE_STATE, + ALWAYS_ACTIVE = 1, + ALWAYS_INACTIVE = 2, +} +export enum ThemeColorMode { + SYSTEM, + LIGHT = 1, + DARK = 2, +} +export enum AdaptiveColor { + DEFAULT, + AVERAGE = 1, +} +export enum ModalTransition { + DEFAULT, + NONE = 1, + ALPHA = 2, +} +export enum ShadowType { + COLOR, + BLUR = 1, +} +export enum ShadowStyle { + OUTER_DEFAULT_XS, + OUTER_DEFAULT_SM = 1, + OUTER_DEFAULT_MD = 2, + OUTER_DEFAULT_LG = 3, + OUTER_FLOATING_SM = 4, + OUTER_FLOATING_MD = 5, +} +export enum SafeAreaType { + SYSTEM, + CUTOUT = 1, + KEYBOARD = 2, +} +export enum SafeAreaEdge { + TOP, + BOTTOM = 1, + START = 2, + END = 3, +} +export enum LayoutSafeAreaType { + SYSTEM, +} +export enum LayoutSafeAreaEdge { + TOP, + BOTTOM = 1, +} +export enum SheetSize { + MEDIUM, + LARGE = 1, + FIT_CONTENT = 2, +} +export enum DragBehavior { + COPY, + MOVE = 1, +} +export enum DragResult { + DRAG_SUCCESSFUL, + DRAG_FAILED = 1, + DRAG_CANCELED = 2, + DROP_ENABLED = 3, + DROP_DISABLED = 4, +} +export enum BlendMode { + NONE, + CLEAR = 1, + SRC = 2, + DST = 3, + SRC_OVER = 4, + DST_OVER = 5, + SRC_IN = 6, + DST_IN = 7, + SRC_OUT = 8, + DST_OUT = 9, + SRC_ATOP = 10, + DST_ATOP = 11, + XOR = 12, + PLUS = 13, + MODULATE = 14, + SCREEN = 15, + OVERLAY = 16, + DARKEN = 17, + LIGHTEN = 18, + COLOR_DODGE = 19, + COLOR_BURN = 20, + HARD_LIGHT = 21, + SOFT_LIGHT = 22, + DIFFERENCE = 23, + EXCLUSION = 24, + MULTIPLY = 25, + HUE = 26, + SATURATION = 27, + COLOR = 28, + LUMINOSITY = 29, +} +export enum BlendApplyType { + FAST, + OFFSCREEN = 1, +} +export enum SheetType { + BOTTOM, + CENTER = 1, + POPUP = 2, +} +export enum SheetMode { + OVERLAY, + EMBEDDED = 1, +} +export enum ScrollSizeMode { + FOLLOW_DETENT, + CONTINUOUS = 1, +} +export enum SheetKeyboardAvoidMode { + NONE, + TRANSLATE_AND_RESIZE = 1, + RESIZE_ONLY = 2, + TRANSLATE_AND_SCROLL = 3, +} +export enum DismissReason { + PRESS_BACK, + TOUCH_OUTSIDE = 1, + CLOSE_BUTTON = 2, + SLIDE_DOWN = 3, +} +export enum MenuPreviewMode { + NONE, + IMAGE = 1, +} +export enum OutlineStyle { + SOLID, + DASHED = 1, + DOTTED = 2, +} +export enum DragPreviewMode { + AUTO = 1, + DISABLE_SCALE = 2, + ENABLE_DEFAULT_SHADOW = 3, + ENABLE_DEFAULT_RADIUS = 4, +} +export enum MenuPolicy { + DEFAULT, + HIDE = 1, + SHOW = 2, +} +export enum ContentClipMode { + CONTENT_ONLY, + BOUNDARY = 1, + SAFE_AREA = 2, +} +export enum KeyboardAvoidMode { + DEFAULT, + NONE = 1, +} +export enum HoverModeAreaType { + TOP_SCREEN, + BOTTOM_SCREEN = 1, +} +export enum ModelType { + TEXTURE, + SURFACE = 1, +} +export enum DataPanelType { + LINE, + Line = LINE, + CIRCLE = 1, + Circle = CIRCLE, +} +export enum CheckBoxShape { + CIRCLE, + ROUNDED_SQUARE = 1, +} +export enum Color { + WHITE, + White = WHITE, + BLACK = 1, + Black = BLACK, + BLUE = 2, + Blue = BLUE, + BROWN = 3, + Brown = BROWN, + GRAY = 4, + Gray = GRAY, + GREEN = 5, + Green = GREEN, + GREY = 6, + Grey = GREY, + ORANGE = 7, + Orange = ORANGE, + PINK = 8, + Pink = PINK, + RED = 9, + Red = RED, + YELLOW = 10, + Yellow = YELLOW, + TRANSPARENT = 11, + Transparent = TRANSPARENT, +} +export enum ColoringStrategy { + INVERT = "invert", + AVERAGE = "average", + PRIMARY = "primary", +} +export enum ImageFit { + CONTAIN, + Contain = CONTAIN, + COVER = 1, + Cover = COVER, + AUTO = 2, + Auto = AUTO, + FILL = 3, + Fill = FILL, + SCALE_DOWN = 4, + ScaleDown = SCALE_DOWN, + NONE = 5, + None = NONE, + TOP_START = 7, + TOP = 8, + TOP_END = 9, + START = 10, + CENTER = 11, + END = 12, + BOTTOM_START = 13, + BOTTOM = 14, + BOTTOM_END = 15, +} +export enum BorderStyle { + DOTTED, + Dotted = DOTTED, + DASHED = 1, + Dashed = DASHED, + SOLID = 2, + Solid = SOLID, +} +export enum LineJoinStyle { + MITER, + Miter = MITER, + ROUND = 1, + Round = ROUND, + BEVEL = 2, + Bevel = BEVEL, +} +export enum TouchType { + DOWN, + Down = DOWN, + UP = 1, + Up = UP, + MOVE = 2, + Move = MOVE, + CANCEL = 3, + Cancel = CANCEL, +} +export enum MouseButton { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + MIDDLE = 2, + Middle = MIDDLE, + BACK = 3, + Back = BACK, + FORWARD = 4, + Forward = FORWARD, + NONE = 5, + None = NONE, +} +export enum MouseAction { + PRESS, + Press = PRESS, + RELEASE = 1, + Release = RELEASE, + MOVE = 2, + Move = MOVE, + HOVER = 3, + Hover = HOVER, +} +export enum AnimationStatus { + INITIAL, + Initial = INITIAL, + RUNNING = 1, + Running = RUNNING, + PAUSED = 2, + Paused = PAUSED, + STOPPED = 3, + Stopped = STOPPED, +} +export enum Curve { + LINEAR, + Linear = LINEAR, + EASE = 1, + Ease = EASE, + EASE_IN = 2, + EaseIn = EASE_IN, + EASE_OUT = 3, + EaseOut = EASE_OUT, + EASE_IN_OUT = 4, + EaseInOut = EASE_IN_OUT, + FAST_OUT_SLOW_IN = 5, + FastOutSlowIn = FAST_OUT_SLOW_IN, + LINEAR_OUT_SLOW_IN = 6, + LinearOutSlowIn = LINEAR_OUT_SLOW_IN, + FAST_OUT_LINEAR_IN = 7, + FastOutLinearIn = FAST_OUT_LINEAR_IN, + EXTREME_DECELERATION = 8, + ExtremeDeceleration = EXTREME_DECELERATION, + SHARP = 9, + Sharp = SHARP, + RHYTHM = 10, + Rhythm = RHYTHM, + SMOOTH = 11, + Smooth = SMOOTH, + FRICTION = 12, + Friction = FRICTION, +} +export enum FillMode { + NONE, + None = NONE, + FORWARDS = 1, + Forwards = FORWARDS, + BACKWARDS = 2, + Backwards = BACKWARDS, + BOTH = 3, + Both = BOTH, +} +export enum PlayMode { + NORMAL, + Normal = NORMAL, + REVERSE = 1, + Reverse = REVERSE, + ALTERNATE = 2, + Alternate = ALTERNATE, + ALTERNATE_REVERSE = 3, + AlternateReverse = ALTERNATE_REVERSE, +} +export enum KeyType { + DOWN, + Down = DOWN, + UP = 1, + Up = UP, +} +export enum KeySource { + UNKNOWN, + Unknown = UNKNOWN, + KEYBOARD = 1, + Keyboard = KEYBOARD, +} +export enum Edge { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, + BASELINE = 3, + Baseline = BASELINE, + START = 4, + Start = START, + MIDDLE = 5, + Middle = MIDDLE, + END = 6, + End = END, +} +export enum Week { + MON, + Mon = MON, + TUE = 1, + Tue = TUE, + WED = 2, + Wed = WED, + THUR = 3, + Thur = THUR, + FRI = 4, + Fri = FRI, + SAT = 5, + Sat = SAT, + SUN = 6, + Sun = SUN, +} +export enum Direction { + LTR, + Ltr = LTR, + RTL = 1, + Rtl = RTL, + AUTO = 2, + Auto = AUTO, +} +export enum BarState { + OFF, + Off = OFF, + AUTO = 1, + Auto = AUTO, + ON = 2, + On = ON, +} +export enum EdgeEffect { + SPRING, + Spring = SPRING, + FADE = 1, + Fade = FADE, + NONE = 2, + None = NONE, +} +export enum Alignment { + TOP_START, + TopStart = TOP_START, + TOP = 1, + Top = TOP, + TOP_END = 2, + TopEnd = TOP_END, + START = 3, + Start = START, + CENTER = 4, + Center = CENTER, + END = 5, + End = END, + BOTTOM_START = 6, + BottomStart = BOTTOM_START, + BOTTOM = 7, + Bottom = BOTTOM, + BOTTOM_END = 8, + BottomEnd = BOTTOM_END, +} +export enum TransitionType { + ALL, + All = ALL, + INSERT = 1, + Insert = INSERT, + DELETE = 2, + Delete = DELETE, +} +export enum RelateType { + FILL, + FIT = 1, +} +export enum Visibility { + VISIBLE, + Visible = VISIBLE, + HIDDEN = 1, + Hidden = HIDDEN, + NONE = 2, + None = NONE, +} +export enum LineCapStyle { + BUTT, + Butt = BUTT, + ROUND = 1, + Round = ROUND, + SQUARE = 2, + Square = SQUARE, +} +export enum Axis { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, +} +export enum HorizontalAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, +} +export enum FlexAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, + SPACE_BETWEEN = 3, + SpaceBetween = SPACE_BETWEEN, + SPACE_AROUND = 4, + SpaceAround = SPACE_AROUND, + SPACE_EVENLY = 5, + SpaceEvenly = SPACE_EVENLY, +} +export enum ItemAlign { + AUTO, + Auto = AUTO, + START = 1, + Start = START, + CENTER = 2, + Center = CENTER, + END = 3, + End = END, + BASELINE = 4, + Baseline = BASELINE, + STRETCH = 5, + Stretch = STRETCH, +} +export enum FlexDirection { + ROW, + Row = ROW, + COLUMN = 1, + Column = COLUMN, + ROW_REVERSE = 2, + RowReverse = ROW_REVERSE, + COLUMN_REVERSE = 3, + ColumnReverse = COLUMN_REVERSE, +} +export enum PixelRoundCalcPolicy { + NO_FORCE_ROUND, + FORCE_CEIL = 1, + FORCE_FLOOR = 2, +} +export enum FlexWrap { + NO_WRAP, + NoWrap = NO_WRAP, + WRAP = 1, + Wrap = WRAP, + WRAP_REVERSE = 2, + WrapReverse = WRAP_REVERSE, +} +export enum VerticalAlign { + TOP, + Top = TOP, + CENTER = 1, + Center = CENTER, + BOTTOM = 2, + Bottom = BOTTOM, +} +export enum ImageRepeat { + NO_REPEAT, + NoRepeat = NO_REPEAT, + X = 1, + Y = 2, + XY = 3, +} +export enum ImageSize { + AUTO, + Auto = AUTO, + COVER = 1, + Cover = COVER, + CONTAIN = 2, + Contain = CONTAIN, + FILL = 3, +} +export enum GradientDirection { + LEFT, + Left = LEFT, + TOP = 1, + Top = TOP, + RIGHT = 2, + Right = RIGHT, + BOTTOM = 3, + Bottom = BOTTOM, + LEFT_TOP = 4, + LeftTop = LEFT_TOP, + LEFT_BOTTOM = 5, + LeftBottom = LEFT_BOTTOM, + RIGHT_TOP = 6, + RightTop = RIGHT_TOP, + RIGHT_BOTTOM = 7, + RightBottom = RIGHT_BOTTOM, + NONE = 8, + None = NONE, +} +export enum SharedTransitionEffectType { + STATIC, + Static = STATIC, + EXCHANGE = 1, + Exchange = EXCHANGE, +} +export enum FontStyle { + NORMAL, + Normal = NORMAL, + ITALIC = 1, + Italic = ITALIC, +} +export enum FontWeight { + LIGHTER, + Lighter = LIGHTER, + NORMAL = 1, + Normal = NORMAL, + REGULAR = 2, + Regular = REGULAR, + MEDIUM = 3, + Medium = MEDIUM, + BOLD = 4, + Bold = BOLD, + BOLDER = 5, + Bolder = BOLDER, +} +export enum TextAlign { + CENTER, + Center = CENTER, + START = 1, + Start = START, + END = 2, + End = END, + JUSTIFY = 3, +} +export enum TextOverflow { + NONE, + None = NONE, + CLIP = 1, + Clip = CLIP, + ELLIPSIS = 2, + Ellipsis = ELLIPSIS, + MARQUEE = 3, +} +export enum TextDecorationType { + NONE, + None = NONE, + UNDERLINE = 1, + Underline = UNDERLINE, + OVERLINE = 2, + Overline = OVERLINE, + LINE_THROUGH = 3, + LineThrough = LINE_THROUGH, +} +export enum TextCase { + NORMAL, + Normal = NORMAL, + LOWER_CASE = 1, + LowerCase = LOWER_CASE, + UPPER_CASE = 2, + UpperCase = UPPER_CASE, +} +export enum TextHeightAdaptivePolicy { + MAX_LINES_FIRST, + MIN_FONT_SIZE_FIRST = 1, + LAYOUT_CONSTRAINT_FIRST = 2, +} +export enum ResponseType { + RIGHT_CLICK, + RightClick = RIGHT_CLICK, + LONG_PRESS = 1, + LongPress = LONG_PRESS, +} +export enum HoverEffect { + AUTO, + Auto = AUTO, + SCALE = 1, + Scale = SCALE, + HIGHLIGHT = 2, + Highlight = HIGHLIGHT, + NONE = 3, + None = NONE, +} +export enum Placement { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + TOP = 2, + Top = TOP, + BOTTOM = 3, + Bottom = BOTTOM, + TOP_LEFT = 4, + TopLeft = TOP_LEFT, + TOP_RIGHT = 5, + TopRight = TOP_RIGHT, + BOTTOM_LEFT = 6, + BottomLeft = BOTTOM_LEFT, + BOTTOM_RIGHT = 7, + BottomRight = BOTTOM_RIGHT, + LEFT_TOP = 8, + LeftTop = LEFT_TOP, + LEFT_BOTTOM = 9, + LeftBottom = LEFT_BOTTOM, + RIGHT_TOP = 10, + RightTop = RIGHT_TOP, + RIGHT_BOTTOM = 11, + RightBottom = RIGHT_BOTTOM, +} +export enum ArrowPointPosition { + START = "Start", + CENTER = "Center", + END = "End", +} +export enum CopyOptions { + NONE, + None = NONE, + IN_APP = 1, + InApp = IN_APP, + LOCAL_DEVICE = 2, + LocalDevice = LOCAL_DEVICE, + CROSS_DEVICE = 3, +} +export enum HitTestMode { + DEFAULT, + Default = DEFAULT, + BLOCK = 1, + Block = BLOCK, + TRANSPARENT = 2, + Transparent = TRANSPARENT, + NONE = 3, + None = NONE, +} +export enum TitleHeight { + MAIN_ONLY, + MainOnly = MAIN_ONLY, + MAIN_WITH_SUB = 1, + MainWithSub = MAIN_WITH_SUB, +} +export enum ModifierKey { + CTRL, + SHIFT = 1, + ALT = 2, +} +export enum FunctionKey { + ESC, + F1 = 1, + F2 = 2, + F3 = 3, + F4 = 4, + F5 = 5, + F6 = 6, + F7 = 7, + F8 = 8, + F9 = 9, + F10 = 10, + F11 = 11, + F12 = 12, + TAB = 13, + DPAD_UP = 14, + DPAD_DOWN = 15, + DPAD_LEFT = 16, + DPAD_RIGHT = 17, +} +export enum ImageSpanAlignment { + BASELINE, + BOTTOM = 1, + CENTER = 2, + TOP = 3, +} +export enum ObscuredReasons { + PLACEHOLDER, +} +export enum TextContentStyle { + DEFAULT, + INLINE = 1, +} +export enum ClickEffectLevel { + LIGHT, + MIDDLE = 1, + HEAVY = 2, +} +export enum XComponentType { + SURFACE, + COMPONENT = 1, + TEXTURE = 2, + NODE = 3, +} +export enum NestedScrollMode { + SELF_ONLY, + SELF_FIRST = 1, + PARENT_FIRST = 2, + PARALLEL = 3, +} +export enum ScrollSource { + DRAG, + FLING = 1, + EDGE_EFFECT = 2, + OTHER_USER_INPUT = 3, + SCROLL_BAR = 4, + SCROLL_BAR_FLING = 5, + SCROLLER = 6, + SCROLLER_ANIMATION = 7, +} +export enum RenderFit { + CENTER, + TOP = 1, + BOTTOM = 2, + LEFT = 3, + RIGHT = 4, + TOP_LEFT = 5, + TOP_RIGHT = 6, + BOTTOM_LEFT = 7, + BOTTOM_RIGHT = 8, + RESIZE_FILL = 9, + RESIZE_CONTAIN = 10, + RESIZE_CONTAIN_TOP_LEFT = 11, + RESIZE_CONTAIN_BOTTOM_RIGHT = 12, + RESIZE_COVER = 13, + RESIZE_COVER_TOP_LEFT = 14, + RESIZE_COVER_BOTTOM_RIGHT = 15, +} +export enum DialogButtonStyle { + DEFAULT, + HIGHLIGHT = 1, +} +export enum WordBreak { + NORMAL, + BREAK_ALL = 1, + BREAK_WORD = 2, +} +export enum LineBreakStrategy { + GREEDY, + HIGH_QUALITY = 1, + BALANCED = 2, +} +export enum EllipsisMode { + START, + CENTER = 1, + END = 2, +} +export enum OptionWidthMode { + FIT_CONTENT = "fit_content", + FIT_TRIGGER = "fit_trigger", +} +export enum IlluminatedType { + NONE, + BORDER = 1, + CONTENT = 2, + BORDER_CONTENT = 3, + BLOOM_BORDER = 4, + BLOOM_BORDER_CONTENT = 5, +} +export enum FoldStatus { + FOLD_STATUS_UNKNOWN, + FOLD_STATUS_EXPANDED = 1, + FOLD_STATUS_FOLDED = 2, + FOLD_STATUS_HALF_FOLDED = 3, +} +export enum AppRotation { + ROTATION_0, + ROTATION_90 = 1, + ROTATION_180 = 2, + ROTATION_270 = 3, +} +export enum EmbeddedType { + EMBEDDED_UI_EXTENSION, +} +export enum MarqueeUpdateStrategy { + DEFAULT, + PRESERVE_POSITION = 1, +} +export enum TextDecorationStyle { + SOLID, + DOUBLE = 1, + DOTTED = 2, + DASHED = 3, + WAVY = 4, +} +export enum TextSelectableMode { + SELECTABLE_UNFOCUSABLE, + SELECTABLE_FOCUSABLE = 1, + UNSELECTABLE = 2, +} +export enum AccessibilityHoverType { + HOVER_ENTER, + HOVER_MOVE = 1, + HOVER_EXIT = 2, + HOVER_CANCEL = 3, +} +export enum WidthBreakpoint { + WIDTH_XS, + WIDTH_SM = 1, + WIDTH_MD = 2, + WIDTH_LG = 3, + WIDTH_XL = 4, +} +export enum HeightBreakpoint { + HEIGHT_SM, + HEIGHT_MD = 1, + HEIGHT_LG = 2, +} +export enum FocusPriority { + AUTO, + PRIOR = 2000, + PREVIOUS = 3000, +} +export enum FormDimension { + DIMENSION_1_2, + Dimension_1_2 = DIMENSION_1_2, + DIMENSION_2_2 = 1, + Dimension_2_2 = DIMENSION_2_2, + DIMENSION_2_4 = 2, + Dimension_2_4 = DIMENSION_2_4, + DIMENSION_4_4 = 3, + Dimension_4_4 = DIMENSION_4_4, + DIMENSION_2_1 = 4, + Dimension_2_1 = DIMENSION_2_1, + DIMENSION_1_1 = 6, + DIMENSION_6_4 = 7, +} +export enum FormRenderingMode { + FULL_COLOR, + SINGLE_COLOR = 1, +} +export enum FormShape { + RECT = 1, + CIRCLE = 2, +} +export enum PanDirection { + NONE, + None = NONE, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + LEFT = 2, + Left = LEFT, + RIGHT = 3, + Right = RIGHT, + VERTICAL = 4, + Vertical = VERTICAL, + UP = 5, + Up = UP, + DOWN = 6, + Down = DOWN, + ALL = 7, + All = ALL, +} +export enum SwipeDirection { + NONE, + None = NONE, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + VERTICAL = 2, + Vertical = VERTICAL, + ALL = 3, + All = ALL, +} +export enum GestureMode { + SEQUENCE, + Sequence = SEQUENCE, + PARALLEL = 1, + Parallel = PARALLEL, + EXCLUSIVE = 2, + Exclusive = EXCLUSIVE, +} +export enum GestureMask { + NORMAL, + Normal = NORMAL, + IGNORE_INTERNAL = 1, + IgnoreInternal = IGNORE_INTERNAL, +} +export enum GestureJudgeResult { + CONTINUE, + REJECT = 1, +} +export namespace GestureControl { + export enum GestureType { + TAP_GESTURE, + LONG_PRESS_GESTURE = 1, + PAN_GESTURE = 2, + PINCH_GESTURE = 3, + SWIPE_GESTURE = 4, + ROTATION_GESTURE = 5, + DRAG = 6, + CLICK = 7, + } +} +export enum GesturePriority { + NORMAL, + PRIORITY = 1, +} +export enum GestureRecognizerState { + READY, + DETECTING = 1, + PENDING = 2, + BLOCKED = 3, + SUCCESSFUL = 4, + FAILED = 5, +} +export enum GridDirection { + ROW, + Row = ROW, + COLUMN = 1, + Column = COLUMN, + ROW_REVERSE = 2, + RowReverse = ROW_REVERSE, + COLUMN_REVERSE = 3, + ColumnReverse = COLUMN_REVERSE, +} +export enum GridItemAlignment { + DEFAULT, + STRETCH = 1, +} +export enum GridItemStyle { + NONE, + PLAIN = 1, +} +export enum SizeType { + AUTO, + Auto = AUTO, + XS = 1, + SM = 2, + MD = 3, + LG = 4, +} +export enum BreakpointsReference { + WINDOW_SIZE, + WindowSize = WINDOW_SIZE, + COMPONENT_SIZE = 1, + ComponentSize = COMPONENT_SIZE, +} +export enum GridRowDirection { + ROW, + Row = ROW, + ROW_REVERSE = 1, + RowReverse = ROW_REVERSE, +} +export enum ImageRenderMode { + ORIGINAL, + Original = ORIGINAL, + TEMPLATE = 1, + Template = TEMPLATE, +} +export enum ImageContent { + EMPTY, +} +export enum DynamicRangeMode { + HIGH, + CONSTRAINT = 1, + STANDARD = 2, +} +export enum ImageInterpolation { + NONE, + None = NONE, + LOW = 1, + Low = LOW, + MEDIUM = 2, + Medium = MEDIUM, + HIGH = 3, + High = HIGH, +} +export enum ImageAnalyzerType { + SUBJECT, + TEXT = 1, + OBJECT_LOOKUP = 2, +} +export enum DataOperationType { + ADD = "add", + DELETE = "delete", + EXCHANGE = "exchange", + MOVE = "move", + CHANGE = "change", + RELOAD = "reload", +} +export enum ScrollState { + IDLE, + Idle = IDLE, + SCROLL = 1, + Scroll = SCROLL, + FLING = 2, + Fling = FLING, +} +export enum ListItemAlign { + START, + Start = START, + CENTER = 1, + Center = CENTER, + END = 2, + End = END, +} +export enum ListItemGroupArea { + NONE, + IN_LIST_ITEM_AREA = 1, + IN_HEADER_AREA = 2, + IN_FOOTER_AREA = 3, +} +export enum StickyStyle { + NONE, + None = NONE, + HEADER = 1, + Header = HEADER, + FOOTER = 2, + Footer = FOOTER, +} +export enum ChainEdgeEffect { + DEFAULT, + STRETCH = 1, +} +export enum ScrollSnapAlign { + NONE, + START = 1, + CENTER = 2, + END = 3, +} +export enum Sticky { + NONE, + None = NONE, + NORMAL = 1, + Normal = NORMAL, + OPACITY = 2, + Opacity = OPACITY, +} +export enum EditMode { + NONE, + None = NONE, + DELETABLE = 1, + Deletable = DELETABLE, + MOVABLE = 2, + Movable = MOVABLE, +} +export enum SwipeEdgeEffect { + SPRING, + Spring = SPRING, + NONE = 1, + None = NONE, +} +export enum SwipeActionState { + COLLAPSED, + EXPANDED = 1, + ACTIONING = 2, +} +export enum ListItemStyle { + NONE, + CARD = 1, +} +export enum ListItemGroupStyle { + NONE, + CARD = 1, +} +export enum LoadingProgressStyle { + DEFAULT, + Default = DEFAULT, + CIRCULAR = 1, + Circular = CIRCULAR, + ORBITAL = 2, + Orbital = ORBITAL, +} +export enum LocationIconStyle { + FULL_FILLED, + LINES = 1, +} +export enum LocationDescription { + CURRENT_LOCATION, + ADD_LOCATION = 1, + SELECT_LOCATION = 2, + SHARE_LOCATION = 3, + SEND_LOCATION = 4, + LOCATING = 5, + LOCATION = 6, + SEND_CURRENT_LOCATION = 7, + RELOCATION = 8, + PUNCH_IN = 9, + CURRENT_POSITION = 10, +} +export enum LocationButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export enum SubMenuExpandingMode { + SIDE_EXPAND, + EMBEDDED_EXPAND = 1, + STACK_EXPAND = 2, +} +export enum NavigationSystemTransitionType { + DEFAULT, + NONE = 1, + TITLE = 2, + CONTENT = 3, +} +export enum NavDestinationMode { + STANDARD, + DIALOG = 1, +} +export enum NavRouteMode { + PUSH_WITH_RECREATE, + PUSH = 1, + REPLACE = 2, +} +export enum NavigationMode { + STACK, + Stack = STACK, + SPLIT = 1, + Split = SPLIT, + AUTO = 2, + Auto = AUTO, +} +export enum NavBarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum NavigationTitleMode { + FREE, + Free = FREE, + FULL = 1, + Full = FULL, + MINI = 2, + Mini = MINI, +} +export enum LaunchMode { + STANDARD, + MOVE_TO_TOP_SINGLETON = 1, + POP_TO_SINGLETON = 2, + NEW_INSTANCE = 3, +} +export enum ToolbarItemStatus { + NORMAL, + DISABLED = 1, + ACTIVE = 2, +} +export enum NavigationOperation { + PUSH = 1, + POP = 2, + REPLACE = 3, +} +export enum BarStyle { + STANDARD, + STACK = 1, + SAFE_AREA_PADDING = 2, +} +export enum NavigationType { + PUSH, + Push = PUSH, + BACK = 1, + Back = BACK, + REPLACE = 2, + Replace = REPLACE, +} +export enum RouteType { + NONE, + None = NONE, + PUSH = 1, + Push = PUSH, + POP = 2, + Pop = POP, +} +export enum SlideEffect { + LEFT, + Left = LEFT, + RIGHT = 1, + Right = RIGHT, + TOP = 2, + Top = TOP, + BOTTOM = 3, + Bottom = BOTTOM, + START = 5, + END = 6, +} +export enum PanelMode { + MINI, + Mini = MINI, + HALF = 1, + Half = HALF, + FULL = 2, + Full = FULL, +} +export enum PanelType { + MINIBAR, + Minibar = MINIBAR, + FOLDABLE = 1, + Foldable = FOLDABLE, + TEMPORARY = 2, + Temporary = TEMPORARY, + CUSTOM = 3, +} +export enum PanelHeight { + WRAP_CONTENT = "wrapContent", +} +export enum ParticleType { + POINT = "point", + IMAGE = "image", +} +export enum ParticleEmitterShape { + RECTANGLE = "rectangle", + CIRCLE = "circle", + ELLIPSE = "ellipse", +} +export enum DistributionType { + UNIFORM, + GAUSSIAN = 1, +} +export enum ParticleUpdater { + NONE = "none", + RANDOM = "random", + CURVE = "curve", +} +export enum DisturbanceFieldShape { + RECT, + CIRCLE = 1, + ELLIPSE = 2, +} +export enum PasteIconStyle { + LINES, +} +export enum PasteDescription { + PASTE, +} +export enum PasteButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export enum PatternLockChallengeResult { + CORRECT = 1, + WRONG = 2, +} +export enum ProgressType { + LINEAR, + Linear = LINEAR, + RING = 1, + Ring = RING, + ECLIPSE = 2, + Eclipse = ECLIPSE, + SCALE_RING = 3, + ScaleRing = SCALE_RING, + CAPSULE = 4, + Capsule = CAPSULE, +} +export enum ProgressStatus { + LOADING, + PROGRESSING = 1, +} +export enum ProgressStyle { + LINEAR, + Linear = LINEAR, + RING = 1, + Ring = RING, + ECLIPSE = 2, + Eclipse = ECLIPSE, + SCALE_RING = 3, + ScaleRing = SCALE_RING, + CAPSULE = 4, + Capsule = CAPSULE, +} +export enum RadioIndicatorType { + TICK, + DOT = 1, + CUSTOM = 2, +} +export enum RefreshStatus { + INACTIVE, + Inactive = INACTIVE, + DRAG = 1, + Drag = DRAG, + OVER_DRAG = 2, + OverDrag = OVER_DRAG, + REFRESH = 3, + Refresh = REFRESH, + DONE = 4, + Done = DONE, +} +export enum BarrierDirection { + LEFT, + RIGHT = 1, + TOP = 2, + BOTTOM = 3, +} +export enum LocalizedBarrierDirection { + START, + END = 1, + TOP = 2, + BOTTOM = 3, +} +export enum RichEditorDeleteDirection { + BACKWARD, + FORWARD = 1, +} +export enum RichEditorSpanType { + TEXT, + IMAGE = 1, + MIXED = 2, + BUILDER = 3, +} +export enum RichEditorResponseType { + RIGHT_CLICK, + LONG_PRESS = 1, + SELECT = 2, +} +export enum SaveIconStyle { + FULL_FILLED, + LINES = 1, + PICTURE = 2, +} +export enum SaveDescription { + DOWNLOAD, + DOWNLOAD_FILE = 1, + SAVE = 2, + SAVE_IMAGE = 3, + SAVE_FILE = 4, + DOWNLOAD_AND_SHARE = 5, + RECEIVE = 6, + CONTINUE_TO_RECEIVE = 7, + SAVE_TO_GALLERY = 8, + EXPORT_TO_GALLERY = 9, + QUICK_SAVE_TO_GALLERY = 10, + RESAVE_TO_GALLERY = 11, +} +export enum SaveButtonOnClickResult { + SUCCESS, + TEMPORARY_AUTHORIZATION_FAILED = 1, +} +export enum ScrollDirection { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, + FREE = 2, + Free = FREE, + NONE = 3, + None = NONE, +} +export enum ScrollAlign { + START, + CENTER = 1, + END = 2, + AUTO = 3, +} +export enum ScrollBarDirection { + VERTICAL, + Vertical = VERTICAL, + HORIZONTAL = 1, + Horizontal = HORIZONTAL, +} +export enum CancelButtonStyle { + CONSTANT, + INVISIBLE = 1, + INPUT = 2, +} +export enum SearchType { + NORMAL, + NUMBER = 2, + PHONE_NUMBER = 3, + EMAIL = 5, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum SecurityComponentLayoutDirection { + HORIZONTAL, + VERTICAL = 1, +} +export enum ArrowPosition { + END, + START = 1, +} +export enum MenuAlignType { + START, + CENTER = 1, + END = 2, +} +export enum SliderStyle { + OUT_SET, + OutSet = OUT_SET, + IN_SET = 1, + InSet = IN_SET, + NONE = 2, +} +export enum SliderChangeMode { + BEGIN, + Begin = BEGIN, + MOVING = 1, + Moving = MOVING, + END = 2, + End = END, + CLICK = 3, + Click = CLICK, +} +export enum SliderInteraction { + SLIDE_AND_CLICK, + SLIDE_ONLY = 1, + SLIDE_AND_CLICK_UP = 2, +} +export enum SliderBlockType { + DEFAULT, + IMAGE = 1, + SHAPE = 2, +} +export enum ColorMode { + LIGHT, + DARK = 1, +} +export enum LayoutDirection { + LTR, + RTL = 1, + AUTO = 2, + Auto = AUTO, +} +export enum ItemState { + NORMAL, + Normal = NORMAL, + DISABLED = 1, + Disabled = DISABLED, + WAITING = 2, + Waiting = WAITING, + SKIP = 3, + Skip = SKIP, +} +export enum SwiperDisplayMode { + LEGACY_STRETCH, + Stretch = LEGACY_STRETCH, + LEGACY_AUTO_LINEAR = 1, + AutoLinear = LEGACY_AUTO_LINEAR, + STRETCH = 2, + AUTO_LINEAR = 3, +} +export enum SwiperNestedScrollMode { + SELF_ONLY, + SELF_FIRST = 1, +} +export enum SymbolRenderingStrategy { + SINGLE, + MULTIPLE_COLOR = 1, + MULTIPLE_OPACITY = 2, +} +export enum SymbolEffectStrategy { + NONE, + SCALE = 1, + HIERARCHICAL = 2, +} +export enum EffectDirection { + DOWN, + UP = 1, +} +export enum EffectScope { + LAYER, + WHOLE = 1, +} +export enum EffectFillStyle { + CUMULATIVE, + ITERATIVE = 1, +} +export enum BarMode { + SCROLLABLE, + Scrollable = SCROLLABLE, + FIXED = 1, + Fixed = FIXED, +} +export enum AnimationMode { + CONTENT_FIRST, + ACTION_FIRST = 1, + NO_ANIMATION = 2, +} +export enum BarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum LayoutStyle { + ALWAYS_CENTER, + ALWAYS_AVERAGE_SPLIT = 1, + SPACE_BETWEEN_OR_CENTER = 2, +} +export enum SelectedMode { + INDICATOR, + BOARD = 1, +} +export enum LayoutMode { + AUTO, + VERTICAL = 1, + HORIZONTAL = 2, +} +export enum TextSpanType { + TEXT, + IMAGE = 1, + MIXED = 2, +} +export enum TextResponseType { + RIGHT_CLICK, + LONG_PRESS = 1, + SELECT = 2, +} +export enum TextAreaType { + NORMAL, + NUMBER = 2, + PHONE_NUMBER = 3, + EMAIL = 5, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum ContentType { + USER_NAME, + PASSWORD = 1, + NEW_PASSWORD = 2, + FULL_STREET_ADDRESS = 3, + HOUSE_NUMBER = 4, + DISTRICT_ADDRESS = 5, + CITY_ADDRESS = 6, + PROVINCE_ADDRESS = 7, + COUNTRY_ADDRESS = 8, + PERSON_FULL_NAME = 9, + PERSON_LAST_NAME = 10, + PERSON_FIRST_NAME = 11, + PHONE_NUMBER = 12, + PHONE_COUNTRY_CODE = 13, + FULL_PHONE_NUMBER = 14, + EMAIL_ADDRESS = 15, + BANK_CARD_NUMBER = 16, + ID_CARD_NUMBER = 17, + NICKNAME = 23, + DETAIL_INFO_WITHOUT_STREET = 24, + FORMAT_ADDRESS = 25, +} +export enum TextDataDetectorType { + PHONE_NUMBER, + URL = 1, + EMAIL = 2, + ADDRESS = 3, + DATE_TIME = 4, +} +export enum TextDeleteDirection { + BACKWARD, + FORWARD = 1, +} +export enum MenuType { + SELECTION_MENU, + PREVIEW_MENU = 1, +} +export enum InputType { + NORMAL, + Normal = NORMAL, + NUMBER = 1, + Number = NUMBER, + PHONE_NUMBER = 2, + PhoneNumber = PHONE_NUMBER, + EMAIL = 3, + Email = EMAIL, + PASSWORD = 4, + Password = PASSWORD, + NUMBER_PASSWORD = 8, + SCREEN_LOCK_PASSWORD = 9, + USER_NAME = 10, + NEW_PASSWORD = 11, + NUMBER_DECIMAL = 12, + URL = 13, +} +export enum EnterKeyType { + GO = 2, + Go = GO, + SEARCH = 3, + Search = SEARCH, + SEND = 4, + Send = SEND, + NEXT = 5, + Next = NEXT, + DONE = 6, + Done = DONE, + PREVIOUS = 7, + NEW_LINE = 8, +} +export enum TextInputStyle { + DEFAULT, + Default = DEFAULT, + INLINE = 1, + Inline = INLINE, +} +export enum TimePickerFormat { + HOUR_MINUTE, + HOUR_MINUTE_SECOND = 1, +} +export enum ToggleType { + CHECKBOX, + Checkbox = CHECKBOX, + SWITCH = 1, + Switch = SWITCH, + BUTTON = 2, + Button = BUTTON, +} +export enum SeekMode { + PREVIOUS_KEYFRAME, + PreviousKeyframe = PREVIOUS_KEYFRAME, + NEXT_KEYFRAME = 1, + NextKeyframe = NEXT_KEYFRAME, + CLOSEST_KEYFRAME = 2, + ClosestKeyframe = CLOSEST_KEYFRAME, + ACCURATE = 3, + Accurate = ACCURATE, +} +export enum PlaybackSpeed { + SPEED_FORWARD_0_75_X, + Speed_Forward_0_75_X = SPEED_FORWARD_0_75_X, + SPEED_FORWARD_1_00_X = 1, + Speed_Forward_1_00_X = SPEED_FORWARD_1_00_X, + SPEED_FORWARD_1_25_X = 2, + Speed_Forward_1_25_X = SPEED_FORWARD_1_25_X, + SPEED_FORWARD_1_75_X = 3, + Speed_Forward_1_75_X = SPEED_FORWARD_1_75_X, + SPEED_FORWARD_2_00_X = 4, + Speed_Forward_2_00_X = SPEED_FORWARD_2_00_X, +} +export enum MessageLevel { + DEBUG, + Debug = DEBUG, + ERROR = 1, + Error = ERROR, + INFO = 2, + Info = INFO, + LOG = 3, + Log = LOG, + WARN = 4, + Warn = WARN, +} +export enum MixedMode { + ALL, + All = ALL, + COMPATIBLE = 1, + Compatible = COMPATIBLE, + NONE = 2, + None = NONE, +} +export enum HitTestType { + EDIT_TEXT, + EditText = EDIT_TEXT, + EMAIL = 1, + Email = EMAIL, + HTTP_ANCHOR = 2, + HttpAnchor = HTTP_ANCHOR, + HTTP_ANCHOR_IMG = 3, + HttpAnchorImg = HTTP_ANCHOR_IMG, + IMG = 4, + Img = IMG, + MAP = 5, + Map = MAP, + PHONE = 6, + Phone = PHONE, + UNKNOWN = 7, + Unknown = UNKNOWN, +} +export enum CacheMode { + DEFAULT, + Default = DEFAULT, + NONE = 1, + None = NONE, + ONLINE = 2, + Online = ONLINE, + ONLY = 3, + Only = ONLY, +} +export enum OverScrollMode { + NEVER, + ALWAYS = 1, +} +export enum WebDarkMode { + OFF, + Off = OFF, + ON = 1, + On = ON, + AUTO = 2, + Auto = AUTO, +} +export enum WebCaptureMode { + HOME_SCREEN, +} +export enum ThreatType { + THREAT_ILLEGAL, + THREAT_FRAUD = 1, + THREAT_RISK = 2, + THREAT_WARNING = 3, +} +export enum RenderExitReason { + PROCESS_ABNORMAL_TERMINATION, + ProcessAbnormalTermination = PROCESS_ABNORMAL_TERMINATION, + PROCESS_WAS_KILLED = 1, + ProcessWasKilled = PROCESS_WAS_KILLED, + PROCESS_CRASHED = 2, + ProcessCrashed = PROCESS_CRASHED, + PROCESS_OOM = 3, + ProcessOom = PROCESS_OOM, + PROCESS_EXIT_UNKNOWN = 4, + ProcessExitUnknown = PROCESS_EXIT_UNKNOWN, +} +export enum SslError { + INVALID, + Invalid = INVALID, + HOST_MISMATCH = 1, + HostMismatch = HOST_MISMATCH, + DATE_INVALID = 2, + DateInvalid = DATE_INVALID, + UNTRUSTED = 3, + Untrusted = UNTRUSTED, +} +export enum FileSelectorMode { + FILE_OPEN_MODE, + FileOpenMode = FILE_OPEN_MODE, + FILE_OPEN_MULTIPLE_MODE = 1, + FileOpenMultipleMode = FILE_OPEN_MULTIPLE_MODE, + FILE_OPEN_FOLDER_MODE = 2, + FileOpenFolderMode = FILE_OPEN_FOLDER_MODE, + FILE_SAVE_MODE = 3, + FileSaveMode = FILE_SAVE_MODE, +} +export enum WebLayoutMode { + NONE, + FIT_CONTENT = 1, +} +export enum RenderProcessNotRespondingReason { + INPUT_TIMEOUT, + NAVIGATION_COMMIT_TIMEOUT = 1, +} +export enum ProtectedResourceType { + MIDI_SYSEX = "TYPE_MIDI_SYSEX", + MidiSysex = MIDI_SYSEX, + VIDEO_CAPTURE = "TYPE_VIDEO_CAPTURE", + AUDIO_CAPTURE = "TYPE_AUDIO_CAPTURE", + SENSOR = "TYPE_SENSOR", +} +export enum ContextMenuSourceType { + NONE, + None = NONE, + MOUSE = 1, + Mouse = MOUSE, + LONG_PRESS = 2, + LongPress = LONG_PRESS, +} +export enum ContextMenuMediaType { + NONE, + None = NONE, + IMAGE = 1, + Image = IMAGE, +} +export enum ContextMenuInputFieldType { + NONE, + None = NONE, + PLAIN_TEXT = 1, + PlainText = PLAIN_TEXT, + PASSWORD = 2, + Password = PASSWORD, + NUMBER = 3, + Number = NUMBER, + TELEPHONE = 4, + Telephone = TELEPHONE, + OTHER = 5, + Other = OTHER, +} +export enum NativeEmbedStatus { + CREATE, + UPDATE = 1, + DESTROY = 2, + ENTER_BFCACHE = 3, + LEAVE_BFCACHE = 4, +} +export enum ContextMenuEditStateFlags { + NONE, + CAN_CUT = 1, + CAN_COPY = 2, + CAN_PASTE = 4, + CAN_SELECT_ALL = 8, +} +export enum WebNavigationType { + UNKNOWN, + MAIN_FRAME_NEW_ENTRY = 1, + MAIN_FRAME_EXISTING_ENTRY = 2, + NAVIGATION_TYPE_NEW_SUBFRAME = 4, + NAVIGATION_TYPE_AUTO_SUBFRAME = 5, +} +export enum RenderMode { + ASYNC_RENDER, + SYNC_RENDER = 1, +} +export enum ViewportFit { + AUTO, + CONTAINS = 1, + COVER = 2, +} +export enum WebKeyboardAvoidMode { + RESIZE_VISUAL, + RESIZE_CONTENT = 1, + OVERLAYS_CONTENT = 2, +} +export enum WebElementType { + IMAGE = 1, +} +export enum WebResponseType { + LONG_PRESS = 1, +} +export enum SideBarContainerType { + EMBED, + Embed = EMBED, + OVERLAY = 1, + Overlay = OVERLAY, + AUTO = 2, +} +export enum SideBarPosition { + START, + Start = START, + END = 1, + End = END, +} +export enum WaterFlowLayoutMode { + ALWAYS_TOP_DOWN, + SLIDING_WINDOW = 1, +} +export enum DpiFollowStrategy { + FOLLOW_HOST_DPI, + FOLLOW_UI_EXTENSION_ABILITY_DPI = 1, +} +export enum StyledStringKey { + FONT, + DECORATION = 1, + BASELINE_OFFSET = 2, + LETTER_SPACING = 3, + TEXT_SHADOW = 4, + LINE_HEIGHT = 5, + BACKGROUND_COLOR = 6, + URL = 7, + GESTURE = 100, + PARAGRAPH_STYLE = 200, + IMAGE = 300, + CUSTOM_SPAN = 400, + USER_DATA = 500, +} +Object.assign(globalThis, { + PointerStyle: PointerStyle, + RectWidthStyle: RectWidthStyle, + RectHeightStyle: RectHeightStyle, + LengthUnit: LengthUnit, + PerfMonitorActionType: PerfMonitorActionType, + PerfMonitorSourceType: PerfMonitorSourceType, + DialogAlignment: DialogAlignment, + DialogButtonDirection: DialogButtonDirection, + IndexerAlign: IndexerAlign, + BadgePosition: BadgePosition, + ButtonType: ButtonType, + ButtonStyleMode: ButtonStyleMode, + ButtonRole: ButtonRole, + ControlSize: ControlSize, + CalendarAlign: CalendarAlign, + SelectStatus: SelectStatus, + FinishCallbackType: FinishCallbackType, + TouchTestStrategy: TouchTestStrategy, + TransitionHierarchyStrategy: TransitionHierarchyStrategy, + ChainStyle: ChainStyle, + TransitionEdge: TransitionEdge, + EffectType: EffectType, + PreDragStatus: PreDragStatus, + SourceType: SourceType, + SourceTool: SourceTool, + RepeatMode: RepeatMode, + BlurStyle: BlurStyle, + BlurStyleActivePolicy: BlurStyleActivePolicy, + ThemeColorMode: ThemeColorMode, + AdaptiveColor: AdaptiveColor, + ModalTransition: ModalTransition, + ShadowType: ShadowType, + ShadowStyle: ShadowStyle, + SafeAreaType: SafeAreaType, + SafeAreaEdge: SafeAreaEdge, + LayoutSafeAreaType: LayoutSafeAreaType, + LayoutSafeAreaEdge: LayoutSafeAreaEdge, + SheetSize: SheetSize, + DragBehavior: DragBehavior, + DragResult: DragResult, + BlendMode: BlendMode, + BlendApplyType: BlendApplyType, + SheetType: SheetType, + SheetMode: SheetMode, + ScrollSizeMode: ScrollSizeMode, + SheetKeyboardAvoidMode: SheetKeyboardAvoidMode, + DismissReason: DismissReason, + MenuPreviewMode: MenuPreviewMode, + OutlineStyle: OutlineStyle, + DragPreviewMode: DragPreviewMode, + MenuPolicy: MenuPolicy, + ContentClipMode: ContentClipMode, + KeyboardAvoidMode: KeyboardAvoidMode, + HoverModeAreaType: HoverModeAreaType, + ModelType: ModelType, + DataPanelType: DataPanelType, + CheckBoxShape: CheckBoxShape, + Color: Color, + ColoringStrategy: ColoringStrategy, + ImageFit: ImageFit, + BorderStyle: BorderStyle, + LineJoinStyle: LineJoinStyle, + TouchType: TouchType, + MouseButton: MouseButton, + MouseAction: MouseAction, + AnimationStatus: AnimationStatus, + Curve: Curve, + FillMode: FillMode, + PlayMode: PlayMode, + KeyType: KeyType, + KeySource: KeySource, + Edge: Edge, + Week: Week, + Direction: Direction, + BarState: BarState, + EdgeEffect: EdgeEffect, + Alignment: Alignment, + TransitionType: TransitionType, + RelateType: RelateType, + Visibility: Visibility, + LineCapStyle: LineCapStyle, + Axis: Axis, + HorizontalAlign: HorizontalAlign, + FlexAlign: FlexAlign, + ItemAlign: ItemAlign, + FlexDirection: FlexDirection, + PixelRoundCalcPolicy: PixelRoundCalcPolicy, + FlexWrap: FlexWrap, + VerticalAlign: VerticalAlign, + ImageRepeat: ImageRepeat, + ImageSize: ImageSize, + GradientDirection: GradientDirection, + SharedTransitionEffectType: SharedTransitionEffectType, + FontStyle: FontStyle, + FontWeight: FontWeight, + TextAlign: TextAlign, + TextOverflow: TextOverflow, + TextDecorationType: TextDecorationType, + TextCase: TextCase, + TextHeightAdaptivePolicy: TextHeightAdaptivePolicy, + ResponseType: ResponseType, + HoverEffect: HoverEffect, + Placement: Placement, + ArrowPointPosition: ArrowPointPosition, + CopyOptions: CopyOptions, + HitTestMode: HitTestMode, + TitleHeight: TitleHeight, + ModifierKey: ModifierKey, + FunctionKey: FunctionKey, + ImageSpanAlignment: ImageSpanAlignment, + ObscuredReasons: ObscuredReasons, + TextContentStyle: TextContentStyle, + ClickEffectLevel: ClickEffectLevel, + XComponentType: XComponentType, + NestedScrollMode: NestedScrollMode, + ScrollSource: ScrollSource, + RenderFit: RenderFit, + DialogButtonStyle: DialogButtonStyle, + WordBreak: WordBreak, + LineBreakStrategy: LineBreakStrategy, + EllipsisMode: EllipsisMode, + OptionWidthMode: OptionWidthMode, + IlluminatedType: IlluminatedType, + FoldStatus: FoldStatus, + AppRotation: AppRotation, + EmbeddedType: EmbeddedType, + MarqueeUpdateStrategy: MarqueeUpdateStrategy, + TextDecorationStyle: TextDecorationStyle, + TextSelectableMode: TextSelectableMode, + AccessibilityHoverType: AccessibilityHoverType, + WidthBreakpoint: WidthBreakpoint, + HeightBreakpoint: HeightBreakpoint, + FocusPriority: FocusPriority, + FormDimension: FormDimension, + FormRenderingMode: FormRenderingMode, + FormShape: FormShape, + PanDirection: PanDirection, + SwipeDirection: SwipeDirection, + GestureMode: GestureMode, + GestureMask: GestureMask, + GestureJudgeResult: GestureJudgeResult, + GestureControl: GestureControl, + GesturePriority: GesturePriority, + GestureRecognizerState: GestureRecognizerState, + GridDirection: GridDirection, + GridItemAlignment: GridItemAlignment, + GridItemStyle: GridItemStyle, + SizeType: SizeType, + BreakpointsReference: BreakpointsReference, + GridRowDirection: GridRowDirection, + ImageRenderMode: ImageRenderMode, + ImageContent: ImageContent, + DynamicRangeMode: DynamicRangeMode, + ImageInterpolation: ImageInterpolation, + ImageAnalyzerType: ImageAnalyzerType, + DataOperationType: DataOperationType, + ScrollState: ScrollState, + ListItemAlign: ListItemAlign, + ListItemGroupArea: ListItemGroupArea, + StickyStyle: StickyStyle, + ChainEdgeEffect: ChainEdgeEffect, + ScrollSnapAlign: ScrollSnapAlign, + Sticky: Sticky, + EditMode: EditMode, + SwipeEdgeEffect: SwipeEdgeEffect, + SwipeActionState: SwipeActionState, + ListItemStyle: ListItemStyle, + ListItemGroupStyle: ListItemGroupStyle, + LoadingProgressStyle: LoadingProgressStyle, + LocationIconStyle: LocationIconStyle, + LocationDescription: LocationDescription, + LocationButtonOnClickResult: LocationButtonOnClickResult, + SubMenuExpandingMode: SubMenuExpandingMode, + NavigationSystemTransitionType: NavigationSystemTransitionType, + NavDestinationMode: NavDestinationMode, + NavRouteMode: NavRouteMode, + NavigationMode: NavigationMode, + NavBarPosition: NavBarPosition, + NavigationTitleMode: NavigationTitleMode, + LaunchMode: LaunchMode, + ToolbarItemStatus: ToolbarItemStatus, + NavigationOperation: NavigationOperation, + BarStyle: BarStyle, + NavigationType: NavigationType, + RouteType: RouteType, + SlideEffect: SlideEffect, + PanelMode: PanelMode, + PanelType: PanelType, + PanelHeight: PanelHeight, + ParticleType: ParticleType, + ParticleEmitterShape: ParticleEmitterShape, + DistributionType: DistributionType, + ParticleUpdater: ParticleUpdater, + DisturbanceFieldShape: DisturbanceFieldShape, + PasteIconStyle: PasteIconStyle, + PasteDescription: PasteDescription, + PasteButtonOnClickResult: PasteButtonOnClickResult, + PatternLockChallengeResult: PatternLockChallengeResult, + ProgressType: ProgressType, + ProgressStatus: ProgressStatus, + ProgressStyle: ProgressStyle, + RadioIndicatorType: RadioIndicatorType, + RefreshStatus: RefreshStatus, + BarrierDirection: BarrierDirection, + LocalizedBarrierDirection: LocalizedBarrierDirection, + RichEditorDeleteDirection: RichEditorDeleteDirection, + RichEditorSpanType: RichEditorSpanType, + RichEditorResponseType: RichEditorResponseType, + SaveIconStyle: SaveIconStyle, + SaveDescription: SaveDescription, + SaveButtonOnClickResult: SaveButtonOnClickResult, + ScrollDirection: ScrollDirection, + ScrollAlign: ScrollAlign, + ScrollBarDirection: ScrollBarDirection, + CancelButtonStyle: CancelButtonStyle, + SearchType: SearchType, + SecurityComponentLayoutDirection: SecurityComponentLayoutDirection, + ArrowPosition: ArrowPosition, + MenuAlignType: MenuAlignType, + SliderStyle: SliderStyle, + SliderChangeMode: SliderChangeMode, + SliderInteraction: SliderInteraction, + SliderBlockType: SliderBlockType, + ColorMode: ColorMode, + LayoutDirection: LayoutDirection, + ItemState: ItemState, + SwiperDisplayMode: SwiperDisplayMode, + SwiperNestedScrollMode: SwiperNestedScrollMode, + SymbolRenderingStrategy: SymbolRenderingStrategy, + SymbolEffectStrategy: SymbolEffectStrategy, + EffectDirection: EffectDirection, + EffectScope: EffectScope, + EffectFillStyle: EffectFillStyle, + BarMode: BarMode, + AnimationMode: AnimationMode, + BarPosition: BarPosition, + LayoutStyle: LayoutStyle, + SelectedMode: SelectedMode, + LayoutMode: LayoutMode, + TextSpanType: TextSpanType, + TextResponseType: TextResponseType, + TextAreaType: TextAreaType, + ContentType: ContentType, + TextDataDetectorType: TextDataDetectorType, + TextDeleteDirection: TextDeleteDirection, + MenuType: MenuType, + InputType: InputType, + EnterKeyType: EnterKeyType, + TextInputStyle: TextInputStyle, + TimePickerFormat: TimePickerFormat, + ToggleType: ToggleType, + SeekMode: SeekMode, + PlaybackSpeed: PlaybackSpeed, + MessageLevel: MessageLevel, + MixedMode: MixedMode, + HitTestType: HitTestType, + CacheMode: CacheMode, + OverScrollMode: OverScrollMode, + WebDarkMode: WebDarkMode, + WebCaptureMode: WebCaptureMode, + ThreatType: ThreatType, + RenderExitReason: RenderExitReason, + SslError: SslError, + FileSelectorMode: FileSelectorMode, + WebLayoutMode: WebLayoutMode, + RenderProcessNotRespondingReason: RenderProcessNotRespondingReason, + ProtectedResourceType: ProtectedResourceType, + ContextMenuSourceType: ContextMenuSourceType, + ContextMenuMediaType: ContextMenuMediaType, + ContextMenuInputFieldType: ContextMenuInputFieldType, + NativeEmbedStatus: NativeEmbedStatus, + ContextMenuEditStateFlags: ContextMenuEditStateFlags, + WebNavigationType: WebNavigationType, + RenderMode: RenderMode, + ViewportFit: ViewportFit, + WebKeyboardAvoidMode: WebKeyboardAvoidMode, + WebElementType: WebElementType, + WebResponseType: WebResponseType, + SideBarContainerType: SideBarContainerType, + SideBarPosition: SideBarPosition, + WaterFlowLayoutMode: WaterFlowLayoutMode, + DpiFollowStrategy: DpiFollowStrategy, + StyledStringKey: StyledStringKey, +}) \ No newline at end of file diff --git a/arkoala/arkui/src/SyntheticDeclarations.ts b/arkoala/arkui/src/generated/SyntheticDeclarations.ts similarity index 99% rename from arkoala/arkui/src/SyntheticDeclarations.ts rename to arkoala/arkui/src/generated/SyntheticDeclarations.ts index 254bc90e5fcf7c900e5f3a19fb53bdaad3eed644..f18547565a4edcc527b0e419339503333dfaacca 100644 --- a/arkoala/arkui/src/SyntheticDeclarations.ts +++ b/arkoala/arkui/src/generated/SyntheticDeclarations.ts @@ -452,6 +452,3 @@ export interface Literal_Number_code_Want_want { want?: Want; } export type Callback_Literal_Number_code_Want_want_Void = (parameter: { code: number, want?: Want }) => void; -export namespace Profiler { - export type Callback_String_Void = (info: string) => void; -} diff --git a/arkoala/arkui/src/peer_events.ts b/arkoala/arkui/src/generated/peer_events.ts similarity index 100% rename from arkoala/arkui/src/peer_events.ts rename to arkoala/arkui/src/generated/peer_events.ts index 36302ca515e799545593728728f77bc0f6600258..b57fd217748899f99ce4c05dc8d15b9d06b27583 100644 --- a/arkoala/arkui/src/peer_events.ts +++ b/arkoala/arkui/src/generated/peer_events.ts @@ -9,6 +9,7 @@ import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus } from import { TouchTestInfo, TouchResult, RectResult, TouchTestStrategy, EventTarget, SourceType, SourceTool, AccessibilityCallback, TouchObject, HistoricalPoint, IntentionCode, CustomBuilder, DragItemInfo, DragBehavior, Summary, DragResult, Rectangle, PreDragStatus, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, VisibleAreaChangeCallback, ItemDragInfo, ShadowOptions, ShadowType } from "./ArkCommonInterfaces" import { ClickEvent } from "./ArkClickEventMaterialized" import { BaseEvent } from "./ArkBaseEventMaterialized" +import { Resource } from "./ArkResourceInterfaces" import { HoverEvent } from "./ArkHoverEventMaterialized" import { AccessibilityHoverEvent } from "./ArkAccessibilityHoverEventMaterialized" import { AccessibilityHoverType, MouseButton, MouseAction, TouchType, KeyType, KeySource, HitTestMode, FoldStatus, AppRotation, FontStyle, FontWeight, TextAlign, WordBreak, LineBreakStrategy, ImageSpanAlignment, ImageFit, TextDecorationType, TextDecorationStyle, Color, ColoringStrategy, Edge } from "./ArkEnumsInterfaces" @@ -44,7 +45,6 @@ import { PasteButtonOnClickResult } from "./ArkPasteButtonInterfaces" import { PluginErrorCallback, PluginErrorData } from "./ArkPluginComponentInterfaces" import { RefreshStatus } from "./ArkRefreshInterfaces" import { RichEditorSelection, RichEditorTextSpanResult, RichEditorImageSpanResult, RichEditorSpanPosition, RichEditorTextStyleResult, RichEditorSymbolSpanStyle, RichEditorParagraphStyle, RichEditorImageSpanStyleResult, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorRange, RichEditorInsertValue, RichEditorDeleteValue, RichEditorDeleteDirection, PasteEventCallback, PasteEvent, SubmitCallback, RichEditorChangeValue, CutEvent, CopyEvent } from "./ArkRichEditorInterfaces" -import { Resource } from "./ArkResourceInterfaces" import { DecorationStyleResult, TextRange, OnDidChangeCallback, EditableTextOnChangeCallback, PreviewText, InsertValue, DeleteValue, TextDeleteDirection } from "./ArkTextCommonInterfaces" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./ArkSymbolglyphInterfaces" import { EnterKeyType, OnTextSelectionChangeCallback, OnContentScrollCallback, OnPasteCallback, OnSubmitCallback } from "./ArkTextInputInterfaces" diff --git a/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts index 67b9f4181992f799d0053abbc7ef2875652e61c5..50a965f5ac07410be3790d0e87ddee47afb5ae1d 100644 --- a/arkoala/arkui/src/peers/ArkAbilityComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkAbilityComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { AbilityComponentAttribute } from "./../ArkAbilityComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts b/arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts index ee28ea80fa20e5fa43a67bb2bb18194bf7b7ce46..4a2fdbde5ad0e0f73f74d6376e37d65d18a57e7a 100644 --- a/arkoala/arkui/src/peers/ArkAlphabetIndexerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkAlphabetIndexerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -95,17 +95,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -122,17 +122,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -149,17 +149,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -176,17 +176,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -203,17 +203,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -230,17 +230,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -257,17 +257,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -284,17 +284,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -327,12 +327,12 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) @@ -394,17 +394,17 @@ export class ArkAlphabetIndexerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkAnimatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkAnimatorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts index 2a3c6534b407ec77477c3548fe092f292f1a2cb3..5d317591fe864a909b40d95e1dc592d1b7b1072b 100644 --- a/arkoala/arkui/src/peers/ArkAnimatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkAnimatorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { AnimatorAttribute } from "./../ArkAnimatorInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkBadgePeer.ts b/arkoala/arkui/src/generated/peers/ArkBadgePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkBadgePeer.ts rename to arkoala/arkui/src/generated/peers/ArkBadgePeer.ts index e07a2bf2903e1a231f26714e018d5f3c0f1fcefa..fbe9f1cd5ca178056d5c5f8f6c3ca5a0fc82cfd0 100644 --- a/arkoala/arkui/src/peers/ArkBadgePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkBadgePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { BadgeParamWithNumber, BadgeAttribute, BadgeParamWithString, BadgeParam, BadgePosition, BadgeStyle } from "./../ArkBadgeInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkBlankPeer.ts b/arkoala/arkui/src/generated/peers/ArkBlankPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkBlankPeer.ts rename to arkoala/arkui/src/generated/peers/ArkBlankPeer.ts index 88de77480d5241d3a8fe245ba6284d60369bbbd8..7b5a9c724a304b567392f34f4a80c95457321434 100644 --- a/arkoala/arkui/src/peers/ArkBlankPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkBlankPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { BlankAttribute } from "./../ArkBlankInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,12 +83,12 @@ export class ArkBlankPeer extends ArkCommonMethodPeer { const min_value = min! let min_value_type: int32 = RuntimeType.UNDEFINED min_value_type = runtimeType(min_value) - if (((RuntimeType.NUMBER == min_value_type))) { + if (RuntimeType.NUMBER == min_value_type) { thisSerializer.writeInt8(0) const min_value_0 = unsafeCast(min_value) thisSerializer.writeNumber(min_value_0) } - else if (((RuntimeType.STRING == min_value_type))) { + else if (RuntimeType.STRING == min_value_type) { thisSerializer.writeInt8(1) const min_value_1 = unsafeCast(min_value) thisSerializer.writeString(min_value_1) @@ -106,17 +106,17 @@ export class ArkBlankPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkButtonPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkButtonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkButtonPeer.ts index 091ab6e54292e56027a835e620fca7fc0459390c..2e7d30e94207c0014545a4efce46d1592bf1d798 100644 --- a/arkoala/arkui/src/peers/ArkButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkButtonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -87,12 +87,12 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let label_type: int32 = RuntimeType.UNDEFINED label_type = runtimeType(label) - if (((RuntimeType.STRING == label_type))) { + if (RuntimeType.STRING == label_type) { thisSerializer.writeInt8(0) const label_0 = unsafeCast(label) thisSerializer.writeString(label_0) } - else if (((RuntimeType.OBJECT == label_type))) { + else if (RuntimeType.OBJECT == label_type) { thisSerializer.writeInt8(1) const label_1 = unsafeCast(label) thisSerializer.writeResource(label_1) @@ -131,17 +131,17 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -156,7 +156,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -166,7 +166,7 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -181,12 +181,12 @@ export class ArkButtonPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkCalendarPeer.ts b/arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkCalendarPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts index b1e8b10d9fd8d5c2782902cd8e356c31d8866cc7..86e3fea0c6d5f113e8e3bd0fb4877f0cc4a35e36 100644 --- a/arkoala/arkui/src/peers/ArkCalendarPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCalendarPeer.ts @@ -20,19 +20,19 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { Axis } from "./../ArkEnumsInterfaces" import { CurrentDayStyle, NonCurrentDayStyle, TodayStyle, WeekStyle, WorkStateStyle, CalendarSelectedDate, CalendarRequestedData, MonthData, CalendarAttribute, CalendarDay } from "./../ArkCalendarInterfaces" import { ResourceColor } from "./../ArkUnitsInterfaces" import { CalendarController } from "./../ArkCalendarControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts index 459030df40de115767d08b656ead71e327cde439..39646b987c2e288a5469f72f4b66663a4f61f70d 100644 --- a/arkoala/arkui/src/peers/ArkCalendarPickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCalendarPickerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PickerTextStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCanvasPeer.ts b/arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkCanvasPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts index a6fe84b722de9f482279c257e35e8d1c488d1b60..076d216b26ba37b81095765b6550c4dff6376033 100644 --- a/arkoala/arkui/src/peers/ArkCanvasPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCanvasPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -68,12 +68,12 @@ import { FrameNode } from "./../ArkFrameNodeMaterialized" import { RenderingContextSettings } from "./../ArkRenderingContextSettingsMaterialized" import { DrawingCanvas } from "./../ArkDrawingCanvasMaterialized" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCheckboxPeer.ts b/arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkCheckboxPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts index 5f6465f9b0dd3e34c5c021dd5e379198a78cea33..93792dc9488c44aa433e9bc22268a200bcb1a6c2 100644 --- a/arkoala/arkui/src/peers/ArkCheckboxPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCheckboxPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, ContentModifier, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, CommonConfiguration, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -98,17 +98,17 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -128,17 +128,17 @@ export class ArkCheckboxPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts b/arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts index f57469f5f36bdf86e6a97db7d9f3847730349095..6f2ecf2b2bfffd5c968ba4547e49a2b131ba1fd8 100644 --- a/arkoala/arkui/src/peers/ArkCheckboxgroupPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCheckboxgroupPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -98,17 +98,17 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -125,17 +125,17 @@ export class ArkCheckboxGroupPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkCirclePeer.ts b/arkoala/arkui/src/generated/peers/ArkCirclePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkCirclePeer.ts rename to arkoala/arkui/src/generated/peers/ArkCirclePeer.ts index 9023782beab987d79650b8bc8ed91977fd618bf0..9717ecd55dab57ddec9b86806d76df123f1ffc0e 100644 --- a/arkoala/arkui/src/peers/ArkCirclePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCirclePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { CircleOptions, CircleAttribute } from "./../ArkCircleInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkColumnPeer.ts b/arkoala/arkui/src/generated/peers/ArkColumnPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkColumnPeer.ts rename to arkoala/arkui/src/generated/peers/ArkColumnPeer.ts index 38ac5230255c54f0ac0c84be708939268296b063..b4b225c61d33261cc4543d0287ba1ef6d8358ea7 100644 --- a/arkoala/arkui/src/peers/ArkColumnPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkColumnPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, PointLightStyle, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, LightSource, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ColumnOptions, ColumnAttribute } from "./../ArkColumnInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts b/arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkColumnSplitPeer.ts rename to arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts index 73a0ba13de537e3ca8bbf4a06c00392f2540c4bb..32e4d266246b0e032a7b58c1677244e68c6b6f74 100644 --- a/arkoala/arkui/src/peers/ArkColumnSplitPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkColumnSplitPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { BaseEvent } from "./../ArkBaseEventMaterialized" import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCommonPeer.ts b/arkoala/arkui/src/generated/peers/ArkCommonPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkCommonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCommonPeer.ts index fb367c68cf7234033d7ab57739c3fc9ef987c03f..42c5654fc9b9a417faef931715644f2927ace3f2 100644 --- a/arkoala/arkui/src/peers/ArkCommonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCommonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage, ColorMetrics, Area, Bias, Font } from "./../ArkUnitsInterfaces" import { DrawModifier } from "./../ArkDrawModifierMaterialized" @@ -33,7 +33,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -52,12 +52,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ScrollOnWillScrollCallback, ScrollOnScrollCallback } from "./../ArkScrollInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -161,12 +161,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -225,7 +225,7 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1 = unsafeCast(value) thisSerializer.writeLength(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("stub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeLocalizedPadding(value_2) @@ -278,7 +278,7 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1 = unsafeCast(value) thisSerializer.writeLengthMetrics(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("stub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeLocalizedPadding(value_2) @@ -331,7 +331,7 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1 = unsafeCast(value) thisSerializer.writeLength(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("stub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeLocalizedPadding(value_2) @@ -348,17 +348,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -376,12 +376,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeSizeOptions(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) @@ -393,12 +393,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writePosition(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) @@ -452,12 +452,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -475,12 +475,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) const value_1_top = value_1.top @@ -576,7 +576,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -586,17 +586,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -618,17 +618,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_top_value_0 = unsafeCast(value_1_top_value) thisSerializer.writeInt32(value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1) const value_1_top_value_1 = unsafeCast(value_1_top_value) thisSerializer.writeNumber(value_1_top_value_1) } - else if (((RuntimeType.STRING == value_1_top_value_type))) { + else if (RuntimeType.STRING == value_1_top_value_type) { thisSerializer.writeInt8(2) const value_1_top_value_2 = unsafeCast(value_1_top_value) thisSerializer.writeString(value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_1_top_value_type) { thisSerializer.writeInt8(3) const value_1_top_value_3 = unsafeCast(value_1_top_value) thisSerializer.writeResource(value_1_top_value_3) @@ -647,17 +647,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_right_value_0 = unsafeCast(value_1_right_value) thisSerializer.writeInt32(value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1) const value_1_right_value_1 = unsafeCast(value_1_right_value) thisSerializer.writeNumber(value_1_right_value_1) } - else if (((RuntimeType.STRING == value_1_right_value_type))) { + else if (RuntimeType.STRING == value_1_right_value_type) { thisSerializer.writeInt8(2) const value_1_right_value_2 = unsafeCast(value_1_right_value) thisSerializer.writeString(value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_1_right_value_type) { thisSerializer.writeInt8(3) const value_1_right_value_3 = unsafeCast(value_1_right_value) thisSerializer.writeResource(value_1_right_value_3) @@ -676,17 +676,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_bottom_value_0 = unsafeCast(value_1_bottom_value) thisSerializer.writeInt32(value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1) const value_1_bottom_value_1 = unsafeCast(value_1_bottom_value) thisSerializer.writeNumber(value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_1_bottom_value_type) { thisSerializer.writeInt8(2) const value_1_bottom_value_2 = unsafeCast(value_1_bottom_value) thisSerializer.writeString(value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_1_bottom_value_type) { thisSerializer.writeInt8(3) const value_1_bottom_value_3 = unsafeCast(value_1_bottom_value) thisSerializer.writeResource(value_1_bottom_value_3) @@ -705,17 +705,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_left_value_0 = unsafeCast(value_1_left_value) thisSerializer.writeInt32(value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1) const value_1_left_value_1 = unsafeCast(value_1_left_value) thisSerializer.writeNumber(value_1_left_value_1) } - else if (((RuntimeType.STRING == value_1_left_value_type))) { + else if (RuntimeType.STRING == value_1_left_value_type) { thisSerializer.writeInt8(2) const value_1_left_value_2 = unsafeCast(value_1_left_value) thisSerializer.writeString(value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_1_left_value_type) { thisSerializer.writeInt8(3) const value_1_left_value_3 = unsafeCast(value_1_left_value) thisSerializer.writeResource(value_1_left_value_3) @@ -799,12 +799,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) const value_1_top = value_1.top @@ -895,7 +895,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -905,17 +905,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -937,17 +937,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_top_value_0 = unsafeCast(value_1_top_value) thisSerializer.writeInt32(value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_1_top_value_type) { thisSerializer.writeInt8(1) const value_1_top_value_1 = unsafeCast(value_1_top_value) thisSerializer.writeNumber(value_1_top_value_1) } - else if (((RuntimeType.STRING == value_1_top_value_type))) { + else if (RuntimeType.STRING == value_1_top_value_type) { thisSerializer.writeInt8(2) const value_1_top_value_2 = unsafeCast(value_1_top_value) thisSerializer.writeString(value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_1_top_value_type) { thisSerializer.writeInt8(3) const value_1_top_value_3 = unsafeCast(value_1_top_value) thisSerializer.writeResource(value_1_top_value_3) @@ -966,17 +966,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_right_value_0 = unsafeCast(value_1_right_value) thisSerializer.writeInt32(value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_1_right_value_type) { thisSerializer.writeInt8(1) const value_1_right_value_1 = unsafeCast(value_1_right_value) thisSerializer.writeNumber(value_1_right_value_1) } - else if (((RuntimeType.STRING == value_1_right_value_type))) { + else if (RuntimeType.STRING == value_1_right_value_type) { thisSerializer.writeInt8(2) const value_1_right_value_2 = unsafeCast(value_1_right_value) thisSerializer.writeString(value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_1_right_value_type) { thisSerializer.writeInt8(3) const value_1_right_value_3 = unsafeCast(value_1_right_value) thisSerializer.writeResource(value_1_right_value_3) @@ -995,17 +995,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_bottom_value_0 = unsafeCast(value_1_bottom_value) thisSerializer.writeInt32(value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_1_bottom_value_type) { thisSerializer.writeInt8(1) const value_1_bottom_value_1 = unsafeCast(value_1_bottom_value) thisSerializer.writeNumber(value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_1_bottom_value_type) { thisSerializer.writeInt8(2) const value_1_bottom_value_2 = unsafeCast(value_1_bottom_value) thisSerializer.writeString(value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_1_bottom_value_type) { thisSerializer.writeInt8(3) const value_1_bottom_value_3 = unsafeCast(value_1_bottom_value) thisSerializer.writeResource(value_1_bottom_value_3) @@ -1024,17 +1024,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_1_left_value_0 = unsafeCast(value_1_left_value) thisSerializer.writeInt32(value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_1_left_value_type) { thisSerializer.writeInt8(1) const value_1_left_value_1 = unsafeCast(value_1_left_value) thisSerializer.writeNumber(value_1_left_value_1) } - else if (((RuntimeType.STRING == value_1_left_value_type))) { + else if (RuntimeType.STRING == value_1_left_value_type) { thisSerializer.writeInt8(2) const value_1_left_value_2 = unsafeCast(value_1_left_value) thisSerializer.writeString(value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_1_left_value_type) { thisSerializer.writeInt8(3) const value_1_left_value_3 = unsafeCast(value_1_left_value) thisSerializer.writeResource(value_1_left_value_3) @@ -1101,7 +1101,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -1111,17 +1111,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -1274,17 +1274,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -1302,12 +1302,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInvertOptions(value_1) @@ -1319,12 +1319,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -1420,12 +1420,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -1522,12 +1522,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_xs_value = value_xs! let value_xs_value_type: int32 = RuntimeType.UNDEFINED value_xs_value_type = runtimeType(value_xs_value) - if (((RuntimeType.NUMBER == value_xs_value_type))) { + if (RuntimeType.NUMBER == value_xs_value_type) { thisSerializer.writeInt8(0) const value_xs_value_0 = unsafeCast(value_xs_value) thisSerializer.writeNumber(value_xs_value_0) } - else if (((RuntimeType.OBJECT == value_xs_value_type))) { + else if (RuntimeType.OBJECT == value_xs_value_type) { thisSerializer.writeInt8(1) const value_xs_value_1 = unsafeCast<{ span: number, offset: number }>(value_xs_value) const value_xs_value_1_span = value_xs_value_1.span @@ -1544,12 +1544,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_sm_value = value_sm! let value_sm_value_type: int32 = RuntimeType.UNDEFINED value_sm_value_type = runtimeType(value_sm_value) - if (((RuntimeType.NUMBER == value_sm_value_type))) { + if (RuntimeType.NUMBER == value_sm_value_type) { thisSerializer.writeInt8(0) const value_sm_value_0 = unsafeCast(value_sm_value) thisSerializer.writeNumber(value_sm_value_0) } - else if (((RuntimeType.OBJECT == value_sm_value_type))) { + else if (RuntimeType.OBJECT == value_sm_value_type) { thisSerializer.writeInt8(1) const value_sm_value_1 = unsafeCast<{ span: number, offset: number }>(value_sm_value) const value_sm_value_1_span = value_sm_value_1.span @@ -1566,12 +1566,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_md_value = value_md! let value_md_value_type: int32 = RuntimeType.UNDEFINED value_md_value_type = runtimeType(value_md_value) - if (((RuntimeType.NUMBER == value_md_value_type))) { + if (RuntimeType.NUMBER == value_md_value_type) { thisSerializer.writeInt8(0) const value_md_value_0 = unsafeCast(value_md_value) thisSerializer.writeNumber(value_md_value_0) } - else if (((RuntimeType.OBJECT == value_md_value_type))) { + else if (RuntimeType.OBJECT == value_md_value_type) { thisSerializer.writeInt8(1) const value_md_value_1 = unsafeCast<{ span: number, offset: number }>(value_md_value) const value_md_value_1_span = value_md_value_1.span @@ -1588,12 +1588,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_lg_value = value_lg! let value_lg_value_type: int32 = RuntimeType.UNDEFINED value_lg_value_type = runtimeType(value_lg_value) - if (((RuntimeType.NUMBER == value_lg_value_type))) { + if (RuntimeType.NUMBER == value_lg_value_type) { thisSerializer.writeInt8(0) const value_lg_value_0 = unsafeCast(value_lg_value) thisSerializer.writeNumber(value_lg_value_0) } - else if (((RuntimeType.OBJECT == value_lg_value_type))) { + else if (RuntimeType.OBJECT == value_lg_value_type) { thisSerializer.writeInt8(1) const value_lg_value_1 = unsafeCast<{ span: number, offset: number }>(value_lg_value) const value_lg_value_1_span = value_lg_value_1.span @@ -1691,17 +1691,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.FUNCTION == value_type))) { + if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeDragItemInfo(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -1725,12 +1725,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_angle_value = value_angle! let value_angle_value_type: int32 = RuntimeType.UNDEFINED value_angle_value_type = runtimeType(value_angle_value) - if (((RuntimeType.NUMBER == value_angle_value_type))) { + if (RuntimeType.NUMBER == value_angle_value_type) { thisSerializer.writeInt8(0) const value_angle_value_0 = unsafeCast(value_angle_value) thisSerializer.writeNumber(value_angle_value_0) } - else if (((RuntimeType.STRING == value_angle_value_type))) { + else if (RuntimeType.STRING == value_angle_value_type) { thisSerializer.writeInt8(1) const value_angle_value_1 = unsafeCast(value_angle_value) thisSerializer.writeString(value_angle_value_1) @@ -1756,17 +1756,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = unsafeCast(value_colors_element_0) thisSerializer.writeInt32(value_colors_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1) const value_colors_element_0_1 = unsafeCast(value_colors_element_0) thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2) const value_colors_element_0_2 = unsafeCast(value_colors_element_0) thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3) const value_colors_element_0_3 = unsafeCast(value_colors_element_0) thisSerializer.writeResource(value_colors_element_0_3) @@ -1800,12 +1800,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_start_value = value_start! let value_start_value_type: int32 = RuntimeType.UNDEFINED value_start_value_type = runtimeType(value_start_value) - if (((RuntimeType.NUMBER == value_start_value_type))) { + if (RuntimeType.NUMBER == value_start_value_type) { thisSerializer.writeInt8(0) const value_start_value_0 = unsafeCast(value_start_value) thisSerializer.writeNumber(value_start_value_0) } - else if (((RuntimeType.STRING == value_start_value_type))) { + else if (RuntimeType.STRING == value_start_value_type) { thisSerializer.writeInt8(1) const value_start_value_1 = unsafeCast(value_start_value) thisSerializer.writeString(value_start_value_1) @@ -1819,12 +1819,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_end_value = value_end! let value_end_value_type: int32 = RuntimeType.UNDEFINED value_end_value_type = runtimeType(value_end_value) - if (((RuntimeType.NUMBER == value_end_value_type))) { + if (RuntimeType.NUMBER == value_end_value_type) { thisSerializer.writeInt8(0) const value_end_value_0 = unsafeCast(value_end_value) thisSerializer.writeNumber(value_end_value_0) } - else if (((RuntimeType.STRING == value_end_value_type))) { + else if (RuntimeType.STRING == value_end_value_type) { thisSerializer.writeInt8(1) const value_end_value_1 = unsafeCast(value_end_value) thisSerializer.writeString(value_end_value_1) @@ -1838,12 +1838,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_rotation_value = value_rotation! let value_rotation_value_type: int32 = RuntimeType.UNDEFINED value_rotation_value_type = runtimeType(value_rotation_value) - if (((RuntimeType.NUMBER == value_rotation_value_type))) { + if (RuntimeType.NUMBER == value_rotation_value_type) { thisSerializer.writeInt8(0) const value_rotation_value_0 = unsafeCast(value_rotation_value) thisSerializer.writeNumber(value_rotation_value_0) } - else if (((RuntimeType.STRING == value_rotation_value_type))) { + else if (RuntimeType.STRING == value_rotation_value_type) { thisSerializer.writeInt8(1) const value_rotation_value_1 = unsafeCast(value_rotation_value) thisSerializer.writeString(value_rotation_value_1) @@ -1861,17 +1861,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = unsafeCast(value_colors_element_0) thisSerializer.writeInt32(value_colors_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1) const value_colors_element_0_1 = unsafeCast(value_colors_element_0) thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2) const value_colors_element_0_2 = unsafeCast(value_colors_element_0) thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3) const value_colors_element_0_3 = unsafeCast(value_colors_element_0) thisSerializer.writeResource(value_colors_element_0_3) @@ -1900,12 +1900,12 @@ export class ArkCommonMethodPeer extends PeerNode { const value_radius = value.radius let value_radius_type: int32 = RuntimeType.UNDEFINED value_radius_type = runtimeType(value_radius) - if (((RuntimeType.NUMBER == value_radius_type))) { + if (RuntimeType.NUMBER == value_radius_type) { thisSerializer.writeInt8(0) const value_radius_0 = unsafeCast(value_radius) thisSerializer.writeNumber(value_radius_0) } - else if (((RuntimeType.STRING == value_radius_type))) { + else if (RuntimeType.STRING == value_radius_type) { thisSerializer.writeInt8(1) const value_radius_1 = unsafeCast(value_radius) thisSerializer.writeString(value_radius_1) @@ -1922,17 +1922,17 @@ export class ArkCommonMethodPeer extends PeerNode { const value_colors_element_0_0 = unsafeCast(value_colors_element_0) thisSerializer.writeInt32(value_colors_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { thisSerializer.writeInt8(1) const value_colors_element_0_1 = unsafeCast(value_colors_element_0) thisSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { thisSerializer.writeInt8(2) const value_colors_element_0_2 = unsafeCast(value_colors_element_0) thisSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { thisSerializer.writeInt8(3) const value_colors_element_0_3 = unsafeCast(value_colors_element_0) thisSerializer.writeResource(value_colors_element_0_3) @@ -1961,12 +1961,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) @@ -2002,22 +2002,22 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_CircleShapeStub"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_CircleShapeStub")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeCircleShape(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_EllipseShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_EllipseShapeStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeEllipseShape(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_PathShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_PathShapeStub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writePathShape(value_2) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_RectShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_RectShapeStub")))) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeRectShape(value_3) @@ -2053,22 +2053,22 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_CircleShapeStub"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_CircleShapeStub")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeCircleShape(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_EllipseShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_EllipseShapeStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeEllipseShape(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_PathShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_PathShapeStub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writePathShape(value_2) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_RectShapeStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_RectShapeStub")))) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeRectShape(value_3) @@ -2293,23 +2293,23 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) let src_0_type: int32 = RuntimeType.UNDEFINED src_0_type = runtimeType(src_0) - if (((RuntimeType.STRING == src_0_type))) { + if (RuntimeType.STRING == src_0_type) { thisSerializer.writeInt8(0) const src_0_0 = unsafeCast(src_0) thisSerializer.writeString(src_0_0) } - else if (((RuntimeType.OBJECT == src_0_type))) { + else if (RuntimeType.OBJECT == src_0_type) { thisSerializer.writeInt8(1) const src_0_1 = unsafeCast(src_0) thisSerializer.writeResource(src_0_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) thisSerializer.writePixelMap(src_1) @@ -2425,7 +2425,7 @@ export class ArkCommonMethodPeer extends PeerNode { const gesture_5 = unsafeCast(gesture) thisSerializer.writeRotationGestureInterface(gesture_5) } - else if (((RuntimeType.OBJECT == gesture_type))) { + else if (RuntimeType.OBJECT == gesture_type) { thisSerializer.writeInt8(6) const gesture_6 = unsafeCast(gesture) thisSerializer.writeGestureGroupInterface(gesture_6) @@ -2474,7 +2474,7 @@ export class ArkCommonMethodPeer extends PeerNode { const gesture_5 = unsafeCast(gesture) thisSerializer.writeRotationGestureInterface(gesture_5) } - else if (((RuntimeType.OBJECT == gesture_type))) { + else if (RuntimeType.OBJECT == gesture_type) { thisSerializer.writeInt8(6) const gesture_6 = unsafeCast(gesture) thisSerializer.writeGestureGroupInterface(gesture_6) @@ -2523,7 +2523,7 @@ export class ArkCommonMethodPeer extends PeerNode { const gesture_5 = unsafeCast(gesture) thisSerializer.writeRotationGestureInterface(gesture_5) } - else if (((RuntimeType.OBJECT == gesture_type))) { + else if (RuntimeType.OBJECT == gesture_type) { thisSerializer.writeInt8(6) const gesture_6 = unsafeCast(gesture) thisSerializer.writeGestureGroupInterface(gesture_6) @@ -2603,17 +2603,17 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeComponentContent(value_2) @@ -2644,12 +2644,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let effect_type: int32 = RuntimeType.UNDEFINED effect_type = runtimeType(effect) - if (((RuntimeType.NUMBER == effect_type))) { + if (RuntimeType.NUMBER == effect_type) { thisSerializer.writeInt8(0) const effect_0 = unsafeCast(effect) thisSerializer.writeInt32(effect_0) } - else if (((RuntimeType.OBJECT == effect_type))) { + else if (RuntimeType.OBJECT == effect_type) { thisSerializer.writeInt8(1) const effect_1 = unsafeCast(effect) thisSerializer.writeBlender(effect_1) @@ -2668,12 +2668,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let popup_type: int32 = RuntimeType.UNDEFINED popup_type = runtimeType(popup) - if (((RuntimeType.OBJECT) == (popup_type)) && (((popup!.hasOwnProperty("message"))))) { + if (((RuntimeType.OBJECT) == (popup_type)) && ((popup!.hasOwnProperty("message")))) { thisSerializer.writeInt8(0) const popup_0 = unsafeCast(popup) thisSerializer.writePopupOptions(popup_0) } - else if (((RuntimeType.OBJECT) == (popup_type)) && (((popup!.hasOwnProperty("builder"))))) { + else if (((RuntimeType.OBJECT) == (popup_type)) && ((popup!.hasOwnProperty("builder")))) { thisSerializer.writeInt8(1) const popup_1 = unsafeCast(popup) thisSerializer.writeCustomPopupOptions(popup_1) @@ -2685,7 +2685,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let content_type: int32 = RuntimeType.UNDEFINED content_type = runtimeType(content) - if (((RuntimeType.OBJECT == content_type))) { + if (RuntimeType.OBJECT == content_type) { thisSerializer.writeInt8(0) const content_0 = unsafeCast>(content) thisSerializer.writeInt32(content_0.length) @@ -2694,7 +2694,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeMenuElement(content_0_element) } } - else if (((RuntimeType.FUNCTION == content_type))) { + else if (RuntimeType.FUNCTION == content_type) { thisSerializer.writeInt8(1) const content_1 = unsafeCast(content) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) @@ -2713,7 +2713,7 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let content_type: int32 = RuntimeType.UNDEFINED content_type = runtimeType(content) - if (((RuntimeType.OBJECT == content_type))) { + if (RuntimeType.OBJECT == content_type) { thisSerializer.writeInt8(0) const content_0 = unsafeCast>(content) thisSerializer.writeInt32(content_0.length) @@ -2722,7 +2722,7 @@ export class ArkCommonMethodPeer extends PeerNode { thisSerializer.writeMenuElement(content_0_element) } } - else if (((RuntimeType.FUNCTION == content_type))) { + else if (RuntimeType.FUNCTION == content_type) { thisSerializer.writeInt8(1) const content_1 = unsafeCast(content) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) @@ -2838,12 +2838,12 @@ export class ArkCommonMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) @@ -3031,17 +3031,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -3058,17 +3058,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -3080,12 +3080,12 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -3103,12 +3103,12 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -3120,17 +3120,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -3142,17 +3142,17 @@ export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -3230,12 +3230,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -3247,12 +3247,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -3273,12 +3273,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -3341,12 +3341,12 @@ export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeRectShape(value_1) diff --git a/arkoala/arkui/src/peers/ArkComponent3dPeer.ts b/arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkComponent3dPeer.ts rename to arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts index 0044a7f52d3bc71edfe24aec17c771945a26cc92..fdd54a74ca2825fbce6c3b2de744d1635756fca4 100644 --- a/arkoala/arkui/src/peers/ArkComponent3dPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkComponent3dPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { Component3DAttribute, SceneOptions, Scene, ModelType } from "./../ArkComponent3dInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,12 +90,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -107,12 +107,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -124,12 +124,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -157,12 +157,12 @@ export class ArkComponent3DPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let uri_type: int32 = RuntimeType.UNDEFINED uri_type = runtimeType(uri) - if (((RuntimeType.STRING == uri_type))) { + if (RuntimeType.STRING == uri_type) { thisSerializer.writeInt8(0) const uri_0 = unsafeCast(uri) thisSerializer.writeString(uri_0) } - else if (((RuntimeType.OBJECT == uri_type))) { + else if (RuntimeType.OBJECT == uri_type) { thisSerializer.writeInt8(1) const uri_1 = unsafeCast(uri) thisSerializer.writeResource(uri_1) diff --git a/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts similarity index 89% rename from arkoala/arkui/src/peers/ArkContainerSpanPeer.ts rename to arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts index 740f4c040a336550578df8521e2217c5eb32dbde..d25d66a2bd4fa95ec2855788e04b7f8b51ba9831 100644 --- a/arkoala/arkui/src/peers/ArkContainerSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkContainerSpanPeer.ts @@ -20,19 +20,19 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { ContainerSpanAttribute } from "./../ArkContainerSpanInterfaces" import { ResourceColor, Dimension, BorderRadiuses, Length } from "./../ArkUnitsInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkCounterPeer.ts b/arkoala/arkui/src/generated/peers/ArkCounterPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkCounterPeer.ts rename to arkoala/arkui/src/generated/peers/ArkCounterPeer.ts index a93038e033fa61c1fa75034247074cf5fd4ea7f5..72179b3dbbd7ed5166b8de6a65bf50db247619a4 100644 --- a/arkoala/arkui/src/peers/ArkCounterPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkCounterPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { CounterAttribute } from "./../ArkCounterInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkDataPanelPeer.ts b/arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkDataPanelPeer.ts rename to arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts index ed94010fa90cbe30fddd166197d534d7a444fa28..5cf5bd12a79c8a7d260d4ebb663d1c8006cd3849 100644 --- a/arkoala/arkui/src/peers/ArkDataPanelPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkDataPanelPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { DataPanelShadowOptions, DataPanelConfiguration, ColorStop, DataPanelOptions, DataPanelAttribute, DataPanelType } from "./../ArkDataPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -91,7 +91,7 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_element: ResourceColor | LinearGradient = value[i] let value_element_type: int32 = RuntimeType.UNDEFINED value_element_type = runtimeType(value_element) - if ((((RuntimeType.NUMBER) == (value_element_type)) && ((unsafeCast(value_element)) >= (0)) && ((unsafeCast(value_element)) <= (11))) || (((RuntimeType.NUMBER == value_element_type))) || (((RuntimeType.STRING == value_element_type))) || (((RuntimeType.OBJECT == value_element_type)))) { + if ((((RuntimeType.NUMBER) == (value_element_type)) && ((unsafeCast(value_element)) >= (0)) && ((unsafeCast(value_element)) <= (11))) || (RuntimeType.NUMBER == value_element_type) || (RuntimeType.STRING == value_element_type) || (RuntimeType.OBJECT == value_element_type)) { thisSerializer.writeInt8(0) const value_element_0 = unsafeCast(value_element) let value_element_0_type: int32 = RuntimeType.UNDEFINED @@ -101,17 +101,17 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_element_0_0 = unsafeCast(value_element_0) thisSerializer.writeInt32(value_element_0_0) } - else if (((RuntimeType.NUMBER == value_element_0_type))) { + else if (RuntimeType.NUMBER == value_element_0_type) { thisSerializer.writeInt8(1) const value_element_0_1 = unsafeCast(value_element_0) thisSerializer.writeNumber(value_element_0_1) } - else if (((RuntimeType.STRING == value_element_0_type))) { + else if (RuntimeType.STRING == value_element_0_type) { thisSerializer.writeInt8(2) const value_element_0_2 = unsafeCast(value_element_0) thisSerializer.writeString(value_element_0_2) } - else if (((RuntimeType.OBJECT == value_element_0_type))) { + else if (RuntimeType.OBJECT == value_element_0_type) { thisSerializer.writeInt8(3) const value_element_0_3 = unsafeCast(value_element_0) thisSerializer.writeResource(value_element_0_3) @@ -135,17 +135,17 @@ export class ArkDataPanelPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkDatePickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkDatePickerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts index ab9ba094e3ad5028dde0eb50158a873b6b9d134d..364494ce36a88b3fe71b9e08fdc322a3637e3fb5 100644 --- a/arkoala/arkui/src/peers/ArkDatePickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkDatePickerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { DatePickerResult, DatePickerOptions, DatePickerAttribute } from "./../ArkDatePickerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkDividerPeer.ts b/arkoala/arkui/src/generated/peers/ArkDividerPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkDividerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkDividerPeer.ts index d9d5b82947edce3aef78f0469fa99684ee382a54..0cbf3acb1c0618a4a7681d3d5ccb1086b345fd28 100644 --- a/arkoala/arkui/src/peers/ArkDividerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkDividerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { DividerAttribute } from "./../ArkDividerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -89,17 +89,17 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -111,12 +111,12 @@ export class ArkDividerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) diff --git a/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkEffectComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts index f40a2d34ad4c780cbea4bdfbc4ddd41a02637c2a..efa0a2dc670566010b496fbd343517bed6775d36 100644 --- a/arkoala/arkui/src/peers/ArkEffectComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkEffectComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { EffectComponentAttribute } from "./../ArkEffectComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkEllipsePeer.ts b/arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkEllipsePeer.ts rename to arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts index 498d739af93d6ba8fa5885a36fc7a81a28f1e0e4..05fbfec9a9eab0b61706c6c645d30d56fc1761f9 100644 --- a/arkoala/arkui/src/peers/ArkEllipsePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkEllipsePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { EllipseOptions, EllipseAttribute } from "./../ArkEllipseInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts index 8297202c7299078c0ce09708bf50e019bee2905c..f54f87df92e5fd89d69af029be8bde4cf0a5ee00 100644 --- a/arkoala/arkui/src/peers/ArkEmbeddedComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkEmbeddedComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { TerminationInfo, EmbeddedComponentAttribute } from "./../ArkEmbeddedComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFlexPeer.ts b/arkoala/arkui/src/generated/peers/ArkFlexPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkFlexPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFlexPeer.ts index e446558724acbcfab883dcf8a879467404226919..15e3aa041024b802d2bbf12bb71f6cdec5d1e122 100644 --- a/arkoala/arkui/src/peers/ArkFlexPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFlexPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { FlexOptions, FlexAttribute, FlexSpaceOptions } from "./../ArkFlexInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFlowItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkFlowItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts index e593a1aa5636b5aaca7b085e13df27e8cdedf659..2753b44d05fe265f3e1982518354f8f75a4292aa 100644 --- a/arkoala/arkui/src/peers/ArkFlowItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFlowItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { FlowItemAttribute } from "./../ArkFlowItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFolderStackPeer.ts b/arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkFolderStackPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts index d18b75a326dad6e4678af289e36130d883a3ea73..9bcdd69d6495fe0ede59dd5c2c3c0dc5330e7e3b 100644 --- a/arkoala/arkui/src/peers/ArkFolderStackPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFolderStackPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, FolderStackOptions, FolderStackAttribute } from "./../ArkFolderStackInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFormComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkFormComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts index 57bf5f7c7dfbf699ce5373c4caf2db0d83cc8cca..6cdc4fa60de8d5c8ea72a552966da48561c8b737 100644 --- a/arkoala/arkui/src/peers/ArkFormComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFormComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { FormDimension, FormCallbackInfo, FormInfo, FormComponentAttribute, FormRenderingMode, FormShape } from "./../ArkFormComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkFormLinkPeer.ts b/arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkFormLinkPeer.ts rename to arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts index 7759b7aa434e8e76839375c7902f959de34cde6f..2131cf14a84bc95313616a5ea96483e0fa6baaf0 100644 --- a/arkoala/arkui/src/peers/ArkFormLinkPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkFormLinkPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { FormLinkOptions, FormLinkAttribute } from "./../ArkFormLinkInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkGaugePeer.ts b/arkoala/arkui/src/generated/peers/ArkGaugePeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkGaugePeer.ts rename to arkoala/arkui/src/generated/peers/ArkGaugePeer.ts index 30672e17a4cf621c7bed94f2eeb99ad8b1f060a2..0c5a828b6479b573873b4dfc841f4c209876715f 100644 --- a/arkoala/arkui/src/peers/ArkGaugePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGaugePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, MultiShadowOptions, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { GaugeShadowOptions, GaugeIndicatorOptions, GaugeConfiguration, GaugeOptions, GaugeAttribute } from "./../ArkGaugeInterfaces" import { ColorStop } from "./../ArkDataPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -95,7 +95,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -105,17 +105,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -135,7 +135,7 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_2_element_0 = value_2_element[0] let value_2_element_0_type: int32 = RuntimeType.UNDEFINED value_2_element_0_type = runtimeType(value_2_element_0) - if ((((RuntimeType.NUMBER) == (value_2_element_0_type)) && ((unsafeCast(value_2_element_0)) >= (0)) && ((unsafeCast(value_2_element_0)) <= (11))) || (((RuntimeType.NUMBER == value_2_element_0_type))) || (((RuntimeType.STRING == value_2_element_0_type))) || (((RuntimeType.OBJECT == value_2_element_0_type)))) { + if ((((RuntimeType.NUMBER) == (value_2_element_0_type)) && ((unsafeCast(value_2_element_0)) >= (0)) && ((unsafeCast(value_2_element_0)) <= (11))) || (RuntimeType.NUMBER == value_2_element_0_type) || (RuntimeType.STRING == value_2_element_0_type) || (RuntimeType.OBJECT == value_2_element_0_type)) { thisSerializer.writeInt8(0) const value_2_element_0_0 = unsafeCast(value_2_element_0) let value_2_element_0_0_type: int32 = RuntimeType.UNDEFINED @@ -145,17 +145,17 @@ export class ArkGaugePeer extends ArkCommonMethodPeer { const value_2_element_0_0_0 = unsafeCast(value_2_element_0_0) thisSerializer.writeInt32(value_2_element_0_0_0) } - else if (((RuntimeType.NUMBER == value_2_element_0_0_type))) { + else if (RuntimeType.NUMBER == value_2_element_0_0_type) { thisSerializer.writeInt8(1) const value_2_element_0_0_1 = unsafeCast(value_2_element_0_0) thisSerializer.writeNumber(value_2_element_0_0_1) } - else if (((RuntimeType.STRING == value_2_element_0_0_type))) { + else if (RuntimeType.STRING == value_2_element_0_0_type) { thisSerializer.writeInt8(2) const value_2_element_0_0_2 = unsafeCast(value_2_element_0_0) thisSerializer.writeString(value_2_element_0_0_2) } - else if (((RuntimeType.OBJECT == value_2_element_0_0_type))) { + else if (RuntimeType.OBJECT == value_2_element_0_0_type) { thisSerializer.writeInt8(3) const value_2_element_0_0_3 = unsafeCast(value_2_element_0_0) thisSerializer.writeResource(value_2_element_0_0_3) diff --git a/arkoala/arkui/src/peers/ArkGridColPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridColPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkGridColPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridColPeer.ts index ce59b24d4ea7717d13ccda3a802764f6bbed48b9..6ab69bd831a7d977dbfde9a04e087679e7d140d6 100644 --- a/arkoala/arkui/src/peers/ArkGridColPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridColPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GridColColumnOption, GridColOptions, GridColAttribute } from "./../ArkGridColInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,12 +90,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeGridColColumnOption(value_1) @@ -107,12 +107,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeGridColColumnOption(value_1) @@ -124,12 +124,12 @@ export class ArkGridColPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeGridColColumnOption(value_1) diff --git a/arkoala/arkui/src/peers/ArkGridContainerPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkGridContainerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts index 7add5e969465cd1df69aa69de695990d63d28389..336ad962c489c63e6d5db9358254fd636a636e53 100644 --- a/arkoala/arkui/src/peers/ArkGridContainerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridContainerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkColumnPeer, ArkColumnAttributes } from "./ArkColumnPeer" import { ColumnAttribute } from "./../ArkColumnInterfaces" @@ -35,7 +35,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GridContainerOptions, GridContainerAttribute, SizeType } from "./../ArkGridContainerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkGridItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkGridItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts index 1868555c1b5fe4d767923534b64afe8501b61ba0..c9b9dd38d9560900202bc58df69bae6bd342eb49 100644 --- a/arkoala/arkui/src/peers/ArkGridItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GridItemOptions, GridItemAttribute, GridItemStyle } from "./../ArkGridItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkGridPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkGridPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridPeer.ts index 1f6da67e700c50785b1576887a17313eb0d9aab1..555e41d0b986945973d9505472c221a755998e68 100644 --- a/arkoala/arkui/src/peers/ArkGridPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, Scro import { GridDirection, GridItemAlignment, GridAttribute, ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" import { ScrollState } from "./../ArkListInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -112,12 +112,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -134,12 +134,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -232,12 +232,12 @@ export class ArkGridPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkGridRowPeer.ts b/arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkGridRowPeer.ts rename to arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts index 24ad051e95e03d961b4a9b06be94c95db6e807a2..5c3f26478596889df311b4726a366728f1e89dc0 100644 --- a/arkoala/arkui/src/peers/ArkGridRowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkGridRowPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GridRowOptions, GridRowAttribute, GutterOption, GridRowColumnOption, BreakPoints, GridRowDirection, GridRowSizeOption, BreakpointsReference } from "./../ArkGridRowInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts b/arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkHyperlinkPeer.ts rename to arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts index c73cef60a8c98e473d4986b82428bdd6aaa05298..9fac4aa085a5033f456409bd761aaebbe39c6c7d 100644 --- a/arkoala/arkui/src/peers/ArkHyperlinkPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkHyperlinkPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { HyperlinkAttribute } from "./../ArkHyperlinkInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -78,12 +78,12 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let address_type: int32 = RuntimeType.UNDEFINED address_type = runtimeType(address) - if (((RuntimeType.STRING == address_type))) { + if (RuntimeType.STRING == address_type) { thisSerializer.writeInt8(0) const address_0 = unsafeCast(address) thisSerializer.writeString(address_0) } - else if (((RuntimeType.OBJECT == address_type))) { + else if (RuntimeType.OBJECT == address_type) { thisSerializer.writeInt8(1) const address_1 = unsafeCast(address) thisSerializer.writeResource(address_1) @@ -95,12 +95,12 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type: int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0) const content_value_0 = unsafeCast(content_value) thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1) const content_value_1 = unsafeCast(content_value) thisSerializer.writeResource(content_value_1) @@ -118,17 +118,17 @@ export class ArkHyperlinkPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts index 17e98a9ff006b54d699985dbc874bd2e4c380e7a..ffeefd0424d844a3acb70c6cc7d2c344088103e7 100644 --- a/arkoala/arkui/src/peers/ArkImageAnimatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkImageAnimatorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ImageFrameInfo, ImageAnimatorAttribute } from "./../ArkImageAnimatorInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkImagePeer.ts b/arkoala/arkui/src/generated/peers/ArkImagePeer.ts similarity index 90% rename from arkoala/arkui/src/peers/ArkImagePeer.ts rename to arkoala/arkui/src/generated/peers/ArkImagePeer.ts index 7d9ca8b713c25adb0a5b57e8ca05a0e351abdf04..41a1c6a58b4ed5b203824c58c14bc754d325f29c 100644 --- a/arkoala/arkui/src/peers/ArkImagePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkImagePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ColorFilter } from "./../ArkColorFilterMaterialized" import { ImageAnalyzerConfig, ImageAnalyzerType, ImageAIOptions } from "./../ArkImageCommonInterfaces" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -80,28 +80,28 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) let src_1_type: int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0) const src_1_0 = unsafeCast(src_1) thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1) const src_1_1 = unsafeCast(src_1) thisSerializer.writeResource(src_1_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) { thisSerializer.writeInt8(2) const src_2 = unsafeCast(src) thisSerializer.writeDrawableDescriptor(src_2) @@ -113,33 +113,33 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) let src_1_type: int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0) const src_1_0 = unsafeCast(src_1) thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1) const src_1_1 = unsafeCast(src_1) thisSerializer.writeResource(src_1_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) { thisSerializer.writeInt8(2) const src_2 = unsafeCast(src) thisSerializer.writeDrawableDescriptor(src_2) } - else if (((RuntimeType.NUMBER == src_type))) { + else if (RuntimeType.NUMBER == src_type) { thisSerializer.writeInt8(3) const src_3 = unsafeCast(src) thisSerializer.writeInt32(src_3) @@ -151,28 +151,28 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) let src_1_type: int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0) const src_1_0 = unsafeCast(src_1) thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1) const src_1_1 = unsafeCast(src_1) thisSerializer.writeResource(src_1_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) { thisSerializer.writeInt8(2) const src_2 = unsafeCast(src) thisSerializer.writeDrawableDescriptor(src_2) @@ -185,17 +185,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("bundleName")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writePixelMap(value_2) @@ -218,17 +218,17 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -272,7 +272,7 @@ export class ArkImagePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeColorFilter(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_DrawingColorFilterStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_DrawingColorFilterStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeDrawingColorFilter(value_1) diff --git a/arkoala/arkui/src/peers/ArkImageSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkImageSpanPeer.ts rename to arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts index 01531cb1ef1b00d7cfc68f501d886586101c53f0..330f6ae8058a913be245430b27166936c610f5b5 100644 --- a/arkoala/arkui/src/peers/ArkImageSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkImageSpanPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkBaseSpanPeer, ArkBaseSpanAttributes } from "./ArkSpanPeer" import { BaseSpan, TextBackgroundStyle } from "./../ArkSpanInterfaces" @@ -35,7 +35,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ColorFilter } from "./../ArkColorFilterMaterialized" import { ImageCompleteCallback, ImageSpanAttribute } from "./../ArkImageSpanInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -80,23 +80,23 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { + if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(0) const value_0_0 = unsafeCast(value_0) thisSerializer.writeString(value_0_0) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeResource(value_0_1) } } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writePixelMap(value_1) @@ -116,7 +116,7 @@ export class ArkImageSpanPeer extends ArkBaseSpanPeer { const value_0 = unsafeCast(value) thisSerializer.writeColorFilter(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_DrawingColorFilterStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_DrawingColorFilterStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeDrawingColorFilter(value_1) diff --git a/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts index 02b982f2c6851b5ad06a741e0a2330acb7f677e4..fe30109f1fef49033ed45f53668eac197960cf72 100644 --- a/arkoala/arkui/src/peers/ArkIndicatorcomponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkIndicatorcomponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -57,12 +57,12 @@ import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { IndicatorComponentController } from "./../ArkIndicatorComponentControllerMaterialized" import { IndicatorComponentAttribute } from "./../ArkIndicatorcomponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkIndicatorComponentPeer extends ArkCommonMethodPeer { diff --git a/arkoala/arkui/src/peers/ArkLinePeer.ts b/arkoala/arkui/src/generated/peers/ArkLinePeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkLinePeer.ts rename to arkoala/arkui/src/generated/peers/ArkLinePeer.ts index a7133b79cd5c6d98dc319a5c9a33d83dd857bf16..bcca11ccd85a2390a8f94d3c9307ecb0d8dd7589 100644 --- a/arkoala/arkui/src/peers/ArkLinePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLinePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LineOptions, LineAttribute } from "./../ArkLineInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts index 27165c67bd825c097c8e614533b9a2d92b31122d..a75f173f848fba5f9e6cb41520744f179f60cc76 100644 --- a/arkoala/arkui/src/peers/ArkLinearindicatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLinearindicatorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearIndicatorStyle, OnLinearIndicatorChangeCallback, LinearIndicatorAttribute, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { LinearIndicatorController } from "./../ArkLinearIndicatorControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts b/arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkListItemGroupPeer.ts rename to arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts index 077940717d37382c1f8056b0e740ae8872c1cdc9..e7bbb421df7b37aac58acb61274b12b0832554e6 100644 --- a/arkoala/arkui/src/peers/ArkListItemGroupPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkListItemGroupPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ListDividerOptions } from "./../ArkListInterfaces" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { ListItemGroupOptions, ListItemGroupAttribute, ListItemGroupStyle } from "./../ArkListItemGroupInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkListItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkListItemPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkListItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkListItemPeer.ts index 07bcedd1ab9bf2eaead8c4472f1b1de3348297c2..b981722bc28ff5723b66d8e4fb3f330479a04582 100644 --- a/arkoala/arkui/src/peers/ArkListItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkListItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { Sticky, EditMode, SwipeActionOptions, SwipeActionItem, SwipeEdgeEffect, SwipeActionState, ListItemOptions, ListItemAttribute, ListItemStyle } from "./../ArkListItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -105,12 +105,12 @@ export class ArkListItemPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { + if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeBoolean(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) diff --git a/arkoala/arkui/src/peers/ArkListPeer.ts b/arkoala/arkui/src/generated/peers/ArkListPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkListPeer.ts rename to arkoala/arkui/src/generated/peers/ArkListPeer.ts index d85305e3cc705afdc0ae8c837ec320676f72023b..4ba18fa19b55b3a2369193a8dbf381f5a7ac9596 100644 --- a/arkoala/arkui/src/peers/ArkListPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkListPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, ItemDragInfo } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollOptions, Scro import { ListItemAlign, ListDividerOptions, ChainAnimationOptions, StickyStyle, ScrollSnapAlign, OnScrollVisibleContentChangeCallback, ListAttribute, ChainEdgeEffect, ScrollState, ListOptions } from "./../ArkListInterfaces" import { ChildrenMainSize } from "./../ArkChildrenMainSizeMaterialized" import { Scroller } from "./../ArkScrollerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -156,12 +156,12 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -272,12 +272,12 @@ export class ArkListPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) const value_1_minLength = value_1.minLength diff --git a/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts b/arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts rename to arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts index e4948f7146ceeac10c8b9820eb0cd6630788d24d..bc82bf4e839889f23d19681e1251c4ca0409fb7d 100644 --- a/arkoala/arkui/src/peers/ArkLoadingProgressPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLoadingProgressPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LoadingProgressConfiguration, LoadingProgressAttribute } from "./../ArkLoadingProgressInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -86,17 +86,17 @@ export class ArkLoadingProgressPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkLocationButtonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts index 00d172d5b87e193ec3035f4dffa9a06004335a1f..0c6d76cc20ba145cddbfbb88d61da56e5fd61e0d 100644 --- a/arkoala/arkui/src/peers/ArkLocationButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkLocationButtonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -35,12 +35,12 @@ import { LengthUnit } from "./../ArkArkuiExternalInterfaces" import { BaseEvent } from "./../ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./../ArkCommonInterfaces" import { ButtonType } from "./../ArkButtonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkMarqueePeer.ts b/arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkMarqueePeer.ts rename to arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts index a93d1e72be2c2b267552f4ce242a43a58a340a49..9fa204d994451c1165697d87606ea8a0b357e901 100644 --- a/arkoala/arkui/src/peers/ArkMarqueePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMarqueePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { MarqueeOptions, MarqueeAttribute } from "./../ArkMarqueeInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -89,17 +89,17 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -117,7 +117,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -127,7 +127,7 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -139,12 +139,12 @@ export class ArkMarqueePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts b/arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts similarity index 91% rename from arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts rename to arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts index 85834e92c0a927e3c893d0fe84b4436c0c9dc482..be86511235a10cfca7094eb2a8979313a5cf04be 100644 --- a/arkoala/arkui/src/peers/ArkMediaCachedImagePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMediaCachedImagePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkImagePeer, ArkImageAttributes } from "./ArkImagePeer" import { ImageAttribute, ResizableOptions, DrawingLattice, ImageRenderMode, DynamicRangeMode, ImageInterpolation, ImageSourceSize, DrawingColorFilter, ImageErrorCallback, ResolutionQuality, DrawableDescriptor } from "./../ArkImageInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ColorFilter } from "./../ArkColorFilterMaterialized" import { ImageAnalyzerConfig, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" import { ASTCResource, MediaCachedImageAttribute } from "./../ArkMediaCachedImageInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -80,33 +80,33 @@ export class ArkMediaCachedImagePeer extends ArkImagePeer { const thisSerializer: Serializer = Serializer.hold() let src_type: int32 = RuntimeType.UNDEFINED src_type = runtimeType(src) - if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("isEditable"))))) { + if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(0) const src_0 = unsafeCast(src) thisSerializer.writePixelMap(src_0) } - else if ((((RuntimeType.STRING == src_type))) || (((RuntimeType.OBJECT == src_type)))) { + else if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { thisSerializer.writeInt8(1) const src_1 = unsafeCast(src) let src_1_type: int32 = RuntimeType.UNDEFINED src_1_type = runtimeType(src_1) - if (((RuntimeType.STRING == src_1_type))) { + if (RuntimeType.STRING == src_1_type) { thisSerializer.writeInt8(0) const src_1_0 = unsafeCast(src_1) thisSerializer.writeString(src_1_0) } - else if (((RuntimeType.OBJECT == src_1_type))) { + else if (RuntimeType.OBJECT == src_1_type) { thisSerializer.writeInt8(1) const src_1_1 = unsafeCast(src_1) thisSerializer.writeResource(src_1_1) } } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("_DrawableDescriptorStub"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("_DrawableDescriptorStub")))) { thisSerializer.writeInt8(2) const src_2 = unsafeCast(src) thisSerializer.writeDrawableDescriptor(src_2) } - else if (((RuntimeType.OBJECT) == (src_type)) && (((src!.hasOwnProperty("sources"))))) { + else if (((RuntimeType.OBJECT) == (src_type)) && ((src!.hasOwnProperty("sources")))) { thisSerializer.writeInt8(3) const src_3 = unsafeCast(src) thisSerializer.writeASTCResource(src_3) diff --git a/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts b/arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts rename to arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts index 3bc2aaf879fe2a455323dcc0713aab2c24d9c402..ce5a4f1cf2849beff8ee2fffe3989b870f84aa58 100644 --- a/arkoala/arkui/src/peers/ArkMenuItemGroupPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMenuItemGroupPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { MenuItemGroupOptions, MenuItemGroupAttribute } from "./../ArkMenuItemGroupInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkMenuItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts similarity index 91% rename from arkoala/arkui/src/peers/ArkMenuItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts index 9b502ef7d7feedec5f80fea78af9114421c69d86..60fbf4f558879baf8b29925c3326649d4c7ccb75 100644 --- a/arkoala/arkui/src/peers/ArkMenuItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMenuItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { MenuItemOptions, MenuItemAttribute } from "./../ArkMenuItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,12 +83,12 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.OBJECT == value_value_type))) { + if (RuntimeType.OBJECT == value_value_type) { thisSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) thisSerializer.writeMenuItemOptions(value_value_0) } - else if (((RuntimeType.FUNCTION == value_value_type))) { + else if (RuntimeType.FUNCTION == value_value_type) { thisSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_value_1)) @@ -104,28 +104,28 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.BOOLEAN == value_type))) { + if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeBoolean(value_0) } - else if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + else if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) let value_1_type: int32 = RuntimeType.UNDEFINED value_1_type = runtimeType(value_1) - if (((RuntimeType.STRING == value_1_type))) { + if (RuntimeType.STRING == value_1_type) { thisSerializer.writeInt8(0) const value_1_0 = unsafeCast(value_1) thisSerializer.writeString(value_1_0) } - else if (((RuntimeType.OBJECT == value_1_type))) { + else if (RuntimeType.OBJECT == value_1_type) { thisSerializer.writeInt8(1) const value_1_1 = unsafeCast(value_1) thisSerializer.writeResource(value_1_1) } } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_SymbolGlyphModifierStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_SymbolGlyphModifierStub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeSymbolGlyphModifier(value_2) @@ -154,17 +154,17 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -187,17 +187,17 @@ export class ArkMenuItemPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkMenuPeer.ts b/arkoala/arkui/src/generated/peers/ArkMenuPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkMenuPeer.ts rename to arkoala/arkui/src/generated/peers/ArkMenuPeer.ts index 5c2dac33ff4c962005630ca5824aff3bc25e64e2..775c704482668707c86a52302d078c7da990b4f5 100644 --- a/arkoala/arkui/src/peers/ArkMenuPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkMenuPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { SubMenuExpandingMode, MenuAttribute } from "./../ArkMenuInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -95,17 +95,17 @@ export class ArkMenuPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts b/arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkNavDestinationPeer.ts rename to arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts index 09a844ee0aaf5215b78f70694a677655dce15a81..2bdd580f697dc6ad32d4cd42a129ab4a2ebbdc7c 100644 --- a/arkoala/arkui/src/peers/ArkNavDestinationPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNavDestinationPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, LayoutSafeAreaType, LayoutSafeAreaEdge } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -57,12 +57,12 @@ import { NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem import { NavDestinationContext } from "./../ArkNavDestinationContextMaterialized" import { NavPathInfo } from "./../ArkNavPathInfoMaterialized" import { NavPathStack } from "./../ArkNavPathStackMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -112,28 +112,28 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED value_0_type = runtimeType(value_0) - if (((RuntimeType.STRING == value_0_type))) { + if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(0) const value_0_0 = unsafeCast(value_0) thisSerializer.writeString(value_0_0) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeResource(value_0_1) } } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("isEditable")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writePixelMap(value_1) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_SymbolGlyphModifierStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_SymbolGlyphModifierStub")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeSymbolGlyphModifier(value_2) @@ -145,7 +145,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast>(value) thisSerializer.writeInt32(value_0.length) @@ -154,7 +154,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeNavigationMenuItem(value_0_element) } } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) @@ -223,27 +223,27 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("main"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("main")))) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeNavDestinationCommonTitle(value_2) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("builder"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("builder")))) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeNavDestinationCustomTitle(value_3) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("bundleName")))) { thisSerializer.writeInt8(4) const value_4 = unsafeCast(value) thisSerializer.writeResource(value_4) @@ -262,7 +262,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let toolbarParam_type: int32 = RuntimeType.UNDEFINED toolbarParam_type = runtimeType(toolbarParam) - if (((RuntimeType.OBJECT == toolbarParam_type))) { + if (RuntimeType.OBJECT == toolbarParam_type) { thisSerializer.writeInt8(0) const toolbarParam_0 = unsafeCast>(toolbarParam) thisSerializer.writeInt32(toolbarParam_0.length) @@ -271,7 +271,7 @@ export class ArkNavDestinationPeer extends ArkCommonMethodPeer { thisSerializer.writeToolbarItem(toolbarParam_0_element) } } - else if (((RuntimeType.FUNCTION == toolbarParam_type))) { + else if (RuntimeType.FUNCTION == toolbarParam_type) { thisSerializer.writeInt8(1) const toolbarParam_1 = unsafeCast(toolbarParam) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(toolbarParam_1)) diff --git a/arkoala/arkui/src/peers/ArkNavRouterPeer.ts b/arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkNavRouterPeer.ts rename to arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts index 321ac21ad832921d91b51a2081b5634e0ac978f4..2e6bf262016d6d16dd01584508048eaae78908b0 100644 --- a/arkoala/arkui/src/peers/ArkNavRouterPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNavRouterPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { NavRouteMode, NavRouterAttribute, RouteInfo } from "./../ArkNavRouterInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkNavigatorPeer.ts b/arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkNavigatorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts index e162d4a8fb7e8f4823280d50c0d803de3f0f23d3..1199554ec613c260e2a073d738d78fae13f2faeb 100644 --- a/arkoala/arkui/src/peers/ArkNavigatorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNavigatorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { NavigationType, NavigatorAttribute } from "./../ArkNavigatorInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts b/arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkNodeContainerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts index f468e767117c22b5c26bb098d453e317bd75b6df..75180684cec35e1e093f20fc9fcde20d3e272a8c 100644 --- a/arkoala/arkui/src/peers/ArkNodeContainerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkNodeContainerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { NodeContainerAttribute } from "./../ArkNodeContainerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPanelPeer.ts b/arkoala/arkui/src/generated/peers/ArkPanelPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkPanelPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPanelPeer.ts index 7cf2826389b29f75cf6bf7766210d0c8a21e3056..a501928825565cf5cd851112e32b7ec45e5133b2 100644 --- a/arkoala/arkui/src/peers/ArkPanelPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPanelPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { PanelMode, PanelType, PanelHeight, PanelAttribute } from "./../ArkPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -107,12 +107,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -124,12 +124,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -141,12 +141,12 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -166,17 +166,17 @@ export class ArkPanelPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkPasteButtonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts index 98a5f4002d79ccd1e69d6a50e260a83030822e4a..a78a0dd02dcc9ec72db4a7d0481c70ae675ccfbb 100644 --- a/arkoala/arkui/src/peers/ArkPasteButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPasteButtonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -35,12 +35,12 @@ import { LengthUnit } from "./../ArkArkuiExternalInterfaces" import { BaseEvent } from "./../ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./../ArkCommonInterfaces" import { ButtonType } from "./../ArkButtonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPathPeer.ts b/arkoala/arkui/src/generated/peers/ArkPathPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkPathPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPathPeer.ts index 79e6f8033aa25bf8a4fcaaf63016632a18e84b89..0dfbed17235447b25e3e08d45572f507e2225b98 100644 --- a/arkoala/arkui/src/peers/ArkPathPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPathPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { PathOptions, PathAttribute } from "./../ArkPathInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPatternLockPeer.ts b/arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkPatternLockPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts index 5f25340cda1863f04656e072aaba74486c39d3db..997c22beebf471a6cff825c92e1bb13504839bb2 100644 --- a/arkoala/arkui/src/peers/ArkPatternLockPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPatternLockPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { CircleStyleOptions, PatternLockAttribute, PatternLockChallengeResult } from "./../ArkPatternLockInterfaces" import { PatternLockController } from "./../ArkPatternLockControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -102,17 +102,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -129,17 +129,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -156,17 +156,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -183,17 +183,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -210,17 +210,17 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -232,12 +232,12 @@ export class ArkPatternLockPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) diff --git a/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkPluginComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts index 321d2e40a281c12535dc12de9b17e1fa41239857..19ad6103157fb106cec13894c87e8ba3fc78dabc 100644 --- a/arkoala/arkui/src/peers/ArkPluginComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPluginComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { PluginErrorCallback, PluginComponentOptions, PluginComponentAttribute, PluginComponentTemplate } from "./../ArkPluginComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPolygonPeer.ts b/arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkPolygonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts index 3d787d437ce2634160a6e4fd967d963f0496a0b2..bf2c46559daa355d82195cd38e4ad9e5c8b7d0ce 100644 --- a/arkoala/arkui/src/peers/ArkPolygonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPolygonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { Point } from "./../ArkPointInterfaces" import { PolygonOptions, PolygonAttribute } from "./../ArkPolygonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkPolylinePeer.ts b/arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkPolylinePeer.ts rename to arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts index 04e251f0f9a1e059f4f62aa3f9966e841e59c3a8..76e3cd4a341733c50536587814710722475b4079 100644 --- a/arkoala/arkui/src/peers/ArkPolylinePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkPolylinePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { Point } from "./../ArkPointInterfaces" import { PolylineOptions, PolylineAttribute } from "./../ArkPolylineInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkProgressPeer.ts b/arkoala/arkui/src/generated/peers/ArkProgressPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkProgressPeer.ts rename to arkoala/arkui/src/generated/peers/ArkProgressPeer.ts index 5813f04ee61c26642a6a8a5f52f25fd9d4a7189d..b1129a6d98fd90d9d31d1cf8dade0ceef760a723 100644 --- a/arkoala/arkui/src/peers/ArkProgressPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkProgressPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { LinearStyleOptions, RingStyleOptions, CapsuleStyleOptions, ProgressStyleOptions, ProgressConfiguration, ScanEffectOptions, CommonProgressStyleOptions, ProgressStatus, ProgressOptions, ProgressAttribute, ProgressStyle, ProgressType } from "./../ArkProgressInterfaces" import { ColorStop } from "./../ArkDataPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -89,7 +89,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -99,17 +99,17 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -127,7 +127,7 @@ export class ArkProgressPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("strokeRadius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("strokeRadius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeLinearStyleOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkQrcodePeer.ts b/arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkQrcodePeer.ts rename to arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts index ccbd008f50a737342fad50c4962458cff0d668fb..2d1836946ebc72abe04b2916fac9c6b51839289b 100644 --- a/arkoala/arkui/src/peers/ArkQrcodePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkQrcodePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { QRCodeAttribute } from "./../ArkQrcodeInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -86,17 +86,17 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -113,17 +113,17 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -135,12 +135,12 @@ export class ArkQRCodePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkRadioPeer.ts b/arkoala/arkui/src/generated/peers/ArkRadioPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRadioPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRadioPeer.ts index b38d8bcd10a11ded6c03c88f4996067125fb9000..fbf5bd133885cb5fdeb088cc4307e4f6fc4d164b 100644 --- a/arkoala/arkui/src/peers/ArkRadioPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRadioPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RadioStyle, RadioConfiguration, RadioOptions, RadioAttribute, RadioIndicatorType } from "./../ArkRadioInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRatingPeer.ts b/arkoala/arkui/src/generated/peers/ArkRatingPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRatingPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRatingPeer.ts index 9017b71a9d4fb4cce85564d5d87e99a70a0c0fb5..105914061e0f1403c1312789736d6856334952d3 100644 --- a/arkoala/arkui/src/peers/ArkRatingPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRatingPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { StarStyleOptions, RatingConfiguration, RatingOptions, RatingAttribute } from "./../ArkRatingInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRectPeer.ts b/arkoala/arkui/src/generated/peers/ArkRectPeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkRectPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRectPeer.ts index ae58cfc12fd546f80eb3a43a0bd58cfc88848f8b..f32373346b389afff1d0f9dcf0af4a282c88c974 100644 --- a/arkoala/arkui/src/peers/ArkRectPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRectPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonShapeMethodPeer, ArkCommonShapeMethodAttributes } from "./ArkCommonPeer" import { CommonShapeMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RectOptions, RoundedRectOptions, RectAttribute } from "./../ArkRectInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -83,7 +83,7 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const options_value = options! let options_value_type: int32 = RuntimeType.UNDEFINED options_value_type = runtimeType(options_value) - if (((RuntimeType.OBJECT) == (options_value_type)) && (((options_value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (options_value_type)) && ((options_value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const options_value_0 = unsafeCast(options_value) thisSerializer.writeRectOptions(options_value_0) @@ -101,12 +101,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -118,12 +118,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -135,17 +135,17 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast>(value) thisSerializer.writeInt32(value_2.length) @@ -153,12 +153,12 @@ export class ArkRectPeer extends ArkCommonShapeMethodPeer { const value_2_element: number | string = value_2[i] let value_2_element_type: int32 = RuntimeType.UNDEFINED value_2_element_type = runtimeType(value_2_element) - if (((RuntimeType.NUMBER == value_2_element_type))) { + if (RuntimeType.NUMBER == value_2_element_type) { thisSerializer.writeInt8(0) const value_2_element_0 = unsafeCast(value_2_element) thisSerializer.writeNumber(value_2_element_0) } - else if (((RuntimeType.STRING == value_2_element_type))) { + else if (RuntimeType.STRING == value_2_element_type) { thisSerializer.writeInt8(1) const value_2_element_1 = unsafeCast(value_2_element) thisSerializer.writeString(value_2_element_1) diff --git a/arkoala/arkui/src/peers/ArkRefreshPeer.ts b/arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRefreshPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts index e1c525c76f3e92836014ef0a3aa04c486ea337b3..f031b1c5232e2786d2de7bba1141fe1c95dc22f4 100644 --- a/arkoala/arkui/src/peers/ArkRefreshPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRefreshPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RefreshStatus, RefreshOptions, RefreshAttribute } from "./../ArkRefreshInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts b/arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts index c7cae651bf971038d8c16ea06cecec71a2ed3ec1..6738936785ad2557b4a004e2c2972b56e3e7e7cf 100644 --- a/arkoala/arkui/src/peers/ArkRelativeContainerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRelativeContainerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { GuideLineStyle, BarrierStyle, LocalizedBarrierStyle, GuideLinePosition, BarrierDirection, LocalizedBarrierDirection, RelativeContainerAttribute } from "./../ArkRelativeContainerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts b/arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts index 793e883e4a2ce67421327a1677ed1b95b48f1981..4318cdb0935effa14c39adf8ba3a3e6f425585fa 100644 --- a/arkoala/arkui/src/peers/ArkRemoteWindowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRemoteWindowPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { WindowAnimationTarget, RemoteWindowAttribute, RRect } from "./../ArkRemoteWindowInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRichEditorPeer.ts b/arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRichEditorPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts index 9ff4a841e7d662261ea6e80ddb9b1226d23d0917..0508679fda2a27ee7283c5a8252a616347fa2d98 100644 --- a/arkoala/arkui/src/peers/ArkRichEditorPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRichEditorPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -70,12 +70,12 @@ import { StyledStringController } from "./../ArkStyledStringControllerMaterializ import { MutableStyledString } from "./../ArkMutableStyledStringMaterialized" import { ImageAttachment } from "./../ArkImageAttachmentMaterialized" import { CustomSpan } from "./../ArkCustomSpanMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -181,17 +181,17 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -208,17 +208,17 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -322,12 +322,12 @@ export class ArkRichEditorPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkRichTextPeer.ts b/arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRichTextPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts index f94d51d9e3a6b0911c9d6474756a1a7b779775d9..54163267fa9bb046489fc3fd1dae22476ff28e2e 100644 --- a/arkoala/arkui/src/peers/ArkRichTextPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRichTextPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RichTextAttribute } from "./../ArkRichTextInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRootScenePeer.ts b/arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkRootScenePeer.ts rename to arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts index 1bdc6091d988ec83c87d9f4b5bfee08fa56b0b29..08fed5bc893682992f49f076eb83f2737cf46e8e 100644 --- a/arkoala/arkui/src/peers/ArkRootScenePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRootScenePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RootSceneSession, RootSceneAttribute } from "./../ArkRootSceneInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRowPeer.ts b/arkoala/arkui/src/generated/peers/ArkRowPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkRowPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRowPeer.ts index 1a17745b2f494bcf17098dd4e7e1e02aea638476..bc225f60f3a1cc4b008cd297b521f54aa7765707 100644 --- a/arkoala/arkui/src/peers/ArkRowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRowPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RowOptions, RowAttribute } from "./../ArkRowInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkRowSplitPeer.ts b/arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkRowSplitPeer.ts rename to arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts index 919c64cd0211ec6463f73fffb4c02164b50519d8..46430ced543b601b3757a318267995c29bd1b500 100644 --- a/arkoala/arkui/src/peers/ArkRowSplitPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkRowSplitPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { RowSplitAttribute } from "./../ArkRowSplitInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts b/arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSaveButtonPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts index ea9198f7a75b18eaeb8f87cd8ffd9acb1f96386d..54ce8f20bb3c3e16556951b246f13d19847ebb7f 100644 --- a/arkoala/arkui/src/peers/ArkSaveButtonPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSaveButtonPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkSecurityComponentMethodPeer, ArkSecurityComponentMethodAttributes } from "./ArkSecurityComponentPeer" import { SecurityComponentMethod, SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -35,12 +35,12 @@ import { LengthUnit } from "./../ArkArkuiExternalInterfaces" import { BaseEvent } from "./../ArkBaseEventMaterialized" import { EventTarget, SourceType, SourceTool } from "./../ArkCommonInterfaces" import { ButtonType } from "./../ArkButtonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkScreenPeer.ts b/arkoala/arkui/src/generated/peers/ArkScreenPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkScreenPeer.ts rename to arkoala/arkui/src/generated/peers/ArkScreenPeer.ts index 60609e731e44a802e685ba984f0a18d87b4f9158..f3737252b5085c36ef811e6cd9d71fe871f873a5 100644 --- a/arkoala/arkui/src/peers/ArkScreenPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkScreenPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ScreenAttribute } from "./../ArkScreenInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkScrollBarPeer.ts b/arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkScrollBarPeer.ts rename to arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts index d8ad268e5e349fe580ad87df6c8c1aba2e8aa963..5993de12ac1de7f595d1f17016170b5239c807af 100644 --- a/arkoala/arkui/src/peers/ArkScrollBarPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkScrollBarPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ScrollBarOptions, ScrollBarAttribute, ScrollBarDirection } from "./../ArkScrollBarInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" import { ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./../ArkScrollInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkScrollPeer.ts b/arkoala/arkui/src/generated/peers/ArkScrollPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkScrollPeer.ts rename to arkoala/arkui/src/generated/peers/ArkScrollPeer.ts index 73835f0f5c38e09ffb48aeb57e852e37c91121c2..8aad9bb3e5ea90a822641b2d6dd08ad4c150cd9c 100644 --- a/arkoala/arkui/src/peers/ArkScrollPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkScrollPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ScrollOnWillScrollCallback, ScrollOnScrollCallback, ScrollDirection, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollSnapOptions, OffsetOptions, ScrollAttribute, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAnimationOptions } from "./../ArkScrollInterfaces" import { ScrollSnapAlign } from "./../ArkListInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -151,12 +151,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -168,12 +168,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -200,12 +200,12 @@ export class ArkScrollPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkSearchPeer.ts b/arkoala/arkui/src/generated/peers/ArkSearchPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkSearchPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSearchPeer.ts index a111b27f7f455050fa7facdfeca28d478c144d6c..7c9ea6afc1564763da7fd6d8b9e4ab4e56480702 100644 --- a/arkoala/arkui/src/peers/ArkSearchPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSearchPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -60,12 +60,12 @@ import { KeyboardOptions } from "./../ArkRichEditorInterfaces" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { SearchController } from "./../ArkSearchControllerMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -102,17 +102,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -129,7 +129,7 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeIconOptions(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("_SymbolGlyphModifierStub"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("_SymbolGlyphModifierStub")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeSymbolGlyphModifier(value_1) @@ -141,7 +141,7 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeCancelButtonOptions(value_0) @@ -172,17 +172,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -205,17 +205,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -317,17 +317,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -339,17 +339,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -367,17 +367,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -389,17 +389,17 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -465,12 +465,12 @@ export class ArkSearchPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts index a232f12e7fc4e799408df21c6dbd929e2539c3ba..0e238bbb3b2d7d842c5d6a05ac121cb49e123065 100644 --- a/arkoala/arkui/src/peers/ArkSecurityComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSecurityComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { Dimension, Position, Edges, LocalizedEdges, ResourceColor, Padding, Length, SizeOptions, ConstraintSizeOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" import { SecurityComponentLayoutDirection } from "./../ArkSecurityComponentInterfaces" @@ -29,12 +29,12 @@ import { FontStyle, FontWeight, BorderStyle, Color } from "./../ArkEnumsInterfac import { Resource } from "./../ArkResourceInterfaces" import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" import { LengthUnit } from "./../ArkArkuiExternalInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -100,7 +100,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -110,7 +110,7 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -122,12 +122,12 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -144,17 +144,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -171,17 +171,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -198,17 +198,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -231,17 +231,17 @@ export class ArkSecurityComponentMethodPeer extends PeerNode { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkSelectPeer.ts b/arkoala/arkui/src/generated/peers/ArkSelectPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSelectPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSelectPeer.ts index 7251e2f666ac786d2ce3a2b6716626439228d199..f3289fced2eb74f62559a3fc283f4634c5f95d0e 100644 --- a/arkoala/arkui/src/peers/ArkSelectPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSelectPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectAttribute, SelectOption } from "./../ArkSelectInterfaces" import { ControlSize } from "./../ArkButtonInterfaces" import { DividerOptions } from "./../ArkTextPickerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,12 +90,12 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -107,12 +107,12 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -135,17 +135,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -162,17 +162,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -195,17 +195,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -222,17 +222,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -255,17 +255,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -314,17 +314,17 @@ export class ArkSelectPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkShapePeer.ts b/arkoala/arkui/src/generated/peers/ArkShapePeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkShapePeer.ts rename to arkoala/arkui/src/generated/peers/ArkShapePeer.ts index 749c8f06e4fd5f1c97cb12fa8b6620501af61c87..15585b6ed2ddcf660928c71ee7eb28ab44352786 100644 --- a/arkoala/arkui/src/peers/ArkShapePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkShapePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ViewportRect, ShapeAttribute } from "./../ArkShapeInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -98,17 +98,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -125,17 +125,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -147,12 +147,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -180,12 +180,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -197,17 +197,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -219,17 +219,17 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -241,12 +241,12 @@ export class ArkShapePeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) diff --git a/arkoala/arkui/src/peers/ArkSidebarPeer.ts b/arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkSidebarPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts index 6bcbba7c7707d5cd3d1db55a4c793a26e53cbfff..133964ff700cf73acf7397b0e8389ff0a4b87aba 100644 --- a/arkoala/arkui/src/peers/ArkSidebarPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSidebarPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ButtonStyle, SideBarPosition, ButtonIconOptions, SideBarContainerType, SideBarContainerAttribute } from "./../ArkSidebarInterfaces" import { DividerStyle } from "./../ArkTabsInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkSliderPeer.ts b/arkoala/arkui/src/generated/peers/ArkSliderPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSliderPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSliderPeer.ts index 1624a610914b56ad325fb57ff322974dbab292a6..533b6277301079aab9b04fb448ba47d9431595e0 100644 --- a/arkoala/arkui/src/peers/ArkSliderPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSliderPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { LinearGradient } from "./../ArkLinearGradientMaterialized" import { SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderAttribute, SliderChangeMode, SliderBlockType, SliderTriggerChangeCallback, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" import { ColorStop } from "./../ArkDataPanelInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -97,17 +97,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -119,7 +119,7 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (((RuntimeType.NUMBER == value_type))) || (((RuntimeType.STRING == value_type))) || (((RuntimeType.OBJECT == value_type)))) { + if ((((RuntimeType.NUMBER) == (value_type)) && ((unsafeCast(value)) >= (0)) && ((unsafeCast(value)) <= (11))) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) let value_0_type: int32 = RuntimeType.UNDEFINED @@ -129,17 +129,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0_0 = unsafeCast(value_0) thisSerializer.writeInt32(value_0_0) } - else if (((RuntimeType.NUMBER == value_0_type))) { + else if (RuntimeType.NUMBER == value_0_type) { thisSerializer.writeInt8(1) const value_0_1 = unsafeCast(value_0) thisSerializer.writeNumber(value_0_1) } - else if (((RuntimeType.STRING == value_0_type))) { + else if (RuntimeType.STRING == value_0_type) { thisSerializer.writeInt8(2) const value_0_2 = unsafeCast(value_0) thisSerializer.writeString(value_0_2) } - else if (((RuntimeType.OBJECT == value_0_type))) { + else if (RuntimeType.OBJECT == value_0_type) { thisSerializer.writeInt8(3) const value_0_3 = unsafeCast(value_0) thisSerializer.writeResource(value_0_3) @@ -162,17 +162,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -207,17 +207,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -237,17 +237,17 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -303,12 +303,12 @@ export class ArkSliderPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type: int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0) const content_value_0 = unsafeCast(content_value) thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1) const content_value_1 = unsafeCast(content_value) thisSerializer.writeResource(content_value_1) diff --git a/arkoala/arkui/src/peers/ArkSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkSpanPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSpanPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSpanPeer.ts index 406a7cd31269494c97463ccfcc54ddfb99e5b79c..773d0348f432ae37e9b25a19f81213e34a5ce43a 100644 --- a/arkoala/arkui/src/peers/ArkSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSpanPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { TextBackgroundStyle, BaseSpan, SpanAttribute } from "./../ArkSpanInterfaces" import { DecorationStyleInterface } from "./../ArkStyledStringInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -107,12 +107,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -135,17 +135,17 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -157,17 +157,17 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -182,7 +182,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -192,7 +192,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -204,12 +204,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -227,12 +227,12 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -250,7 +250,7 @@ export class ArkSpanPeer extends ArkBaseSpanPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkStackPeer.ts b/arkoala/arkui/src/generated/peers/ArkStackPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkStackPeer.ts rename to arkoala/arkui/src/generated/peers/ArkStackPeer.ts index 84c3e176a3389a7bb28e1f748529bc0595153967..cdf5fb3f040f50eda109e74b83e1cd8b3ca75574 100644 --- a/arkoala/arkui/src/peers/ArkStackPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStackPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PointLightStyle, LightSource } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { StackOptions, StackAttribute } from "./../ArkStackInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts b/arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts similarity index 90% rename from arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts rename to arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts index 704127f7d6fdb23c7c2d493ec0a2f6110afcb36e..0af46b3459b3ab0f3c3ba334f8f599ecb1b3a173 100644 --- a/arkoala/arkui/src/peers/ArkStaticComponentsPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStaticComponentsPeer.ts @@ -20,15 +20,15 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkStepperItemPeer.ts b/arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkStepperItemPeer.ts rename to arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts index dc5cd121459544e0e6129ad77fb6c1d318b5d3c9..59f2f3e405119ce8ebd8dd8ddb2c4d562a4be42e 100644 --- a/arkoala/arkui/src/peers/ArkStepperItemPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStepperItemPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ItemState, StepperItemAttribute } from "./../ArkStepperItemInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkStepperPeer.ts b/arkoala/arkui/src/generated/peers/ArkStepperPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkStepperPeer.ts rename to arkoala/arkui/src/generated/peers/ArkStepperPeer.ts index 8743c763f2c2441f4626768197363c26f49c415d..2b63f258e9d40de589a3d4bc79f8428f5df5229d 100644 --- a/arkoala/arkui/src/peers/ArkStepperPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkStepperPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { StepperAttribute } from "./../ArkStepperInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkSwiperPeer.ts b/arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkSwiperPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts index 960530d2e0afc0f719b5f57158acc79caca1aefc..677ec35925e47116f959c1a182b22e854e32521a 100644 --- a/arkoala/arkui/src/peers/ArkSwiperPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSwiperPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -59,12 +59,12 @@ import { SwiperDisplayMode, IndicatorStyle, OnSwiperAnimationStartCallback, OnSw import { Indicator } from "./../ArkIndicatorBuilder" import { SwiperContentTransitionProxy } from "./../ArkSwiperContentTransitionProxyMaterialized" import { SwiperController } from "./../ArkSwiperControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" export class ArkSwiperPeer extends ArkCommonMethodPeer { @@ -113,7 +113,7 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeDigitIndicator(value_1) } - else if (((RuntimeType.BOOLEAN == value_type))) { + else if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeBoolean(value_2) @@ -140,12 +140,12 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -169,17 +169,17 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeICurve(value_2) @@ -245,12 +245,12 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT == value_type))) { + if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeArrowStyle(value_0) } - else if (((RuntimeType.BOOLEAN == value_type))) { + else if (RuntimeType.BOOLEAN == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeBoolean(value_1) @@ -269,17 +269,17 @@ export class ArkSwiperPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeSwiperAutoFill(value_2) diff --git a/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts b/arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts similarity index 93% rename from arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts index e654855b045819cb1f83aeb70d71183a624d8314..c441a8bb35f8229df7266d4c37da79e1cd290e33 100644 --- a/arkoala/arkui/src/peers/ArkSymbolSpanPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSymbolSpanPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy } from "./../ArkSymbolglyphInterfaces" import { SymbolSpanAttribute } from "./../ArkSymbolSpanInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -85,17 +85,17 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -115,17 +115,17 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const value_element_0 = unsafeCast(value_element) thisSerializer.writeInt32(value_element_0) } - else if (((RuntimeType.NUMBER == value_element_type))) { + else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1) const value_element_1 = unsafeCast(value_element) thisSerializer.writeNumber(value_element_1) } - else if (((RuntimeType.STRING == value_element_type))) { + else if (RuntimeType.STRING == value_element_type) { thisSerializer.writeInt8(2) const value_element_2 = unsafeCast(value_element) thisSerializer.writeString(value_element_2) } - else if (((RuntimeType.OBJECT == value_element_type))) { + else if (RuntimeType.OBJECT == value_element_type) { thisSerializer.writeInt8(3) const value_element_3 = unsafeCast(value_element) thisSerializer.writeResource(value_element_3) @@ -138,7 +138,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -148,7 +148,7 @@ export class ArkSymbolSpanPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) diff --git a/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts b/arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts rename to arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts index 681d61534000c3a8fd287900e2b16fa4c7a23986..a23174238a4ecd965de64dea6f46614c81a142cd 100644 --- a/arkoala/arkui/src/peers/ArkSymbolglyphPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkSymbolglyphPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, SymbolGlyphAttribute } from "./../ArkSymbolglyphInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,17 +90,17 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -120,17 +120,17 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const value_element_0 = unsafeCast(value_element) thisSerializer.writeInt32(value_element_0) } - else if (((RuntimeType.NUMBER == value_element_type))) { + else if (RuntimeType.NUMBER == value_element_type) { thisSerializer.writeInt8(1) const value_element_1 = unsafeCast(value_element) thisSerializer.writeNumber(value_element_1) } - else if (((RuntimeType.STRING == value_element_type))) { + else if (RuntimeType.STRING == value_element_type) { thisSerializer.writeInt8(2) const value_element_2 = unsafeCast(value_element) thisSerializer.writeString(value_element_2) } - else if (((RuntimeType.OBJECT == value_element_type))) { + else if (RuntimeType.OBJECT == value_element_type) { thisSerializer.writeInt8(3) const value_element_3 = unsafeCast(value_element) thisSerializer.writeResource(value_element_3) @@ -143,7 +143,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -153,7 +153,7 @@ export class ArkSymbolGlyphPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) diff --git a/arkoala/arkui/src/peers/ArkTabContentPeer.ts b/arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkTabContentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts index 11ab8d82bce2d65aa2bb3299cfe5838e615fff17..309ebd75f6f552a1749e60bcf7f82312e23c93a0 100644 --- a/arkoala/arkui/src/peers/ArkTabContentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTabContentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -57,12 +57,12 @@ import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { IndicatorStyle } from "./../ArkSwiperInterfaces" import { LabelStyle } from "./../ArkButtonInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" export class ArkTabContentPeer extends ArkCommonMethodPeer { @@ -83,17 +83,17 @@ export class ArkTabContentPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("bundleName")))) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) } - else if (((RuntimeType.FUNCTION == value_type))) { + else if (RuntimeType.FUNCTION == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_2)) diff --git a/arkoala/arkui/src/peers/ArkTabsPeer.ts b/arkoala/arkui/src/generated/peers/ArkTabsPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkTabsPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTabsPeer.ts index 6f06777003d9837e4d065d4d15aaab9ba99151bd..cb0226361fb65b76e23160de5fbe5a86454e4782 100644 --- a/arkoala/arkui/src/peers/ArkTabsPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTabsPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { BarPosition, BarMode, AnimationMode, OnTabsAnimationStartCallback, OnTabsAnimationEndCallback, OnTabsGestureSwipeCallback, DividerStyle, BarGridColumnOptions, TabsCustomContentTransitionCallback, OnTabsContentWillChangeCallback, ScrollableBarModeOptions, TabsAttribute, LayoutStyle, TabsOptions } from "./../ArkTabsInterfaces" import { TabsController } from "./../ArkTabsControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -201,17 +201,17 @@ export class ArkTabsPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkTextAreaPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTextAreaPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts index 560cf12232a417b58e7dad0c24c2a600b65fe5b6..098c514cfb3288de340c56e2d46d305eb214ebda 100644 --- a/arkoala/arkui/src/peers/ArkTextAreaPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextAreaPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -60,12 +60,12 @@ import { KeyboardOptions, PasteEvent } from "./../ArkRichEditorInterfaces" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { TextAreaController } from "./../ArkTextAreaControllerMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -102,17 +102,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -141,17 +141,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -168,17 +168,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -196,7 +196,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -206,7 +206,7 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -218,12 +218,12 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -252,17 +252,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -346,17 +346,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -368,17 +368,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -408,17 +408,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -436,17 +436,17 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -506,12 +506,12 @@ export class ArkTextAreaPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkTextClockPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTextClockPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts index ba416aaebef217fb88efa55bcc9b2bc67a816e1f..3d4b825fcbd516065664d8e10b9b449b9f55a564 100644 --- a/arkoala/arkui/src/peers/ArkTextClockPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextClockPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -55,12 +55,12 @@ import { GestureEvent } from "./../ArkGestureEventMaterialized" import { TextClockConfiguration, TextClockOptions, TextClockAttribute } from "./../ArkTextClockInterfaces" import { DateTimeOptions } from "./../ArkTimePickerInterfaces" import { TextClockController } from "./../ArkTextClockControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -106,17 +106,17 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -134,7 +134,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -144,7 +144,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -156,12 +156,12 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -173,7 +173,7 @@ export class ArkTextClockPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkTextInputPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTextInputPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts index 2047a595a1b126777418b52f29a79334363f96ab..51ae91d43bd9717147165bf1b75be234afa97fb7 100644 --- a/arkoala/arkui/src/peers/ArkTextInputPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextInputPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -61,12 +61,12 @@ import { KeyboardOptions } from "./../ArkRichEditorInterfaces" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" import { TextInputController } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase } from "./../ArkTextContentControllerBaseMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -109,17 +109,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -157,17 +157,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -223,17 +223,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -251,7 +251,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -261,7 +261,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -273,12 +273,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -345,17 +345,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -384,12 +384,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { thisSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) thisSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { thisSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) thisSerializer.writeResource(value_value_1) @@ -416,7 +416,7 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value = value! let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if ((((RuntimeType.NUMBER) == (value_value_type)) && ((unsafeCast(value_value)) >= (0)) && ((unsafeCast(value_value)) <= (11))) || (((RuntimeType.NUMBER == value_value_type))) || (((RuntimeType.STRING == value_value_type))) || (((RuntimeType.OBJECT == value_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_value_type)) && ((unsafeCast(value_value)) >= (0)) && ((unsafeCast(value_value)) <= (11))) || (RuntimeType.NUMBER == value_value_type) || (RuntimeType.STRING == value_value_type) || (RuntimeType.OBJECT == value_value_type)) { thisSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) let value_value_0_type: int32 = RuntimeType.UNDEFINED @@ -426,17 +426,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const value_value_0_0 = unsafeCast(value_value_0) thisSerializer.writeInt32(value_value_0_0) } - else if (((RuntimeType.NUMBER == value_value_0_type))) { + else if (RuntimeType.NUMBER == value_value_0_type) { thisSerializer.writeInt8(1) const value_value_0_1 = unsafeCast(value_value_0) thisSerializer.writeNumber(value_value_0_1) } - else if (((RuntimeType.STRING == value_value_0_type))) { + else if (RuntimeType.STRING == value_value_0_type) { thisSerializer.writeInt8(2) const value_value_0_2 = unsafeCast(value_value_0) thisSerializer.writeString(value_value_0_2) } - else if (((RuntimeType.OBJECT == value_value_0_type))) { + else if (RuntimeType.OBJECT == value_value_0_type) { thisSerializer.writeInt8(3) const value_value_0_3 = unsafeCast(value_value_0) thisSerializer.writeResource(value_value_0_3) @@ -485,17 +485,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -507,17 +507,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -541,17 +541,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -563,17 +563,17 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -636,12 +636,12 @@ export class ArkTextInputPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkTextPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextPeer.ts similarity index 92% rename from arkoala/arkui/src/peers/ArkTextPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextPeer.ts index d297499edbfccc9e8b4374727747604dc7e42287..0d6c88af6d5e9e7f1314c155aa6de26c1ce19e3d 100644 --- a/arkoala/arkui/src/peers/ArkTextPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -63,12 +63,12 @@ import { StyledString } from "./../ArkStyledStringMaterialized" import { LayoutManager } from "./../ArkLayoutManagerMaterialized" import { ImageAttachment } from "./../ArkImageAttachmentMaterialized" import { CustomSpan } from "./../ArkCustomSpanMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -93,12 +93,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const content_value = content! let content_value_type: int32 = RuntimeType.UNDEFINED content_value_type = runtimeType(content_value) - if (((RuntimeType.STRING == content_value_type))) { + if (RuntimeType.STRING == content_value_type) { thisSerializer.writeInt8(0) const content_value_0 = unsafeCast(content_value) thisSerializer.writeString(content_value_0) } - else if (((RuntimeType.OBJECT == content_value_type))) { + else if (RuntimeType.OBJECT == content_value_type) { thisSerializer.writeInt8(1) const content_value_1 = unsafeCast(content_value) thisSerializer.writeResource(content_value_1) @@ -142,17 +142,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -164,17 +164,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -186,17 +186,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -208,17 +208,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -230,12 +230,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -247,12 +247,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -267,7 +267,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -277,7 +277,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -289,7 +289,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let weight_type: int32 = RuntimeType.UNDEFINED weight_type = runtimeType(weight) - if (((RuntimeType.NUMBER == weight_type))) { + if (RuntimeType.NUMBER == weight_type) { thisSerializer.writeInt8(0) const weight_0 = unsafeCast(weight) thisSerializer.writeNumber(weight_0) @@ -299,7 +299,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const weight_1 = unsafeCast(weight) thisSerializer.writeInt32(weight_1) } - else if (((RuntimeType.STRING == weight_type))) { + else if (RuntimeType.STRING == weight_type) { thisSerializer.writeInt8(2) const weight_2 = unsafeCast(weight) thisSerializer.writeString(weight_2) @@ -327,17 +327,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeResource(value_2) @@ -355,12 +355,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -381,12 +381,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -401,12 +401,12 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -424,7 +424,7 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) @@ -468,17 +468,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -495,17 +495,17 @@ export class ArkTextPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkTextPickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkTextPickerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts index 5b3fae99f38867a595540883d330abeae2faeffd..d88eada23959c055bc777d0f430a8a5fd2f7d80d 100644 --- a/arkoala/arkui/src/peers/ArkTextPickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextPickerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { DividerOptions, TextPickerOptions, TextPickerAttribute, TextPickerRangeContent, TextCascadePickerRangeContent } from "./../ArkTextPickerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -90,12 +90,12 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeString(value_1) @@ -146,12 +146,12 @@ export class ArkTextPickerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast>(value) thisSerializer.writeInt32(value_1.length) diff --git a/arkoala/arkui/src/peers/ArkTextTimerPeer.ts b/arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTextTimerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts index f0b76a1104d45ab18452f674a5127f39c2f1dc9d..69dc577332c03a57c13fa2d2ec83d58148b344e4 100644 --- a/arkoala/arkui/src/peers/ArkTextTimerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTextTimerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -54,12 +54,12 @@ import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { TextTimerConfiguration, TextTimerOptions, TextTimerAttribute } from "./../ArkTextTimerInterfaces" import { TextTimerController } from "./../ArkTextTimerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -99,17 +99,17 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -127,7 +127,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) @@ -137,7 +137,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const value_1 = unsafeCast(value) thisSerializer.writeInt32(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) @@ -149,12 +149,12 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.STRING == value_type))) { + if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeString(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) @@ -172,7 +172,7 @@ export class ArkTextTimerPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("radius")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeShadowOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkTimePickerPeer.ts b/arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkTimePickerPeer.ts rename to arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts index a4730bd22c5e3e4911dc5a98b810349e65add0ef..1f2a908c35db610e83ae10244262c63ddcd98cf6 100644 --- a/arkoala/arkui/src/peers/ArkTimePickerPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTimePickerPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, PickerTextStyle } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { DateTimeOptions, TimePickerResult, TimePickerOptions, TimePickerAttribute, TimePickerFormat } from "./../ArkTimePickerInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkTogglePeer.ts b/arkoala/arkui/src/generated/peers/ArkTogglePeer.ts similarity index 94% rename from arkoala/arkui/src/peers/ArkTogglePeer.ts rename to arkoala/arkui/src/generated/peers/ArkTogglePeer.ts index 84f2d328d8bdfd3681f6c0a1b4fce6685f9a41b1..94787a8ec4ae002da481c11ad270ba91c3c92772 100644 --- a/arkoala/arkui/src/peers/ArkTogglePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkTogglePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, ContentModifier, CommonConfiguration } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { ToggleConfiguration, SwitchStyle, ToggleOptions, ToggleAttribute, ToggleType } from "./../ArkToggleInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -101,17 +101,17 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) @@ -128,17 +128,17 @@ export class ArkTogglePeer extends ArkCommonMethodPeer { const value_0 = unsafeCast(value) thisSerializer.writeInt32(value_0) } - else if (((RuntimeType.NUMBER == value_type))) { + else if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeNumber(value_1) } - else if (((RuntimeType.STRING == value_type))) { + else if (RuntimeType.STRING == value_type) { thisSerializer.writeInt8(2) const value_2 = unsafeCast(value) thisSerializer.writeString(value_2) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(3) const value_3 = unsafeCast(value) thisSerializer.writeResource(value_3) diff --git a/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts index ee2d93639b14952099630f22972f8c1ee919cec9..471c0c9257dabe94132729ed33e5881607f19612 100644 --- a/arkoala/arkui/src/peers/ArkUiExtensionComponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkUiExtensionComponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { ReceiveCallback, UIExtensionOptions, UIExtensionComponentAttribute, Dpi import { ErrorCallback } from "./../ArkIsolatedComponentInterfaces" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" import { TerminationInfo } from "./../ArkEmbeddedComponentInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkVideoPeer.ts b/arkoala/arkui/src/generated/peers/ArkVideoPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkVideoPeer.ts rename to arkoala/arkui/src/generated/peers/ArkVideoPeer.ts index 9d85f4d595bde6e7272cacbf193145b1ce7bb872..ce1e9bc0a1bd3517ebe8fd4008e7e10dc11a6f9a 100644 --- a/arkoala/arkui/src/peers/ArkVideoPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkVideoPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { ImageAnalyzerConfig, ImageAnalyzerType, ImageAIOptions } from "./../Ark import { FullscreenInfo, PreparedInfo, PlaybackInfo, VideoOptions, VideoAttribute, PlaybackSpeed, SeekMode } from "./../ArkVideoInterfaces" import { VideoController } from "./../ArkVideoControllerMaterialized" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts b/arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts similarity index 96% rename from arkoala/arkui/src/peers/ArkWaterFlowPeer.ts rename to arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts index ea44bef30c09de91fc9770b19486e5cdda565c3e..84bcb3da13198191e8a759770e2d46755de1888f 100644 --- a/arkoala/arkui/src/peers/ArkWaterFlowPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkWaterFlowPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkScrollableCommonMethodPeer, ArkScrollableCommonMethodAttributes } from "./ArkCommonPeer" import { ScrollableCommonMethod, CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -57,12 +57,12 @@ import { WaterFlowAttribute, WaterFlowOptions, WaterFlowLayoutMode, SectionOptio import { ScrollState } from "./../ArkListInterfaces" import { Scroller } from "./../ArkScrollerMaterialized" import { WaterFlowSections } from "./../ArkWaterFlowSectionsMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -124,12 +124,12 @@ export class ArkWaterFlowPeer extends ArkScrollableCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.NUMBER == value_type))) { + if (RuntimeType.NUMBER == value_type) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNumber(value_0) } - else if (((RuntimeType.OBJECT == value_type))) { + else if (RuntimeType.OBJECT == value_type) { thisSerializer.writeInt8(1) const value_1 = unsafeCast(value) thisSerializer.writeResource(value_1) diff --git a/arkoala/arkui/src/peers/ArkWebPeer.ts b/arkoala/arkui/src/generated/peers/ArkWebPeer.ts similarity index 99% rename from arkoala/arkui/src/peers/ArkWebPeer.ts rename to arkoala/arkui/src/generated/peers/ArkWebPeer.ts index b8f13c128c18ebd135433083b69b24dc4d3a86e5..557c85d6030fca2364899f64a583dc0d468f590f 100644 --- a/arkoala/arkui/src/peers/ArkWebPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkWebPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason, NestedScrollOptions } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -77,12 +77,12 @@ import { ControllerHandler } from "./../ArkControllerHandlerMaterialized" import { DataResubmissionHandler } from "./../ArkDataResubmissionHandlerMaterialized" import { EventResult } from "./../ArkEventResultMaterialized" import { TextMenuItemId } from "./../ArkTextMenuItemIdMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" @@ -590,7 +590,7 @@ export class ArkWebPeer extends ArkCommonMethodPeer { const thisSerializer: Serializer = Serializer.hold() let value_type: int32 = RuntimeType.UNDEFINED value_type = runtimeType(value) - if (((RuntimeType.OBJECT) == (value_type)) && (((value!.hasOwnProperty("scrollForward"))))) { + if (((RuntimeType.OBJECT) == (value_type)) && ((value!.hasOwnProperty("scrollForward")))) { thisSerializer.writeInt8(0) const value_0 = unsafeCast(value) thisSerializer.writeNestedScrollOptions(value_0) diff --git a/arkoala/arkui/src/peers/ArkWindowScenePeer.ts b/arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts similarity index 95% rename from arkoala/arkui/src/peers/ArkWindowScenePeer.ts rename to arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts index 28a184269ddcde6f200e8a1e59b1b84665e328ed..bac5c7f94f7975580414043ca2ee04553340779e 100644 --- a/arkoala/arkui/src/peers/ArkWindowScenePeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkWindowScenePeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -53,12 +53,12 @@ import { UnifiedData } from "./../ArkUnifiedDataMaterialized" import { GestureControl } from "./../ArkGestureControlNamespace" import { GestureEvent } from "./../ArkGestureEventMaterialized" import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/ArkXcomponentPeer.ts b/arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts similarity index 97% rename from arkoala/arkui/src/peers/ArkXcomponentPeer.ts rename to arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts index 3ad81d8f0f7a6e5b567a9f90368e4a41391d822c..81514775ad18269c2e08e514bfee1365cc22dda9 100644 --- a/arkoala/arkui/src/peers/ArkXcomponentPeer.ts +++ b/arkoala/arkui/src/generated/peers/ArkXcomponentPeer.ts @@ -20,8 +20,8 @@ import { int32, float32 } from "@koalaui/common" import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" import { isResource, isInstanceOf, runtimeType, RuntimeType } from "@koalaui/interop" import { Serializer } from "./Serializer" -import { ComponentBase } from "../ComponentBase" -import { PeerNode } from "../PeerNode" +import { ComponentBase } from "../../ComponentBase" +import { PeerNode } from "../../PeerNode" import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" import { ArkCommonMethodPeer, ArkCommonMethodAttributes } from "./ArkCommonPeer" import { CommonMethod, Rectangle, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, CustomBuilder, DragItemInfo, MotionPathOptions, ShadowOptions, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, DrawContext, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, LinearGradient_common, FinishCallbackType, ExpectedFrameRateRange, TransitionEffects, TransitionEdge, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, ShadowType, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, ImageModifier, OverlayOffset, TransitionHierarchyStrategy, PopupMessageOptions, SymbolGlyphModifier, MenuPreviewMode, ContextMenuAnimationOptions, BindOptions, SheetSize, SheetType, SheetTitleOptions, SheetMode, ScrollSizeMode, UIContext, SheetKeyboardAvoidMode, SourceTool, RectResult, TouchTestStrategy, EventTarget, SourceType, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, DismissPopupAction, AnimationRange, DismissContentCoverAction, SheetDismiss, DismissSheetAction, SpringBackAction, DismissReason } from "./../ArkCommonInterfaces" @@ -34,7 +34,7 @@ import { Resource } from "./../ArkResourceInterfaces" import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { PixelMap } from "./../ArkPixelMapMaterialized" import { GestureType, GestureMask, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureGroupInterface, GestureInfo, GestureJudgeResult, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMode, GestureHandler, GesturePriority, FingerInfo } from "./../ArkGestureInterfaces" @@ -56,12 +56,12 @@ import { OnNativeLoadCallback, XComponentAttribute, XComponentOptions, SurfaceRe import { XComponentController } from "./../ArkXComponentControllerMaterialized" import { ImageAnalyzerConfig, ImageAIOptions, ImageAnalyzerType } from "./../ArkImageCommonInterfaces" import { ImageAnalyzerController } from "./../ArkImageAnalyzerControllerMaterialized" -import { GestureName, GestureComponent, unsafeCast } from "./../shared/generated-utils" +import { GestureName, GestureComponent } from "./../shared/generated-utils" import { CallbackKind } from "./CallbackKind" import { CallbackTransformer } from "./CallbackTransformer" -import { wrapCallback } from "@koalaui/interop" +import { unsafeCast } from "@koalaui/common" +import { wrapCallback, MaterializedBase } from "@koalaui/interop" import { Deserializer, createDeserializer } from "./Deserializer" -import { MaterializedBase } from "./../MaterializedBase" import { DotIndicator } from "./../ArkDotIndicatorBuilder" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" diff --git a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts b/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts similarity index 99% rename from arkoala/arkui/src/peers/CallbackDeserializeCall.ts rename to arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts index f719c5edfd72e44d5bd1fb6e3079e470b646e49b..ba547c0cfbd0dacc75380321d59e37aeeddb3588 100644 --- a/arkoala/arkui/src/peers/CallbackDeserializeCall.ts +++ b/arkoala/arkui/src/generated/peers/CallbackDeserializeCall.ts @@ -56,7 +56,7 @@ import { ResizableOptions, DrawingLattice, ImageErrorCallback, ImageError } from import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" import { ProgressMask } from "./../ArkProgressMaskMaterialized" -import { AttributeModifier } from "./../handwritten" +import { AttributeModifier } from "./../../handwritten" import { GestureModifier } from "./../ArkGestureModifierMaterialized" import { LengthUnit, Want, WebHeader } from "./../ArkArkuiExternalInterfaces" import { MouseEvent } from "./../ArkMouseEventMaterialized" @@ -111,6 +111,7 @@ import { TimePickerResult } from "./../ArkTimePickerInterfaces" import { UIExtensionProxy } from "./../ArkUIExtensionProxyMaterialized" import { WithThemeAttribute, WithThemeInterface, WithThemeOptions, CustomTheme } from "./../ArkWithThemeInterfaces" import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, SwiperAnimationEvent, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" import { GetItemMainSizeByIndex } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" @@ -1398,7 +1399,7 @@ export function deserializeAndCallContentDidScrollCallback(thisDeserializer: Des } export function deserializeAndCallCustomNodeBuilder(thisDeserializer: Deserializer): void { const _resourceId: int32 = thisDeserializer.readInt32() - const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer) => KPointer)) + const _call = (ResourceHolder.instance().get(_resourceId) as CustomNodeBuilder) let parentNode: KPointer = thisDeserializer.readPointer() let _continuation: ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) const _callResult = _call(parentNode) diff --git a/arkoala/arkui/src/peers/CallbackKind.ts b/arkoala/arkui/src/generated/peers/CallbackKind.ts similarity index 100% rename from arkoala/arkui/src/peers/CallbackKind.ts rename to arkoala/arkui/src/generated/peers/CallbackKind.ts diff --git a/arkoala/arkui/src/peers/CallbackTransformer.ts b/arkoala/arkui/src/generated/peers/CallbackTransformer.ts similarity index 97% rename from arkoala/arkui/src/peers/CallbackTransformer.ts rename to arkoala/arkui/src/generated/peers/CallbackTransformer.ts index 1353564dd7aacd73817069a52c4909622bebd3f7..d4fca04ea992897c087a7dbfa0c5d7d2d6f69999 100644 --- a/arkoala/arkui/src/peers/CallbackTransformer.ts +++ b/arkoala/arkui/src/generated/peers/CallbackTransformer.ts @@ -14,7 +14,7 @@ */ import { KPointer } from "@koalaui/interop" -import { PeerNode } from "../PeerNode" +import { PeerNode } from "../../PeerNode" import { CustomBuilder } from "../ArkCommonInterfaces" import { createUiDetachedRoot } from "@koalaui/arkoala" import { ArkComponentRootPeer } from "./ArkStaticComponentsPeer" diff --git a/arkoala/arkui/src/peers/Deserializer.ts b/arkoala/arkui/src/generated/peers/Deserializer.ts similarity index 87% rename from arkoala/arkui/src/peers/Deserializer.ts rename to arkoala/arkui/src/generated/peers/Deserializer.ts index b218c35fe7ec9f17d8fcfc0072ddf6ec7f8ff5a4..fc65e09eaf017ef5f4a51cdb074a3e752a566169 100644 --- a/arkoala/arkui/src/peers/Deserializer.ts +++ b/arkoala/arkui/src/generated/peers/Deserializer.ts @@ -15,57 +15,57 @@ import { runtimeType, Tags, RuntimeType, SerializerBase, DeserializerBase, CallbackResource } from "@koalaui/interop" import { KPointer, InteropNativeModule } from "@koalaui/interop" -import { MaterializedBase } from "./../MaterializedBase" -import { int32, float32 } from "@koalaui/common" -import { unsafeCast } from "../shared/generated-utils" +import { MaterializedBase } from "@koalaui/interop" +import { int32, float32, unsafeCast } from "@koalaui/common" import { CallbackKind } from "./CallbackKind" import { Serializer } from "./Serializer" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, BlurStyle, ShadowStyle, HoverModeAreaType, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, BackgroundBlurStyleOptions, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, EdgeEffectOptions, UIGestureEvent, VisibleAreaEventOptions, IntentionCode, FadingEdgeOptions, RectShape, SheetOptions, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, ContentCoverOptions, ModalTransition, ContextMenuOptions, MenuPreviewMode, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, Blender, OverlayOptions, DragInteractionOptions, DragPreviewOptions, DragPreviewMode, sharedTransitionOptions, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, LightSource, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, MotionBlurOptions, AlignRuleOption, LocalizedAlignRuleOptions, UniformDataType, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, EffectType, ChainStyle, BlendMode, BlendApplyType, MenuElement, TouchTestInfo, TouchResult, RepeatMode, PreDragStatus, TouchTestStrategy, DragBehavior, Summary, DragResult, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, KeyboardAvoidMode, MeasureResult, SizeResult, PointLightStyle } from "./../ArkCommonInterfaces" -import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ButtonOptions, ControlSize } from "./../ArkButtonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, VisibleAreaEventOptions, MeasureResult, SizeResult, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" -import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" -import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, TextRange, StyledStringChangeValue, MenuType, TextMenuItem, FontSettingOptions, PositionWithAffinity, LineMetrics, TextBox, Affinity, PreviewText, StyledStringChangedListener, DeleteValue, TextDeleteDirection, InsertValue, CaretStyle, TextDataDetectorConfig, TextDataDetectorType } from "./../ArkTextCommonInterfaces" -import { GetItemMainSizeByIndex, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, Affinity, TextRange, StyledStringChangeValue, TextMenuItem, MenuType, CaretStyle, InsertValue, DeleteValue, TextDeleteDirection, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, StyledStringChangedListener } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, WaterFlowAttribute, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" -import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, DrawingLattice, ResizableOptions, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { ImageErrorCallback, ResizableOptions, DrawingLattice, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavigationTitleMode } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" -import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, PlaceholderStyle, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, PasteEvent, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, RichEditorAttribute, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorDeleteDirection, RichEditorStyledStringOptions, RichEditorOptions } from "./../ArkRichEditorInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" -import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, SelectionMenuOptionsExt, NativeEmbedInfo, NestedScrollOptionsExt, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, WebCaptureMode, FileSelectorMode, MessageLevel, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, NativeEmbedStatus, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, SslError, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, RenderExitReason, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebOptions, RenderMode } from "./../ArkWebInterfaces" -import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, NativeEmbedDataInfo, NativeEmbedTouchInfo, RenderExitReason, SslError, NativeEmbedStatus, NativeEmbedInfo, MessageLevel, FileSelectorMode, ScreenCaptureConfig, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, WebCaptureMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, LargestContentfulPaint, FirstMeaningfulPaint, SslErrorEvent, FullScreenEnterEvent, WebOptions, RenderMode } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, PasswordIcon, EnterKeyType, TextInputOptions } from "./../ArkTextInputInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, TextInputAttribute, InputType, EnterKeyType, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions } from "./../ArkScrollInterfaces" -import { OnScrollVisibleContentChangeCallback, ScrollState, ListDividerOptions, CloseSwipeActionOptions, ScrollSnapAlign, VisibleListContentInfo, ListItemGroupArea, ChainAnimationOptions, ChainEdgeEffect, ListOptions } from "./../ArkListInterfaces" -import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions, BarPosition } from "./../ArkTabsInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAttribute, ScrollDirection, ScrollSnapOptions, OffsetOptions, OnScrollFrameBeginHandlerResult } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, ListItemGroupArea, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" import { PageTransitionCallback, RouteType } from "./../ArkPageTransitionInterfaces" import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { SearchSubmitCallback, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, CancelButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" -import { SliderTriggerChangeCallback, SliderChangeMode, SlideRange, SliderBlockStyle, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" -import { TextAreaSubmitCallback, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, ChainWeightOptions, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" +import { SearchSubmitCallback, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderAttribute, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderChangeMode, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Bias, Offset, DividerStyleOptions, LengthConstrain, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" import { LengthUnit, WebHeader, TextModifier, Want, RectWidthStyle, RectHeightStyle, SnapshotOptions, NodeController, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" -import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, Edge, Axis, TouchType, NestedScrollMode, VerticalAlign, ScrollSource, TitleHeight, MouseButton, MouseAction, KeyType, KeySource, BorderStyle, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, XComponentType, BarState, FoldStatus, AppRotation, FlexDirection, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, TitleHeight, XComponentType, FoldStatus, AppRotation, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" -import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, GestureInfo } from "./../ArkGestureInterfaces" +import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMask, GestureInfo, GestureJudgeResult, GestureHandler, GesturePriority, GestureRecognizerState } from "./../ArkGestureInterfaces" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" @@ -74,7 +74,7 @@ import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMater import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle } from "./../ArkNavDestinationInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" @@ -85,7 +85,7 @@ import { DateTimeOptions, TimePickerResult, TimePickerDialogOptions, TimePickerO import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" -import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" @@ -95,7 +95,7 @@ import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" import { ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Scene, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" +import { Scene, Component3DAttribute, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" @@ -104,54 +104,72 @@ import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" +import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" import { ButtonIconOptions, ButtonStyle } from "./../ArkSidebarInterfaces" import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" -import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" -import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" -import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" -import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" -import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" -import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" -import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" -import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" -import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" -import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" -import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" -import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" -import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" -import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" -import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" -import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" -import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" -import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" import { JsGeolocation, JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" +import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" +import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" +import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" +import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" +import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" +import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" +import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" +import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" +import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" +import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" +import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" import { VideoController, VideoControllerInternal } from "./../ArkVideoControllerMaterialized" import { SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions, PlaybackSpeed } from "./../ArkVideoInterfaces" import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" +import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { GuideLinePosition, LocalizedBarrierStyle, LocalizedBarrierDirection, BarrierStyle, BarrierDirection, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" @@ -160,18 +178,12 @@ import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternL import { PanelMode } from "./../ArkPanelInterfaces" import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" +import { GridAttribute, GridDirection, GridItemAlignment, ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { GestureControl } from "./../ArkGestureControlNamespace" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" -import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" -import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" @@ -181,15 +193,11 @@ import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialize import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" -import { CalendarDialogOptions, CalendarOptions } from "./../ArkCalendarPickerInterfaces" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" import { BadgeStyle, BadgeParamWithString, BadgeParam, BadgePosition, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" -import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" -import { AttributeModifier } from "./../handwritten" -import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" -import { ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" @@ -208,23 +216,18 @@ import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" import { TextClockOptions } from "./../ArkTextClockInterfaces" -import { TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDisappearSymbolEffectMaterialized" import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" -import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" import { StackOptions } from "./../ArkStackInterfaces" -import { ViewportRect } from "./../ArkShapeInterfaces" -import { SelectOption } from "./../ArkSelectInterfaces" import { ScrollBarOptions, ScrollBarDirection } from "./../ArkScrollBarInterfaces" import { SaveButtonOnClickResult, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" import { RowOptions } from "./../ArkRowInterfaces" import { RootSceneSession } from "./../ArkRootSceneInterfaces" -import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" import { RadioStyle, RadioOptions, RadioIndicatorType } from "./../ArkRadioInterfaces" @@ -262,13 +265,13 @@ import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInt import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { ContextMenu, ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { View, ViewInternal } from "./../ArkViewMaterialized" import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ColumnOptions } from "./../ArkColumnInterfaces" import { CircleOptions } from "./../ArkCircleInterfaces" +import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" @@ -280,6 +283,7 @@ import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMater import { NavExtender, NavExtenderInternal } from "./../ArkNavExtenderMaterialized" import { GlobalScope_ohos_arkui_performanceMonitor, GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot, GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" +import { SystemOps, SystemOpsInternal } from "./../ArkSystemOpsMaterialized" import { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" @@ -796,81 +800,87 @@ export class Deserializer extends DeserializerBase { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: GestureEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: GestureEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1143194492, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ClickEvent_Void(isSync: boolean = false): ((event: ClickEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ClickEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1097178637, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1097178637, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_PopInfo_Void(isSync: boolean = false): ((parameter: PopInfo) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: PopInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePopInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PopInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePopInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(624053870, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(624053870, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SwipeActionState_Void(isSync: boolean = false): ((state: SwipeActionState) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (state: SwipeActionState): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(state); -(isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (state: SwipeActionState): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(state); + (isSync) ? (InteropNativeModule._CallCallbackSync(-301561698, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-301561698, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Void(isSync: boolean = false): (() => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readCustomNodeBuilder(isSync: boolean = false): ((parentNode: KPointer) => KPointer) { + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1867723152, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readCustomNodeBuilder(isSync: boolean = false): CustomNodeBuilder { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parentNode: KPointer): KPointer => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePointer(parentNode); -let _continuationValue: KPointer | undefined|undefined ; -const _continuationCallback: ((value: KPointer) => void) = (value: KPointer): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as KPointer); } + return (parentNode: KPointer): KPointer => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + let _continuationValue: KPointer | undefined|undefined ; + const _continuationCallback: ((value: KPointer) => void) = (value: KPointer): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1766817632, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1766817632, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } } readLocalizedEdgeColors(): LocalizedEdgeColors { let valueDeserializer: Deserializer = this @@ -1083,14 +1093,15 @@ return (_continuationValue as KPointer); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DismissPopupAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissPopupAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissPopupAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissPopupAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004166751, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCanvasPattern(): CanvasPattern { let valueDeserializer: Deserializer = this @@ -1106,39 +1117,42 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2038961969, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationTransitionProxy_Void(isSync: boolean = false): ((transitionProxy: NavigationTransitionProxy) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (transitionProxy: NavigationTransitionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavigationTransitionProxy(transitionProxy); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (transitionProxy: NavigationTransitionProxy): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavigationTransitionProxy(transitionProxy); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1375731066, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Boolean_Void(isSync: boolean = false): ((parameter: boolean) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(313269291, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(313269291, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readColorMetrics(): ColorMetrics { let valueDeserializer: Deserializer = this @@ -1318,17 +1332,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): number => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: number | undefined|undefined ; -const _continuationCallback: ((index: number) => void) = (value: number): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as number); } + return (index: number): number => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: number | undefined|undefined ; + const _continuationCallback: ((index: number) => void) = (value: number): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2076995110, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as number); } } readImageAnalyzerController(): ImageAnalyzerController { let valueDeserializer: Deserializer = this @@ -1360,14 +1375,15 @@ return (_continuationValue as number); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (breakpoints: string): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(breakpoints); -(isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (breakpoints: string): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(breakpoints); + (isSync) ? (InteropNativeModule._CallCallbackSync(814634522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(814634522, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDateTimeOptions(): DateTimeOptions { let valueDeserializer: Deserializer = this @@ -1379,14 +1395,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: TimePickerResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTimePickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TimePickerResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTimePickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1557859605, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1557859605, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRectangle(): Rectangle { let valueDeserializer: Deserializer = this @@ -1641,33 +1658,41 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: TextPickerResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextPickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TextPickerResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextPickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1290504509, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1290504509, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextMenuItemId(): TextMenuItemId { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return TextMenuItemIdInternal.fromPtr(ptr) } + readAffinity(): Affinity { + let valueDeserializer: Deserializer = this + const _AffinityStub_result: string = (valueDeserializer.readString() as string) + let value: Affinity = ({_AffinityStub: _AffinityStub_result} as Affinity) + return value + } readMenuOnAppearCallback(isSync: boolean = false): MenuOnAppearCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (start: number, end: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(start); -_argsSerializer.writeNumber(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: number, end: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(start); + _argsSerializer.writeNumber(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(-614475458, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-614475458, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabBarIconStyle(): TabBarIconStyle { let valueDeserializer: Deserializer = this @@ -1932,14 +1957,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: TabContentTransitionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTabContentTransitionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TabContentTransitionProxy): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTabContentTransitionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1223938478, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIconOptions(): IconOptions { let valueDeserializer: Deserializer = this @@ -2220,31 +2246,33 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (rangeBefore: TextRange, rangeAfter: TextRange): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextRange(rangeBefore); -_argsSerializer.writeTextRange(rangeAfter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (rangeBefore: TextRange, rangeAfter: TextRange): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextRange(rangeBefore); + _argsSerializer.writeTextRange(rangeAfter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1648184341, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1648184341, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_StyledStringChangeValue_Boolean(isSync: boolean = false): ((parameter: StyledStringChangeValue) => boolean) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: StyledStringChangeValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeStyledStringChangeValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: StyledStringChangeValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeStyledStringChangeValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2116745428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2116745428, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readRichEditorImageSpanStyle(): RichEditorImageSpanStyle { let valueDeserializer: Deserializer = this @@ -2483,52 +2511,54 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (mode: NavigationMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: NavigationMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(1502213270, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1502213270, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readInterceptionShowCallback(isSync: boolean = false): InterceptionShowCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let from_type: int32 = RuntimeType.UNDEFINED; -from_type = runtimeType(from); -if (((RuntimeType.OBJECT == from_type))) { - _argsSerializer.writeInt8(0); - const from_0 = unsafeCast(from); - _argsSerializer.writeNavDestinationContext(from_0); -} -else if (((RuntimeType.STRING == from_type))) { - _argsSerializer.writeInt8(1); - const from_1 = unsafeCast(from); - _argsSerializer.writeString(from_1); -} -let to_type: int32 = RuntimeType.UNDEFINED; -to_type = runtimeType(to); -if (((RuntimeType.OBJECT == to_type))) { - _argsSerializer.writeInt8(0); - const to_0 = unsafeCast(to); - _argsSerializer.writeNavDestinationContext(to_0); -} -else if (((RuntimeType.STRING == to_type))) { - _argsSerializer.writeInt8(1); - const to_1 = unsafeCast(to); - _argsSerializer.writeString(to_1); -} -_argsSerializer.writeInt32(operation); -_argsSerializer.writeBoolean(isAnimated); -(isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (from: NavDestinationContext | NavBar, to: NavDestinationContext | NavBar, operation: NavigationOperation, isAnimated: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let from_type: int32 = RuntimeType.UNDEFINED; + from_type = runtimeType(from); + if (RuntimeType.OBJECT == from_type) { + _argsSerializer.writeInt8(0); + const from_0 = unsafeCast(from); + _argsSerializer.writeNavDestinationContext(from_0); + } + else if (RuntimeType.STRING == from_type) { + _argsSerializer.writeInt8(1); + const from_1 = unsafeCast(from); + _argsSerializer.writeString(from_1); + } + let to_type: int32 = RuntimeType.UNDEFINED; + to_type = runtimeType(to); + if (RuntimeType.OBJECT == to_type) { + _argsSerializer.writeInt8(0); + const to_0 = unsafeCast(to); + _argsSerializer.writeNavDestinationContext(to_0); + } + else if (RuntimeType.STRING == to_type) { + _argsSerializer.writeInt8(1); + const to_1 = unsafeCast(to); + _argsSerializer.writeString(to_1); + } + _argsSerializer.writeInt32(operation); + _argsSerializer.writeBoolean(isAnimated); + (isSync) ? (InteropNativeModule._CallCallbackSync(1852781814, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1852781814, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextModifier(): TextModifier { let value: TextModifier = ({} as TextModifier) @@ -2725,27 +2755,29 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: Date): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt64((parameter.getTime() as number)); -(isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: Date): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt64((parameter.getTime() as number)); + (isSync) ? (InteropNativeModule._CallCallbackSync(1405382363, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1405382363, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DatePickerResult_Void(isSync: boolean = false): ((value: DatePickerResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: DatePickerResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDatePickerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: DatePickerResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDatePickerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1280920532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1280920532, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLunarSwitchStyle(): LunarSwitchStyle { let valueDeserializer: Deserializer = this @@ -2848,79 +2880,85 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: SheetType): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SheetType): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-224451112, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-224451112, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Void(isSync: boolean = false): ((index: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(36519084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(36519084, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SpringBackAction_Void(isSync: boolean = false): ((parameter: SpringBackAction) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: SpringBackAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSpringBackAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SpringBackAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSpringBackAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1536231691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1536231691, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DismissSheetAction_Void(isSync: boolean = false): ((parameter: DismissSheetAction) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DismissSheetAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissSheetAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissSheetAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissSheetAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(889549796, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(889549796, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_SheetDismiss_Void(isSync: boolean = false): ((sheetDismiss: SheetDismiss) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (sheetDismiss: SheetDismiss): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSheetDismiss(sheetDismiss); -(isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (sheetDismiss: SheetDismiss): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSheetDismiss(sheetDismiss); + (isSync) ? (InteropNativeModule._CallCallbackSync(22609082, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(22609082, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DismissContentCoverAction_Void(isSync: boolean = false): ((parameter: DismissContentCoverAction) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DismissContentCoverAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissContentCoverAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissContentCoverAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissContentCoverAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1283506641, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readContextMenuAnimationOptions(): ContextMenuAnimationOptions { let valueDeserializer: Deserializer = this @@ -2952,15 +2990,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: { isVisible: boolean }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const event_isVisible = event.isVisible; -_argsSerializer.writeBoolean(event_isVisible); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: { isVisible: boolean }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const event_isVisible = event.isVisible; + _argsSerializer.writeBoolean(event_isVisible); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1561407084, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPopupMessageOptions(): PopupMessageOptions { let valueDeserializer: Deserializer = this @@ -3382,14 +3421,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DismissDialogAction): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDismissDialogAction(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DismissDialogAction): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDismissDialogAction(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2095828093, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readAlertDialogButtonBaseOptions(): AlertDialogButtonBaseOptions { let valueDeserializer: Deserializer = this @@ -3556,26 +3596,28 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(-733525640, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-733525640, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Extender_OnProgress(isSync: boolean = false): Callback_Extender_OnProgress { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: float32): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFloat32(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: float32): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFloat32(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1264236374, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1264236374, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCustomTheme(): CustomTheme { let valueDeserializer: Deserializer = this @@ -3713,15 +3755,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, progress: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(progress); -(isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, progress: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(progress); + (isSync) ? (InteropNativeModule._CallCallbackSync(-968773856, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-968773856, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLinearIndicatorStyle(): LinearIndicatorStyle { let valueDeserializer: Deserializer = this @@ -3797,6 +3840,19 @@ return; } let value: DrawContext = ({_DrawContextStub: _DrawContextStub_result} as DrawContext) return value } + readCustomSpanMetrics(): CustomSpanMetrics { + let valueDeserializer: Deserializer = this + const width_result: number = (valueDeserializer.readNumber() as number) + const height_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let height_buf: number | undefined|undefined + if ((RuntimeType.UNDEFINED) != (height_buf_runtimeType)) + { + height_buf = (valueDeserializer.readNumber() as number) + } + const height_result: number | undefined|undefined = height_buf + let value: CustomSpanMetrics = ({width: width_result,height: height_result} as CustomSpanMetrics) + return value + } readCustomSpanMeasureInfo(): CustomSpanMeasureInfo { let valueDeserializer: Deserializer = this const fontSize_result: number = (valueDeserializer.readNumber() as number) @@ -3901,14 +3957,19 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: UIExtensionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeUIExtensionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: UIExtensionProxy): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeUIExtensionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1063506522, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readWaterFlowAttribute(): WaterFlowAttribute { + let value: WaterFlowAttribute = ({} as WaterFlowAttribute) + return value } readWaterFlowSections(): WaterFlowSections { let valueDeserializer: Deserializer = this @@ -4183,6 +4244,14 @@ return; } let value: SurfaceRotationOptions = ({lock: lock_result} as SurfaceRotationOptions) return value } + readWindowSceneAttribute(): WindowSceneAttribute { + let value: WindowSceneAttribute = ({} as WindowSceneAttribute) + return value + } + readWebAttribute(): WebAttribute { + let value: WebAttribute = ({} as WebAttribute) + return value + } readSelectionMenuOptionsExt(): SelectionMenuOptionsExt { let valueDeserializer: Deserializer = this const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -4225,15 +4294,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selectedText: { plainText: string }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const selectedText_plainText = selectedText.plainText; -_argsSerializer.writeString(selectedText_plainText); -(isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selectedText: { plainText: string }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const selectedText_plainText = selectedText.plainText; + _argsSerializer.writeString(selectedText_plainText); + (isSync) ? (InteropNativeModule._CallCallbackSync(-122223466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-122223466, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEventResult(): EventResult { let valueDeserializer: Deserializer = this @@ -4446,6 +4516,11 @@ return; } let ptr: KPointer = valueDeserializer.readPointer() return JsGeolocationInternal.fromPtr(ptr) } + readWebCookie(): WebCookie { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return WebCookieInternal.fromPtr(ptr) + } readScreenCaptureConfig(): ScreenCaptureConfig { let valueDeserializer: Deserializer = this const captureMode_result: WebCaptureMode = (valueDeserializer.readInt32() as WebCaptureMode) @@ -4961,57 +5036,59 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string | Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0); - const value_0 = unsafeCast(value); - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1); - const value_1 = unsafeCast>(value); - _argsSerializer.writeInt32(value_1.length); - for (let i = 0; i < value_1.length; i++) { - const value_1_element: string = value_1[i]; - _argsSerializer.writeString(value_1_element); + return (value: string | Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0); + const value_0 = unsafeCast(value); + _argsSerializer.writeString(value_0); } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1); + const value_1 = unsafeCast>(value); + _argsSerializer.writeInt32(value_1.length); + for (let i = 0; i < value_1.length; i++) { + const value_1_element: string = value_1[i]; + _argsSerializer.writeString(value_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-720435526, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-720435526, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Union_Number_Array_Number_Void(isSync: boolean = false): ((selected: number | Array) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selected: number | Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let selected_type: int32 = RuntimeType.UNDEFINED; -selected_type = runtimeType(selected); -if (((RuntimeType.NUMBER == selected_type))) { - _argsSerializer.writeInt8(0); - const selected_0 = unsafeCast(selected); - _argsSerializer.writeNumber(selected_0); -} -else if (((RuntimeType.OBJECT == selected_type))) { - _argsSerializer.writeInt8(1); - const selected_1 = unsafeCast>(selected); - _argsSerializer.writeInt32(selected_1.length); - for (let i = 0; i < selected_1.length; i++) { - const selected_1_element: number = selected_1[i]; - _argsSerializer.writeNumber(selected_1_element); + return (selected: number | Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let selected_type: int32 = RuntimeType.UNDEFINED; + selected_type = runtimeType(selected); + if (RuntimeType.NUMBER == selected_type) { + _argsSerializer.writeInt8(0); + const selected_0 = unsafeCast(selected); + _argsSerializer.writeNumber(selected_0); } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + else if (RuntimeType.OBJECT == selected_type) { + _argsSerializer.writeInt8(1); + const selected_1 = unsafeCast>(selected); + _argsSerializer.writeInt32(selected_1.length); + for (let i = 0; i < selected_1.length; i++) { + const selected_1_element: number = selected_1[i]; + _argsSerializer.writeNumber(selected_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1111620998, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDividerOptions(): DividerOptions { let valueDeserializer: Deserializer = this @@ -5067,25 +5144,30 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: ResourceStr): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0); - const value_0 = unsafeCast(value); - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1); - const value_1 = unsafeCast(value); - _argsSerializer.writeResource(value_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: ResourceStr): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0); + const value_0 = unsafeCast(value); + _argsSerializer.writeString(value_0); + } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1); + const value_1 = unsafeCast(value); + _argsSerializer.writeResource(value_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(188373904, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(188373904, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readTextInputAttribute(): TextInputAttribute { + let value: TextInputAttribute = ({} as TextInputAttribute) + return value } readInputCounterOptions(): InputCounterOptions { let valueDeserializer: Deserializer = this @@ -5291,16 +5373,54 @@ return; } let value: TextMenuItem = ({content: content_result,icon: icon_result,id: id_result} as TextMenuItem) return value } + readLineMetrics(): LineMetrics { + let valueDeserializer: Deserializer = this + const _LineMetricsStub_result: string = (valueDeserializer.readString() as string) + let value: LineMetrics = ({_LineMetricsStub: _LineMetricsStub_result} as LineMetrics) + return value + } + readPositionWithAffinity(): PositionWithAffinity { + let valueDeserializer: Deserializer = this + const position_result: number = (valueDeserializer.readNumber() as number) + const affinity_result: Affinity = valueDeserializer.readAffinity() + let value: PositionWithAffinity = ({position: position_result,affinity: affinity_result} as PositionWithAffinity) + return value + } + readMutableStyledString(): MutableStyledString { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return MutableStyledStringInternal.fromPtr(ptr) + } + readPreviewText(): PreviewText { + let valueDeserializer: Deserializer = this + const offset_result: number = (valueDeserializer.readNumber() as number) + const value_result: string = (valueDeserializer.readString() as string) + let value: PreviewText = ({offset: offset_result,value: value_result} as PreviewText) + return value + } + readLayoutManager(): LayoutManager { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return LayoutManagerInternal.fromPtr(ptr) + } readTextClockController(): TextClockController { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return TextClockControllerInternal.fromPtr(ptr) } + readTextAreaAttribute(): TextAreaAttribute { + let value: TextAreaAttribute = ({} as TextAreaAttribute) + return value + } readTextAreaController(): TextAreaController { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return TextAreaControllerInternal.fromPtr(ptr) } + readTextAttribute(): TextAttribute { + let value: TextAttribute = ({} as TextAttribute) + return value + } readSelectionMenuOptions(): SelectionMenuOptions { let valueDeserializer: Deserializer = this const onAppear_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5391,6 +5511,10 @@ return; } let value: TabBarOptions = ({icon: icon_result,text: text_result} as TabBarOptions) return value } + readTabsAttribute(): TabsAttribute { + let value: TabsAttribute = ({} as TabsAttribute) + return value + } readBackgroundBlurStyleOptions(): BackgroundBlurStyleOptions { let valueDeserializer: Deserializer = this const colorMode_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5492,6 +5616,10 @@ return; } let ptr: KPointer = valueDeserializer.readPointer() return TabsControllerInternal.fromPtr(ptr) } + readSymbolGlyphAttribute(): SymbolGlyphAttribute { + let value: SymbolGlyphAttribute = ({} as SymbolGlyphAttribute) + return value + } readSymbolEffect(): SymbolEffect { let value: SymbolEffect = ({} as SymbolEffect) return value @@ -5502,6 +5630,10 @@ return; } readDotIndicator(): DotIndicator { throw new Error("Can not deserialize builder class") } + readSwiperAttribute(): SwiperAttribute { + let value: SwiperAttribute = ({} as SwiperAttribute) + return value + } readSwiperAutoFill(): SwiperAutoFill { let valueDeserializer: Deserializer = this const minSize_buf_selector: number = valueDeserializer.readInt8() @@ -5604,38 +5736,52 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: SwiperContentTransitionProxy): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSwiperContentTransitionProxy(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: SwiperContentTransitionProxy): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSwiperContentTransitionProxy(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-416053361, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-416053361, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readSliderAttribute(): SliderAttribute { + let value: SliderAttribute = ({} as SliderAttribute) + return value + } + readShapeAttribute(): ShapeAttribute { + let value: ShapeAttribute = ({} as ShapeAttribute) + return value } readCallback_Union_Number_Resource_Void(isSync: boolean = false): ((selected: number | Resource) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selected: number | Resource): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let selected_type: int32 = RuntimeType.UNDEFINED; -selected_type = runtimeType(selected); -if (((RuntimeType.NUMBER == selected_type))) { - _argsSerializer.writeInt8(0); - const selected_0 = unsafeCast(selected); - _argsSerializer.writeNumber(selected_0); -} -else if (((RuntimeType.OBJECT == selected_type))) { - _argsSerializer.writeInt8(1); - const selected_1 = unsafeCast(selected); - _argsSerializer.writeResource(selected_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selected: number | Resource): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let selected_type: int32 = RuntimeType.UNDEFINED; + selected_type = runtimeType(selected); + if (RuntimeType.NUMBER == selected_type) { + _argsSerializer.writeInt8(0); + const selected_0 = unsafeCast(selected); + _argsSerializer.writeNumber(selected_0); + } + else if (RuntimeType.OBJECT == selected_type) { + _argsSerializer.writeInt8(1); + const selected_1 = unsafeCast(selected); + _argsSerializer.writeResource(selected_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-956455499, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-956455499, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } + } + readSelectAttribute(): SelectAttribute { + let value: SelectAttribute = ({} as SelectAttribute) + return value } readLocalizedEdges(): LocalizedEdges { let valueDeserializer: Deserializer = this @@ -5703,6 +5849,10 @@ return; } let value: Edges = ({top: top_result,left: left_result,bottom: bottom_result,right: right_result} as Edges) return value } + readSearchAttribute(): SearchAttribute { + let value: SearchAttribute = ({} as SearchAttribute) + return value + } readSearchButtonOptions(): SearchButtonOptions { let valueDeserializer: Deserializer = this const fontSize_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5789,6 +5939,10 @@ return; } let ptr: KPointer = valueDeserializer.readPointer() return SearchControllerInternal.fromPtr(ptr) } + readScrollAttribute(): ScrollAttribute { + let value: ScrollAttribute = ({} as ScrollAttribute) + return value + } readEdgeEffectOptions(): EdgeEffectOptions { let valueDeserializer: Deserializer = this const alwaysEnabled_result: boolean = valueDeserializer.readBoolean() @@ -5799,20 +5953,30 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): OffsetResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xOffset); -_argsSerializer.writeNumber(yOffset); -_argsSerializer.writeInt32(scrollState); -_argsSerializer.writeInt32(scrollSource); -let _continuationValue: OffsetResult | undefined|undefined ; -const _continuationCallback: ((value: OffsetResult) => void) = (value: OffsetResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as OffsetResult); } + return (xOffset: number, yOffset: number, scrollState: ScrollState, scrollSource: ScrollSource): OffsetResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xOffset); + _argsSerializer.writeNumber(yOffset); + _argsSerializer.writeInt32(scrollState); + _argsSerializer.writeInt32(scrollSource); + let _continuationValue: OffsetResult | undefined|undefined ; + const _continuationCallback: ((value: OffsetResult) => void) = (value: OffsetResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-721521596, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721521596, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as OffsetResult); } + } + readRectResult(): RectResult { + let valueDeserializer: Deserializer = this + const x_result: number = (valueDeserializer.readNumber() as number) + const y_result: number = (valueDeserializer.readNumber() as number) + const width_result: number = (valueDeserializer.readNumber() as number) + const height_result: number = (valueDeserializer.readNumber() as number) + let value: RectResult = ({x: x_result,y: y_result,width: width_result,height: height_result} as RectResult) + return value } readScrollToIndexOptions(): ScrollToIndexOptions { let valueDeserializer: Deserializer = this @@ -5826,6 +5990,13 @@ return (_continuationValue as OffsetResult); } let value: ScrollToIndexOptions = ({extraOffset: extraOffset_result} as ScrollToIndexOptions) return value } + readOffsetResult(): OffsetResult { + let valueDeserializer: Deserializer = this + const xOffset_result: number = (valueDeserializer.readNumber() as number) + const yOffset_result: number = (valueDeserializer.readNumber() as number) + let value: OffsetResult = ({xOffset: xOffset_result,yOffset: yOffset_result} as OffsetResult) + return value + } readScrollPageOptions(): ScrollPageOptions { let valueDeserializer: Deserializer = this const next_result: boolean = valueDeserializer.readBoolean() @@ -5908,6 +6079,10 @@ return (_continuationValue as OffsetResult); } let ptr: KPointer = valueDeserializer.readPointer() return RichEditorControllerInternal.fromPtr(ptr) } + readRichEditorAttribute(): RichEditorAttribute { + let value: RichEditorAttribute = ({} as RichEditorAttribute) + return value + } readPlaceholderStyle(): PlaceholderStyle { let valueDeserializer: Deserializer = this const font_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6056,6 +6231,31 @@ return (_continuationValue as OffsetResult); } let value: RichEditorRange = ({start: start_result,end: end_result} as RichEditorRange) return value } + readRichEditorSelection(): RichEditorSelection { + let valueDeserializer: Deserializer = this + const selection_buf_value0: number = (valueDeserializer.readNumber() as number) + const selection_buf_value1: number = (valueDeserializer.readNumber() as number) + const selection_result: [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) + const spans_buf_length: int32 = valueDeserializer.readInt32() + let spans_buf: Array = new Array() + for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { + const spans_buf_buf_selector: number = valueDeserializer.readInt8() + let spans_buf_buf: RichEditorTextSpanResult | RichEditorImageSpanResult | undefined|undefined + if (spans_buf_buf_selector == 0) { + spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() + } + else if (spans_buf_buf_selector == 1) { + spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() + } + else { + throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") + } + spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) + } + const spans_result: Array = spans_buf + let value: RichEditorSelection = ({selection: selection_result,spans: spans_result} as RichEditorSelection) + return value + } readRichEditorParagraphStyleOptions(): RichEditorParagraphStyleOptions { let valueDeserializer: Deserializer = this const start_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6648,14 +6848,15 @@ return (_continuationValue as OffsetResult); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (mode: PanelMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: PanelMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(388680218, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(388680218, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNavContentInfo(): NavContentInfo { let valueDeserializer: Deserializer = this @@ -6741,6 +6942,10 @@ return; } let value: NavigationOptions = ({launchMode: launchMode_result,animated: animated_result} as NavigationOptions) return value } + readNavDestinationAttribute(): NavDestinationAttribute { + let value: NavDestinationAttribute = ({} as NavDestinationAttribute) + return value + } readNavigationToolbarOptions(): NavigationToolbarOptions { let valueDeserializer: Deserializer = this const backgroundColor_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -6915,6 +7120,14 @@ return; } let value: SystemBarStyle = ({_SystemBarStyleStub: _SystemBarStyleStub_result} as SystemBarStyle) return value } + readRouteMapConfig(): RouteMapConfig { + let valueDeserializer: Deserializer = this + const name_result: string = (valueDeserializer.readString() as string) + const pageSourceFile_result: string = (valueDeserializer.readString() as string) + const data_result: Object = (valueDeserializer.readCustomObject("Object") as Object) + let value: RouteMapConfig = ({name: name_result,pageSourceFile: pageSourceFile_result,data: data_result} as RouteMapConfig) + return value + } readMenuItemOptions(): MenuItemOptions { let valueDeserializer: Deserializer = this const startIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7130,6 +7343,30 @@ return; } let value: ListDividerOptions = ({strokeWidth: strokeWidth_result,color: color_result,startMargin: startMargin_result,endMargin: endMargin_result} as ListDividerOptions) return value } + readListAttribute(): ListAttribute { + let value: ListAttribute = ({} as ListAttribute) + return value + } + readVisibleListContentInfo(): VisibleListContentInfo { + let valueDeserializer: Deserializer = this + const index_result: number = (valueDeserializer.readNumber() as number) + const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let itemGroupArea_buf: ListItemGroupArea | undefined|undefined + if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) + { + itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) + } + const itemGroupArea_result: ListItemGroupArea | undefined|undefined = itemGroupArea_buf + const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let itemIndexInGroup_buf: number | undefined|undefined + if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) + { + itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) + } + const itemIndexInGroup_result: number | undefined|undefined = itemIndexInGroup_buf + let value: VisibleListContentInfo = ({index: index_result,itemGroupArea: itemGroupArea_result,itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) + return value + } readCloseSwipeActionOptions(): CloseSwipeActionOptions { let valueDeserializer: Deserializer = this const onFinish_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7177,37 +7414,53 @@ return; } let value: BreakPoints = ({value: value_result,reference: reference_result} as BreakPoints) return value } + readGridAttribute(): GridAttribute { + let value: GridAttribute = ({} as GridAttribute) + return value + } readCallback_Number_Tuple_Number_Number_Number_Number(isSync: boolean = false): ((index: number) => [ number, number, number, number ]) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): [ number, number, number, number ] => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: [ number, number, number, number ] | undefined|undefined ; -const _continuationCallback: ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as [ number, number, number, number ]); } + return (index: number): [ number, number, number, number ] => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: [ number, number, number, number ] | undefined|undefined ; + const _continuationCallback: ((value: [ number, number, number, number ]) => void) = (value: [ number, number, number, number ]): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1618565120, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1618565120, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as [ number, number, number, number ]); } } readCallback_Number_Tuple_Number_Number(isSync: boolean = false): ((index: number) => [ number, number ]) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): [ number, number ] => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: [ number, number ] | undefined|undefined ; -const _continuationCallback: ((value: [ number, number ]) => void) = (value: [ number, number ]): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as [ number, number ]); } + return (index: number): [ number, number ] => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: [ number, number ] | undefined|undefined ; + const _continuationCallback: ((value: [ number, number ]) => void) = (value: [ number, number ]): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1602877440, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1602877440, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as [ number, number ]); } + } + readPanGestureOptions(): PanGestureOptions { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return PanGestureOptionsInternal.fromPtr(ptr) + } + readEventTargetInfo(): EventTargetInfo { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return EventTargetInfoInternal.fromPtr(ptr) } readWindowStatusType(): WindowStatusType { let valueDeserializer: Deserializer = this @@ -7568,6 +7821,10 @@ return (_continuationValue as [ number, number ]); } let value: AnimateParam = ({duration: duration_result,tempo: tempo_result,curve: curve_result,delay: delay_result,iterations: iterations_result,playMode: playMode_result,onFinish: onFinish_result,finishCallbackType: finishCallbackType_result,expectedFrameRateRange: expectedFrameRateRange_result} as AnimateParam) return value } + readComponent3DAttribute(): Component3DAttribute { + let value: Component3DAttribute = ({} as Component3DAttribute) + return value + } readUIGestureEvent(): UIGestureEvent { let value: UIGestureEvent = ({} as UIGestureEvent) return value @@ -7576,15 +7833,16 @@ return (_continuationValue as [ number, number ]); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (isExpanding: boolean, currentRatio: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isExpanding); -_argsSerializer.writeNumber(currentRatio); -(isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isExpanding: boolean, currentRatio: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isExpanding); + _argsSerializer.writeNumber(currentRatio); + (isSync) ? (InteropNativeModule._CallCallbackSync(541663396, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(541663396, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readVisibleAreaEventOptions(): VisibleAreaEventOptions { let valueDeserializer: Deserializer = this @@ -7608,82 +7866,88 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (oldValue: SizeOptions, newValue: SizeOptions): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSizeOptions(oldValue); -_argsSerializer.writeSizeOptions(newValue); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (oldValue: SizeOptions, newValue: SizeOptions): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSizeOptions(oldValue); + _argsSerializer.writeSizeOptions(newValue); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1716637992, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_MouseEvent_Void(isSync: boolean = false): ((event: MouseEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: MouseEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeMouseEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: MouseEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeMouseEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1382640094, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readHoverCallback(isSync: boolean = false): HoverCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (isHover: boolean, event: HoverEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: HoverEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(68560477, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(68560477, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_KeyEvent_Void(isSync: boolean = false): ((event: KeyEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: KeyEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeKeyEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: KeyEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeKeyEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(707696468, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(707696468, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_TouchEvent_Void(isSync: boolean = false): ((event: TouchEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: TouchEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: TouchEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1676021850, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnMoveHandler(isSync: boolean = false): OnMoveHandler { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: number, to: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (from: number, to: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1200281222, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFadingEdgeOptions(): FadingEdgeOptions { let valueDeserializer: Deserializer = this @@ -7703,6 +7967,30 @@ return; } let value: RectShape = ({_RectShapeStub: _RectShapeStub_result} as RectShape) return value } + readCaretOffset(): CaretOffset { + let valueDeserializer: Deserializer = this + const index_result: number = (valueDeserializer.readNumber() as number) + const x_result: number = (valueDeserializer.readNumber() as number) + const y_result: number = (valueDeserializer.readNumber() as number) + let value: CaretOffset = ({index: index_result,x: x_result,y: y_result} as CaretOffset) + return value + } + readDirectionalEdgesT(): DirectionalEdgesT { + let valueDeserializer: Deserializer = this + const start_result: number = (valueDeserializer.readNumber() as number) + const end_result: number = (valueDeserializer.readNumber() as number) + const top_result: number = (valueDeserializer.readNumber() as number) + const bottom_result: number = (valueDeserializer.readNumber() as number) + let value: DirectionalEdgesT = ({start: start_result,end: end_result,top: top_result,bottom: bottom_result} as DirectionalEdgesT) + return value + } + readMeasureResult(): MeasureResult { + let valueDeserializer: Deserializer = this + const width_result: number = (valueDeserializer.readNumber() as number) + const height_result: number = (valueDeserializer.readNumber() as number) + let value: MeasureResult = ({width: width_result,height: height_result} as MeasureResult) + return value + } readConstraintSizeOptions(): ConstraintSizeOptions { let valueDeserializer: Deserializer = this const minWidth_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -7740,23 +8028,24 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array): GestureJudgeResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBaseGestureEvent(event); -_argsSerializer.writeGestureRecognizer(current); -_argsSerializer.writeInt32(recognizers.length); -for (let i = 0; i < recognizers.length; i++) { - const recognizers_element: GestureRecognizer = recognizers[i]; - _argsSerializer.writeGestureRecognizer(recognizers_element); -} -let _continuationValue: GestureJudgeResult | undefined|undefined ; -const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureJudgeResult); } + return (event: BaseGestureEvent, current: GestureRecognizer, recognizers: Array): GestureJudgeResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBaseGestureEvent(event); + _argsSerializer.writeGestureRecognizer(current); + _argsSerializer.writeInt32(recognizers.length); + for (let i = 0; i < recognizers.length; i++) { + const recognizers_element: GestureRecognizer = recognizers[i]; + _argsSerializer.writeGestureRecognizer(recognizers_element); + } + let _continuationValue: GestureJudgeResult | undefined|undefined ; + const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2119548940, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureJudgeResult); } } readAccessibilityOptions(): AccessibilityOptions { let valueDeserializer: Deserializer = this @@ -9552,14 +9841,15 @@ return (_continuationValue as GestureJudgeResult); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (transitionIn: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(transitionIn); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (transitionIn: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(transitionIn); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1878458553, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readForegroundBlurStyleOptions(): ForegroundBlurStyleOptions { let valueDeserializer: Deserializer = this @@ -9770,15 +10060,6 @@ return; } let value: DrawingLattice = ({_DrawingLatticeStub: _DrawingLatticeStub_result} as DrawingLattice) return value } - readRectResult(): RectResult { - let valueDeserializer: Deserializer = this - const x_result: number = (valueDeserializer.readNumber() as number) - const y_result: number = (valueDeserializer.readNumber() as number) - const width_result: number = (valueDeserializer.readNumber() as number) - const height_result: number = (valueDeserializer.readNumber() as number) - let value: RectResult = ({x: x_result,y: y_result,width: width_result,height: height_result} as RectResult) - return value - } readDrawModifier(): DrawModifier { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -9790,11 +10071,32 @@ return; } let value: IntentionCode = ({_IntentionCodeStub: _IntentionCodeStub_result} as IntentionCode) return value } + readSummary(): Summary { + let valueDeserializer: Deserializer = this + const _SummaryStub_result: string = (valueDeserializer.readString() as string) + let value: Summary = ({_SummaryStub: _SummaryStub_result} as Summary) + return value + } readUnifiedData(): UnifiedData { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return UnifiedDataInternal.fromPtr(ptr) } + readTouchObject(): TouchObject { + let valueDeserializer: Deserializer = this + const type_result: TouchType = (valueDeserializer.readInt32() as TouchType) + const id_result: number = (valueDeserializer.readNumber() as number) + const displayX_result: number = (valueDeserializer.readNumber() as number) + const displayY_result: number = (valueDeserializer.readNumber() as number) + const windowX_result: number = (valueDeserializer.readNumber() as number) + const windowY_result: number = (valueDeserializer.readNumber() as number) + const screenX_result: number = (valueDeserializer.readNumber() as number) + const screenY_result: number = (valueDeserializer.readNumber() as number) + const x_result: number = (valueDeserializer.readNumber() as number) + const y_result: number = (valueDeserializer.readNumber() as number) + let value: TouchObject = ({type: type_result,id: id_result,displayX: displayX_result,displayY: displayY_result,windowX: windowX_result,windowY: windowY_result,screenX: screenX_result,screenY: screenY_result,x: x_result,y: y_result} as TouchObject) + return value + } readColumnSplitDividerStyle(): ColumnSplitDividerStyle { let valueDeserializer: Deserializer = this const startMargin_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -9857,11 +10159,39 @@ return; } let ptr: KPointer = valueDeserializer.readPointer() return CanvasRenderingContext2DInternal.fromPtr(ptr) } + readOffscreenCanvasRenderingContext2D(): OffscreenCanvasRenderingContext2D { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return OffscreenCanvasRenderingContext2DInternal.fromPtr(ptr) + } + readRenderingContextSettings(): RenderingContextSettings { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return RenderingContextSettingsInternal.fromPtr(ptr) + } readImageBitmap(): ImageBitmap { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return ImageBitmapInternal.fromPtr(ptr) } + readTextMetrics(): TextMetrics { + let valueDeserializer: Deserializer = this + const actualBoundingBoxAscent_result: number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxDescent_result: number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxLeft_result: number = (valueDeserializer.readNumber() as number) + const actualBoundingBoxRight_result: number = (valueDeserializer.readNumber() as number) + const alphabeticBaseline_result: number = (valueDeserializer.readNumber() as number) + const emHeightAscent_result: number = (valueDeserializer.readNumber() as number) + const emHeightDescent_result: number = (valueDeserializer.readNumber() as number) + const fontBoundingBoxAscent_result: number = (valueDeserializer.readNumber() as number) + const fontBoundingBoxDescent_result: number = (valueDeserializer.readNumber() as number) + const hangingBaseline_result: number = (valueDeserializer.readNumber() as number) + const ideographicBaseline_result: number = (valueDeserializer.readNumber() as number) + const width_result: number = (valueDeserializer.readNumber() as number) + const height_result: number = (valueDeserializer.readNumber() as number) + let value: TextMetrics = ({actualBoundingBoxAscent: actualBoundingBoxAscent_result,actualBoundingBoxDescent: actualBoundingBoxDescent_result,actualBoundingBoxLeft: actualBoundingBoxLeft_result,actualBoundingBoxRight: actualBoundingBoxRight_result,alphabeticBaseline: alphabeticBaseline_result,emHeightAscent: emHeightAscent_result,emHeightDescent: emHeightDescent_result,fontBoundingBoxAscent: fontBoundingBoxAscent_result,fontBoundingBoxDescent: fontBoundingBoxDescent_result,hangingBaseline: hangingBaseline_result,ideographicBaseline: ideographicBaseline_result,width: width_result,height: height_result} as TextMetrics) + return value + } readImageData(): ImageData { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -10028,6 +10358,10 @@ return; } let value: CalendarDialogOptions = ({hintRadius: hintRadius_result,selected: selected_result,onAccept: onAccept_result,onCancel: onCancel_result,onChange: onChange_result,backgroundColor: backgroundColor_result,backgroundBlurStyle: backgroundBlurStyle_result,acceptButtonStyle: acceptButtonStyle_result,cancelButtonStyle: cancelButtonStyle_result,onDidAppear: onDidAppear_result,onDidDisappear: onDidDisappear_result,onWillAppear: onWillAppear_result,onWillDisappear: onWillDisappear_result,shadow: shadow_result,enableHoverMode: enableHoverMode_result,hoverModeArea: hoverModeArea_result} as CalendarDialogOptions) return value } + readCalendarPickerAttribute(): CalendarPickerAttribute { + let value: CalendarPickerAttribute = ({} as CalendarPickerAttribute) + return value + } readCalendarController(): CalendarController { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -10187,6 +10521,10 @@ return; } let value: BadgeStyle = ({color: color_result,fontSize: fontSize_result,badgeSize: badgeSize_result,badgeColor: badgeColor_result,borderColor: borderColor_result,borderWidth: borderWidth_result,fontWeight: fontWeight_result} as BadgeStyle) return value } + readAlphabetIndexerAttribute(): AlphabetIndexerAttribute { + let value: AlphabetIndexerAttribute = ({} as AlphabetIndexerAttribute) + return value + } readAlertDialogParamWithOptions(): AlertDialogParamWithOptions { let valueDeserializer: Deserializer = this const title_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -12157,14 +12495,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-588228933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-588228933, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSnapshotOptions(): SnapshotOptions { let valueDeserializer: Deserializer = this @@ -12189,29 +12528,31 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (result: PixelMap): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePixelMap(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (result: PixelMap): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePixelMap(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(1289587365, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1289587365, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RangeUpdate(isSync: boolean = false): Callback_RangeUpdate { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: int32, mark: KPointer, end: int32): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(index); -_argsSerializer.writePointer(mark); -_argsSerializer.writeInt32(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: int32, mark: KPointer, end: int32): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(index); + _argsSerializer.writePointer(mark); + _argsSerializer.writeInt32(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(797834474, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(797834474, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDoubleAnimationParam(): DoubleAnimationParam { let valueDeserializer: Deserializer = this @@ -12275,77 +12616,82 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (options: WithThemeOptions): WithThemeAttribute => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWithThemeOptions(options); -let _continuationValue: WithThemeAttribute | undefined|undefined ; -const _continuationCallback: ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WithThemeAttribute); } + return (options: WithThemeOptions): WithThemeAttribute => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWithThemeOptions(options); + let _continuationValue: WithThemeAttribute | undefined|undefined ; + const _continuationCallback: ((value: WithThemeAttribute) => void) = (value: WithThemeAttribute): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(219587748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(219587748, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WithThemeAttribute); } } readType_NavigationAttribute_customNavContentTransition_delegate(isSync: boolean = false): ((from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation) => NavigationAnimatedTransition | undefined) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation): NavigationAnimatedTransition | undefined => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavContentInfo(from); -_argsSerializer.writeNavContentInfo(to); -_argsSerializer.writeInt32(operation); -let _continuationValue: NavigationAnimatedTransition | undefined|undefined ; -const _continuationCallback: ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as NavigationAnimatedTransition); } + return (from: NavContentInfo, to: NavContentInfo, operation: NavigationOperation): NavigationAnimatedTransition | undefined => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavContentInfo(from); + _argsSerializer.writeNavContentInfo(to); + _argsSerializer.writeInt32(operation); + let _continuationValue: NavigationAnimatedTransition | undefined|undefined ; + const _continuationCallback: ((value: NavigationAnimatedTransition | undefined) => void) = (value?: NavigationAnimatedTransition | undefined): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1044833488, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1044833488, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as NavigationAnimatedTransition); } } readSliderTriggerChangeCallback(isSync: boolean = false): SliderTriggerChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: number, mode: SliderChangeMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(value); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: number, mode: SliderChangeMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(value); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(711649376, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(711649376, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPageTransitionCallback(isSync: boolean = false): PageTransitionCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (type: RouteType, progress: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(type); -_argsSerializer.writeNumber(progress); -(isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (type: RouteType, progress: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(type); + _argsSerializer.writeNumber(progress); + (isSync) ? (InteropNativeModule._CallCallbackSync(1627123591, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1627123591, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnScrollCallback(isSync: boolean = false): OnScrollCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (scrollOffset: number, scrollState: ScrollState): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(scrollOffset); -_argsSerializer.writeInt32(scrollState); -(isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (scrollOffset: number, scrollState: ScrollState): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(scrollOffset); + _argsSerializer.writeInt32(scrollState); + (isSync) ? (InteropNativeModule._CallCallbackSync(-160015401, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-160015401, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIsolatedOptions(): IsolatedOptions { let valueDeserializer: Deserializer = this @@ -12358,17 +12704,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (options: IsolatedOptions): IsolatedComponentAttribute => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIsolatedOptions(options); -let _continuationValue: IsolatedComponentAttribute | undefined|undefined ; -const _continuationCallback: ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as IsolatedComponentAttribute); } + return (options: IsolatedOptions): IsolatedComponentAttribute => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIsolatedOptions(options); + let _continuationValue: IsolatedComponentAttribute | undefined|undefined ; + const _continuationCallback: ((value: IsolatedComponentAttribute) => void) = (value: IsolatedComponentAttribute): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2139680213, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2139680213, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as IsolatedComponentAttribute); } } readWithThemeAttribute(): WithThemeAttribute { let value: WithThemeAttribute = ({} as WithThemeAttribute) @@ -12378,297 +12725,315 @@ return (_continuationValue as IsolatedComponentAttribute); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: WithThemeAttribute): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWithThemeAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WithThemeAttribute): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWithThemeAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1436479104, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1436479104, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_WebResourceResponse_Void(isSync: boolean = false): ((value: WebResourceResponse) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: WebResourceResponse): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebResourceResponse(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WebResourceResponse): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebResourceResponse(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(831645046, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(831645046, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_WebKeyboardOptions_Void(isSync: boolean = false): ((value: WebKeyboardOptions) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: WebKeyboardOptions): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebKeyboardOptions(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: WebKeyboardOptions): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebKeyboardOptions(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1376223390, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Union_CustomBuilder_DragItemInfo_Void(isSync: boolean = false): ((value: CustomBuilder | DragItemInfo) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: CustomBuilder | DragItemInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.FUNCTION == value_type))) { - _argsSerializer.writeInt8(0); - const value_0 = unsafeCast(value); - _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1); - const value_1 = unsafeCast(value); - _argsSerializer.writeDragItemInfo(value_1); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CustomBuilder | DragItemInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.FUNCTION == value_type) { + _argsSerializer.writeInt8(0); + const value_0 = unsafeCast(value); + _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)); + } + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1); + const value_1 = unsafeCast(value); + _argsSerializer.writeDragItemInfo(value_1); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-620935067, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-620935067, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Tuple_Number_Number_Void(isSync: boolean = false): ((value: [ number, number ]) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: [ number, number ]): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_0 = value[0]; -_argsSerializer.writeNumber(value_0); -const value_1 = value[1]; -_argsSerializer.writeNumber(value_1); -(isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: [ number, number ]): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_0 = value[0]; + _argsSerializer.writeNumber(value_0); + const value_1 = value[1]; + _argsSerializer.writeNumber(value_1); + (isSync) ? (InteropNativeModule._CallCallbackSync(-607365481, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-607365481, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Tuple_Number_Number_Number_Number_Void(isSync: boolean = false): ((value: [ number, number, number, number ]) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: [ number, number, number, number ]): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_0 = value[0]; -_argsSerializer.writeNumber(value_0); -const value_1 = value[1]; -_argsSerializer.writeNumber(value_1); -const value_2 = value[2]; -_argsSerializer.writeNumber(value_2); -const value_3 = value[3]; -_argsSerializer.writeNumber(value_3); -(isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: [ number, number, number, number ]): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_0 = value[0]; + _argsSerializer.writeNumber(value_0); + const value_1 = value[1]; + _argsSerializer.writeNumber(value_1); + const value_2 = value[2]; + _argsSerializer.writeNumber(value_2); + const value_3 = value[3]; + _argsSerializer.writeNumber(value_3); + (isSync) ? (InteropNativeModule._CallCallbackSync(148489367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(148489367, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_TouchResult_Void(isSync: boolean = false): ((value: TouchResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: TouchResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: TouchResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1943507619, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1943507619, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_String_Unknown_Void(isSync: boolean = false): ((name: string, param: unknown) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (name: string, param: unknown): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(name); -_argsSerializer.writeCustomObject("Any", param); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (name: string, param: unknown): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(name); + _argsSerializer.writeCustomObject("Any", param); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1493806035, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Pointer_Void(isSync: boolean = false): ((value: KPointer) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: KPointer): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePointer(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: KPointer): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(721562324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(721562324, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_TabContentAnimatedTransition_Void(isSync: boolean = false): ((value: TabContentAnimatedTransition | undefined) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value?: TabContentAnimatedTransition | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeTabContentAnimatedTransition(value_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: TabContentAnimatedTransition | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeTabContentAnimatedTransition(value_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-143931627, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143931627, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_StyledString_Opt_Array_String_Void(isSync: boolean = false): ((value?: StyledString | undefined, error?: Array | undefined) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value?: StyledString | undefined, error?: Array | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeStyledString(value_value); -} -let error_type: int32 = RuntimeType.UNDEFINED; -error_type = runtimeType(error); -_argsSerializer.writeInt8(error_type); -if ((RuntimeType.UNDEFINED) != (error_type)) { - const error_value = error!; - _argsSerializer.writeInt32(error_value.length); - for (let i = 0; i < error_value.length; i++) { - const error_value_element: string = error_value[i]; - _argsSerializer.writeString(error_value_element); - } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: StyledString | undefined, error?: Array | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeStyledString(value_value); + } + let error_type: int32 = RuntimeType.UNDEFINED; + error_type = runtimeType(error); + _argsSerializer.writeInt8(error_type); + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error!; + _argsSerializer.writeInt32(error_value.length); + for (let i = 0; i < error_value.length; i++) { + const error_value_element: string = error_value[i]; + _argsSerializer.writeString(error_value_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-756319131, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-756319131, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_NavigationAnimatedTransition_Void(isSync: boolean = false): ((value: NavigationAnimatedTransition | undefined) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value?: NavigationAnimatedTransition | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -_argsSerializer.writeInt8(value_type); -if ((RuntimeType.UNDEFINED) != (value_type)) { - const value_value = value!; - _argsSerializer.writeNavigationAnimatedTransition(value_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value?: NavigationAnimatedTransition | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + _argsSerializer.writeInt8(value_type); + if ((RuntimeType.UNDEFINED) != (value_type)) { + const value_value = value!; + _argsSerializer.writeNavigationAnimatedTransition(value_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2035339519, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Opt_Array_String_Void(isSync: boolean = false): ((error?: Array | undefined) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (error?: Array | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let error_type: int32 = RuntimeType.UNDEFINED; -error_type = runtimeType(error); -_argsSerializer.writeInt8(error_type); -if ((RuntimeType.UNDEFINED) != (error_type)) { - const error_value = error!; - _argsSerializer.writeInt32(error_value.length); - for (let i = 0; i < error_value.length; i++) { - const error_value_element: string = error_value[i]; - _argsSerializer.writeString(error_value_element); - } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (error?: Array | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let error_type: int32 = RuntimeType.UNDEFINED; + error_type = runtimeType(error); + _argsSerializer.writeInt8(error_type); + if ((RuntimeType.UNDEFINED) != (error_type)) { + const error_value = error!; + _argsSerializer.writeInt32(error_value.length); + for (let i = 0; i < error_value.length; i++) { + const error_value_element: string = error_value[i]; + _argsSerializer.writeString(error_value_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-543655128, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-543655128, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_OnScrollFrameBeginHandlerResult_Void(isSync: boolean = false): ((value: OnScrollFrameBeginHandlerResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: OnScrollFrameBeginHandlerResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScrollFrameBeginHandlerResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: OnScrollFrameBeginHandlerResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScrollFrameBeginHandlerResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1637092936, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1637092936, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_OffsetResult_Void(isSync: boolean = false): ((value: OffsetResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: OffsetResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOffsetResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: OffsetResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOffsetResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(1295952075, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1295952075, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationTitleMode_Void(isSync: boolean = false): ((titleMode: NavigationTitleMode) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (titleMode: NavigationTitleMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(titleMode); -(isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (titleMode: NavigationTitleMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(titleMode); + (isSync) ? (InteropNativeModule._CallCallbackSync(1685437830, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1685437830, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_NavigationMode_Void(isSync: boolean = false): ((mode: NavigationMode) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (mode: NavigationMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (mode: NavigationMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(960690982, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(960690982, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Number_offsetRemain_Void(isSync: boolean = false): ((value: { offsetRemain: number }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: { offsetRemain: number }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const value_offsetRemain = value.offsetRemain; -_argsSerializer.writeNumber(value_offsetRemain); -(isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: { offsetRemain: number }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const value_offsetRemain = value.offsetRemain; + _argsSerializer.writeNumber(value_offsetRemain); + (isSync) ? (InteropNativeModule._CallCallbackSync(-251706058, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-251706058, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIsolatedComponentAttribute(): IsolatedComponentAttribute { let value: IsolatedComponentAttribute = ({} as IsolatedComponentAttribute) @@ -12678,110 +13043,118 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: IsolatedComponentAttribute): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIsolatedComponentAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: IsolatedComponentAttribute): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIsolatedComponentAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(719029905, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(719029905, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_HitTestMode_Void(isSync: boolean = false): ((value: HitTestMode) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: HitTestMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: HitTestMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1755111025, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_GestureRecognizer_Void(isSync: boolean = false): ((value: GestureRecognizer) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: GestureRecognizer): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureRecognizer(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: GestureRecognizer): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureRecognizer(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(776202910, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(776202910, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_GestureJudgeResult_Void(isSync: boolean = false): ((value: GestureJudgeResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: GestureJudgeResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: GestureJudgeResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-684588584, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-684588584, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_CustomBuilder_Void(isSync: boolean = false): ((value: CustomBuilder) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: CustomBuilder): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); -(isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CustomBuilder): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)); + (isSync) ? (InteropNativeModule._CallCallbackSync(-721106019, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-721106019, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ComputedBarAttribute_Void(isSync: boolean = false): ((value: ComputedBarAttribute) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: ComputedBarAttribute): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeComputedBarAttribute(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: ComputedBarAttribute): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeComputedBarAttribute(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1270343661, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Array_String_Void(isSync: boolean = false): ((value: Array) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value.length); -for (let i = 0; i < value.length; i++) { - const value_element: string = value[i]; - _argsSerializer.writeString(value_element); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value.length); + for (let i = 0; i < value.length; i++) { + const value_element: string = value[i]; + _argsSerializer.writeString(value_element); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-440782244, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-440782244, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readButtonTriggerClickCallback(isSync: boolean = false): ButtonTriggerClickCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (xPos: number, yPos: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xPos); -_argsSerializer.writeNumber(yPos); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (xPos: number, yPos: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xPos); + _argsSerializer.writeNumber(yPos); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1964292933, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLinearIndicatorController(): LinearIndicatorController { let valueDeserializer: Deserializer = this @@ -12822,11 +13195,6 @@ return; } let value: ImageAttachmentInterface = ({value: value_result,size: size_result,verticalAlign: verticalAlign_result,objectFit: objectFit_result,layoutStyle: layoutStyle_result} as ImageAttachmentInterface) return value } - readMutableStyledString(): MutableStyledString { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return MutableStyledStringInternal.fromPtr(ptr) - } readUrlStyle(): UrlStyle { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -13061,23 +13429,24 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: { code: number, want?: Want }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const parameter_code = parameter.code; -_argsSerializer.writeNumber(parameter_code); -const parameter_want = parameter.want; -let parameter_want_type: int32 = RuntimeType.UNDEFINED; -parameter_want_type = runtimeType(parameter_want); -_argsSerializer.writeInt8(parameter_want_type); -if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { - const parameter_want_value = parameter_want!; - _argsSerializer.writeWant(parameter_want_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: { code: number, want?: Want }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const parameter_code = parameter.code; + _argsSerializer.writeNumber(parameter_code); + const parameter_want = parameter.want; + let parameter_want_type: int32 = RuntimeType.UNDEFINED; + parameter_want_type = runtimeType(parameter_want); + _argsSerializer.writeInt8(parameter_want_type); + if ((RuntimeType.UNDEFINED) != (parameter_want_type)) { + const parameter_want_value = parameter_want!; + _argsSerializer.writeWant(parameter_want_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-582934742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-582934742, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readReceiveCallback(): ReceiveCallback { let valueDeserializer: Deserializer = this @@ -13217,20 +13586,21 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: Object | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeCustomObject("Object", event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: Object | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeCustomObject("Object", event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-823037763, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-823037763, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readXComponentOptions(): XComponentOptions { let valueDeserializer: Deserializer = this @@ -13262,14 +13632,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (details: AdsBlockedDetails): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeAdsBlockedDetails(details); -(isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (details: AdsBlockedDetails): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeAdsBlockedDetails(details); + (isSync) ? (InteropNativeModule._CallCallbackSync(1572284740, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1572284740, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWebKeyboardOptions(): WebKeyboardOptions { let valueDeserializer: Deserializer = this @@ -13310,30 +13681,32 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (keyboardCallbackInfo: WebKeyboardCallbackInfo): WebKeyboardOptions => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); -let _continuationValue: WebKeyboardOptions | undefined|undefined ; -const _continuationCallback: ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WebKeyboardOptions); } + return (keyboardCallbackInfo: WebKeyboardCallbackInfo): WebKeyboardOptions => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebKeyboardCallbackInfo(keyboardCallbackInfo); + let _continuationValue: WebKeyboardOptions | undefined|undefined ; + const _continuationCallback: ((value: WebKeyboardOptions) => void) = (value: WebKeyboardOptions): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1829763354, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WebKeyboardOptions); } } readOnViewportFitChangedCallback(isSync: boolean = false): OnViewportFitChangedCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (viewportFit: ViewportFit): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(viewportFit); -(isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (viewportFit: ViewportFit): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(viewportFit); + (isSync) ? (InteropNativeModule._CallCallbackSync(1847083191, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1847083191, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readExpandedMenuItemOptions(): ExpandedMenuItemOptions { let valueDeserializer: Deserializer = this @@ -13375,13 +13748,14 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(1334389194, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1334389194, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRenderProcessNotRespondingData(): RenderProcessNotRespondingData { let valueDeserializer: Deserializer = this @@ -13395,14 +13769,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (data: RenderProcessNotRespondingData): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRenderProcessNotRespondingData(data); -(isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (data: RenderProcessNotRespondingData): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRenderProcessNotRespondingData(data); + (isSync) ? (InteropNativeModule._CallCallbackSync(47282303, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(47282303, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeMediaPlayerConfig(): NativeMediaPlayerConfig { let valueDeserializer: Deserializer = this @@ -13415,17 +13790,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (webResourceRequest: WebResourceRequest): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeWebResourceRequest(webResourceRequest); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (webResourceRequest: WebResourceRequest): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeWebResourceRequest(webResourceRequest); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(865258467, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(865258467, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readNativeEmbedTouchInfo(): NativeEmbedTouchInfo { let valueDeserializer: Deserializer = this @@ -13457,14 +13833,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: NativeEmbedTouchInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedTouchInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: NativeEmbedTouchInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedTouchInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1090303858, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeEmbedVisibilityInfo(): NativeEmbedVisibilityInfo { let valueDeserializer: Deserializer = this @@ -13477,14 +13854,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedVisibilityInfo(nativeEmbedVisibilityInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1641338704, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNativeEmbedDataInfo(): NativeEmbedDataInfo { let valueDeserializer: Deserializer = this @@ -13523,14 +13901,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: NativeEmbedDataInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNativeEmbedDataInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: NativeEmbedDataInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNativeEmbedDataInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(477481563, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(477481563, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readScriptItem(): ScriptItem { let valueDeserializer: Deserializer = this @@ -13555,14 +13934,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (details: IntelligentTrackingPreventionDetails): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeIntelligentTrackingPreventionDetails(details); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (details: IntelligentTrackingPreventionDetails): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeIntelligentTrackingPreventionDetails(details); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1377876844, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLoadCommittedDetails(): LoadCommittedDetails { let valueDeserializer: Deserializer = this @@ -13578,27 +13958,29 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (loadCommittedDetails: LoadCommittedDetails): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); -(isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (loadCommittedDetails: LoadCommittedDetails): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeLoadCommittedDetails(loadCommittedDetails); + (isSync) ? (InteropNativeModule._CallCallbackSync(-398722176, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-398722176, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSafeBrowsingCheckResultCallback(isSync: boolean = false): OnSafeBrowsingCheckResultCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (threatType: ThreatType): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(threatType); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (threatType: ThreatType): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(threatType); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1099824577, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnOverScrollEvent(): OnOverScrollEvent { let valueDeserializer: Deserializer = this @@ -13611,14 +13993,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnOverScrollEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnOverScrollEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnOverScrollEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnOverScrollEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-860386431, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-860386431, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnLoadInterceptEvent(): OnLoadInterceptEvent { let valueDeserializer: Deserializer = this @@ -13630,17 +14013,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnLoadInterceptEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnLoadInterceptEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnLoadInterceptEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnLoadInterceptEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1231444306, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1231444306, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readLargestContentfulPaint(): LargestContentfulPaint { let valueDeserializer: Deserializer = this @@ -13693,14 +14077,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (largestContentfulPaint: LargestContentfulPaint): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); -(isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (largestContentfulPaint: LargestContentfulPaint): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeLargestContentfulPaint(largestContentfulPaint); + (isSync) ? (InteropNativeModule._CallCallbackSync(1390640532, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1390640532, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFirstMeaningfulPaint(): FirstMeaningfulPaint { let valueDeserializer: Deserializer = this @@ -13725,14 +14110,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (firstMeaningfulPaint: FirstMeaningfulPaint): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); -(isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (firstMeaningfulPaint: FirstMeaningfulPaint): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFirstMeaningfulPaint(firstMeaningfulPaint); + (isSync) ? (InteropNativeModule._CallCallbackSync(767275770, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(767275770, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFirstContentfulPaintEvent(): OnFirstContentfulPaintEvent { let valueDeserializer: Deserializer = this @@ -13745,14 +14131,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnFirstContentfulPaintEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFirstContentfulPaintEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnFirstContentfulPaintEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFirstContentfulPaintEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1852060212, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnAudioStateChangedEvent(): OnAudioStateChangedEvent { let valueDeserializer: Deserializer = this @@ -13764,14 +14151,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnAudioStateChangedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnAudioStateChangedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnAudioStateChangedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnAudioStateChangedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1559789631, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnDataResubmittedEvent(): OnDataResubmittedEvent { let valueDeserializer: Deserializer = this @@ -13783,14 +14171,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnDataResubmittedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnDataResubmittedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnDataResubmittedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnDataResubmittedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(118631204, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(118631204, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageVisibleEvent(): OnPageVisibleEvent { let valueDeserializer: Deserializer = this @@ -13802,14 +14191,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPageVisibleEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageVisibleEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageVisibleEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageVisibleEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1805946367, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1805946367, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFaviconReceivedEvent(): OnFaviconReceivedEvent { let valueDeserializer: Deserializer = this @@ -13821,14 +14211,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnFaviconReceivedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFaviconReceivedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnFaviconReceivedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFaviconReceivedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-243916553, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-243916553, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTouchIconUrlReceivedEvent(): OnTouchIconUrlReceivedEvent { let valueDeserializer: Deserializer = this @@ -13841,14 +14232,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnTouchIconUrlReceivedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnTouchIconUrlReceivedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnTouchIconUrlReceivedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1657893064, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1657893064, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnWindowNewEvent(): OnWindowNewEvent { let valueDeserializer: Deserializer = this @@ -13863,14 +14255,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnWindowNewEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnWindowNewEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnWindowNewEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnWindowNewEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2052382574, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnClientAuthenticationEvent(): OnClientAuthenticationEvent { let valueDeserializer: Deserializer = this @@ -13896,14 +14289,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnClientAuthenticationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnClientAuthenticationEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnClientAuthenticationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnClientAuthenticationEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(608991355, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(608991355, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSslErrorEvent(): SslErrorEvent { let valueDeserializer: Deserializer = this @@ -13921,14 +14315,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (sslErrorEvent: SslErrorEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeSslErrorEvent(sslErrorEvent); -(isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (sslErrorEvent: SslErrorEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeSslErrorEvent(sslErrorEvent); + (isSync) ? (InteropNativeModule._CallCallbackSync(-399603614, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-399603614, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSslErrorEventReceiveEvent(): OnSslErrorEventReceiveEvent { let valueDeserializer: Deserializer = this @@ -13953,14 +14348,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnSslErrorEventReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnSslErrorEventReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnSslErrorEventReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1624791665, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1624791665, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnScrollEvent(): OnScrollEvent { let valueDeserializer: Deserializer = this @@ -13973,14 +14369,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnScrollEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScrollEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScrollEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScrollEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-172908881, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-172908881, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSearchResultReceiveEvent(): OnSearchResultReceiveEvent { let valueDeserializer: Deserializer = this @@ -13994,26 +14391,28 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnSearchResultReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnSearchResultReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnSearchResultReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnSearchResultReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1495570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1495570, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContextMenuHideCallback(isSync: boolean = false): OnContextMenuHideCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -(isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + (isSync) ? (InteropNativeModule._CallCallbackSync(1788572278, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1788572278, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContextMenuShowEvent(): OnContextMenuShowEvent { let valueDeserializer: Deserializer = this @@ -14026,17 +14425,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnContextMenuShowEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnContextMenuShowEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnContextMenuShowEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnContextMenuShowEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(332449533, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(332449533, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScreenCaptureRequestEvent(): OnScreenCaptureRequestEvent { let valueDeserializer: Deserializer = this @@ -14048,14 +14448,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnScreenCaptureRequestEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScreenCaptureRequestEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScreenCaptureRequestEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScreenCaptureRequestEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1972321573, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPermissionRequestEvent(): OnPermissionRequestEvent { let valueDeserializer: Deserializer = this @@ -14067,14 +14468,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPermissionRequestEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPermissionRequestEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPermissionRequestEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPermissionRequestEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(529980696, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(529980696, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnInterceptRequestEvent(): OnInterceptRequestEvent { let valueDeserializer: Deserializer = this @@ -14086,17 +14488,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnInterceptRequestEvent): WebResourceResponse => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnInterceptRequestEvent(parameter); -let _continuationValue: WebResourceResponse | undefined|undefined ; -const _continuationCallback: ((value: WebResourceResponse) => void) = (value: WebResourceResponse): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as WebResourceResponse); } + return (parameter: OnInterceptRequestEvent): WebResourceResponse => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnInterceptRequestEvent(parameter); + let _continuationValue: WebResourceResponse | undefined|undefined ; + const _continuationCallback: ((value: WebResourceResponse) => void) = (value: WebResourceResponse): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1442698200, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1442698200, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as WebResourceResponse); } } readOnHttpAuthRequestEvent(): OnHttpAuthRequestEvent { let valueDeserializer: Deserializer = this @@ -14110,17 +14513,18 @@ return (_continuationValue as WebResourceResponse); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnHttpAuthRequestEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnHttpAuthRequestEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnHttpAuthRequestEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnHttpAuthRequestEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(780282803, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(780282803, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScaleChangeEvent(): OnScaleChangeEvent { let valueDeserializer: Deserializer = this @@ -14133,14 +14537,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnScaleChangeEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnScaleChangeEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnScaleChangeEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnScaleChangeEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1782102148, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFullScreenEnterEvent(): FullScreenEnterEvent { let valueDeserializer: Deserializer = this @@ -14166,14 +14571,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: FullScreenEnterEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFullScreenEnterEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: FullScreenEnterEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFullScreenEnterEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(81230317, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(81230317, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnResourceLoadEvent(): OnResourceLoadEvent { let valueDeserializer: Deserializer = this @@ -14185,59 +14591,62 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnResourceLoadEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnResourceLoadEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnResourceLoadEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnResourceLoadEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(793995118, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(793995118, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readType_WebAttribute_onFileSelectorShow_callback(isSync: boolean = false): ((event?: { callback_: Function, fileSelector: Object }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { callback_: Function, fileSelector: Object } | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_callback_ = event_value.callback_; - _argsSerializer.writeFunction(event_value_callback_); - const event_value_fileSelector = event_value.fileSelector; - _argsSerializer.writeCustomObject("Object", event_value_fileSelector); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: { callback_: Function, fileSelector: Object } | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_callback_ = event_value.callback_; + _argsSerializer.writeFunction(event_value_callback_); + const event_value_fileSelector = event_value.fileSelector; + _argsSerializer.writeCustomObject("Object", event_value_fileSelector); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(1962174977, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1962174977, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Object_detail_Boolean(isSync: boolean = false): ((event?: { detail: Object }) => boolean) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { detail: Object } | undefined): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_detail = event_value.detail; - _argsSerializer.writeCustomObject("Object", event_value_detail); -} -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (event?: { detail: Object } | undefined): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_detail = event_value.detail; + _argsSerializer.writeCustomObject("Object", event_value_detail); + } + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(222742448, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(222742448, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnShowFileSelectorEvent(): OnShowFileSelectorEvent { let valueDeserializer: Deserializer = this @@ -14250,17 +14659,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnShowFileSelectorEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnShowFileSelectorEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnShowFileSelectorEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnShowFileSelectorEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-636069598, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-636069598, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnRenderExitedEvent(): OnRenderExitedEvent { let valueDeserializer: Deserializer = this @@ -14272,70 +14682,73 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnRenderExitedEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnRenderExitedEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnRenderExitedEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnRenderExitedEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1413785559, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Function_handler_Object_error_Void(isSync: boolean = false): ((event?: { handler: Function, error: Object }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { handler: Function, error: Object } | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_handler = event_value.handler; - _argsSerializer.writeFunction(event_value_handler); - const event_value_error = event_value.error; - _argsSerializer.writeCustomObject("Object", event_value_error); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: { handler: Function, error: Object } | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_handler = event_value.handler; + _argsSerializer.writeFunction(event_value_handler); + const event_value_error = event_value.error; + _argsSerializer.writeCustomObject("Object", event_value_error); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(361012115, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(361012115, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readType_WebAttribute_onUrlLoadIntercept_callback(isSync: boolean = false): ((event?: { data: string | WebResourceRequest }) => boolean) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { data: string | WebResourceRequest } | undefined): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_data = event_value.data; - let event_value_data_type: int32 = RuntimeType.UNDEFINED; - event_value_data_type = runtimeType(event_value_data); - if (((RuntimeType.STRING == event_value_data_type))) { - _argsSerializer.writeInt8(0); - const event_value_data_0 = unsafeCast(event_value_data); - _argsSerializer.writeString(event_value_data_0); - } - else if (((RuntimeType.OBJECT == event_value_data_type))) { - _argsSerializer.writeInt8(1); - const event_value_data_1 = unsafeCast(event_value_data); - _argsSerializer.writeWebResourceRequest(event_value_data_1); - } -} -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (event?: { data: string | WebResourceRequest } | undefined): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_data = event_value.data; + let event_value_data_type: int32 = RuntimeType.UNDEFINED; + event_value_data_type = runtimeType(event_value_data); + if (RuntimeType.STRING == event_value_data_type) { + _argsSerializer.writeInt8(0); + const event_value_data_0 = unsafeCast(event_value_data); + _argsSerializer.writeString(event_value_data_0); + } + else if (RuntimeType.OBJECT == event_value_data_type) { + _argsSerializer.writeInt8(1); + const event_value_data_1 = unsafeCast(event_value_data); + _argsSerializer.writeWebResourceRequest(event_value_data_1); + } + } + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-985284966, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-985284966, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnRefreshAccessedHistoryEvent(): OnRefreshAccessedHistoryEvent { let valueDeserializer: Deserializer = this @@ -14348,14 +14761,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnRefreshAccessedHistoryEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnRefreshAccessedHistoryEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnRefreshAccessedHistoryEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1978364344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1978364344, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnDownloadStartEvent(): OnDownloadStartEvent { let valueDeserializer: Deserializer = this @@ -14371,14 +14785,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnDownloadStartEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnDownloadStartEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnDownloadStartEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnDownloadStartEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1834611702, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1834611702, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnHttpErrorReceiveEvent(): OnHttpErrorReceiveEvent { let valueDeserializer: Deserializer = this @@ -14391,14 +14806,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnHttpErrorReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnHttpErrorReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnHttpErrorReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnHttpErrorReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2066745559, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnErrorReceiveEvent(): OnErrorReceiveEvent { let valueDeserializer: Deserializer = this @@ -14411,14 +14827,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnErrorReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnErrorReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnErrorReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnErrorReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1792851375, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnConsoleEvent(): OnConsoleEvent { let valueDeserializer: Deserializer = this @@ -14430,17 +14847,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnConsoleEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnConsoleEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnConsoleEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnConsoleEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(893367077, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(893367077, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnPromptEvent(): OnPromptEvent { let valueDeserializer: Deserializer = this @@ -14455,17 +14873,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPromptEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPromptEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnPromptEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPromptEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1826742986, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnConfirmEvent(): OnConfirmEvent { let valueDeserializer: Deserializer = this @@ -14479,17 +14898,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnConfirmEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnConfirmEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnConfirmEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnConfirmEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(317864672, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(317864672, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnBeforeUnloadEvent(): OnBeforeUnloadEvent { let valueDeserializer: Deserializer = this @@ -14503,17 +14923,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnBeforeUnloadEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnBeforeUnloadEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnBeforeUnloadEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnBeforeUnloadEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-873162122, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-873162122, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnAlertEvent(): OnAlertEvent { let valueDeserializer: Deserializer = this @@ -14527,17 +14948,18 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnAlertEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnAlertEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: OnAlertEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnAlertEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(806070428, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(806070428, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnGeolocationShowEvent(): OnGeolocationShowEvent { let valueDeserializer: Deserializer = this @@ -14550,14 +14972,15 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnGeolocationShowEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnGeolocationShowEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnGeolocationShowEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnGeolocationShowEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-941896815, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-941896815, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTitleReceiveEvent(): OnTitleReceiveEvent { let valueDeserializer: Deserializer = this @@ -14569,14 +14992,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnTitleReceiveEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnTitleReceiveEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnTitleReceiveEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnTitleReceiveEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-318085495, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-318085495, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnProgressChangeEvent(): OnProgressChangeEvent { let valueDeserializer: Deserializer = this @@ -14588,14 +15012,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnProgressChangeEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnProgressChangeEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnProgressChangeEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnProgressChangeEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1018740377, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1018740377, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageBeginEvent(): OnPageBeginEvent { let valueDeserializer: Deserializer = this @@ -14607,14 +15032,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPageBeginEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageBeginEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageBeginEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageBeginEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2040193994, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnPageEndEvent(): OnPageEndEvent { let valueDeserializer: Deserializer = this @@ -14626,14 +15052,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: OnPageEndEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnPageEndEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: OnPageEndEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnPageEndEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-130135362, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-130135362, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWebMediaOptions(): WebMediaOptions { let valueDeserializer: Deserializer = this @@ -14748,11 +15175,6 @@ return; } let value: WebOptions = ({src: src_result,controller: controller_result,renderMode: renderMode_result,incognitoMode: incognitoMode_result,sharedRenderProcessToken: sharedRenderProcessToken_result} as WebOptions) return value } - readWebCookie(): WebCookie { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return WebCookieInternal.fromPtr(ptr) - } readHeader(): Header { let valueDeserializer: Deserializer = this const headerKey_result: string = (valueDeserializer.readString() as string) @@ -14770,14 +15192,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: PlaybackInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePlaybackInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PlaybackInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePlaybackInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2058966418, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPreparedInfo(): PreparedInfo { let valueDeserializer: Deserializer = this @@ -14789,14 +15212,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: PreparedInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePreparedInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PreparedInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePreparedInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1300890372, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1300890372, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFullscreenInfo(): FullscreenInfo { let valueDeserializer: Deserializer = this @@ -14808,14 +15232,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: FullscreenInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFullscreenInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: FullscreenInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFullscreenInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(583294398, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(583294398, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readVideoOptions(): VideoOptions { let valueDeserializer: Deserializer = this @@ -15104,59 +15529,61 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string | Array, index: number | Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let value_type: int32 = RuntimeType.UNDEFINED; -value_type = runtimeType(value); -if (((RuntimeType.STRING == value_type))) { - _argsSerializer.writeInt8(0); - const value_0 = unsafeCast(value); - _argsSerializer.writeString(value_0); -} -else if (((RuntimeType.OBJECT == value_type))) { - _argsSerializer.writeInt8(1); - const value_1 = unsafeCast>(value); - _argsSerializer.writeInt32(value_1.length); - for (let i = 0; i < value_1.length; i++) { - const value_1_element: string = value_1[i]; - _argsSerializer.writeString(value_1_element); + return (value: string | Array, index: number | Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let value_type: int32 = RuntimeType.UNDEFINED; + value_type = runtimeType(value); + if (RuntimeType.STRING == value_type) { + _argsSerializer.writeInt8(0); + const value_0 = unsafeCast(value); + _argsSerializer.writeString(value_0); } -} -let index_type: int32 = RuntimeType.UNDEFINED; -index_type = runtimeType(index); -if (((RuntimeType.NUMBER == index_type))) { - _argsSerializer.writeInt8(0); - const index_0 = unsafeCast(index); - _argsSerializer.writeNumber(index_0); -} -else if (((RuntimeType.OBJECT == index_type))) { - _argsSerializer.writeInt8(1); - const index_1 = unsafeCast>(index); - _argsSerializer.writeInt32(index_1.length); - for (let i = 0; i < index_1.length; i++) { - const index_1_element: number = index_1[i]; - _argsSerializer.writeNumber(index_1_element); + else if (RuntimeType.OBJECT == value_type) { + _argsSerializer.writeInt8(1); + const value_1 = unsafeCast>(value); + _argsSerializer.writeInt32(value_1.length); + for (let i = 0; i < value_1.length; i++) { + const value_1_element: string = value_1[i]; + _argsSerializer.writeString(value_1_element); + } } -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + let index_type: int32 = RuntimeType.UNDEFINED; + index_type = runtimeType(index); + if (RuntimeType.NUMBER == index_type) { + _argsSerializer.writeInt8(0); + const index_0 = unsafeCast(index); + _argsSerializer.writeNumber(index_0); + } + else if (RuntimeType.OBJECT == index_type) { + _argsSerializer.writeInt8(1); + const index_1 = unsafeCast>(index); + _argsSerializer.writeInt32(index_1.length); + for (let i = 0; i < index_1.length; i++) { + const index_1_element: number = index_1[i]; + _argsSerializer.writeNumber(index_1_element); + } + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1078223620, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_String_Number_Void(isSync: boolean = false): ((value: string, index: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string, index: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, index: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(-879490874, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879490874, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextCascadePickerRangeContent(): TextCascadePickerRangeContent { let valueDeserializer: Deserializer = this @@ -15364,15 +15791,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (enterKey: EnterKeyType, event: SubmitEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(enterKey); -_argsSerializer.writeSubmitEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType, event: SubmitEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(enterKey); + _argsSerializer.writeSubmitEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1961646162, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextInputOptions(): TextInputOptions { let valueDeserializer: Deserializer = this @@ -15422,10 +15850,11 @@ return; } let value: TextInputOptions = ({placeholder: placeholder_result,text: text_result,controller: controller_result} as TextInputOptions) return value } - readLayoutManager(): LayoutManager { + readTextBox(): TextBox { let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return LayoutManagerInternal.fromPtr(ptr) + const _TextBoxStub_result: string = (valueDeserializer.readString() as string) + let value: TextBox = ({_TextBoxStub: _TextBoxStub_result} as TextBox) + return value } readStyledStringController(): StyledStringController { let valueDeserializer: Deserializer = this @@ -15465,48 +15894,51 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string, event: PasteEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -_argsSerializer.writePasteEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, event: PasteEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + _argsSerializer.writePasteEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-683652998, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-683652998, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextAreaSubmitCallback(isSync: boolean = false): TextAreaSubmitCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(enterKeyType); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeSubmitEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKeyType: EnterKeyType, event?: SubmitEvent | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(enterKeyType); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeSubmitEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-401980571, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-401980571, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_EnterKeyType_Void(isSync: boolean = false): ((enterKey: EnterKeyType) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (enterKey: EnterKeyType): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(enterKey); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(enterKey); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1802605016, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextAreaOptions(): TextAreaOptions { let valueDeserializer: Deserializer = this @@ -15572,18 +16004,19 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (currentIndex: number, comingIndex: number): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(currentIndex); -_argsSerializer.writeNumber(comingIndex); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (currentIndex: number, comingIndex: number): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(currentIndex); + _argsSerializer.writeNumber(comingIndex); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-349727249, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-349727249, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readTabContentTransitionProxy(): TabContentTransitionProxy { let valueDeserializer: Deserializer = this @@ -15594,18 +16027,19 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: number, to: number): TabContentAnimatedTransition | undefined => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -let _continuationValue: TabContentAnimatedTransition | undefined|undefined ; -const _continuationCallback: ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as TabContentAnimatedTransition); } + return (from: number, to: number): TabContentAnimatedTransition | undefined => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + let _continuationValue: TabContentAnimatedTransition | undefined|undefined ; + const _continuationCallback: ((value: TabContentAnimatedTransition | undefined) => void) = (value?: TabContentAnimatedTransition | undefined): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(221706282, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(221706282, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as TabContentAnimatedTransition); } } readBarGridColumnOptions(): BarGridColumnOptions { let valueDeserializer: Deserializer = this @@ -15651,29 +16085,31 @@ return (_continuationValue as TabContentAnimatedTransition); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, extraInfo: TabsAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: TabsAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(253696833, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(253696833, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTabsAnimationEndCallback(isSync: boolean = false): OnTabsAnimationEndCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, extraInfo: TabsAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: TabsAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(1942856551, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1942856551, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabsAnimationEvent(): TabsAnimationEvent { let valueDeserializer: Deserializer = this @@ -15687,16 +16123,17 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(targetIndex); -_argsSerializer.writeTabsAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, targetIndex: number, extraInfo: TabsAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(targetIndex); + _argsSerializer.writeTabsAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-147408344, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-147408344, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTabsOptions(): TabsOptions { let valueDeserializer: Deserializer = this @@ -15758,17 +16195,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selectedIndex: number, index: number, position: number, mainAxisLength: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(selectedIndex); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(position); -_argsSerializer.writeNumber(mainAxisLength); -(isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (selectedIndex: number, index: number, position: number, mainAxisLength: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(selectedIndex); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(position); + _argsSerializer.writeNumber(mainAxisLength); + (isSync) ? (InteropNativeModule._CallCallbackSync(1532328438, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1532328438, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSwiperContentTransitionProxy(): SwiperContentTransitionProxy { let valueDeserializer: Deserializer = this @@ -15792,29 +16230,31 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, extraInfo: SwiperAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: SwiperAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(606029871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(606029871, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnSwiperAnimationEndCallback(isSync: boolean = false): OnSwiperAnimationEndCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, extraInfo: SwiperAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, extraInfo: SwiperAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(-143686583, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-143686583, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSwiperAnimationEvent(): SwiperAnimationEvent { let valueDeserializer: Deserializer = this @@ -15828,16 +16268,17 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(targetIndex); -_argsSerializer.writeSwiperAnimationEvent(extraInfo); -(isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, targetIndex: number, extraInfo: SwiperAnimationEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(targetIndex); + _argsSerializer.writeSwiperAnimationEvent(extraInfo); + (isSync) ? (InteropNativeModule._CallCallbackSync(876602502, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(876602502, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readIndicatorComponentController(): IndicatorComponentController { let valueDeserializer: Deserializer = this @@ -15915,15 +16356,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: number, mode: SliderChangeMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(value); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: number, mode: SliderChangeMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(value); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(88697971, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(88697971, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSliderOptions(): SliderOptions { let valueDeserializer: Deserializer = this @@ -16060,15 +16502,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, value: string): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeString(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number, value: string): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeString(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(794065478, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(794065478, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSelectOption(): SelectOption { let valueDeserializer: Deserializer = this @@ -16116,14 +16559,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DeleteValue): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDeleteValue(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: DeleteValue): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDeleteValue(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-126251459, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-126251459, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readDeleteValue(): DeleteValue { let valueDeserializer: Deserializer = this @@ -16137,30 +16581,32 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: DeleteValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDeleteValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: DeleteValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDeleteValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1357792883, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_InsertValue_Void(isSync: boolean = false): ((parameter: InsertValue) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: InsertValue): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInsertValue(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: InsertValue): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInsertValue(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1121207885, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readInsertValue(): InsertValue { let valueDeserializer: Deserializer = this @@ -16173,17 +16619,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: InsertValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInsertValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: InsertValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInsertValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-383025085, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-383025085, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readTextDecorationOptions(): TextDecorationOptions { let valueDeserializer: Deserializer = this @@ -16226,90 +16673,88 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (content: string, event: PasteEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(content); -_argsSerializer.writePasteEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (content: string, event: PasteEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(content); + _argsSerializer.writePasteEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1738363337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1738363337, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnContentScrollCallback(isSync: boolean = false): OnContentScrollCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (totalOffsetX: number, totalOffsetY: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(totalOffsetX); -_argsSerializer.writeNumber(totalOffsetY); -(isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (totalOffsetX: number, totalOffsetY: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(totalOffsetX); + _argsSerializer.writeNumber(totalOffsetY); + (isSync) ? (InteropNativeModule._CallCallbackSync(-419979106, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-419979106, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnTextSelectionChangeCallback(isSync: boolean = false): OnTextSelectionChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (selectionStart: number, selectionEnd: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(selectionStart); -_argsSerializer.writeNumber(selectionEnd); -(isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readPreviewText(): PreviewText { - let valueDeserializer: Deserializer = this - const offset_result: number = (valueDeserializer.readNumber() as number) - const value_result: string = (valueDeserializer.readString() as string) - let value: PreviewText = ({offset: offset_result,value: value_result} as PreviewText) - return value + return (selectionStart: number, selectionEnd: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(selectionStart); + _argsSerializer.writeNumber(selectionEnd); + (isSync) ? (InteropNativeModule._CallCallbackSync(695228737, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(695228737, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEditableTextOnChangeCallback(isSync: boolean = false): EditableTextOnChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: string, previewText?: PreviewText | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(value); -let previewText_type: int32 = RuntimeType.UNDEFINED; -previewText_type = runtimeType(previewText); -_argsSerializer.writeInt8(previewText_type); -if ((RuntimeType.UNDEFINED) != (previewText_type)) { - const previewText_value = previewText!; - _argsSerializer.writePreviewText(previewText_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: string, previewText?: PreviewText | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(value); + let previewText_type: int32 = RuntimeType.UNDEFINED; + previewText_type = runtimeType(previewText); + _argsSerializer.writeInt8(previewText_type); + if ((RuntimeType.UNDEFINED) != (previewText_type)) { + const previewText_value = previewText!; + _argsSerializer.writePreviewText(previewText_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1729563209, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSearchSubmitCallback(isSync: boolean = false): SearchSubmitCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (searchContent: string, event?: SubmitEvent | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeString(searchContent); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writeSubmitEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (searchContent: string, event?: SubmitEvent | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeString(searchContent); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writeSubmitEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(1717691617, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1717691617, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCaretStyle(): CaretStyle { let valueDeserializer: Deserializer = this @@ -16483,45 +16928,48 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (offset: number, state: ScrollState): OnScrollFrameBeginHandlerResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(offset); -_argsSerializer.writeInt32(state); -let _continuationValue: OnScrollFrameBeginHandlerResult | undefined|undefined ; -const _continuationCallback: ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as OnScrollFrameBeginHandlerResult); } + return (offset: number, state: ScrollState): OnScrollFrameBeginHandlerResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(offset); + _argsSerializer.writeInt32(state); + let _continuationValue: OnScrollFrameBeginHandlerResult | undefined|undefined ; + const _continuationCallback: ((value: OnScrollFrameBeginHandlerResult) => void) = (value: OnScrollFrameBeginHandlerResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2133791987, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as OnScrollFrameBeginHandlerResult); } } readOnScrollEdgeCallback(isSync: boolean = false): OnScrollEdgeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (side: Edge): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(side); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (side: Edge): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(side); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1259214476, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ClickEvent_SaveButtonOnClickResult_Void(isSync: boolean = false): ((event: ClickEvent, result: SaveButtonOnClickResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ClickEvent, result: SaveButtonOnClickResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: SaveButtonOnClickResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(846787331, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(846787331, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readSaveButtonOptions(): SaveButtonOptions { let valueDeserializer: Deserializer = this @@ -16609,14 +17057,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: CopyEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCopyEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: CopyEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCopyEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-120437466, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-120437466, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCutEvent(): CutEvent { let valueDeserializer: Deserializer = this @@ -16634,14 +17083,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: CutEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCutEvent(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: CutEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCutEvent(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1875695871, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorChangeValue(): RichEditorChangeValue { let valueDeserializer: Deserializer = this @@ -16671,17 +17121,18 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorChangeValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorChangeValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorChangeValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorChangeValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1465860515, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1465860515, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readSubmitEvent(): SubmitEvent { let valueDeserializer: Deserializer = this @@ -16692,15 +17143,16 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (enterKey: EnterKeyType, event: SubmitEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(enterKey); -_argsSerializer.writeSubmitEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (enterKey: EnterKeyType, event: SubmitEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(enterKey); + _argsSerializer.writeSubmitEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-712186065, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-712186065, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextDataDetectorConfig(): TextDataDetectorConfig { let valueDeserializer: Deserializer = this @@ -16767,20 +17219,21 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: PasteEvent | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - _argsSerializer.writePasteEvent(event_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: PasteEvent | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + _argsSerializer.writePasteEvent(event_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(919057028, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(919057028, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorDeleteValue(): RichEditorDeleteValue { let valueDeserializer: Deserializer = this @@ -16811,43 +17264,46 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorDeleteValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorDeleteValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorDeleteValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorDeleteValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(667698748, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(667698748, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_TextRange_Void(isSync: boolean = false): ((parameter: TextRange) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: TextRange): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTextRange(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TextRange): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTextRange(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(811915501, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(811915501, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RichEditorTextSpanResult_Void(isSync: boolean = false): ((parameter: RichEditorTextSpanResult) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorTextSpanResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorTextSpanResult(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: RichEditorTextSpanResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorTextSpanResult(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(1980824326, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1980824326, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRichEditorInsertValue(): RichEditorInsertValue { let valueDeserializer: Deserializer = this @@ -16867,68 +17323,46 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorInsertValue): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorInsertValue(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: RichEditorInsertValue): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorInsertValue(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-319221262, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-319221262, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_RichEditorRange_Void(isSync: boolean = false): ((parameter: RichEditorRange) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorRange): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorRange(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readRichEditorSelection(): RichEditorSelection { - let valueDeserializer: Deserializer = this - const selection_buf_value0: number = (valueDeserializer.readNumber() as number) - const selection_buf_value1: number = (valueDeserializer.readNumber() as number) - const selection_result: [ number, number ] = ([selection_buf_value0, selection_buf_value1] as [ number, number ]) - const spans_buf_length: int32 = valueDeserializer.readInt32() - let spans_buf: Array = new Array() - for (let spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { - const spans_buf_buf_selector: number = valueDeserializer.readInt8() - let spans_buf_buf: RichEditorTextSpanResult | RichEditorImageSpanResult | undefined|undefined - if (spans_buf_buf_selector == 0) { - spans_buf_buf = valueDeserializer.readRichEditorTextSpanResult() - } - else if (spans_buf_buf_selector == 1) { - spans_buf_buf = valueDeserializer.readRichEditorImageSpanResult() - } - else { - throw new Error("One of the branches for spans_buf_buf has to be chosen through deserialisation.") - } - spans_buf[spans_buf_i] = (spans_buf_buf as RichEditorTextSpanResult | RichEditorImageSpanResult) - } - const spans_result: Array = spans_buf - let value: RichEditorSelection = ({selection: selection_result,spans: spans_result} as RichEditorSelection) - return value + return (parameter: RichEditorRange): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorRange(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-62253375, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-62253375, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_RichEditorSelection_Void(isSync: boolean = false): ((parameter: RichEditorSelection) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: RichEditorSelection): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeRichEditorSelection(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: RichEditorSelection): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeRichEditorSelection(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-963852514, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-963852514, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readStyledStringChangeValue(): StyledStringChangeValue { let valueDeserializer: Deserializer = this @@ -16944,6 +17378,15 @@ return; } let value: StyledStringChangeValue = ({range: range_result,replacementString: replacementString_result,previewText: previewText_result} as StyledStringChangeValue) return value } + readRichEditorParagraphResult(): RichEditorParagraphResult { + let valueDeserializer: Deserializer = this + const style_result: RichEditorParagraphStyle = valueDeserializer.readRichEditorParagraphStyle() + const range_buf_value0: number = (valueDeserializer.readNumber() as number) + const range_buf_value1: number = (valueDeserializer.readNumber() as number) + const range_result: [ number, number ] = ([range_buf_value0, range_buf_value1] as [ number, number ]) + let value: RichEditorParagraphResult = ({style: style_result,range: range_result} as RichEditorParagraphResult) + return value + } readRichEditorBaseController(): RichEditorBaseController { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -16987,14 +17430,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (state: RefreshStatus): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(state); -(isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (state: RefreshStatus): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(state); + (isSync) ? (InteropNativeModule._CallCallbackSync(934309126, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(934309126, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readRefreshOptions(): RefreshOptions { let valueDeserializer: Deserializer = this @@ -17322,14 +17766,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (info: PluginErrorData): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writePluginErrorData(info); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: PluginErrorData): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePluginErrorData(info); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1992671958, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPluginComponentOptions(): PluginComponentOptions { let valueDeserializer: Deserializer = this @@ -17342,18 +17787,19 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (input: Array): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(input.length); -for (let i = 0; i < input.length; i++) { - const input_element: number = input[i]; - _argsSerializer.writeNumber(input_element); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (input: Array): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(input.length); + for (let i = 0; i < input.length; i++) { + const input_element: number = input[i]; + _argsSerializer.writeNumber(input_element); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(582384234, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(582384234, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPatternLockController(): PatternLockController { let valueDeserializer: Deserializer = this @@ -17412,15 +17858,16 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ClickEvent, result: PasteButtonOnClickResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: PasteButtonOnClickResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(659292561, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(659292561, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readPasteButtonOptions(): PasteButtonOptions { let valueDeserializer: Deserializer = this @@ -17452,16 +17899,17 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (width: number, height: number, mode: PanelMode): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(width); -_argsSerializer.writeNumber(height); -_argsSerializer.writeInt32(mode); -(isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (width: number, height: number, mode: PanelMode): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(width); + _argsSerializer.writeNumber(height); + _argsSerializer.writeInt32(mode); + (isSync) ? (InteropNativeModule._CallCallbackSync(1613628570, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1613628570, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNodeController(): NodeController { let value: NodeController = ({} as NodeController) @@ -17570,14 +18018,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: NavDestinationContext): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNavDestinationContext(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: NavDestinationContext): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNavDestinationContext(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1642725259, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readNavigationMenuItem(): NavigationMenuItem { let valueDeserializer: Deserializer = this @@ -17639,16 +18088,17 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1541107680, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readPopInfo(): PopInfo { let valueDeserializer: Deserializer = this @@ -17752,15 +18202,16 @@ return (_continuationValue as boolean); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ClickEvent, result: LocationButtonOnClickResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeClickEvent(event); -_argsSerializer.writeInt32(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ClickEvent, result: LocationButtonOnClickResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeClickEvent(event); + _argsSerializer.writeInt32(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189087745, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readLocationButtonOptions(): LocationButtonOptions { let valueDeserializer: Deserializer = this @@ -17917,83 +18368,67 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (from: number, to: number): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(from); -_argsSerializer.writeNumber(to); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (from: number, to: number): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(from); + _argsSerializer.writeNumber(to); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1427334496, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readCallback_Number_Boolean(isSync: boolean = false): ((index: number) => boolean) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } - } - readVisibleListContentInfo(): VisibleListContentInfo { - let valueDeserializer: Deserializer = this - const index_result: number = (valueDeserializer.readNumber() as number) - const itemGroupArea_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let itemGroupArea_buf: ListItemGroupArea | undefined|undefined - if ((RuntimeType.UNDEFINED) != (itemGroupArea_buf_runtimeType)) - { - itemGroupArea_buf = (valueDeserializer.readInt32() as ListItemGroupArea) - } - const itemGroupArea_result: ListItemGroupArea | undefined|undefined = itemGroupArea_buf - const itemIndexInGroup_buf_runtimeType = (valueDeserializer.readInt8() as int32) - let itemIndexInGroup_buf: number | undefined|undefined - if ((RuntimeType.UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) - { - itemIndexInGroup_buf = (valueDeserializer.readNumber() as number) - } - const itemIndexInGroup_result: number | undefined|undefined = itemIndexInGroup_buf - let value: VisibleListContentInfo = ({index: index_result,itemGroupArea: itemGroupArea_result,itemIndexInGroup: itemIndexInGroup_result} as VisibleListContentInfo) - return value + return (index: number): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1054099324, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1054099324, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readOnScrollVisibleContentChangeCallback(isSync: boolean = false): OnScrollVisibleContentChangeCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (start: VisibleListContentInfo, end: VisibleListContentInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeVisibleListContentInfo(start); -_argsSerializer.writeVisibleListContentInfo(end); -(isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: VisibleListContentInfo, end: VisibleListContentInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeVisibleListContentInfo(start); + _argsSerializer.writeVisibleListContentInfo(end); + (isSync) ? (InteropNativeModule._CallCallbackSync(625641334, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(625641334, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Number_Number_Void(isSync: boolean = false): ((start: number, end: number, center: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (start: number, end: number, center: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(start); -_argsSerializer.writeNumber(end); -_argsSerializer.writeNumber(center); -(isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (start: number, end: number, center: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(start); + _argsSerializer.writeNumber(end); + _argsSerializer.writeNumber(center); + (isSync) ? (InteropNativeModule._CallCallbackSync(-352942292, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-352942292, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readChainAnimationOptions(): ChainAnimationOptions { let valueDeserializer: Deserializer = this @@ -18138,14 +18573,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (result: ImageLoadResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeImageLoadResult(result); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (result: ImageLoadResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeImageLoadResult(result); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1180567691, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readImageFrameInfo(): ImageFrameInfo { let valueDeserializer: Deserializer = this @@ -18264,50 +18700,52 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (error: ImageError): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeImageError(error); -(isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (error: ImageError): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeImageError(error); + (isSync) ? (InteropNativeModule._CallCallbackSync(1906248580, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1906248580, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Type_ImageAttribute_onComplete_callback_event_Void(isSync: boolean = false): ((event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number } | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -let event_type: int32 = RuntimeType.UNDEFINED; -event_type = runtimeType(event); -_argsSerializer.writeInt8(event_type); -if ((RuntimeType.UNDEFINED) != (event_type)) { - const event_value = event!; - const event_value_width = event_value.width; - _argsSerializer.writeNumber(event_value_width); - const event_value_height = event_value.height; - _argsSerializer.writeNumber(event_value_height); - const event_value_componentWidth = event_value.componentWidth; - _argsSerializer.writeNumber(event_value_componentWidth); - const event_value_componentHeight = event_value.componentHeight; - _argsSerializer.writeNumber(event_value_componentHeight); - const event_value_loadingStatus = event_value.loadingStatus; - _argsSerializer.writeNumber(event_value_loadingStatus); - const event_value_contentWidth = event_value.contentWidth; - _argsSerializer.writeNumber(event_value_contentWidth); - const event_value_contentHeight = event_value.contentHeight; - _argsSerializer.writeNumber(event_value_contentHeight); - const event_value_contentOffsetX = event_value.contentOffsetX; - _argsSerializer.writeNumber(event_value_contentOffsetX); - const event_value_contentOffsetY = event_value.contentOffsetY; - _argsSerializer.writeNumber(event_value_contentOffsetY); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event?: { width: number, height: number, componentWidth: number, componentHeight: number, loadingStatus: number, contentWidth: number, contentHeight: number, contentOffsetX: number, contentOffsetY: number } | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + let event_type: int32 = RuntimeType.UNDEFINED; + event_type = runtimeType(event); + _argsSerializer.writeInt8(event_type); + if ((RuntimeType.UNDEFINED) != (event_type)) { + const event_value = event!; + const event_value_width = event_value.width; + _argsSerializer.writeNumber(event_value_width); + const event_value_height = event_value.height; + _argsSerializer.writeNumber(event_value_height); + const event_value_componentWidth = event_value.componentWidth; + _argsSerializer.writeNumber(event_value_componentWidth); + const event_value_componentHeight = event_value.componentHeight; + _argsSerializer.writeNumber(event_value_componentHeight); + const event_value_loadingStatus = event_value.loadingStatus; + _argsSerializer.writeNumber(event_value_loadingStatus); + const event_value_contentWidth = event_value.contentWidth; + _argsSerializer.writeNumber(event_value_contentWidth); + const event_value_contentHeight = event_value.contentHeight; + _argsSerializer.writeNumber(event_value_contentHeight); + const event_value_contentOffsetX = event_value.contentOffsetX; + _argsSerializer.writeNumber(event_value_contentOffsetX); + const event_value_contentOffsetY = event_value.contentOffsetY; + _argsSerializer.writeNumber(event_value_contentOffsetY); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1352745727, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readImageSourceSize(): ImageSourceSize { let valueDeserializer: Deserializer = this @@ -18512,76 +18950,81 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (offset: number, state: ScrollState): { offsetRemain: number } => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(offset); -_argsSerializer.writeInt32(state); -let _continuationValue: { offsetRemain: number } | undefined|undefined ; -const _continuationCallback: ((value: { offsetRemain: number }) => void) = (value: { offsetRemain: number }): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as { offsetRemain: number }); } + return (offset: number, state: ScrollState): { offsetRemain: number } => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(offset); + _argsSerializer.writeInt32(state); + let _continuationValue: { offsetRemain: number } | undefined|undefined ; + const _continuationCallback: ((value: { offsetRemain: number }) => void) = (value: { offsetRemain: number }): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2012829508, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2012829508, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as { offsetRemain: number }); } } readCallback_ItemDragInfo_Number_Number_Boolean_Void(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -_argsSerializer.writeNumber(insertIndex); -_argsSerializer.writeBoolean(isSuccess); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number, insertIndex: number, isSuccess: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + _argsSerializer.writeNumber(insertIndex); + _argsSerializer.writeBoolean(isSuccess); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1627362945, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Number_Void(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -(isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + (isSync) ? (InteropNativeModule._CallCallbackSync(296908152, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(296908152, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Number_Number_Void(isSync: boolean = false): ((event: ItemDragInfo, itemIndex: number, insertIndex: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number, insertIndex: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -_argsSerializer.writeNumber(insertIndex); -(isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo, itemIndex: number, insertIndex: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + _argsSerializer.writeNumber(insertIndex); + (isSync) ? (InteropNativeModule._CallCallbackSync(-918805852, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-918805852, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_ItemDragInfo_Void(isSync: boolean = false): ((event: ItemDragInfo) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: ItemDragInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(137353252, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(137353252, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readItemDragInfo(): ItemDragInfo { let valueDeserializer: Deserializer = this @@ -18594,18 +19037,19 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: ItemDragInfo, itemIndex: number): CustomBuilder => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeItemDragInfo(event); -_argsSerializer.writeNumber(itemIndex); -let _continuationValue: CustomBuilder | undefined|undefined ; -const _continuationCallback: ((value: CustomBuilder) => void) = (value: CustomBuilder): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(2071721246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2071721246, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as CustomBuilder); } + return (event: ItemDragInfo, itemIndex: number): CustomBuilder => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeItemDragInfo(event); + _argsSerializer.writeNumber(itemIndex); + let _continuationValue: CustomBuilder | undefined|undefined ; + const _continuationCallback: ((value: CustomBuilder) => void) = (value: CustomBuilder): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(2071721246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2071721246, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as CustomBuilder); } } readComputedBarAttribute(): ComputedBarAttribute { let valueDeserializer: Deserializer = this @@ -18618,18 +19062,19 @@ return (_continuationValue as CustomBuilder); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number, offset: number): ComputedBarAttribute => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -_argsSerializer.writeNumber(offset); -let _continuationValue: ComputedBarAttribute | undefined|undefined ; -const _continuationCallback: ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as ComputedBarAttribute); } + return (index: number, offset: number): ComputedBarAttribute => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + _argsSerializer.writeNumber(offset); + let _continuationValue: ComputedBarAttribute | undefined|undefined ; + const _continuationCallback: ((value: ComputedBarAttribute) => void) = (value: ComputedBarAttribute): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-3987624, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-3987624, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as ComputedBarAttribute); } } readGridLayoutOptions(): GridLayoutOptions { let valueDeserializer: Deserializer = this @@ -18670,21 +19115,11 @@ return (_continuationValue as ComputedBarAttribute); } let ptr: KPointer = valueDeserializer.readPointer() return PanRecognizerInternal.fromPtr(ptr) } - readEventTargetInfo(): EventTargetInfo { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return EventTargetInfoInternal.fromPtr(ptr) - } readScrollableTargetInfo(): ScrollableTargetInfo { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() return ScrollableTargetInfoInternal.fromPtr(ptr) } - readPanGestureOptions(): PanGestureOptions { - let valueDeserializer: Deserializer = this - let ptr: KPointer = valueDeserializer.readPointer() - return PanGestureOptionsInternal.fromPtr(ptr) - } readGestureEvent(): GestureEvent { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() @@ -18874,30 +19309,32 @@ return (_continuationValue as ComputedBarAttribute); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (info: any): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCustomObject("Any", info); -(isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: any): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCustomObject("Any", info); + (isSync) ? (InteropNativeModule._CallCallbackSync(197193081, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(197193081, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Literal_Number_errcode_String_msg_Void(isSync: boolean = false): ((info: { errcode: number, msg: string }) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (info: { errcode: number, msg: string }): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -const info_errcode = info.errcode; -_argsSerializer.writeNumber(info_errcode); -const info_msg = info.msg; -_argsSerializer.writeString(info_msg); -(isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (info: { errcode: number, msg: string }): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + const info_errcode = info.errcode; + _argsSerializer.writeNumber(info_errcode); + const info_msg = info.msg; + _argsSerializer.writeString(info_msg); + (isSync) ? (InteropNativeModule._CallCallbackSync(1321277443, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1321277443, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFormCallbackInfo(): FormCallbackInfo { let valueDeserializer: Deserializer = this @@ -18910,14 +19347,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: FormCallbackInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeFormCallbackInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: FormCallbackInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeFormCallbackInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(758395742, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(758395742, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFormInfo(): FormInfo { let valueDeserializer: Deserializer = this @@ -18988,14 +19426,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (param: HoverEventParam): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeHoverEventParam(param); -(isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (param: HoverEventParam): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeHoverEventParam(param); + (isSync) ? (InteropNativeModule._CallCallbackSync(9040430, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(9040430, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnFoldStatusChangeInfo(): OnFoldStatusChangeInfo { let valueDeserializer: Deserializer = this @@ -19007,14 +19446,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: OnFoldStatusChangeInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeOnFoldStatusChangeInfo(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: OnFoldStatusChangeInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeOnFoldStatusChangeInfo(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(2050387049, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(2050387049, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readFolderStackOptions(): FolderStackOptions { let valueDeserializer: Deserializer = this @@ -19097,14 +19537,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: TerminationInfo): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTerminationInfo(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: TerminationInfo): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTerminationInfo(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(691098197, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(691098197, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readEllipseOptions(): EllipseOptions { let valueDeserializer: Deserializer = this @@ -19886,37 +20327,32 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (xOffset: number, yOffset: number, scrollState: ScrollState): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(xOffset); -_argsSerializer.writeNumber(yOffset); -_argsSerializer.writeInt32(scrollState); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } - } - readOffsetResult(): OffsetResult { - let valueDeserializer: Deserializer = this - const xOffset_result: number = (valueDeserializer.readNumber() as number) - const yOffset_result: number = (valueDeserializer.readNumber() as number) - let value: OffsetResult = ({xOffset: xOffset_result,yOffset: yOffset_result} as OffsetResult) - return value + return (xOffset: number, yOffset: number, scrollState: ScrollState): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(xOffset); + _argsSerializer.writeNumber(yOffset); + _argsSerializer.writeInt32(scrollState); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1265626662, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Number_Number_Void(isSync: boolean = false): ((first: number, last: number) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (first: number, last: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(first); -_argsSerializer.writeNumber(last); -(isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (first: number, last: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(first); + _argsSerializer.writeNumber(last); + (isSync) ? (InteropNativeModule._CallCallbackSync(1894574320, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1894574320, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readTextContentControllerBase(): TextContentControllerBase { let valueDeserializer: Deserializer = this @@ -20020,38 +20456,40 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: TouchEvent): HitTestMode => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeTouchEvent(parameter); -let _continuationValue: HitTestMode | undefined|undefined ; -const _continuationCallback: ((value: HitTestMode) => void) = (value: HitTestMode): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as HitTestMode); } + return (parameter: TouchEvent): HitTestMode => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeTouchEvent(parameter); + let _continuationValue: HitTestMode | undefined|undefined ; + const _continuationCallback: ((value: HitTestMode) => void) = (value: HitTestMode): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-274419246, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-274419246, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as HitTestMode); } } readShouldBuiltInRecognizerParallelWithCallback(isSync: boolean = false): ShouldBuiltInRecognizerParallelWithCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (current: GestureRecognizer, others: Array): GestureRecognizer => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureRecognizer(current); -_argsSerializer.writeInt32(others.length); -for (let i = 0; i < others.length; i++) { - const others_element: GestureRecognizer = others[i]; - _argsSerializer.writeGestureRecognizer(others_element); -} -let _continuationValue: GestureRecognizer | undefined|undefined ; -const _continuationCallback: ((value: GestureRecognizer) => void) = (value: GestureRecognizer): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureRecognizer); } + return (current: GestureRecognizer, others: Array): GestureRecognizer => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureRecognizer(current); + _argsSerializer.writeInt32(others.length); + for (let i = 0; i < others.length; i++) { + const others_element: GestureRecognizer = others[i]; + _argsSerializer.writeGestureRecognizer(others_element); + } + let _continuationValue: GestureRecognizer | undefined|undefined ; + const _continuationCallback: ((value: GestureRecognizer) => void) = (value: GestureRecognizer): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-250780276, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-250780276, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureRecognizer); } } readGestureRecognizer(): GestureRecognizer { let valueDeserializer: Deserializer = this @@ -20093,18 +20531,19 @@ return (_continuationValue as GestureRecognizer); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (gestureInfo: GestureInfo, event: BaseGestureEvent): GestureJudgeResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeGestureInfo(gestureInfo); -_argsSerializer.writeBaseGestureEvent(event); -let _continuationValue: GestureJudgeResult | undefined|undefined ; -const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as GestureJudgeResult); } + return (gestureInfo: GestureInfo, event: BaseGestureEvent): GestureJudgeResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeGestureInfo(gestureInfo); + _argsSerializer.writeBaseGestureEvent(event); + let _continuationValue: GestureJudgeResult | undefined|undefined ; + const _continuationCallback: ((value: GestureJudgeResult) => void) = (value: GestureJudgeResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1319043556, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1319043556, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as GestureJudgeResult); } } readBackgroundBrightnessOptions(): BackgroundBrightnessOptions { let valueDeserializer: Deserializer = this @@ -20202,14 +20641,15 @@ return (_continuationValue as GestureJudgeResult); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: PreDragStatus): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(parameter); -(isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (parameter: PreDragStatus): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(parameter); + (isSync) ? (InteropNativeModule._CallCallbackSync(463894668, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(463894668, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readUniformDataType(): UniformDataType { let valueDeserializer: Deserializer = this @@ -20221,44 +20661,46 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: DragEvent, extraParams?: string | undefined): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDragEvent(event); -let extraParams_type: int32 = RuntimeType.UNDEFINED; -extraParams_type = runtimeType(extraParams); -_argsSerializer.writeInt8(extraParams_type); -if ((RuntimeType.UNDEFINED) != (extraParams_type)) { - const extraParams_value = extraParams!; - _argsSerializer.writeString(extraParams_value); -} -(isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: DragEvent, extraParams?: string | undefined): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDragEvent(event); + let extraParams_type: int32 = RuntimeType.UNDEFINED; + extraParams_type = runtimeType(extraParams); + _argsSerializer.writeInt8(extraParams_type); + if ((RuntimeType.UNDEFINED) != (extraParams_type)) { + const extraParams_value = extraParams!; + _argsSerializer.writeString(extraParams_value); + } + (isSync) ? (InteropNativeModule._CallCallbackSync(-17167687, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-17167687, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_DragEvent_String_Union_CustomBuilder_DragItemInfo(isSync: boolean = false): ((event: DragEvent, extraParams?: string) => CustomBuilder | DragItemInfo) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: DragEvent, extraParams?: string | undefined): CustomBuilder | DragItemInfo => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeDragEvent(event); -let extraParams_type: int32 = RuntimeType.UNDEFINED; -extraParams_type = runtimeType(extraParams); -_argsSerializer.writeInt8(extraParams_type); -if ((RuntimeType.UNDEFINED) != (extraParams_type)) { - const extraParams_value = extraParams!; - _argsSerializer.writeString(extraParams_value); -} -let _continuationValue: CustomBuilder | DragItemInfo | undefined|undefined ; -const _continuationCallback: ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as CustomBuilder | DragItemInfo); } + return (event: DragEvent, extraParams?: string | undefined): CustomBuilder | DragItemInfo => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeDragEvent(event); + let extraParams_type: int32 = RuntimeType.UNDEFINED; + extraParams_type = runtimeType(extraParams); + _argsSerializer.writeInt8(extraParams_type); + if ((RuntimeType.UNDEFINED) != (extraParams_type)) { + const extraParams_value = extraParams!; + _argsSerializer.writeString(extraParams_value); + } + let _continuationValue: CustomBuilder | DragItemInfo | undefined|undefined ; + const _continuationCallback: ((value: CustomBuilder | DragItemInfo) => void) = (value: CustomBuilder | DragItemInfo): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(480978023, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(480978023, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as CustomBuilder | DragItemInfo); } } readLocalizedAlignRuleOptions(): LocalizedAlignRuleOptions { let valueDeserializer: Deserializer = this @@ -20384,15 +20826,16 @@ return (_continuationValue as CustomBuilder | DragItemInfo); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (oldValue: Area, newValue: Area): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeArea(oldValue); -_argsSerializer.writeArea(newValue); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (oldValue: Area, newValue: Area): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeArea(oldValue); + _argsSerializer.writeArea(newValue); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2024393616, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readMotionBlurOptions(): MotionBlurOptions { let valueDeserializer: Deserializer = this @@ -20431,45 +20874,48 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (parameter: KeyEvent): boolean => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeKeyEvent(parameter); -let _continuationValue: boolean | undefined|undefined ; -const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as boolean); } + return (parameter: KeyEvent): boolean => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeKeyEvent(parameter); + let _continuationValue: boolean | undefined|undefined ; + const _continuationCallback: ((parameter: boolean) => void) = (value: boolean): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2061548092, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as boolean); } } readAccessibilityCallback(isSync: boolean = false): AccessibilityCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (isHover: boolean, event: AccessibilityHoverEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeAccessibilityHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: AccessibilityHoverEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeAccessibilityHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(589030517, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(589030517, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCallback_Boolean_HoverEvent_Void(isSync: boolean = false): ((isHover: boolean, event: HoverEvent) => void) { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (isHover: boolean, event: HoverEvent): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(isHover); -_argsSerializer.writeHoverEvent(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (isHover: boolean, event: HoverEvent): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(isHover); + _argsSerializer.writeHoverEvent(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-916602978, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-916602978, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOutlineOptions(): OutlineOptions { let valueDeserializer: Deserializer = this @@ -21552,21 +21998,22 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: Array): TouchResult => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeInt32(value.length); -for (let i = 0; i < value.length; i++) { - const value_element: TouchTestInfo = value[i]; - _argsSerializer.writeTouchTestInfo(value_element); -} -let _continuationValue: TouchResult | undefined|undefined ; -const _continuationCallback: ((value: TouchResult) => void) = (value: TouchResult): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as TouchResult); } + return (value: Array): TouchResult => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeInt32(value.length); + for (let i = 0; i < value.length; i++) { + const value_element: TouchTestInfo = value[i]; + _argsSerializer.writeTouchTestInfo(value_element); + } + let _continuationValue: TouchResult | undefined|undefined ; + const _continuationCallback: ((value: TouchResult) => void) = (value: TouchResult): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-547276916, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-547276916, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as TouchResult); } } readKeyEvent(): KeyEvent { let valueDeserializer: Deserializer = this @@ -21583,19 +22030,13 @@ return (_continuationValue as TouchResult); } let ptr: KPointer = valueDeserializer.readPointer() return PixelMapMockInternal.fromPtr(ptr) } - readTouchObject(): TouchObject { + readHistoricalPoint(): HistoricalPoint { let valueDeserializer: Deserializer = this - const type_result: TouchType = (valueDeserializer.readInt32() as TouchType) - const id_result: number = (valueDeserializer.readNumber() as number) - const displayX_result: number = (valueDeserializer.readNumber() as number) - const displayY_result: number = (valueDeserializer.readNumber() as number) - const windowX_result: number = (valueDeserializer.readNumber() as number) - const windowY_result: number = (valueDeserializer.readNumber() as number) - const screenX_result: number = (valueDeserializer.readNumber() as number) - const screenY_result: number = (valueDeserializer.readNumber() as number) - const x_result: number = (valueDeserializer.readNumber() as number) - const y_result: number = (valueDeserializer.readNumber() as number) - let value: TouchObject = ({type: type_result,id: id_result,displayX: displayX_result,displayY: displayY_result,windowX: windowX_result,windowY: windowY_result,screenX: screenX_result,screenY: screenY_result,x: x_result,y: y_result} as TouchObject) + const touchObject_result: TouchObject = valueDeserializer.readTouchObject() + const size_result: number = (valueDeserializer.readNumber() as number) + const force_result: number = (valueDeserializer.readNumber() as number) + const timestamp_result: number = (valueDeserializer.readNumber() as number) + let value: HistoricalPoint = ({touchObject: touchObject_result,size: size_result,force: force_result,timestamp: timestamp_result} as HistoricalPoint) return value } readAccessibilityHoverEvent(): AccessibilityHoverEvent { @@ -21724,14 +22165,15 @@ return (_continuationValue as TouchResult); } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: CheckboxGroupResult): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCheckboxGroupResult(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: CheckboxGroupResult): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCheckboxGroupResult(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1053064240, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCheckboxGroupOptions(): CheckboxGroupOptions { let valueDeserializer: Deserializer = this @@ -21749,14 +22191,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (value: boolean): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeBoolean(value); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (value: boolean): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeBoolean(value); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1198592337, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readMarkStyle(): MarkStyle { let valueDeserializer: Deserializer = this @@ -21827,15 +22270,15 @@ return; } let value: CheckboxOptions = ({name: name_result,group: group_result,indicatorBuilder: indicatorBuilder_result} as CheckboxOptions) return value } - readCanvasRenderer(): CanvasRenderer { + readOffscreenCanvas(): OffscreenCanvas { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() - return CanvasRendererInternal.fromPtr(ptr) + return OffscreenCanvasInternal.fromPtr(ptr) } - readRenderingContextSettings(): RenderingContextSettings { + readCanvasRenderer(): CanvasRenderer { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() - return RenderingContextSettingsInternal.fromPtr(ptr) + return CanvasRendererInternal.fromPtr(ptr) } readLengthMetricsUnit(): LengthMetricsUnit { let valueDeserializer: Deserializer = this @@ -21897,14 +22340,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: CalendarRequestedData): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCalendarRequestedData(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: CalendarRequestedData): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCalendarRequestedData(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(1074619005, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1074619005, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readCalendarSelectedDate(): CalendarSelectedDate { let valueDeserializer: Deserializer = this @@ -21918,14 +22362,15 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (event: CalendarSelectedDate): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeCalendarSelectedDate(event); -(isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (event: CalendarSelectedDate): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeCalendarSelectedDate(event); + (isSync) ? (InteropNativeModule._CallCallbackSync(-289198976, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-289198976, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readWorkStateStyle(): WorkStateStyle { let valueDeserializer: Deserializer = this @@ -22659,43 +23104,46 @@ return; } const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(726938390, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(726938390, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readOnAlphabetIndexerRequestPopupDataCallback(isSync: boolean = false): OnAlphabetIndexerRequestPopupDataCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): Array => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -let _continuationValue: Array | undefined|undefined ; -const _continuationCallback: ((value: Array) => void) = (value: Array): void => { _continuationValue = value; } -_argsSerializer.holdAndWriteCallback(_continuationCallback); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return (_continuationValue as Array); } + return (index: number): Array => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + let _continuationValue: Array | undefined|undefined ; + const _continuationCallback: ((value: Array) => void) = (value: Array): void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1956514817, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as Array); } } readOnAlphabetIndexerSelectCallback(isSync: boolean = false): OnAlphabetIndexerSelectCallback { const _resource: CallbackResource = this.readCallbackResource() const _call: KPointer = this.readPointer() const _callSync: KPointer = this.readPointer() - return (index: number): void => { const _argsSerializer: Serializer = Serializer.hold(); -_argsSerializer.writeInt32(_resource.resourceId); -_argsSerializer.writePointer(_call); -_argsSerializer.writePointer(_callSync); -_argsSerializer.writeNumber(index); -(isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())); -_argsSerializer.release(); -return; } + return (index: number): void => { + const _argsSerializer: Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writeNumber(index); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1189721220, _argsSerializer.asArray(), _argsSerializer.length())); + _argsSerializer.release(); + return; } } readAlphabetIndexerOptions(): AlphabetIndexerOptions { let valueDeserializer: Deserializer = this @@ -22883,6 +23331,11 @@ return; } let value: WebHeader = ({headerKey: headerKey_result,headerValue: headerValue_result} as WebHeader) return value } + readSystemOps(): SystemOps { + let valueDeserializer: Deserializer = this + let ptr: KPointer = valueDeserializer.readPointer() + return SystemOpsInternal.fromPtr(ptr) + } readLazyForEachOps(): LazyForEachOps { let valueDeserializer: Deserializer = this let ptr: KPointer = valueDeserializer.readPointer() diff --git a/arkoala/arkui/src/peers/Serializer.ts b/arkoala/arkui/src/generated/peers/Serializer.ts similarity index 93% rename from arkoala/arkui/src/peers/Serializer.ts rename to arkoala/arkui/src/generated/peers/Serializer.ts index fd59a2c65185c176d5a9b7dd32b3fc81562d8237..64d1a3465243038f72c611c1ec322eea75c05dbe 100644 --- a/arkoala/arkui/src/peers/Serializer.ts +++ b/arkoala/arkui/src/generated/peers/Serializer.ts @@ -13,56 +13,55 @@ * limitations under the License. */ -import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, InteropNativeModule, ResourceHolder, nullptr, KPointer } from "@koalaui/interop" -import { int32, float32 } from "@koalaui/common" -import { MaterializedBase } from "./../MaterializedBase" -import { unsafeCast } from "./../shared/generated-utils" +import { SerializerBase, Tags, RuntimeType, runtimeType, isResource, isInstanceOf, MaterializedBase, InteropNativeModule, ResourceHolder, nullptr, KPointer } from "@koalaui/interop" +import { int32, float32, unsafeCast } from "@koalaui/common" import { CallbackKind } from "./CallbackKind" import { Finalizable } from "@koalaui/interop" import { CallbackTransformer } from "./CallbackTransformer" -import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, RectResult, TouchObject, HistoricalPoint, NestedScrollOptions, BlurStyle, ShadowStyle, HoverModeAreaType, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, BackgroundBlurStyleOptions, BlurStyleOptions, ThemeColorMode, AdaptiveColor, BlurStyleActivePolicy, EdgeEffectOptions, UIGestureEvent, VisibleAreaEventOptions, IntentionCode, FadingEdgeOptions, RectShape, SheetOptions, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, ContentCoverOptions, ModalTransition, ContextMenuOptions, MenuPreviewMode, MenuOptions, CustomPopupOptions, PopupOptions, GeometryTransitionOptions, TransitionHierarchyStrategy, Blender, OverlayOptions, DragInteractionOptions, DragPreviewOptions, DragPreviewMode, sharedTransitionOptions, LinearGradientBlurOptions, FractionStop, ForegroundBlurStyleOptions, PathShape, EllipseShape, CircleShape, DragItemInfo, ClickEffect, LocalizedVerticalAlignParam, LocalizedHorizontalAlignParam, InvertOptions, MotionBlurAnchor, TransitionOptions, LightSource, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, MotionBlurOptions, AlignRuleOption, LocalizedAlignRuleOptions, UniformDataType, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, EffectType, ChainStyle, BlendMode, BlendApplyType, MenuElement, TouchTestInfo, TouchResult, RepeatMode, PreDragStatus, TouchTestStrategy, DragBehavior, Summary, DragResult, TextDecorationOptions, ItemDragInfo, MultiShadowOptions, KeyboardAvoidMode, MeasureResult, SizeResult, PointLightStyle } from "./../ArkCommonInterfaces" -import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ButtonOptions, ControlSize } from "./../ArkButtonInterfaces" +import { AccessibilityCallback, CustomBuilder, GestureRecognizerJudgeBeginCallback, HoverCallback, OnMoveHandler, OnScrollCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, SymbolGlyphModifier, ShadowOptions, ShadowType, ComponentContent, EventTarget, SourceType, SourceTool, SheetTitleOptions, TransitionEffects, TranslateOptions, RotateOptions, ScaleOptions, TransitionEdge, AnimateParam, FinishCallbackType, ExpectedFrameRateRange, DismissPopupAction, DismissReason, Rectangle, PickerTextStyle, PickerDialogButtonStyle, BlurOptions, DrawContext, UIContext, SheetType, SpringBackAction, DismissSheetAction, SheetDismiss, DismissContentCoverAction, ContextMenuAnimationOptions, AnimationRange, PopupMessageOptions, OverlayOffset, ImageModifier, MotionPathOptions, LinearGradient_common, ScrollableCommonMethod, CommonMethod, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, TransitionOptions, MotionBlurOptions, InvertOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, UniformDataType, DragItemInfo, ShadowStyle, CircleShape, EllipseShape, PathShape, RectShape, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, TouchTestInfo, TouchResult, AdaptiveColor, BlurStyleActivePolicy, RepeatMode, MotionBlurAnchor, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, PreDragStatus, UIGestureEvent, BlurStyleOptions, ThemeColorMode, FractionStop, DragPreviewMode, TransitionHierarchyStrategy, MenuPreviewMode, BindOptions, SheetSize, SheetMode, ScrollSizeMode, SheetKeyboardAvoidMode, RectResult, TouchTestStrategy, TouchObject, HistoricalPoint, IntentionCode, DragBehavior, Summary, DragResult, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions, HoverModeAreaType, TextDecorationOptions, InputCounterOptions, CaretOffset, SelectionOptions, MenuPolicy, ContentModifier, CommonConfiguration, LayoutSafeAreaType, LayoutSafeAreaEdge, ItemDragInfo, VisibleAreaEventOptions, MeasureResult, SizeResult, LightSource, MultiShadowOptions, KeyboardAvoidMode, PointLightStyle } from "./../ArkCommonInterfaces" +import { ButtonTriggerClickCallback, ButtonType, ButtonStyleMode, ButtonRole, LabelStyle, ControlSize, ButtonOptions } from "./../ArkButtonInterfaces" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../ArkAnimationExtenderInterfaces" import { Callback_RangeUpdate } from "./../ArkArkuiCustomInterfaces" -import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAutoFill, ArrowStyle, SwiperContentAnimatedTransition, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" -import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, TextRange, StyledStringChangeValue, MenuType, TextMenuItem, FontSettingOptions, PositionWithAffinity, LineMetrics, TextBox, Affinity, PreviewText, StyledStringChangedListener, DeleteValue, TextDeleteDirection, InsertValue, CaretStyle, TextDataDetectorConfig, TextDataDetectorType } from "./../ArkTextCommonInterfaces" -import { GetItemMainSizeByIndex, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" +import { ContentDidScrollCallback, OnSwiperAnimationEndCallback, OnSwiperAnimationStartCallback, OnSwiperGestureSwipeCallback, IndicatorStyle, SwiperAttribute, SwiperDisplayMode, SwiperNestedScrollMode, SwiperContentAnimatedTransition, ArrowStyle, SwiperAutoFill, SwiperAnimationEvent } from "./../ArkSwiperInterfaces" +import { CustomNodeBuilder } from "./../ArkCustomBuilderInterfaces" +import { EditableTextOnChangeCallback, OnDidChangeCallback, DecorationStyleResult, Affinity, TextRange, StyledStringChangeValue, TextMenuItem, MenuType, CaretStyle, InsertValue, DeleteValue, TextDeleteDirection, LineMetrics, PositionWithAffinity, PreviewText, TextBox, TextDataDetectorConfig, FontSettingOptions, TextDataDetectorType, StyledStringChangedListener } from "./../ArkTextCommonInterfaces" +import { GetItemMainSizeByIndex, WaterFlowAttribute, SectionOptions, WaterFlowOptions, WaterFlowLayoutMode } from "./../ArkWaterFlowInterfaces" import { ImageCompleteCallback, ImageLoadResult } from "./../ArkImageSpanInterfaces" -import { ImageErrorCallback, DrawableDescriptor, DrawingColorFilter, DrawingLattice, ResizableOptions, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" -import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationToolbarOptions, BarStyle, NavigationTitleOptions, SystemBarStyle, NavigationTitleMode, ToolbarItem, ToolbarItemStatus, NavigationMenuItem } from "./../ArkNavigationInterfaces" +import { ImageErrorCallback, ResizableOptions, DrawingLattice, DrawableDescriptor, DrawingColorFilter, ResolutionQuality, ImageError, ImageSourceSize } from "./../ArkImageInterfaces" +import { InterceptionModeCallback, InterceptionShowCallback, PopInfo, NavContentInfo, NavigationOptions, NavigationInterception, LaunchMode, NavigationMode, NavBar, NavigationOperation, NavigationAnimatedTransition, NavigationMenuItem, SystemBarStyle, NavigationTitleOptions, ToolbarItem, NavigationToolbarOptions, BarStyle, ToolbarItemStatus, NavigationTitleMode } from "./../ArkNavigationInterfaces" import { IsolatedComponentInterface, RestrictedWorker, IsolatedOptions, IsolatedComponentAttribute, ErrorCallback } from "./../ArkIsolatedComponentInterfaces" -import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, PlaceholderStyle, PasteEvent, RichEditorStyledStringOptions, RichEditorOptions, CopyEvent, CutEvent, RichEditorChangeValue, RichEditorDeleteValue, RichEditorDeleteDirection, RichEditorInsertValue } from "./../ArkRichEditorInterfaces" +import { MenuOnAppearCallback, PasteEventCallback, SubmitCallback, LeadingMarginPlaceholder, RichEditorLayoutStyle, RichEditorImageSpanStyleResult, RichEditorSpanPosition, RichEditorParagraphStyle, RichEditorSymbolSpanStyle, RichEditorTextStyleResult, RichEditorImageSpanStyle, RichEditorTextStyle, RichEditorGesture, KeyboardOptions, PasteEvent, SelectionMenuOptions, RichEditorRange, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorBuilderSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorParagraphResult, RichEditorSelection, RichEditorSpan, RichEditorSpanStyleOptions, RichEditorAttribute, RichEditorSpanType, RichEditorResponseType, PlaceholderStyle, RichEditorInsertValue, RichEditorDeleteValue, RichEditorChangeValue, CutEvent, CopyEvent, RichEditorDeleteDirection, RichEditorStyledStringOptions, RichEditorOptions } from "./../ArkRichEditorInterfaces" import { NavExtender_OnUpdateStack } from "./../ArkNavigationExtenderInterfaces" -import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, SelectionMenuOptionsExt, NativeEmbedInfo, NestedScrollOptionsExt, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, ScreenCaptureConfig, WebCaptureMode, FileSelectorMode, MessageLevel, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, ExpandedMenuItemOptions, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeMediaPlayerConfig, NativeEmbedTouchInfo, NativeEmbedVisibilityInfo, NativeEmbedDataInfo, NativeEmbedStatus, ScriptItem, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, OnOverScrollEvent, OnLoadInterceptEvent, LargestContentfulPaint, FirstMeaningfulPaint, OnFirstContentfulPaintEvent, OnAudioStateChangedEvent, OnDataResubmittedEvent, OnPageVisibleEvent, OnFaviconReceivedEvent, OnTouchIconUrlReceivedEvent, OnWindowNewEvent, OnClientAuthenticationEvent, SslErrorEvent, SslError, OnSslErrorEventReceiveEvent, OnScrollEvent, OnSearchResultReceiveEvent, OnContextMenuShowEvent, OnScreenCaptureRequestEvent, OnPermissionRequestEvent, OnInterceptRequestEvent, OnHttpAuthRequestEvent, OnScaleChangeEvent, FullScreenEnterEvent, OnResourceLoadEvent, OnShowFileSelectorEvent, OnRenderExitedEvent, RenderExitReason, OnRefreshAccessedHistoryEvent, OnDownloadStartEvent, OnHttpErrorReceiveEvent, OnErrorReceiveEvent, OnConsoleEvent, OnPromptEvent, OnConfirmEvent, OnBeforeUnloadEvent, OnAlertEvent, OnGeolocationShowEvent, OnTitleReceiveEvent, OnProgressChangeEvent, OnPageBeginEvent, OnPageEndEvent, WebMediaOptions, JavaScriptProxy, WebOptions, RenderMode } from "./../ArkWebInterfaces" -import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" +import { OnAdsBlockedCallback, OnContextMenuHideCallback, OnFirstMeaningfulPaintCallback, OnFullScreenEnterCallback, OnIntelligentTrackingPreventionCallback, OnLargestContentfulPaintCallback, OnNativeEmbedVisibilityChangeCallback, OnNavigationEntryCommittedCallback, OnOverrideUrlLoadingCallback, OnRenderProcessNotRespondingCallback, OnRenderProcessRespondingCallback, OnSafeBrowsingCheckResultCallback, OnSslErrorEventCallback, OnViewportFitChangedCallback, WebKeyboardCallback, Header, HitTestType, WebAttribute, MixedMode, JavaScriptProxy, CacheMode, WebDarkMode, WebMediaOptions, OverScrollMode, ScriptItem, WebLayoutMode, NestedScrollOptionsExt, NativeMediaPlayerConfig, ExpandedMenuItemOptions, WebKeyboardAvoidMode, WebElementType, WebResponseType, SelectionMenuOptionsExt, OnPageEndEvent, OnPageBeginEvent, OnProgressChangeEvent, OnTitleReceiveEvent, OnGeolocationShowEvent, OnAlertEvent, OnBeforeUnloadEvent, OnConfirmEvent, OnPromptEvent, OnConsoleEvent, OnErrorReceiveEvent, OnHttpErrorReceiveEvent, OnDownloadStartEvent, OnRefreshAccessedHistoryEvent, OnRenderExitedEvent, OnShowFileSelectorEvent, OnResourceLoadEvent, OnScaleChangeEvent, OnHttpAuthRequestEvent, OnInterceptRequestEvent, OnPermissionRequestEvent, OnScreenCaptureRequestEvent, OnContextMenuShowEvent, OnSearchResultReceiveEvent, OnScrollEvent, OnSslErrorEventReceiveEvent, OnClientAuthenticationEvent, OnWindowNewEvent, OnTouchIconUrlReceivedEvent, OnFaviconReceivedEvent, OnPageVisibleEvent, OnDataResubmittedEvent, OnAudioStateChangedEvent, OnFirstContentfulPaintEvent, OnLoadInterceptEvent, OnOverScrollEvent, NativeEmbedDataInfo, NativeEmbedTouchInfo, RenderExitReason, SslError, NativeEmbedStatus, NativeEmbedInfo, MessageLevel, FileSelectorMode, ScreenCaptureConfig, ContextMenuMediaType, ContextMenuSourceType, ContextMenuInputFieldType, WebCaptureMode, WebKeyboardOptions, AdsBlockedDetails, WebKeyboardCallbackInfo, ViewportFit, RenderProcessNotRespondingData, RenderProcessNotRespondingReason, NativeEmbedVisibilityInfo, IntelligentTrackingPreventionDetails, LoadCommittedDetails, WebNavigationType, ThreatType, LargestContentfulPaint, FirstMeaningfulPaint, SslErrorEvent, FullScreenEnterEvent, WebOptions, RenderMode } from "./../ArkWebInterfaces" +import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, AlphabetIndexerAttribute, IndexerAlign, AlphabetIndexerOptions } from "./../ArkAlphabetIndexerInterfaces" import { OnCheckboxChangeCallback, CheckboxOptions } from "./../ArkCheckboxInterfaces" import { OnCheckboxGroupChangeCallback, CheckboxGroupResult, SelectStatus, CheckboxGroupOptions } from "./../ArkCheckboxgroupInterfaces" -import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, UnderlineColor, PasswordIcon, EnterKeyType, TextInputOptions } from "./../ArkTextInputInterfaces" +import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, TextInputAttribute, InputType, EnterKeyType, TextInputStyle, PasswordIcon, UnderlineColor, TextInputOptions } from "./../ArkTextInputInterfaces" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, WindowStatusType, HoverEventParam, OnFoldStatusChangeInfo, FolderStackOptions } from "./../ArkFolderStackInterfaces" import { OnLinearIndicatorChangeCallback, LinearIndicatorStyle, LinearIndicatorStartOptions } from "./../ArkLinearindicatorInterfaces" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentOptions } from "./../ArkXcomponentInterfaces" -import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, OnScrollFrameBeginHandlerResult, OffsetOptions, ScrollSnapOptions } from "./../ArkScrollInterfaces" -import { OnScrollVisibleContentChangeCallback, ScrollState, ListDividerOptions, CloseSwipeActionOptions, ScrollSnapAlign, VisibleListContentInfo, ListItemGroupArea, ChainAnimationOptions, ChainEdgeEffect, ListOptions } from "./../ArkListInterfaces" -import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, BarGridColumnOptions, TabsAnimationEvent, TabsOptions, BarPosition } from "./../ArkTabsInterfaces" +import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, ScrollAnimationOptions, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, OffsetResult, ScrollAlign, ScrollToIndexOptions, ScrollAttribute, ScrollDirection, ScrollSnapOptions, OffsetOptions, OnScrollFrameBeginHandlerResult } from "./../ArkScrollInterfaces" +import { OnScrollVisibleContentChangeCallback, ScrollState, ScrollSnapAlign, ListDividerOptions, ListAttribute, ListItemAlign, ChainAnimationOptions, StickyStyle, ChainEdgeEffect, VisibleListContentInfo, ListItemGroupArea, CloseSwipeActionOptions, ListOptions } from "./../ArkListInterfaces" +import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, DividerStyle, TabsAttribute, BarPosition, BarMode, AnimationMode, BarGridColumnOptions, ScrollableBarModeOptions, LayoutStyle, TabContentAnimatedTransition, TabsAnimationEvent, TabsOptions } from "./../ArkTabsInterfaces" import { PageTransitionCallback, RouteType } from "./../ArkPageTransitionInterfaces" import { PluginErrorCallback, PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../ArkPluginComponentInterfaces" -import { SearchSubmitCallback, IconOptions, SearchButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, CancelButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" -import { SliderTriggerChangeCallback, SliderChangeMode, SlideRange, SliderBlockStyle, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" -import { TextAreaSubmitCallback, TextAreaOptions } from "./../ArkTextAreaInterfaces" -import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, Offset, LocalizedEdges, Edges, DividerStyleOptions, ConstraintSizeOptions, AccessibilityOptions, EdgeWidths, EdgeColors, EdgeStyles, Bias, LocalizedPosition, ChainWeightOptions, LocalizedMargin, BorderOptions, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" +import { SearchSubmitCallback, IconOptions, CancelButtonOptions, CancelButtonSymbolOptions, CancelButtonStyle, SearchAttribute, SearchType, SearchButtonOptions, SearchOptions } from "./../ArkSearchInterfaces" +import { SliderTriggerChangeCallback, SliderAttribute, SliderBlockStyle, SliderInteraction, SliderConfiguration, SlideRange, SliderChangeMode, SliderBlockType, SliderOptions, SliderStyle } from "./../ArkSliderInterfaces" +import { TextAreaSubmitCallback, ContentType, TextAreaAttribute, TextAreaType, TextAreaOptions } from "./../ArkTextAreaInterfaces" +import { VoidCallback, Position, Length, Dimension, PX, VP, FP, LPX, Percentage, Area, Font, LocalizedPadding, Margin, BorderRadiuses, Padding, ResourceColor, LocalizedEdgeColors, LocalizedEdgeWidths, ResourceStr, LocalizedBorderRadiuses, LengthMetricsUnit, ColorMetrics, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, LocalizedMargin, BorderOptions, EdgeStyles, EdgeWidths, EdgeColors, OutlineOptions, EdgeOutlineStyles, EdgeOutlineWidths, OutlineRadiuses, Edges, LocalizedEdges, LocalizedPosition, AccessibilityOptions, Bias, Offset, DividerStyleOptions, LengthConstrain, DirectionalEdgesT, MarkStyle } from "./../ArkUnitsInterfaces" import { WithThemeInterface, CustomTheme, WithThemeOptions, WithThemeAttribute } from "./../ArkWithThemeInterfaces" import { Resource } from "./../ArkResourceInterfaces" import { ICurve, ICurveInternal } from "./../ArkICurveMaterialized" import { PixelMap, PixelMapInternal } from "./../ArkPixelMapMaterialized" import { LengthMetrics, LengthMetricsInternal } from "./../ArkLengthMetricsMaterialized" import { LengthUnit, WebHeader, TextModifier, Want, RectWidthStyle, RectHeightStyle, SnapshotOptions, NodeController, PerfMonitorActionType, PerfMonitorSourceType } from "./../ArkArkuiExternalInterfaces" -import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, Edge, Axis, TouchType, NestedScrollMode, VerticalAlign, ScrollSource, TitleHeight, MouseButton, MouseAction, KeyType, KeySource, BorderStyle, Placement, ArrowPointPosition, Alignment, SharedTransitionEffectType, ClickEffectLevel, HorizontalAlign, TransitionType, HitTestMode, ImageSize, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, XComponentType, BarState, FoldStatus, AppRotation, FlexDirection, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" +import { Color, ColoringStrategy, FontWeight, FontStyle, Curve, TextDecorationType, TextDecorationStyle, PlayMode, TextOverflow, TextHeightAdaptivePolicy, ImageSpanAlignment, ImageFit, TextAlign, WordBreak, LineBreakStrategy, GradientDirection, DialogButtonStyle, HitTestMode, ImageSize, Alignment, BorderStyle, HoverEffect, Visibility, ItemAlign, Direction, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, PixelRoundCalcPolicy, TransitionType, HorizontalAlign, VerticalAlign, ClickEffectLevel, SharedTransitionEffectType, Placement, ArrowPointPosition, MouseButton, MouseAction, TouchType, KeyType, KeySource, BarState, EdgeEffect, NestedScrollMode, FlexDirection, Edge, CopyOptions, TextContentStyle, TextCase, EllipsisMode, TextSelectableMode, LineCapStyle, LineJoinStyle, OptionWidthMode, ScrollSource, TitleHeight, XComponentType, FoldStatus, AppRotation, FlexWrap, FlexAlign, AccessibilityHoverType, IlluminatedType } from "./../ArkEnumsInterfaces" import { GridRowSizeOption, GridRowColumnOption, GutterOption, BreakPoints, BreakpointsReference, GridRowOptions, GridRowDirection } from "./../ArkGridRowInterfaces" import { TabBarSymbol, TabBarIconStyle, BoardStyle, LayoutMode, SelectedMode, TabBarOptions } from "./../ArkTabContentInterfaces" import { DecorationStyleInterface, StyledStringValue, ImageAttachmentLayoutStyle, StyleOptions, StyledStringKey, SpanStyle, ImageAttachmentInterface, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, ParagraphStyleInterface, GestureStyleInterface, TextStyleInterface } from "./../ArkStyledStringInterfaces" import { GestureEvent, GestureEventInternal } from "./../ArkGestureEventMaterialized" import { BaseEvent, BaseEventInternal } from "./../ArkBaseEventMaterialized" -import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureHandler, GesturePriority, GestureMask, GestureJudgeResult, GestureRecognizerState, GestureInfo } from "./../ArkGestureInterfaces" +import { FingerInfo, GestureGroupInterface, GestureMode, GestureType, TapGestureInterface, LongPressGestureInterface, PanGestureInterface, PinchGestureInterface, SwipeGestureInterface, RotationGestureInterface, GestureInterface, TapGestureParameters, PanDirection, SwipeDirection, GestureMask, GestureInfo, GestureJudgeResult, GestureHandler, GesturePriority, GestureRecognizerState } from "./../ArkGestureInterfaces" import { ClickEvent, ClickEventInternal } from "./../ArkClickEventMaterialized" import { NavPathInfo, NavPathInfoInternal } from "./../ArkNavPathInfoMaterialized" import { SwipeActionState, SwipeActionItem, SwipeActionOptions, SwipeEdgeEffect, ListItemOptions, ListItemStyle } from "./../ArkListItemInterfaces" @@ -71,7 +70,7 @@ import { CanvasPattern, CanvasPatternInternal } from "./../ArkCanvasPatternMater import { Matrix2D, Matrix2DInternal } from "./../ArkMatrix2DMaterialized" import { CanvasGradient, CanvasGradientInternal } from "./../ArkCanvasGradientMaterialized" import { NavigationTransitionProxy, NavigationTransitionProxyInternal } from "./../ArkNavigationTransitionProxyMaterialized" -import { NavDestinationMode, RouteMapConfig, NavDestinationCustomTitle, NavDestinationCommonTitle } from "./../ArkNavDestinationInterfaces" +import { NavDestinationMode, RouteMapConfig, NavDestinationAttribute, NavigationSystemTransitionType, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../ArkNavDestinationInterfaces" import { ImageAnalyzerController, ImageAnalyzerControllerInternal } from "./../ArkImageAnalyzerControllerMaterialized" import { ImageAnalyzerType, ImageAIOptions, ImageAnalyzerConfig } from "./../ArkImageCommonInterfaces" import { WebResourceRequest, WebResourceRequestInternal } from "./../ArkWebResourceRequestMaterialized" @@ -82,7 +81,7 @@ import { DateTimeOptions, TimePickerResult, TimePickerDialogOptions, TimePickerO import { TextPickerResult, TextPickerDialogOptions, TextPickerOptions, TextPickerRangeContent, TextCascadePickerRangeContent, DividerOptions } from "./../ArkTextPickerInterfaces" import { TextMenuItemId, TextMenuItemIdInternal } from "./../ArkTextMenuItemIdMaterialized" import { TabContentTransitionProxy, TabContentTransitionProxyInternal } from "./../ArkTabContentTransitionProxyMaterialized" -import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" +import { SymbolEffectStrategy, SymbolRenderingStrategy, SymbolGlyphAttribute, SymbolEffect, EffectScope, EffectDirection, EffectFillStyle } from "./../ArkSymbolglyphInterfaces" import { StyledString, StyledStringInternal } from "./../ArkStyledStringMaterialized" import { ImageAttachment, ImageAttachmentInternal } from "./../ArkImageAttachmentMaterialized" import { CustomSpan, CustomSpanInternal } from "./../ArkCustomSpanMaterialized" @@ -92,7 +91,7 @@ import { GridColColumnOption, GridColOptions } from "./../ArkGridColInterfaces" import { LinearGradient, LinearGradientInternal } from "./../ArkLinearGradientMaterialized" import { ColorStop, DataPanelShadowOptions, DataPanelOptions, DataPanelType } from "./../ArkDataPanelInterfaces" import { DatePickerResult, LunarSwitchStyle, DatePickerDialogOptions, DatePickerOptions } from "./../ArkDatePickerInterfaces" -import { Scene, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" +import { Scene, Component3DAttribute, SceneOptions, ModelType } from "./../ArkComponent3dInterfaces" import { PanGestureOptions, PanGestureOptionsInternal } from "./../ArkPanGestureOptionsMaterialized" import { DrawingCanvas, DrawingCanvasInternal } from "./../ArkDrawingCanvasMaterialized" import { Size, ImageSmoothingQuality, CanvasLineCap, CanvasLineJoin, CanvasDirection, CanvasTextAlign, CanvasTextBaseline, CanvasFillRule, TextMetrics } from "./../ArkCanvasInterfaces" @@ -101,54 +100,72 @@ import { TextStyle_alert_dialog, AlertDialogButtonBaseOptions, DialogAlignment, import { DismissDialogAction, ActionSheetOffset, ActionSheetButtonOptions, ActionSheetOptions, SheetInfo } from "./../ArkActionSheetInterfaces" import { TextBackgroundStyle } from "./../ArkSpanInterfaces" import { UIExtensionProxy, UIExtensionProxyInternal } from "./../ArkUIExtensionProxyMaterialized" +import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" +import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" +import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" +import { AttributeModifier } from "./../../handwritten" +import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" +import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" +import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" +import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" +import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" +import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" +import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" +import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" +import { GestureControl } from "./../ArkGestureControlNamespace" import { WaterFlowSections, WaterFlowSectionsInternal } from "./../ArkWaterFlowSectionsMaterialized" import { Scroller, ScrollerInternal } from "./../ArkScrollerMaterialized" import { RRect, WindowAnimationTarget } from "./../ArkRemoteWindowInterfaces" import { ButtonIconOptions, ButtonStyle } from "./../ArkSidebarInterfaces" import { XComponentController, XComponentControllerInternal } from "./../ArkXComponentControllerMaterialized" -import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" -import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" -import { TouchEvent, TouchEventInternal } from "./../ArkTouchEventMaterialized" -import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" -import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" -import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" -import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" -import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" -import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" -import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" -import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" -import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" -import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" -import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" -import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { WindowSceneAttribute } from "./../ArkWindowSceneInterfaces" +import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { WebResourceResponse, WebResourceResponseInternal } from "./../ArkWebResourceResponseMaterialized" -import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" -import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" -import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" import { JsGeolocation, JsGeolocationInternal } from "./../ArkJsGeolocationMaterialized" +import { JsResult, JsResultInternal } from "./../ArkJsResultMaterialized" +import { ConsoleMessage, ConsoleMessageInternal } from "./../ArkConsoleMessageMaterialized" +import { WebResourceError, WebResourceErrorInternal } from "./../ArkWebResourceErrorMaterialized" +import { FileSelectorResult, FileSelectorResultInternal } from "./../ArkFileSelectorResultMaterialized" +import { FileSelectorParam, FileSelectorParamInternal } from "./../ArkFileSelectorParamMaterialized" +import { HttpAuthHandler, HttpAuthHandlerInternal } from "./../ArkHttpAuthHandlerMaterialized" +import { PermissionRequest, PermissionRequestInternal } from "./../ArkPermissionRequestMaterialized" +import { ScreenCaptureHandler, ScreenCaptureHandlerInternal } from "./../ArkScreenCaptureHandlerMaterialized" +import { WebContextMenuParam, WebContextMenuParamInternal } from "./../ArkWebContextMenuParamMaterialized" +import { WebContextMenuResult, WebContextMenuResultInternal } from "./../ArkWebContextMenuResultMaterialized" +import { SslErrorHandler, SslErrorHandlerInternal } from "./../ArkSslErrorHandlerMaterialized" +import { ClientAuthenticationHandler, ClientAuthenticationHandlerInternal } from "./../ArkClientAuthenticationHandlerMaterialized" +import { ControllerHandler, ControllerHandlerInternal } from "./../ArkControllerHandlerMaterialized" +import { DataResubmissionHandler, DataResubmissionHandlerInternal } from "./../ArkDataResubmissionHandlerMaterialized" +import { EventResult, EventResultInternal } from "./../ArkEventResultMaterialized" +import { WebKeyboardController, WebKeyboardControllerInternal } from "./../ArkWebKeyboardControllerMaterialized" +import { FullScreenExitHandler, FullScreenExitHandlerInternal } from "./../ArkFullScreenExitHandlerMaterialized" import { VideoController, VideoControllerInternal } from "./../ArkVideoControllerMaterialized" import { SeekMode, PlaybackInfo, PreparedInfo, FullscreenInfo, VideoOptions, PlaybackSpeed } from "./../ArkVideoInterfaces" import { TextTimerController, TextTimerControllerInternal } from "./../ArkTextTimerControllerMaterialized" import { TextInputController, TextInputControllerInternal } from "./../ArkTextInputControllerMaterialized" import { TextContentControllerBase, TextContentControllerBaseInternal } from "./../ArkTextContentControllerBaseMaterialized" +import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" +import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { TextClockController, TextClockControllerInternal } from "./../ArkTextClockControllerMaterialized" import { TextAreaController, TextAreaControllerInternal } from "./../ArkTextAreaControllerMaterialized" +import { TextAttribute, TextOverflowOptions, TextSpanType, TextResponseType, TextOptions } from "./../ArkTextInterfaces" import { TextController, TextControllerInternal } from "./../ArkTextControllerMaterialized" -import { LayoutManager, LayoutManagerInternal } from "./../ArkLayoutManagerMaterialized" import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" import { TabsController, TabsControllerInternal } from "./../ArkTabsControllerMaterialized" import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" import { Indicator } from "./../ArkIndicatorBuilder" import { DotIndicator } from "./../ArkDotIndicatorBuilder" +import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperContentTransitionProxy, SwiperContentTransitionProxyInternal } from "./../ArkSwiperContentTransitionProxyMaterialized" +import { ShapeAttribute, ViewportRect } from "./../ArkShapeInterfaces" +import { SelectAttribute, ArrowPosition, MenuItemConfiguration, MenuAlignType, SelectOption } from "./../ArkSelectInterfaces" import { SearchController, SearchControllerInternal } from "./../ArkSearchControllerMaterialized" import { RichEditorStyledStringController, RichEditorStyledStringControllerInternal } from "./../ArkRichEditorStyledStringControllerMaterialized" import { RichEditorBaseController, RichEditorBaseControllerInternal } from "./../ArkRichEditorBaseControllerMaterialized" import { TextEditControllerEx, TextEditControllerExInternal } from "./../ArkTextEditControllerExMaterialized" import { TextBaseController, TextBaseControllerInternal } from "./../ArkTextBaseControllerMaterialized" import { StyledStringController, StyledStringControllerInternal } from "./../ArkStyledStringControllerMaterialized" -import { MutableStyledString, MutableStyledStringInternal } from "./../ArkMutableStyledStringMaterialized" import { RichEditorController, RichEditorControllerInternal } from "./../ArkRichEditorControllerMaterialized" import { GuideLinePosition, LocalizedBarrierStyle, LocalizedBarrierDirection, BarrierStyle, BarrierDirection, GuideLineStyle } from "./../ArkRelativeContainerInterfaces" import { RoundedRectOptions, RectOptions } from "./../ArkRectInterfaces" @@ -157,18 +174,12 @@ import { CircleStyleOptions, PatternLockChallengeResult } from "./../ArkPatternL import { PanelMode } from "./../ArkPanelInterfaces" import { MenuItemOptions } from "./../ArkMenuItemInterfaces" import { ASTCResource } from "./../ArkMediaCachedImageInterfaces" +import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { ColorFilter, ColorFilterInternal } from "./../ArkColorFilterMaterialized" +import { GridAttribute, GridDirection, GridItemAlignment, ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" +import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" import { FlexSpaceOptions, FlexOptions } from "./../ArkFlexInterfaces" -import { MouseEvent, MouseEventInternal } from "./../ArkMouseEventMaterialized" -import { HoverEvent, HoverEventInternal } from "./../ArkHoverEventMaterialized" -import { KeyEvent, KeyEventInternal } from "./../ArkKeyEventMaterialized" -import { BaseGestureEvent, BaseGestureEventInternal } from "./../ArkBaseGestureEventMaterialized" import { GestureRecognizer, GestureRecognizerInternal } from "./../ArkGestureRecognizerMaterialized" -import { GestureControl } from "./../ArkGestureControlNamespace" -import { EventTargetInfo, EventTargetInfoInternal } from "./../ArkEventTargetInfoMaterialized" -import { ProgressMask, ProgressMaskInternal } from "./../ArkProgressMaskMaterialized" -import { DrawModifier, DrawModifierInternal } from "./../ArkDrawModifierMaterialized" -import { UnifiedData, UnifiedDataInternal } from "./../ArkUnifiedDataMaterialized" import { ColumnSplitDividerStyle } from "./../ArkColumnSplitInterfaces" import { DrawingRenderingContext, DrawingRenderingContextInternal } from "./../ArkDrawingRenderingContextMaterialized" import { CanvasRenderingContext2D, CanvasRenderingContext2DInternal } from "./../ArkCanvasRenderingContext2DMaterialized" @@ -178,15 +189,11 @@ import { ImageBitmap, ImageBitmapInternal } from "./../ArkImageBitmapMaterialize import { Path2D, Path2DInternal } from "./../ArkPath2DMaterialized" import { ImageData, ImageDataInternal } from "./../ArkImageDataMaterialized" import { RenderingContextSettings, RenderingContextSettingsInternal } from "./../ArkRenderingContextSettingsMaterialized" -import { CalendarDialogOptions, CalendarOptions } from "./../ArkCalendarPickerInterfaces" +import { OffscreenCanvasRenderingContext2D, OffscreenCanvasRenderingContext2DInternal } from "./../ArkOffscreenCanvasRenderingContext2DMaterialized" +import { CalendarDialogOptions, CalendarOptions, CalendarPickerAttribute, CalendarAlign } from "./../ArkCalendarPickerInterfaces" import { CalendarController, CalendarControllerInternal } from "./../ArkCalendarControllerMaterialized" import { MonthData, CalendarDay, CalendarRequestedData, CalendarSelectedDate, WorkStateStyle, WeekStyle, TodayStyle, NonCurrentDayStyle, CurrentDayStyle } from "./../ArkCalendarInterfaces" import { BadgeStyle, BadgeParamWithString, BadgeParam, BadgePosition, BadgeParamWithNumber } from "./../ArkBadgeInterfaces" -import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" -import { AttributeModifier } from "./../handwritten" -import { GestureModifier, GestureModifierInternal } from "./../ArkGestureModifierMaterialized" -import { DragEvent, DragEventInternal } from "./../ArkDragEventMaterialized" -import { ComputedBarAttribute, GridLayoutOptions } from "./../ArkGridInterfaces" import { LinearIndicatorController, LinearIndicatorControllerInternal } from "./../ArkLinearIndicatorControllerMaterialized" import { UrlStyle, UrlStyleInternal } from "./../ArkUrlStyleMaterialized" import { LineHeightStyle, LineHeightStyleInternal } from "./../ArkLineHeightStyleMaterialized" @@ -205,23 +212,18 @@ import { TextTimerOptions } from "./../ArkTextTimerInterfaces" import { TextPickerDialog, TextPickerDialogInternal } from "./../ArkTextPickerDialogMaterialized" import { SubmitEvent, SubmitEventInternal } from "./../ArkSubmitEventMaterialized" import { TextClockOptions } from "./../ArkTextClockInterfaces" -import { TextOverflowOptions, TextOptions } from "./../ArkTextInterfaces" import { ReplaceSymbolEffect, ReplaceSymbolEffectInternal } from "./../ArkReplaceSymbolEffectMaterialized" import { BounceSymbolEffect, BounceSymbolEffectInternal } from "./../ArkBounceSymbolEffectMaterialized" import { DisappearSymbolEffect, DisappearSymbolEffectInternal } from "./../ArkDisappearSymbolEffectMaterialized" import { AppearSymbolEffect, AppearSymbolEffectInternal } from "./../ArkAppearSymbolEffectMaterialized" import { HierarchicalSymbolEffect, HierarchicalSymbolEffectInternal } from "./../ArkHierarchicalSymbolEffectMaterialized" import { ScaleSymbolEffect, ScaleSymbolEffectInternal } from "./../ArkScaleSymbolEffectMaterialized" -import { IndicatorComponentController, IndicatorComponentControllerInternal } from "./../ArkIndicatorComponentControllerMaterialized" import { SwiperController, SwiperControllerInternal } from "./../ArkSwiperControllerMaterialized" import { StackOptions } from "./../ArkStackInterfaces" -import { ViewportRect } from "./../ArkShapeInterfaces" -import { SelectOption } from "./../ArkSelectInterfaces" import { ScrollBarOptions, ScrollBarDirection } from "./../ArkScrollBarInterfaces" import { SaveButtonOnClickResult, SaveButtonOptions, SaveIconStyle, SaveDescription } from "./../ArkSaveButtonInterfaces" import { RowOptions } from "./../ArkRowInterfaces" import { RootSceneSession } from "./../ArkRootSceneInterfaces" -import { EditMenuOptions, EditMenuOptionsInternal } from "./../ArkEditMenuOptionsMaterialized" import { RefreshStatus, RefreshOptions } from "./../ArkRefreshInterfaces" import { StarStyleOptions, RatingOptions } from "./../ArkRatingInterfaces" import { RadioStyle, RadioOptions, RadioIndicatorType } from "./../ArkRadioInterfaces" @@ -259,13 +261,13 @@ import { CustomDialogControllerOptions } from "./../ArkCustomDialogControllerInt import { CustomDialogController, CustomDialogControllerInternal } from "./../ArkCustomDialogControllerMaterialized" import { ContextMenu, ContextMenuInternal } from "./../ArkContextMenuMaterialized" import { UICommonEvent, UICommonEventInternal } from "./../ArkUICommonEventMaterialized" -import { ChildrenMainSize, ChildrenMainSizeInternal } from "./../ArkChildrenMainSizeMaterialized" import { View, ViewInternal } from "./../ArkViewMaterialized" import { Measurable, MeasurableInternal } from "./../ArkMeasurableMaterialized" import { AccessibilityHoverEvent, AccessibilityHoverEventInternal } from "./../ArkAccessibilityHoverEventMaterialized" import { PixelMapMock, PixelMapMockInternal } from "./../ArkPixelMapMockMaterialized" import { ColumnOptions } from "./../ArkColumnInterfaces" import { CircleOptions } from "./../ArkCircleInterfaces" +import { OffscreenCanvas, OffscreenCanvasInternal } from "./../ArkOffscreenCanvasMaterialized" import { CalendarPickerDialog, CalendarPickerDialogInternal } from "./../ArkCalendarPickerDialogMaterialized" import { ScrollMotion, ScrollMotionInternal } from "./../ArkScrollMotionMaterialized" import { SpringProp, SpringPropInternal } from "./../ArkSpringPropMaterialized" @@ -277,6 +279,7 @@ import { EventEmulator, EventEmulatorInternal } from "./../ArkEventEmulatorMater import { NavExtender, NavExtenderInternal } from "./../ArkNavExtenderMaterialized" import { GlobalScope_ohos_arkui_performanceMonitor, GlobalScope_ohos_arkui_performanceMonitorInternal } from "./../ArkGlobalScopeOhosArkuiPerformanceMonitorMaterialized" import { GlobalScope_ohos_arkui_componentSnapshot, GlobalScope_ohos_arkui_componentSnapshotInternal } from "./../ArkGlobalScopeOhosArkuiComponentSnapshotMaterialized" +import { SystemOps, SystemOpsInternal } from "./../ArkSystemOpsMaterialized" import { LazyForEachOps, LazyForEachOpsInternal } from "./../ArkLazyForEachOpsMaterialized" import { AnimationExtender, AnimationExtenderInternal } from "./../ArkAnimationExtenderMaterialized" export class Serializer extends SerializerBase { @@ -436,12 +439,12 @@ export class Serializer extends SerializerBase { const value_radius = value.radius let value_radius_type: int32 = RuntimeType.UNDEFINED value_radius_type = runtimeType(value_radius) - if (((RuntimeType.NUMBER == value_radius_type))) { + if (RuntimeType.NUMBER == value_radius_type) { valueSerializer.writeInt8(0) const value_radius_0 = unsafeCast(value_radius) valueSerializer.writeNumber(value_radius_0) } - else if (((RuntimeType.OBJECT == value_radius_type))) { + else if (RuntimeType.OBJECT == value_radius_type) { valueSerializer.writeInt8(1) const value_radius_1 = unsafeCast(value_radius) valueSerializer.writeResource(value_radius_1) @@ -462,17 +465,17 @@ export class Serializer extends SerializerBase { const value_color_value = value_color! let value_color_value_type: int32 = RuntimeType.UNDEFINED value_color_value_type = runtimeType(value_color_value) - if (((RuntimeType.NUMBER == value_color_value_type))) { + if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(0) const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_1) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_2) @@ -491,12 +494,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type: int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0) const value_offsetX_value_0 = unsafeCast(value_offsetX_value) valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1) const value_offsetX_value_1 = unsafeCast(value_offsetX_value) valueSerializer.writeResource(value_offsetX_value_1) @@ -510,12 +513,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type: int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0) const value_offsetY_value_0 = unsafeCast(value_offsetY_value) valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1) const value_offsetY_value_1 = unsafeCast(value_offsetY_value) valueSerializer.writeResource(value_offsetY_value_1) @@ -615,12 +618,12 @@ export class Serializer extends SerializerBase { const value_weight_value_0 = unsafeCast(value_weight_value) valueSerializer.writeInt32(value_weight_value_0) } - else if (((RuntimeType.NUMBER == value_weight_value_type))) { + else if (RuntimeType.NUMBER == value_weight_value_type) { valueSerializer.writeInt8(1) const value_weight_value_1 = unsafeCast(value_weight_value) valueSerializer.writeNumber(value_weight_value_1) } - else if (((RuntimeType.STRING == value_weight_value_type))) { + else if (RuntimeType.STRING == value_weight_value_type) { valueSerializer.writeInt8(2) const value_weight_value_2 = unsafeCast(value_weight_value) valueSerializer.writeString(value_weight_value_2) @@ -634,12 +637,12 @@ export class Serializer extends SerializerBase { const value_family_value = value_family! let value_family_value_type: int32 = RuntimeType.UNDEFINED value_family_value_type = runtimeType(value_family_value) - if (((RuntimeType.STRING == value_family_value_type))) { + if (RuntimeType.STRING == value_family_value_type) { valueSerializer.writeInt8(0) const value_family_value_0 = unsafeCast(value_family_value) valueSerializer.writeString(value_family_value_0) } - else if (((RuntimeType.OBJECT == value_family_value_type))) { + else if (RuntimeType.OBJECT == value_family_value_type) { valueSerializer.writeInt8(1) const value_family_value_1 = unsafeCast(value_family_value) valueSerializer.writeResource(value_family_value_1) @@ -695,12 +698,12 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type: int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((RuntimeType.NUMBER == value_curve_value_type))) { + if (RuntimeType.NUMBER == value_curve_value_type) { valueSerializer.writeInt8(0) const value_curve_value_0 = unsafeCast(value_curve_value) valueSerializer.writeInt32(value_curve_value_0) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(1) const value_curve_value_1 = unsafeCast(value_curve_value) valueSerializer.writeICurve(value_curve_value_1) @@ -830,17 +833,17 @@ export class Serializer extends SerializerBase { const value_color_0 = unsafeCast(value_color) valueSerializer.writeInt32(value_color_0) } - else if (((RuntimeType.NUMBER == value_color_type))) { + else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1) const value_color_1 = unsafeCast(value_color) valueSerializer.writeNumber(value_color_1) } - else if (((RuntimeType.STRING == value_color_type))) { + else if (RuntimeType.STRING == value_color_type) { valueSerializer.writeInt8(2) const value_color_2 = unsafeCast(value_color) valueSerializer.writeString(value_color_2) } - else if (((RuntimeType.OBJECT == value_color_type))) { + else if (RuntimeType.OBJECT == value_color_type) { valueSerializer.writeInt8(3) const value_color_3 = unsafeCast(value_color) valueSerializer.writeResource(value_color_3) @@ -871,17 +874,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -911,17 +914,17 @@ export class Serializer extends SerializerBase { const value_top_value_0 = unsafeCast(value_top_value) valueSerializer.writeInt32(value_top_value_0) } - else if (((RuntimeType.NUMBER == value_top_value_type))) { + else if (RuntimeType.NUMBER == value_top_value_type) { valueSerializer.writeInt8(1) const value_top_value_1 = unsafeCast(value_top_value) valueSerializer.writeNumber(value_top_value_1) } - else if (((RuntimeType.STRING == value_top_value_type))) { + else if (RuntimeType.STRING == value_top_value_type) { valueSerializer.writeInt8(2) const value_top_value_2 = unsafeCast(value_top_value) valueSerializer.writeString(value_top_value_2) } - else if (((RuntimeType.OBJECT == value_top_value_type))) { + else if (RuntimeType.OBJECT == value_top_value_type) { valueSerializer.writeInt8(3) const value_top_value_3 = unsafeCast(value_top_value) valueSerializer.writeResource(value_top_value_3) @@ -940,17 +943,17 @@ export class Serializer extends SerializerBase { const value_end_value_0 = unsafeCast(value_end_value) valueSerializer.writeInt32(value_end_value_0) } - else if (((RuntimeType.NUMBER == value_end_value_type))) { + else if (RuntimeType.NUMBER == value_end_value_type) { valueSerializer.writeInt8(1) const value_end_value_1 = unsafeCast(value_end_value) valueSerializer.writeNumber(value_end_value_1) } - else if (((RuntimeType.STRING == value_end_value_type))) { + else if (RuntimeType.STRING == value_end_value_type) { valueSerializer.writeInt8(2) const value_end_value_2 = unsafeCast(value_end_value) valueSerializer.writeString(value_end_value_2) } - else if (((RuntimeType.OBJECT == value_end_value_type))) { + else if (RuntimeType.OBJECT == value_end_value_type) { valueSerializer.writeInt8(3) const value_end_value_3 = unsafeCast(value_end_value) valueSerializer.writeResource(value_end_value_3) @@ -969,17 +972,17 @@ export class Serializer extends SerializerBase { const value_bottom_value_0 = unsafeCast(value_bottom_value) valueSerializer.writeInt32(value_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_bottom_value_type) { valueSerializer.writeInt8(1) const value_bottom_value_1 = unsafeCast(value_bottom_value) valueSerializer.writeNumber(value_bottom_value_1) } - else if (((RuntimeType.STRING == value_bottom_value_type))) { + else if (RuntimeType.STRING == value_bottom_value_type) { valueSerializer.writeInt8(2) const value_bottom_value_2 = unsafeCast(value_bottom_value) valueSerializer.writeString(value_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_bottom_value_type) { valueSerializer.writeInt8(3) const value_bottom_value_3 = unsafeCast(value_bottom_value) valueSerializer.writeResource(value_bottom_value_3) @@ -998,17 +1001,17 @@ export class Serializer extends SerializerBase { const value_start_value_0 = unsafeCast(value_start_value) valueSerializer.writeInt32(value_start_value_0) } - else if (((RuntimeType.NUMBER == value_start_value_type))) { + else if (RuntimeType.NUMBER == value_start_value_type) { valueSerializer.writeInt8(1) const value_start_value_1 = unsafeCast(value_start_value) valueSerializer.writeNumber(value_start_value_1) } - else if (((RuntimeType.STRING == value_start_value_type))) { + else if (RuntimeType.STRING == value_start_value_type) { valueSerializer.writeInt8(2) const value_start_value_2 = unsafeCast(value_start_value) valueSerializer.writeString(value_start_value_2) } - else if (((RuntimeType.OBJECT == value_start_value_type))) { + else if (RuntimeType.OBJECT == value_start_value_type) { valueSerializer.writeInt8(3) const value_start_value_3 = unsafeCast(value_start_value) valueSerializer.writeResource(value_start_value_3) @@ -1055,12 +1058,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type: int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0) const value_title_0 = unsafeCast(value_title) valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1) const value_title_1 = unsafeCast(value_title) valueSerializer.writeResource(value_title_1) @@ -1073,12 +1076,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -1481,17 +1484,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -1553,17 +1556,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -1582,12 +1585,12 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_0) } - else if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + else if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(1) const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) @@ -1609,12 +1612,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type: int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(0) const value_fontFamily_value_0 = unsafeCast(value_fontFamily_value) valueSerializer.writeResource(value_fontFamily_value_0) } - else if (((RuntimeType.STRING == value_fontFamily_value_type))) { + else if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(1) const value_fontFamily_value_1 = unsafeCast(value_fontFamily_value) valueSerializer.writeString(value_fontFamily_value_1) @@ -1633,17 +1636,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -1725,6 +1728,11 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeAffinity(value: Affinity): void { + let valueSerializer: Serializer = this + const value__AffinityStub = value._AffinityStub + valueSerializer.writeString(value__AffinityStub) + } writeTabBarIconStyle(value: TabBarIconStyle): void { let valueSerializer: Serializer = this const value_selectedColor = value.selectedColor @@ -1740,17 +1748,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = unsafeCast(value_selectedColor_value) valueSerializer.writeInt32(value_selectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1) const value_selectedColor_value_1 = unsafeCast(value_selectedColor_value) valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2) const value_selectedColor_value_2 = unsafeCast(value_selectedColor_value) valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3) const value_selectedColor_value_3 = unsafeCast(value_selectedColor_value) valueSerializer.writeResource(value_selectedColor_value_3) @@ -1769,17 +1777,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = unsafeCast(value_unselectedColor_value) valueSerializer.writeInt32(value_unselectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1) const value_unselectedColor_value_1 = unsafeCast(value_unselectedColor_value) valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2) const value_unselectedColor_value_2 = unsafeCast(value_unselectedColor_value) valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3) const value_unselectedColor_value_3 = unsafeCast(value_unselectedColor_value) valueSerializer.writeResource(value_unselectedColor_value_3) @@ -1812,22 +1820,22 @@ export class Serializer extends SerializerBase { const value_minFontSize_value = value_minFontSize! let value_minFontSize_value_type: int32 = RuntimeType.UNDEFINED value_minFontSize_value_type = runtimeType(value_minFontSize_value) - if (((RuntimeType.NUMBER == value_minFontSize_value_type))) { + if (RuntimeType.NUMBER == value_minFontSize_value_type) { valueSerializer.writeInt8(0) const value_minFontSize_value_0 = unsafeCast(value_minFontSize_value) valueSerializer.writeNumber(value_minFontSize_value_0) } - else if (((RuntimeType.STRING == value_minFontSize_value_type)) || ((RuntimeType.OBJECT == value_minFontSize_value_type))) { + else if ((RuntimeType.STRING == value_minFontSize_value_type) || (RuntimeType.OBJECT == value_minFontSize_value_type)) { valueSerializer.writeInt8(1) const value_minFontSize_value_1 = unsafeCast(value_minFontSize_value) let value_minFontSize_value_1_type: int32 = RuntimeType.UNDEFINED value_minFontSize_value_1_type = runtimeType(value_minFontSize_value_1) - if (((RuntimeType.STRING == value_minFontSize_value_1_type))) { + if (RuntimeType.STRING == value_minFontSize_value_1_type) { valueSerializer.writeInt8(0) const value_minFontSize_value_1_0 = unsafeCast(value_minFontSize_value_1) valueSerializer.writeString(value_minFontSize_value_1_0) } - else if (((RuntimeType.OBJECT == value_minFontSize_value_1_type))) { + else if (RuntimeType.OBJECT == value_minFontSize_value_1_type) { valueSerializer.writeInt8(1) const value_minFontSize_value_1_1 = unsafeCast(value_minFontSize_value_1) valueSerializer.writeResource(value_minFontSize_value_1_1) @@ -1842,22 +1850,22 @@ export class Serializer extends SerializerBase { const value_maxFontSize_value = value_maxFontSize! let value_maxFontSize_value_type: int32 = RuntimeType.UNDEFINED value_maxFontSize_value_type = runtimeType(value_maxFontSize_value) - if (((RuntimeType.NUMBER == value_maxFontSize_value_type))) { + if (RuntimeType.NUMBER == value_maxFontSize_value_type) { valueSerializer.writeInt8(0) const value_maxFontSize_value_0 = unsafeCast(value_maxFontSize_value) valueSerializer.writeNumber(value_maxFontSize_value_0) } - else if (((RuntimeType.STRING == value_maxFontSize_value_type)) || ((RuntimeType.OBJECT == value_maxFontSize_value_type))) { + else if ((RuntimeType.STRING == value_maxFontSize_value_type) || (RuntimeType.OBJECT == value_maxFontSize_value_type)) { valueSerializer.writeInt8(1) const value_maxFontSize_value_1 = unsafeCast(value_maxFontSize_value) let value_maxFontSize_value_1_type: int32 = RuntimeType.UNDEFINED value_maxFontSize_value_1_type = runtimeType(value_maxFontSize_value_1) - if (((RuntimeType.STRING == value_maxFontSize_value_1_type))) { + if (RuntimeType.STRING == value_maxFontSize_value_1_type) { valueSerializer.writeInt8(0) const value_maxFontSize_value_1_0 = unsafeCast(value_maxFontSize_value_1) valueSerializer.writeString(value_maxFontSize_value_1_0) } - else if (((RuntimeType.OBJECT == value_maxFontSize_value_1_type))) { + else if (RuntimeType.OBJECT == value_maxFontSize_value_1_type) { valueSerializer.writeInt8(1) const value_maxFontSize_value_1_1 = unsafeCast(value_maxFontSize_value_1) valueSerializer.writeResource(value_maxFontSize_value_1_1) @@ -1955,17 +1963,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -1984,17 +1992,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = unsafeCast(value_selectedColor_value) valueSerializer.writeInt32(value_selectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1) const value_selectedColor_value_1 = unsafeCast(value_selectedColor_value) valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2) const value_selectedColor_value_2 = unsafeCast(value_selectedColor_value) valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3) const value_selectedColor_value_3 = unsafeCast(value_selectedColor_value) valueSerializer.writeResource(value_selectedColor_value_3) @@ -2032,17 +2040,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -2056,12 +2064,12 @@ export class Serializer extends SerializerBase { const value_src_value = value_src! let value_src_value_type: int32 = RuntimeType.UNDEFINED value_src_value_type = runtimeType(value_src_value) - if (((RuntimeType.STRING == value_src_value_type))) { + if (RuntimeType.STRING == value_src_value_type) { valueSerializer.writeInt8(0) const value_src_value_0 = unsafeCast(value_src_value) valueSerializer.writeString(value_src_value_0) } - else if (((RuntimeType.OBJECT == value_src_value_type))) { + else if (RuntimeType.OBJECT == value_src_value_type) { valueSerializer.writeInt8(1) const value_src_value_1 = unsafeCast(value_src_value) valueSerializer.writeResource(value_src_value_1) @@ -2121,7 +2129,7 @@ export class Serializer extends SerializerBase { const value_leadingMargin_value_0 = unsafeCast(value_leadingMargin_value) valueSerializer.writeLength(value_leadingMargin_value_0) } - else if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && (((value_leadingMargin_value!.hasOwnProperty("pixelMap"))))) { + else if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && ((value_leadingMargin_value!.hasOwnProperty("pixelMap")))) { valueSerializer.writeInt8(1) const value_leadingMargin_value_1 = unsafeCast(value_leadingMargin_value) valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) @@ -2154,17 +2162,17 @@ export class Serializer extends SerializerBase { const value_fontSize_value = value_fontSize! let value_fontSize_value_type: int32 = RuntimeType.UNDEFINED value_fontSize_value_type = runtimeType(value_fontSize_value) - if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(0) const value_fontSize_value_0 = unsafeCast(value_fontSize_value) valueSerializer.writeNumber(value_fontSize_value_0) } - else if (((RuntimeType.STRING == value_fontSize_value_type))) { + else if (RuntimeType.STRING == value_fontSize_value_type) { valueSerializer.writeInt8(1) const value_fontSize_value_1 = unsafeCast(value_fontSize_value) valueSerializer.writeString(value_fontSize_value_1) } - else if (((RuntimeType.OBJECT == value_fontSize_value_type))) { + else if (RuntimeType.OBJECT == value_fontSize_value_type) { valueSerializer.writeInt8(2) const value_fontSize_value_2 = unsafeCast(value_fontSize_value) valueSerializer.writeResource(value_fontSize_value_2) @@ -2186,17 +2194,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_element_0 = unsafeCast(value_fontColor_value_element) valueSerializer.writeInt32(value_fontColor_value_element_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_element_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_element_type) { valueSerializer.writeInt8(1) const value_fontColor_value_element_1 = unsafeCast(value_fontColor_value_element) valueSerializer.writeNumber(value_fontColor_value_element_1) } - else if (((RuntimeType.STRING == value_fontColor_value_element_type))) { + else if (RuntimeType.STRING == value_fontColor_value_element_type) { valueSerializer.writeInt8(2) const value_fontColor_value_element_2 = unsafeCast(value_fontColor_value_element) valueSerializer.writeString(value_fontColor_value_element_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_element_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_element_type) { valueSerializer.writeInt8(3) const value_fontColor_value_element_3 = unsafeCast(value_fontColor_value_element) valueSerializer.writeResource(value_fontColor_value_element_3) @@ -2211,7 +2219,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type: int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0) const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_0) @@ -2221,7 +2229,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) @@ -2254,17 +2262,17 @@ export class Serializer extends SerializerBase { const value_fontColor_0 = unsafeCast(value_fontColor) valueSerializer.writeInt32(value_fontColor_0) } - else if (((RuntimeType.NUMBER == value_fontColor_type))) { + else if (RuntimeType.NUMBER == value_fontColor_type) { valueSerializer.writeInt8(1) const value_fontColor_1 = unsafeCast(value_fontColor) valueSerializer.writeNumber(value_fontColor_1) } - else if (((RuntimeType.STRING == value_fontColor_type))) { + else if (RuntimeType.STRING == value_fontColor_type) { valueSerializer.writeInt8(2) const value_fontColor_2 = unsafeCast(value_fontColor) valueSerializer.writeString(value_fontColor_2) } - else if (((RuntimeType.OBJECT == value_fontColor_type))) { + else if (RuntimeType.OBJECT == value_fontColor_type) { valueSerializer.writeInt8(3) const value_fontColor_3 = unsafeCast(value_fontColor) valueSerializer.writeResource(value_fontColor_3) @@ -2369,17 +2377,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -2398,7 +2406,7 @@ export class Serializer extends SerializerBase { const value_fontSize_value_0 = unsafeCast(value_fontSize_value) valueSerializer.writeLength(value_fontSize_value_0) } - else if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + else if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(1) const value_fontSize_value_1 = unsafeCast(value_fontSize_value) valueSerializer.writeNumber(value_fontSize_value_1) @@ -2420,7 +2428,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type: int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0) const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_0) @@ -2430,7 +2438,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) @@ -2444,12 +2452,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type: int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.STRING == value_fontFamily_value_type))) { + if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(0) const value_fontFamily_value_0 = unsafeCast(value_fontFamily_value) valueSerializer.writeString(value_fontFamily_value_0) } - else if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + else if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(1) const value_fontFamily_value_1 = unsafeCast(value_fontFamily_value) valueSerializer.writeResource(value_fontFamily_value_1) @@ -2471,7 +2479,7 @@ export class Serializer extends SerializerBase { const value_textShadow_value = value_textShadow! let value_textShadow_value_type: int32 = RuntimeType.UNDEFINED value_textShadow_value_type = runtimeType(value_textShadow_value) - if (((RuntimeType.OBJECT) == (value_textShadow_value_type)) && (((value_textShadow_value!.hasOwnProperty("radius"))))) { + if (((RuntimeType.OBJECT) == (value_textShadow_value_type)) && ((value_textShadow_value!.hasOwnProperty("radius")))) { valueSerializer.writeInt8(0) const value_textShadow_value_0 = unsafeCast(value_textShadow_value) valueSerializer.writeShadowOptions(value_textShadow_value_0) @@ -2494,12 +2502,12 @@ export class Serializer extends SerializerBase { const value_letterSpacing_value = value_letterSpacing! let value_letterSpacing_value_type: int32 = RuntimeType.UNDEFINED value_letterSpacing_value_type = runtimeType(value_letterSpacing_value) - if (((RuntimeType.NUMBER == value_letterSpacing_value_type))) { + if (RuntimeType.NUMBER == value_letterSpacing_value_type) { valueSerializer.writeInt8(0) const value_letterSpacing_value_0 = unsafeCast(value_letterSpacing_value) valueSerializer.writeNumber(value_letterSpacing_value_0) } - else if (((RuntimeType.STRING == value_letterSpacing_value_type))) { + else if (RuntimeType.STRING == value_letterSpacing_value_type) { valueSerializer.writeInt8(1) const value_letterSpacing_value_1 = unsafeCast(value_letterSpacing_value) valueSerializer.writeString(value_letterSpacing_value_1) @@ -2513,17 +2521,17 @@ export class Serializer extends SerializerBase { const value_lineHeight_value = value_lineHeight! let value_lineHeight_value_type: int32 = RuntimeType.UNDEFINED value_lineHeight_value_type = runtimeType(value_lineHeight_value) - if (((RuntimeType.NUMBER == value_lineHeight_value_type))) { + if (RuntimeType.NUMBER == value_lineHeight_value_type) { valueSerializer.writeInt8(0) const value_lineHeight_value_0 = unsafeCast(value_lineHeight_value) valueSerializer.writeNumber(value_lineHeight_value_0) } - else if (((RuntimeType.STRING == value_lineHeight_value_type))) { + else if (RuntimeType.STRING == value_lineHeight_value_type) { valueSerializer.writeInt8(1) const value_lineHeight_value_1 = unsafeCast(value_lineHeight_value) valueSerializer.writeString(value_lineHeight_value_1) } - else if (((RuntimeType.OBJECT == value_lineHeight_value_type))) { + else if (RuntimeType.OBJECT == value_lineHeight_value_type) { valueSerializer.writeInt8(2) const value_lineHeight_value_2 = unsafeCast(value_lineHeight_value) valueSerializer.writeResource(value_lineHeight_value_2) @@ -2819,17 +2827,17 @@ export class Serializer extends SerializerBase { const value_selectedColor_value_0 = unsafeCast(value_selectedColor_value) valueSerializer.writeInt32(value_selectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_selectedColor_value_type) { valueSerializer.writeInt8(1) const value_selectedColor_value_1 = unsafeCast(value_selectedColor_value) valueSerializer.writeNumber(value_selectedColor_value_1) } - else if (((RuntimeType.STRING == value_selectedColor_value_type))) { + else if (RuntimeType.STRING == value_selectedColor_value_type) { valueSerializer.writeInt8(2) const value_selectedColor_value_2 = unsafeCast(value_selectedColor_value) valueSerializer.writeString(value_selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_selectedColor_value_type) { valueSerializer.writeInt8(3) const value_selectedColor_value_3 = unsafeCast(value_selectedColor_value) valueSerializer.writeResource(value_selectedColor_value_3) @@ -2848,17 +2856,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = unsafeCast(value_unselectedColor_value) valueSerializer.writeInt32(value_unselectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1) const value_unselectedColor_value_1 = unsafeCast(value_unselectedColor_value) valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2) const value_unselectedColor_value_2 = unsafeCast(value_unselectedColor_value) valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3) const value_unselectedColor_value_3 = unsafeCast(value_unselectedColor_value) valueSerializer.writeResource(value_unselectedColor_value_3) @@ -2877,17 +2885,17 @@ export class Serializer extends SerializerBase { const value_strokeColor_value_0 = unsafeCast(value_strokeColor_value) valueSerializer.writeInt32(value_strokeColor_value_0) } - else if (((RuntimeType.NUMBER == value_strokeColor_value_type))) { + else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1) const value_strokeColor_value_1 = unsafeCast(value_strokeColor_value) valueSerializer.writeNumber(value_strokeColor_value_1) } - else if (((RuntimeType.STRING == value_strokeColor_value_type))) { + else if (RuntimeType.STRING == value_strokeColor_value_type) { valueSerializer.writeInt8(2) const value_strokeColor_value_2 = unsafeCast(value_strokeColor_value) valueSerializer.writeString(value_strokeColor_value_2) } - else if (((RuntimeType.OBJECT == value_strokeColor_value_type))) { + else if (RuntimeType.OBJECT == value_strokeColor_value_type) { valueSerializer.writeInt8(3) const value_strokeColor_value_3 = unsafeCast(value_strokeColor_value) valueSerializer.writeResource(value_strokeColor_value_3) @@ -2955,17 +2963,17 @@ export class Serializer extends SerializerBase { const value_textColor_value_0 = unsafeCast(value_textColor_value) valueSerializer.writeInt32(value_textColor_value_0) } - else if (((RuntimeType.NUMBER == value_textColor_value_type))) { + else if (RuntimeType.NUMBER == value_textColor_value_type) { valueSerializer.writeInt8(1) const value_textColor_value_1 = unsafeCast(value_textColor_value) valueSerializer.writeNumber(value_textColor_value_1) } - else if (((RuntimeType.STRING == value_textColor_value_type))) { + else if (RuntimeType.STRING == value_textColor_value_type) { valueSerializer.writeInt8(2) const value_textColor_value_2 = unsafeCast(value_textColor_value) valueSerializer.writeString(value_textColor_value_2) } - else if (((RuntimeType.OBJECT == value_textColor_value_type))) { + else if (RuntimeType.OBJECT == value_textColor_value_type) { valueSerializer.writeInt8(3) const value_textColor_value_3 = unsafeCast(value_textColor_value) valueSerializer.writeResource(value_textColor_value_3) @@ -3081,12 +3089,12 @@ export class Serializer extends SerializerBase { const value_centerX_value = value_centerX! let value_centerX_value_type: int32 = RuntimeType.UNDEFINED value_centerX_value_type = runtimeType(value_centerX_value) - if (((RuntimeType.NUMBER == value_centerX_value_type))) { + if (RuntimeType.NUMBER == value_centerX_value_type) { valueSerializer.writeInt8(0) const value_centerX_value_0 = unsafeCast(value_centerX_value) valueSerializer.writeNumber(value_centerX_value_0) } - else if (((RuntimeType.STRING == value_centerX_value_type))) { + else if (RuntimeType.STRING == value_centerX_value_type) { valueSerializer.writeInt8(1) const value_centerX_value_1 = unsafeCast(value_centerX_value) valueSerializer.writeString(value_centerX_value_1) @@ -3100,12 +3108,12 @@ export class Serializer extends SerializerBase { const value_centerY_value = value_centerY! let value_centerY_value_type: int32 = RuntimeType.UNDEFINED value_centerY_value_type = runtimeType(value_centerY_value) - if (((RuntimeType.NUMBER == value_centerY_value_type))) { + if (RuntimeType.NUMBER == value_centerY_value_type) { valueSerializer.writeInt8(0) const value_centerY_value_0 = unsafeCast(value_centerY_value) valueSerializer.writeNumber(value_centerY_value_0) } - else if (((RuntimeType.STRING == value_centerY_value_type))) { + else if (RuntimeType.STRING == value_centerY_value_type) { valueSerializer.writeInt8(1) const value_centerY_value_1 = unsafeCast(value_centerY_value) valueSerializer.writeString(value_centerY_value_1) @@ -3130,12 +3138,12 @@ export class Serializer extends SerializerBase { const value_angle = value.angle let value_angle_type: int32 = RuntimeType.UNDEFINED value_angle_type = runtimeType(value_angle) - if (((RuntimeType.NUMBER == value_angle_type))) { + if (RuntimeType.NUMBER == value_angle_type) { valueSerializer.writeInt8(0) const value_angle_0 = unsafeCast(value_angle) valueSerializer.writeNumber(value_angle_0) } - else if (((RuntimeType.STRING == value_angle_type))) { + else if (RuntimeType.STRING == value_angle_type) { valueSerializer.writeInt8(1) const value_angle_1 = unsafeCast(value_angle) valueSerializer.writeString(value_angle_1) @@ -3175,12 +3183,12 @@ export class Serializer extends SerializerBase { const value_centerX_value = value_centerX! let value_centerX_value_type: int32 = RuntimeType.UNDEFINED value_centerX_value_type = runtimeType(value_centerX_value) - if (((RuntimeType.NUMBER == value_centerX_value_type))) { + if (RuntimeType.NUMBER == value_centerX_value_type) { valueSerializer.writeInt8(0) const value_centerX_value_0 = unsafeCast(value_centerX_value) valueSerializer.writeNumber(value_centerX_value_0) } - else if (((RuntimeType.STRING == value_centerX_value_type))) { + else if (RuntimeType.STRING == value_centerX_value_type) { valueSerializer.writeInt8(1) const value_centerX_value_1 = unsafeCast(value_centerX_value) valueSerializer.writeString(value_centerX_value_1) @@ -3194,12 +3202,12 @@ export class Serializer extends SerializerBase { const value_centerY_value = value_centerY! let value_centerY_value_type: int32 = RuntimeType.UNDEFINED value_centerY_value_type = runtimeType(value_centerY_value) - if (((RuntimeType.NUMBER == value_centerY_value_type))) { + if (RuntimeType.NUMBER == value_centerY_value_type) { valueSerializer.writeInt8(0) const value_centerY_value_0 = unsafeCast(value_centerY_value) valueSerializer.writeNumber(value_centerY_value_0) } - else if (((RuntimeType.STRING == value_centerY_value_type))) { + else if (RuntimeType.STRING == value_centerY_value_type) { valueSerializer.writeInt8(1) const value_centerY_value_1 = unsafeCast(value_centerY_value) valueSerializer.writeString(value_centerY_value_1) @@ -3216,12 +3224,12 @@ export class Serializer extends SerializerBase { const value_x_value = value_x! let value_x_value_type: int32 = RuntimeType.UNDEFINED value_x_value_type = runtimeType(value_x_value) - if (((RuntimeType.NUMBER == value_x_value_type))) { + if (RuntimeType.NUMBER == value_x_value_type) { valueSerializer.writeInt8(0) const value_x_value_0 = unsafeCast(value_x_value) valueSerializer.writeNumber(value_x_value_0) } - else if (((RuntimeType.STRING == value_x_value_type))) { + else if (RuntimeType.STRING == value_x_value_type) { valueSerializer.writeInt8(1) const value_x_value_1 = unsafeCast(value_x_value) valueSerializer.writeString(value_x_value_1) @@ -3235,12 +3243,12 @@ export class Serializer extends SerializerBase { const value_y_value = value_y! let value_y_value_type: int32 = RuntimeType.UNDEFINED value_y_value_type = runtimeType(value_y_value) - if (((RuntimeType.NUMBER == value_y_value_type))) { + if (RuntimeType.NUMBER == value_y_value_type) { valueSerializer.writeInt8(0) const value_y_value_0 = unsafeCast(value_y_value) valueSerializer.writeNumber(value_y_value_0) } - else if (((RuntimeType.STRING == value_y_value_type))) { + else if (RuntimeType.STRING == value_y_value_type) { valueSerializer.writeInt8(1) const value_y_value_1 = unsafeCast(value_y_value) valueSerializer.writeString(value_y_value_1) @@ -3254,12 +3262,12 @@ export class Serializer extends SerializerBase { const value_z_value = value_z! let value_z_value_type: int32 = RuntimeType.UNDEFINED value_z_value_type = runtimeType(value_z_value) - if (((RuntimeType.NUMBER == value_z_value_type))) { + if (RuntimeType.NUMBER == value_z_value_type) { valueSerializer.writeInt8(0) const value_z_value_0 = unsafeCast(value_z_value) valueSerializer.writeNumber(value_z_value_0) } - else if (((RuntimeType.STRING == value_z_value_type))) { + else if (RuntimeType.STRING == value_z_value_type) { valueSerializer.writeInt8(1) const value_z_value_1 = unsafeCast(value_z_value) valueSerializer.writeString(value_z_value_1) @@ -3276,12 +3284,12 @@ export class Serializer extends SerializerBase { const value_angle_value = value_angle! let value_angle_value_type: int32 = RuntimeType.UNDEFINED value_angle_value_type = runtimeType(value_angle_value) - if (((RuntimeType.NUMBER == value_angle_value_type))) { + if (RuntimeType.NUMBER == value_angle_value_type) { valueSerializer.writeInt8(0) const value_angle_value_0 = unsafeCast(value_angle_value) valueSerializer.writeNumber(value_angle_value_0) } - else if (((RuntimeType.STRING == value_angle_value_type))) { + else if (RuntimeType.STRING == value_angle_value_type) { valueSerializer.writeInt8(1) const value_angle_value_1 = unsafeCast(value_angle_value) valueSerializer.writeString(value_angle_value_1) @@ -3307,17 +3315,17 @@ export class Serializer extends SerializerBase { const value_colors_element_0_0 = unsafeCast(value_colors_element_0) valueSerializer.writeInt32(value_colors_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_element_0_type) { valueSerializer.writeInt8(1) const value_colors_element_0_1 = unsafeCast(value_colors_element_0) valueSerializer.writeNumber(value_colors_element_0_1) } - else if (((RuntimeType.STRING == value_colors_element_0_type))) { + else if (RuntimeType.STRING == value_colors_element_0_type) { valueSerializer.writeInt8(2) const value_colors_element_0_2 = unsafeCast(value_colors_element_0) valueSerializer.writeString(value_colors_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_element_0_type) { valueSerializer.writeInt8(3) const value_colors_element_0_3 = unsafeCast(value_colors_element_0) valueSerializer.writeResource(value_colors_element_0_3) @@ -3415,12 +3423,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -3438,17 +3446,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -3467,17 +3475,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -3491,17 +3499,17 @@ export class Serializer extends SerializerBase { const value_dx = value.dx let value_dx_type: int32 = RuntimeType.UNDEFINED value_dx_type = runtimeType(value_dx) - if (((RuntimeType.NUMBER == value_dx_type))) { + if (RuntimeType.NUMBER == value_dx_type) { valueSerializer.writeInt8(0) const value_dx_0 = unsafeCast(value_dx) valueSerializer.writeNumber(value_dx_0) } - else if (((RuntimeType.STRING == value_dx_type))) { + else if (RuntimeType.STRING == value_dx_type) { valueSerializer.writeInt8(1) const value_dx_1 = unsafeCast(value_dx) valueSerializer.writeString(value_dx_1) } - else if (((RuntimeType.OBJECT == value_dx_type))) { + else if (RuntimeType.OBJECT == value_dx_type) { valueSerializer.writeInt8(2) const value_dx_2 = unsafeCast(value_dx) valueSerializer.writeResource(value_dx_2) @@ -3509,17 +3517,17 @@ export class Serializer extends SerializerBase { const value_dy = value.dy let value_dy_type: int32 = RuntimeType.UNDEFINED value_dy_type = runtimeType(value_dy) - if (((RuntimeType.NUMBER == value_dy_type))) { + if (RuntimeType.NUMBER == value_dy_type) { valueSerializer.writeInt8(0) const value_dy_0 = unsafeCast(value_dy) valueSerializer.writeNumber(value_dy_0) } - else if (((RuntimeType.STRING == value_dy_type))) { + else if (RuntimeType.STRING == value_dy_type) { valueSerializer.writeInt8(1) const value_dy_1 = unsafeCast(value_dy) valueSerializer.writeString(value_dy_1) } - else if (((RuntimeType.OBJECT == value_dy_type))) { + else if (RuntimeType.OBJECT == value_dy_type) { valueSerializer.writeInt8(2) const value_dy_2 = unsafeCast(value_dy) valueSerializer.writeResource(value_dy_2) @@ -3554,12 +3562,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -3792,6 +3800,19 @@ export class Serializer extends SerializerBase { const value__DrawContextStub = value._DrawContextStub valueSerializer.writeString(value__DrawContextStub) } + writeCustomSpanMetrics(value: CustomSpanMetrics): void { + let valueSerializer: Serializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + let value_height_type: int32 = RuntimeType.UNDEFINED + value_height_type = runtimeType(value_height) + valueSerializer.writeInt8(value_height_type) + if ((RuntimeType.UNDEFINED) != (value_height_type)) { + const value_height_value = value_height! + valueSerializer.writeNumber(value_height_value) + } + } writeCustomSpanMeasureInfo(value: CustomSpanMeasureInfo): void { let valueSerializer: Serializer = this const value_fontSize = value.fontSize @@ -3823,17 +3844,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -3924,6 +3945,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeWaterFlowAttribute(value: WaterFlowAttribute): void { + } writeWaterFlowSections(value: WaterFlowSections): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -4075,17 +4098,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -4113,17 +4136,17 @@ export class Serializer extends SerializerBase { const value_shown = value.shown let value_shown_type: int32 = RuntimeType.UNDEFINED value_shown_type = runtimeType(value_shown) - if (((RuntimeType.STRING == value_shown_type))) { + if (RuntimeType.STRING == value_shown_type) { valueSerializer.writeInt8(0) const value_shown_0 = unsafeCast(value_shown) valueSerializer.writeString(value_shown_0) } - else if (((RuntimeType.OBJECT) == (value_shown_type)) && (((value_shown!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_shown_type)) && ((value_shown!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(1) const value_shown_1 = unsafeCast(value_shown) valueSerializer.writePixelMap(value_shown_1) } - else if (((RuntimeType.OBJECT) == (value_shown_type)) && (((value_shown!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_shown_type)) && ((value_shown!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_shown_2 = unsafeCast(value_shown) valueSerializer.writeResource(value_shown_2) @@ -4131,17 +4154,17 @@ export class Serializer extends SerializerBase { const value_hidden = value.hidden let value_hidden_type: int32 = RuntimeType.UNDEFINED value_hidden_type = runtimeType(value_hidden) - if (((RuntimeType.STRING == value_hidden_type))) { + if (RuntimeType.STRING == value_hidden_type) { valueSerializer.writeInt8(0) const value_hidden_0 = unsafeCast(value_hidden) valueSerializer.writeString(value_hidden_0) } - else if (((RuntimeType.OBJECT) == (value_hidden_type)) && (((value_hidden!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_hidden_type)) && ((value_hidden!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(1) const value_hidden_1 = unsafeCast(value_hidden) valueSerializer.writePixelMap(value_hidden_1) } - else if (((RuntimeType.OBJECT) == (value_hidden_type)) && (((value_hidden!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_hidden_type)) && ((value_hidden!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_hidden_2 = unsafeCast(value_hidden) valueSerializer.writeResource(value_hidden_2) @@ -4154,17 +4177,17 @@ export class Serializer extends SerializerBase { const value_switching_value = value_switching! let value_switching_value_type: int32 = RuntimeType.UNDEFINED value_switching_value_type = runtimeType(value_switching_value) - if (((RuntimeType.STRING == value_switching_value_type))) { + if (RuntimeType.STRING == value_switching_value_type) { valueSerializer.writeInt8(0) const value_switching_value_0 = unsafeCast(value_switching_value) valueSerializer.writeString(value_switching_value_0) } - else if (((RuntimeType.OBJECT) == (value_switching_value_type)) && (((value_switching_value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_switching_value_type)) && ((value_switching_value!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(1) const value_switching_value_1 = unsafeCast(value_switching_value) valueSerializer.writePixelMap(value_switching_value_1) } - else if (((RuntimeType.OBJECT) == (value_switching_value_type)) && (((value_switching_value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_switching_value_type)) && ((value_switching_value!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_switching_value_2 = unsafeCast(value_switching_value) valueSerializer.writeResource(value_switching_value_2) @@ -4254,6 +4277,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_lock_value) } } + writeWindowSceneAttribute(value: WindowSceneAttribute): void { + } + writeWebAttribute(value: WebAttribute): void { + } writeSelectionMenuOptionsExt(value: SelectionMenuOptionsExt): void { let valueSerializer: Serializer = this const value_onAppear = value.onAppear @@ -4750,6 +4777,23 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeWebCookie(value: WebCookie): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeScreenCaptureConfig(value: ScreenCaptureConfig): void { let valueSerializer: Serializer = this const value_captureMode = value.captureMode @@ -4902,17 +4946,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -4966,12 +5010,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -5046,7 +5090,7 @@ export class Serializer extends SerializerBase { } } } - else if (((RuntimeType.OBJECT) == (value_range_type)) && (((value_range!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_range_type)) && ((value_range!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_range_2 = unsafeCast(value_range) valueSerializer.writeResource(value_range_2) @@ -5077,12 +5121,12 @@ export class Serializer extends SerializerBase { const value_value_value = value_value! let value_value_value_type: int32 = RuntimeType.UNDEFINED value_value_value_type = runtimeType(value_value_value) - if (((RuntimeType.STRING == value_value_value_type))) { + if (RuntimeType.STRING == value_value_value_type) { valueSerializer.writeInt8(0) const value_value_value_0 = unsafeCast(value_value_value) valueSerializer.writeString(value_value_value_0) } - else if (((RuntimeType.OBJECT == value_value_value_type))) { + else if (RuntimeType.OBJECT == value_value_value_type) { valueSerializer.writeInt8(1) const value_value_value_1 = unsafeCast>(value_value_value) valueSerializer.writeInt32(value_value_value_1.length) @@ -5100,12 +5144,12 @@ export class Serializer extends SerializerBase { const value_selected_value = value_selected! let value_selected_value_type: int32 = RuntimeType.UNDEFINED value_selected_value_type = runtimeType(value_selected_value) - if (((RuntimeType.NUMBER == value_selected_value_type))) { + if (RuntimeType.NUMBER == value_selected_value_type) { valueSerializer.writeInt8(0) const value_selected_value_0 = unsafeCast(value_selected_value) valueSerializer.writeNumber(value_selected_value_0) } - else if (((RuntimeType.OBJECT == value_selected_value_type))) { + else if (RuntimeType.OBJECT == value_selected_value_type) { valueSerializer.writeInt8(1) const value_selected_value_1 = unsafeCast>(value_selected_value) valueSerializer.writeInt32(value_selected_value_1.length) @@ -5123,12 +5167,12 @@ export class Serializer extends SerializerBase { const value_defaultPickerItemHeight_value = value_defaultPickerItemHeight! let value_defaultPickerItemHeight_value_type: int32 = RuntimeType.UNDEFINED value_defaultPickerItemHeight_value_type = runtimeType(value_defaultPickerItemHeight_value) - if (((RuntimeType.NUMBER == value_defaultPickerItemHeight_value_type))) { + if (RuntimeType.NUMBER == value_defaultPickerItemHeight_value_type) { valueSerializer.writeInt8(0) const value_defaultPickerItemHeight_value_0 = unsafeCast(value_defaultPickerItemHeight_value) valueSerializer.writeNumber(value_defaultPickerItemHeight_value_0) } - else if (((RuntimeType.STRING == value_defaultPickerItemHeight_value_type))) { + else if (RuntimeType.STRING == value_defaultPickerItemHeight_value_type) { valueSerializer.writeInt8(1) const value_defaultPickerItemHeight_value_1 = unsafeCast(value_defaultPickerItemHeight_value) valueSerializer.writeString(value_defaultPickerItemHeight_value_1) @@ -5246,17 +5290,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -5310,12 +5354,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -5361,17 +5405,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -5394,6 +5438,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_endMargin_value) } } + writeTextInputAttribute(value: TextInputAttribute): void { + } writeInputCounterOptions(value: InputCounterOptions): void { let valueSerializer: Serializer = this const value_thresholdPercentage = value.thresholdPercentage @@ -5439,17 +5485,17 @@ export class Serializer extends SerializerBase { const value_typing_value_0 = unsafeCast(value_typing_value) valueSerializer.writeInt32(value_typing_value_0) } - else if (((RuntimeType.NUMBER == value_typing_value_type))) { + else if (RuntimeType.NUMBER == value_typing_value_type) { valueSerializer.writeInt8(1) const value_typing_value_1 = unsafeCast(value_typing_value) valueSerializer.writeNumber(value_typing_value_1) } - else if (((RuntimeType.STRING == value_typing_value_type))) { + else if (RuntimeType.STRING == value_typing_value_type) { valueSerializer.writeInt8(2) const value_typing_value_2 = unsafeCast(value_typing_value) valueSerializer.writeString(value_typing_value_2) } - else if (((RuntimeType.OBJECT == value_typing_value_type))) { + else if (RuntimeType.OBJECT == value_typing_value_type) { valueSerializer.writeInt8(3) const value_typing_value_3 = unsafeCast(value_typing_value) valueSerializer.writeResource(value_typing_value_3) @@ -5468,17 +5514,17 @@ export class Serializer extends SerializerBase { const value_normal_value_0 = unsafeCast(value_normal_value) valueSerializer.writeInt32(value_normal_value_0) } - else if (((RuntimeType.NUMBER == value_normal_value_type))) { + else if (RuntimeType.NUMBER == value_normal_value_type) { valueSerializer.writeInt8(1) const value_normal_value_1 = unsafeCast(value_normal_value) valueSerializer.writeNumber(value_normal_value_1) } - else if (((RuntimeType.STRING == value_normal_value_type))) { + else if (RuntimeType.STRING == value_normal_value_type) { valueSerializer.writeInt8(2) const value_normal_value_2 = unsafeCast(value_normal_value) valueSerializer.writeString(value_normal_value_2) } - else if (((RuntimeType.OBJECT == value_normal_value_type))) { + else if (RuntimeType.OBJECT == value_normal_value_type) { valueSerializer.writeInt8(3) const value_normal_value_3 = unsafeCast(value_normal_value) valueSerializer.writeResource(value_normal_value_3) @@ -5497,17 +5543,17 @@ export class Serializer extends SerializerBase { const value_error_value_0 = unsafeCast(value_error_value) valueSerializer.writeInt32(value_error_value_0) } - else if (((RuntimeType.NUMBER == value_error_value_type))) { + else if (RuntimeType.NUMBER == value_error_value_type) { valueSerializer.writeInt8(1) const value_error_value_1 = unsafeCast(value_error_value) valueSerializer.writeNumber(value_error_value_1) } - else if (((RuntimeType.STRING == value_error_value_type))) { + else if (RuntimeType.STRING == value_error_value_type) { valueSerializer.writeInt8(2) const value_error_value_2 = unsafeCast(value_error_value) valueSerializer.writeString(value_error_value_2) } - else if (((RuntimeType.OBJECT == value_error_value_type))) { + else if (RuntimeType.OBJECT == value_error_value_type) { valueSerializer.writeInt8(3) const value_error_value_3 = unsafeCast(value_error_value) valueSerializer.writeResource(value_error_value_3) @@ -5526,17 +5572,17 @@ export class Serializer extends SerializerBase { const value_disable_value_0 = unsafeCast(value_disable_value) valueSerializer.writeInt32(value_disable_value_0) } - else if (((RuntimeType.NUMBER == value_disable_value_type))) { + else if (RuntimeType.NUMBER == value_disable_value_type) { valueSerializer.writeInt8(1) const value_disable_value_1 = unsafeCast(value_disable_value) valueSerializer.writeNumber(value_disable_value_1) } - else if (((RuntimeType.STRING == value_disable_value_type))) { + else if (RuntimeType.STRING == value_disable_value_type) { valueSerializer.writeInt8(2) const value_disable_value_2 = unsafeCast(value_disable_value) valueSerializer.writeString(value_disable_value_2) } - else if (((RuntimeType.OBJECT == value_disable_value_type))) { + else if (RuntimeType.OBJECT == value_disable_value_type) { valueSerializer.writeInt8(3) const value_disable_value_3 = unsafeCast(value_disable_value) valueSerializer.writeResource(value_disable_value_3) @@ -5595,12 +5641,12 @@ export class Serializer extends SerializerBase { const value_content = value.content let value_content_type: int32 = RuntimeType.UNDEFINED value_content_type = runtimeType(value_content) - if (((RuntimeType.STRING == value_content_type))) { + if (RuntimeType.STRING == value_content_type) { valueSerializer.writeInt8(0) const value_content_0 = unsafeCast(value_content) valueSerializer.writeString(value_content_0) } - else if (((RuntimeType.OBJECT == value_content_type))) { + else if (RuntimeType.OBJECT == value_content_type) { valueSerializer.writeInt8(1) const value_content_1 = unsafeCast(value_content) valueSerializer.writeResource(value_content_1) @@ -5613,12 +5659,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -5627,6 +5673,59 @@ export class Serializer extends SerializerBase { const value_id = value.id valueSerializer.writeTextMenuItemId(value_id) } + writeLineMetrics(value: LineMetrics): void { + let valueSerializer: Serializer = this + const value__LineMetricsStub = value._LineMetricsStub + valueSerializer.writeString(value__LineMetricsStub) + } + writePositionWithAffinity(value: PositionWithAffinity): void { + let valueSerializer: Serializer = this + const value_position = value.position + valueSerializer.writeNumber(value_position) + const value_affinity = value.affinity + valueSerializer.writeAffinity(value_affinity) + } + writeMutableStyledString(value: MutableStyledString): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writePreviewText(value: PreviewText): void { + let valueSerializer: Serializer = this + const value_offset = value.offset + valueSerializer.writeNumber(value_offset) + const value_value = value.value + valueSerializer.writeString(value_value) + } + writeLayoutManager(value: LayoutManager): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeTextClockController(value: TextClockController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -5644,6 +5743,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextAreaAttribute(value: TextAreaAttribute): void { + } writeTextAreaController(value: TextAreaController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -5661,6 +5762,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextAttribute(value: TextAttribute): void { + } writeSelectionMenuOptions(value: SelectionMenuOptions): void { let valueSerializer: Serializer = this const value_onAppear = value.onAppear @@ -5726,23 +5829,23 @@ export class Serializer extends SerializerBase { const value__icon_value = value__icon! let value__icon_value_type: int32 = RuntimeType.UNDEFINED value__icon_value_type = runtimeType(value__icon_value) - if ((((RuntimeType.STRING == value__icon_value_type))) || (((RuntimeType.OBJECT == value__icon_value_type)))) { + if ((RuntimeType.STRING == value__icon_value_type) || (RuntimeType.OBJECT == value__icon_value_type)) { valueSerializer.writeInt8(0) const value__icon_value_0 = unsafeCast(value__icon_value) let value__icon_value_0_type: int32 = RuntimeType.UNDEFINED value__icon_value_0_type = runtimeType(value__icon_value_0) - if (((RuntimeType.STRING == value__icon_value_0_type))) { + if (RuntimeType.STRING == value__icon_value_0_type) { valueSerializer.writeInt8(0) const value__icon_value_0_0 = unsafeCast(value__icon_value_0) valueSerializer.writeString(value__icon_value_0_0) } - else if (((RuntimeType.OBJECT == value__icon_value_0_type))) { + else if (RuntimeType.OBJECT == value__icon_value_0_type) { valueSerializer.writeInt8(1) const value__icon_value_0_1 = unsafeCast(value__icon_value_0) valueSerializer.writeResource(value__icon_value_0_1) } } - else if (((RuntimeType.OBJECT) == (value__icon_value_type)) && (((value__icon_value!.hasOwnProperty("normal"))))) { + else if (((RuntimeType.OBJECT) == (value__icon_value_type)) && ((value__icon_value!.hasOwnProperty("normal")))) { valueSerializer.writeInt8(1) const value__icon_value_1 = unsafeCast(value__icon_value) valueSerializer.writeTabBarSymbol(value__icon_value_1) @@ -5756,12 +5859,12 @@ export class Serializer extends SerializerBase { const value__text_value = value__text! let value__text_value_type: int32 = RuntimeType.UNDEFINED value__text_value_type = runtimeType(value__text_value) - if (((RuntimeType.STRING == value__text_value_type))) { + if (RuntimeType.STRING == value__text_value_type) { valueSerializer.writeInt8(0) const value__text_value_0 = unsafeCast(value__text_value) valueSerializer.writeString(value__text_value_0) } - else if (((RuntimeType.OBJECT == value__text_value_type))) { + else if (RuntimeType.OBJECT == value__text_value_type) { valueSerializer.writeInt8(1) const value__text_value_1 = unsafeCast(value__text_value) valueSerializer.writeResource(value__text_value_1) @@ -5824,7 +5927,7 @@ export class Serializer extends SerializerBase { const value__padding_value_1 = unsafeCast(value__padding_value) valueSerializer.writeLength(value__padding_value_1) } - else if (((RuntimeType.OBJECT) == (value__padding_value_type)) && (((value__padding_value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value__padding_value_type)) && ((value__padding_value!.hasOwnProperty("stub")))) { valueSerializer.writeInt8(2) const value__padding_value_2 = unsafeCast(value__padding_value) valueSerializer.writeLocalizedPadding(value__padding_value_2) @@ -5881,17 +5984,17 @@ export class Serializer extends SerializerBase { const value__content_value = value__content! let value__content_value_type: int32 = RuntimeType.UNDEFINED value__content_value_type = runtimeType(value__content_value) - if (((RuntimeType.STRING == value__content_value_type))) { + if (RuntimeType.STRING == value__content_value_type) { valueSerializer.writeInt8(0) const value__content_value_0 = unsafeCast(value__content_value) valueSerializer.writeString(value__content_value_0) } - else if (((RuntimeType.OBJECT) == (value__content_value_type)) && (((value__content_value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value__content_value_type)) && ((value__content_value!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(1) const value__content_value_1 = unsafeCast(value__content_value) valueSerializer.writeResource(value__content_value_1) } - else if (((RuntimeType.OBJECT) == (value__content_value_type)) && (((value__content_value!.hasOwnProperty("_ComponentContentStub"))))) { + else if (((RuntimeType.OBJECT) == (value__content_value_type)) && ((value__content_value!.hasOwnProperty("_ComponentContentStub")))) { valueSerializer.writeInt8(2) const value__content_value_2 = unsafeCast(value__content_value) valueSerializer.writeComponentContent(value__content_value_2) @@ -5984,7 +6087,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value__padding_value_0_1) } } - else if (((RuntimeType.OBJECT) == (value__padding_value_type)) && (((value__padding_value!.hasOwnProperty("stub"))))) { + else if (((RuntimeType.OBJECT) == (value__padding_value_type)) && ((value__padding_value!.hasOwnProperty("stub")))) { valueSerializer.writeInt8(1) const value__padding_value_1 = unsafeCast(value__padding_value) valueSerializer.writeLocalizedPadding(value__padding_value_1) @@ -6009,12 +6112,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -6028,18 +6131,20 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type: int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0) const value_text_value_0 = unsafeCast(value_text_value) valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1) const value_text_value_1 = unsafeCast(value_text_value) valueSerializer.writeResource(value_text_value_1) } } } + writeTabsAttribute(value: TabsAttribute): void { + } writeBackgroundBlurStyleOptions(value: BackgroundBlurStyleOptions): void { let valueSerializer: Serializer = this const value_colorMode = value.colorMode @@ -6095,17 +6200,17 @@ export class Serializer extends SerializerBase { const value_inactiveColor_value_0 = unsafeCast(value_inactiveColor_value) valueSerializer.writeInt32(value_inactiveColor_value_0) } - else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { + else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1) const value_inactiveColor_value_1 = unsafeCast(value_inactiveColor_value) valueSerializer.writeNumber(value_inactiveColor_value_1) } - else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + else if (RuntimeType.STRING == value_inactiveColor_value_type) { valueSerializer.writeInt8(2) const value_inactiveColor_value_2 = unsafeCast(value_inactiveColor_value) valueSerializer.writeString(value_inactiveColor_value_2) } - else if (((RuntimeType.OBJECT == value_inactiveColor_value_type))) { + else if (RuntimeType.OBJECT == value_inactiveColor_value_type) { valueSerializer.writeInt8(3) const value_inactiveColor_value_3 = unsafeCast(value_inactiveColor_value) valueSerializer.writeResource(value_inactiveColor_value_3) @@ -6161,6 +6266,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeSymbolGlyphAttribute(value: SymbolGlyphAttribute): void { + } writeSymbolEffect(value: SymbolEffect): void { } writeDigitIndicator(value: DigitIndicator): void { @@ -6226,17 +6333,17 @@ export class Serializer extends SerializerBase { const value__fontColor_value_0 = unsafeCast(value__fontColor_value) valueSerializer.writeInt32(value__fontColor_value_0) } - else if (((RuntimeType.NUMBER == value__fontColor_value_type))) { + else if (RuntimeType.NUMBER == value__fontColor_value_type) { valueSerializer.writeInt8(1) const value__fontColor_value_1 = unsafeCast(value__fontColor_value) valueSerializer.writeNumber(value__fontColor_value_1) } - else if (((RuntimeType.STRING == value__fontColor_value_type))) { + else if (RuntimeType.STRING == value__fontColor_value_type) { valueSerializer.writeInt8(2) const value__fontColor_value_2 = unsafeCast(value__fontColor_value) valueSerializer.writeString(value__fontColor_value_2) } - else if (((RuntimeType.OBJECT == value__fontColor_value_type))) { + else if (RuntimeType.OBJECT == value__fontColor_value_type) { valueSerializer.writeInt8(3) const value__fontColor_value_3 = unsafeCast(value__fontColor_value) valueSerializer.writeResource(value__fontColor_value_3) @@ -6255,17 +6362,17 @@ export class Serializer extends SerializerBase { const value__selectedFontColor_value_0 = unsafeCast(value__selectedFontColor_value) valueSerializer.writeInt32(value__selectedFontColor_value_0) } - else if (((RuntimeType.NUMBER == value__selectedFontColor_value_type))) { + else if (RuntimeType.NUMBER == value__selectedFontColor_value_type) { valueSerializer.writeInt8(1) const value__selectedFontColor_value_1 = unsafeCast(value__selectedFontColor_value) valueSerializer.writeNumber(value__selectedFontColor_value_1) } - else if (((RuntimeType.STRING == value__selectedFontColor_value_type))) { + else if (RuntimeType.STRING == value__selectedFontColor_value_type) { valueSerializer.writeInt8(2) const value__selectedFontColor_value_2 = unsafeCast(value__selectedFontColor_value) valueSerializer.writeString(value__selectedFontColor_value_2) } - else if (((RuntimeType.OBJECT == value__selectedFontColor_value_type))) { + else if (RuntimeType.OBJECT == value__selectedFontColor_value_type) { valueSerializer.writeInt8(3) const value__selectedFontColor_value_3 = unsafeCast(value__selectedFontColor_value) valueSerializer.writeResource(value__selectedFontColor_value_3) @@ -6391,17 +6498,17 @@ export class Serializer extends SerializerBase { const value__color_value_0 = unsafeCast(value__color_value) valueSerializer.writeInt32(value__color_value_0) } - else if (((RuntimeType.NUMBER == value__color_value_type))) { + else if (RuntimeType.NUMBER == value__color_value_type) { valueSerializer.writeInt8(1) const value__color_value_1 = unsafeCast(value__color_value) valueSerializer.writeNumber(value__color_value_1) } - else if (((RuntimeType.STRING == value__color_value_type))) { + else if (RuntimeType.STRING == value__color_value_type) { valueSerializer.writeInt8(2) const value__color_value_2 = unsafeCast(value__color_value) valueSerializer.writeString(value__color_value_2) } - else if (((RuntimeType.OBJECT == value__color_value_type))) { + else if (RuntimeType.OBJECT == value__color_value_type) { valueSerializer.writeInt8(3) const value__color_value_3 = unsafeCast(value__color_value) valueSerializer.writeResource(value__color_value_3) @@ -6420,17 +6527,17 @@ export class Serializer extends SerializerBase { const value__selectedColor_value_0 = unsafeCast(value__selectedColor_value) valueSerializer.writeInt32(value__selectedColor_value_0) } - else if (((RuntimeType.NUMBER == value__selectedColor_value_type))) { + else if (RuntimeType.NUMBER == value__selectedColor_value_type) { valueSerializer.writeInt8(1) const value__selectedColor_value_1 = unsafeCast(value__selectedColor_value) valueSerializer.writeNumber(value__selectedColor_value_1) } - else if (((RuntimeType.STRING == value__selectedColor_value_type))) { + else if (RuntimeType.STRING == value__selectedColor_value_type) { valueSerializer.writeInt8(2) const value__selectedColor_value_2 = unsafeCast(value__selectedColor_value) valueSerializer.writeString(value__selectedColor_value_2) } - else if (((RuntimeType.OBJECT == value__selectedColor_value_type))) { + else if (RuntimeType.OBJECT == value__selectedColor_value_type) { valueSerializer.writeInt8(3) const value__selectedColor_value_3 = unsafeCast(value__selectedColor_value) valueSerializer.writeResource(value__selectedColor_value_3) @@ -6445,17 +6552,19 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value__maxDisplayCount_value) } } + writeSwiperAttribute(value: SwiperAttribute): void { + } writeSwiperAutoFill(value: SwiperAutoFill): void { let valueSerializer: Serializer = this const value_minSize = value.minSize let value_minSize_type: int32 = RuntimeType.UNDEFINED value_minSize_type = runtimeType(value_minSize) - if (((RuntimeType.STRING == value_minSize_type))) { + if (RuntimeType.STRING == value_minSize_type) { valueSerializer.writeInt8(0) const value_minSize_0 = unsafeCast(value_minSize) valueSerializer.writeString(value_minSize_0) } - else if (((RuntimeType.NUMBER == value_minSize_type))) { + else if (RuntimeType.NUMBER == value_minSize_type) { valueSerializer.writeInt8(1) const value_minSize_1 = unsafeCast(value_minSize) valueSerializer.writeNumber(value_minSize_1) @@ -6500,17 +6609,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -6537,23 +6646,29 @@ export class Serializer extends SerializerBase { const value_arrowColor_value_0 = unsafeCast(value_arrowColor_value) valueSerializer.writeInt32(value_arrowColor_value_0) } - else if (((RuntimeType.NUMBER == value_arrowColor_value_type))) { + else if (RuntimeType.NUMBER == value_arrowColor_value_type) { valueSerializer.writeInt8(1) const value_arrowColor_value_1 = unsafeCast(value_arrowColor_value) valueSerializer.writeNumber(value_arrowColor_value_1) } - else if (((RuntimeType.STRING == value_arrowColor_value_type))) { + else if (RuntimeType.STRING == value_arrowColor_value_type) { valueSerializer.writeInt8(2) const value_arrowColor_value_2 = unsafeCast(value_arrowColor_value) valueSerializer.writeString(value_arrowColor_value_2) } - else if (((RuntimeType.OBJECT == value_arrowColor_value_type))) { + else if (RuntimeType.OBJECT == value_arrowColor_value_type) { valueSerializer.writeInt8(3) const value_arrowColor_value_3 = unsafeCast(value_arrowColor_value) valueSerializer.writeResource(value_arrowColor_value_3) } } } + writeSliderAttribute(value: SliderAttribute): void { + } + writeShapeAttribute(value: ShapeAttribute): void { + } + writeSelectAttribute(value: SelectAttribute): void { + } writeLocalizedEdges(value: LocalizedEdges): void { let valueSerializer: Serializer = this const value_top = value.top @@ -6624,6 +6739,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_right_value) } } + writeSearchAttribute(value: SearchAttribute): void { + } writeSearchButtonOptions(value: SearchButtonOptions): void { let valueSerializer: Serializer = this const value_fontSize = value.fontSize @@ -6647,17 +6764,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -6727,11 +6844,24 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeScrollAttribute(value: ScrollAttribute): void { + } writeEdgeEffectOptions(value: EdgeEffectOptions): void { let valueSerializer: Serializer = this const value_alwaysEnabled = value.alwaysEnabled valueSerializer.writeBoolean(value_alwaysEnabled) } + writeRectResult(value: RectResult): void { + let valueSerializer: Serializer = this + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeScrollToIndexOptions(value: ScrollToIndexOptions): void { let valueSerializer: Serializer = this const value_extraOffset = value.extraOffset @@ -6743,6 +6873,13 @@ export class Serializer extends SerializerBase { valueSerializer.writeLengthMetrics(value_extraOffset_value) } } + writeOffsetResult(value: OffsetResult): void { + let valueSerializer: Serializer = this + const value_xOffset = value.xOffset + valueSerializer.writeNumber(value_xOffset) + const value_yOffset = value.yOffset + valueSerializer.writeNumber(value_yOffset) + } writeScrollPageOptions(value: ScrollPageOptions): void { let valueSerializer: Serializer = this const value_next = value.next @@ -6772,12 +6909,12 @@ export class Serializer extends SerializerBase { const value_xOffset = value.xOffset let value_xOffset_type: int32 = RuntimeType.UNDEFINED value_xOffset_type = runtimeType(value_xOffset) - if (((RuntimeType.NUMBER == value_xOffset_type))) { + if (RuntimeType.NUMBER == value_xOffset_type) { valueSerializer.writeInt8(0) const value_xOffset_0 = unsafeCast(value_xOffset) valueSerializer.writeNumber(value_xOffset_0) } - else if (((RuntimeType.STRING == value_xOffset_type))) { + else if (RuntimeType.STRING == value_xOffset_type) { valueSerializer.writeInt8(1) const value_xOffset_1 = unsafeCast(value_xOffset) valueSerializer.writeString(value_xOffset_1) @@ -6785,12 +6922,12 @@ export class Serializer extends SerializerBase { const value_yOffset = value.yOffset let value_yOffset_type: int32 = RuntimeType.UNDEFINED value_yOffset_type = runtimeType(value_yOffset) - if (((RuntimeType.NUMBER == value_yOffset_type))) { + if (RuntimeType.NUMBER == value_yOffset_type) { valueSerializer.writeInt8(0) const value_yOffset_0 = unsafeCast(value_yOffset) valueSerializer.writeNumber(value_yOffset_0) } - else if (((RuntimeType.STRING == value_yOffset_type))) { + else if (RuntimeType.STRING == value_yOffset_type) { valueSerializer.writeInt8(1) const value_yOffset_1 = unsafeCast(value_yOffset) valueSerializer.writeString(value_yOffset_1) @@ -6803,12 +6940,12 @@ export class Serializer extends SerializerBase { const value_animation_value = value_animation! let value_animation_value_type: int32 = RuntimeType.UNDEFINED value_animation_value_type = runtimeType(value_animation_value) - if (((RuntimeType.OBJECT == value_animation_value_type))) { + if (RuntimeType.OBJECT == value_animation_value_type) { valueSerializer.writeInt8(0) const value_animation_value_0 = unsafeCast(value_animation_value) valueSerializer.writeScrollAnimationOptions(value_animation_value_0) } - else if (((RuntimeType.BOOLEAN == value_animation_value_type))) { + else if (RuntimeType.BOOLEAN == value_animation_value_type) { valueSerializer.writeInt8(1) const value_animation_value_1 = unsafeCast(value_animation_value) valueSerializer.writeBoolean(value_animation_value_1) @@ -6849,6 +6986,8 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeRichEditorAttribute(value: RichEditorAttribute): void { + } writePlaceholderStyle(value: PlaceholderStyle): void { let valueSerializer: Serializer = this const value_font = value.font @@ -6872,17 +7011,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -6909,12 +7048,12 @@ export class Serializer extends SerializerBase { const value_valueResourceStr_value = value_valueResourceStr! let value_valueResourceStr_value_type: int32 = RuntimeType.UNDEFINED value_valueResourceStr_value_type = runtimeType(value_valueResourceStr_value) - if (((RuntimeType.STRING == value_valueResourceStr_value_type))) { + if (RuntimeType.STRING == value_valueResourceStr_value_type) { valueSerializer.writeInt8(0) const value_valueResourceStr_value_0 = unsafeCast(value_valueResourceStr_value) valueSerializer.writeString(value_valueResourceStr_value_0) } - else if (((RuntimeType.OBJECT == value_valueResourceStr_value_type))) { + else if (RuntimeType.OBJECT == value_valueResourceStr_value_type) { valueSerializer.writeInt8(1) const value_valueResourceStr_value_1 = unsafeCast(value_valueResourceStr_value) valueSerializer.writeResource(value_valueResourceStr_value_1) @@ -7012,6 +7151,31 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_end_value) } } + writeRichEditorSelection(value: RichEditorSelection): void { + let valueSerializer: Serializer = this + const value_selection = value.selection + const value_selection_0 = value_selection[0] + valueSerializer.writeNumber(value_selection_0) + const value_selection_1 = value_selection[1] + valueSerializer.writeNumber(value_selection_1) + const value_spans = value.spans + valueSerializer.writeInt32(value_spans.length) + for (let i = 0; i < value_spans.length; i++) { + const value_spans_element: RichEditorTextSpanResult | RichEditorImageSpanResult = value_spans[i] + let value_spans_element_type: int32 = RuntimeType.UNDEFINED + value_spans_element_type = runtimeType(value_spans_element) + if (((RuntimeType.OBJECT) == (value_spans_element_type)) && ((value_spans_element!.hasOwnProperty("value")))) { + valueSerializer.writeInt8(0) + const value_spans_element_0 = unsafeCast(value_spans_element) + valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0) + } + else if (((RuntimeType.OBJECT) == (value_spans_element_type)) && ((value_spans_element!.hasOwnProperty("imageStyle")))) { + valueSerializer.writeInt8(1) + const value_spans_element_1 = unsafeCast(value_spans_element) + valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1) + } + } + } writeRichEditorParagraphStyleOptions(value: RichEditorParagraphStyleOptions): void { let valueSerializer: Serializer = this const value_start = value.start @@ -7217,12 +7381,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -7236,12 +7400,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -7255,12 +7419,12 @@ export class Serializer extends SerializerBase { const value_radiusWidth_value = value_radiusWidth! let value_radiusWidth_value_type: int32 = RuntimeType.UNDEFINED value_radiusWidth_value_type = runtimeType(value_radiusWidth_value) - if (((RuntimeType.NUMBER == value_radiusWidth_value_type))) { + if (RuntimeType.NUMBER == value_radiusWidth_value_type) { valueSerializer.writeInt8(0) const value_radiusWidth_value_0 = unsafeCast(value_radiusWidth_value) valueSerializer.writeNumber(value_radiusWidth_value_0) } - else if (((RuntimeType.STRING == value_radiusWidth_value_type))) { + else if (RuntimeType.STRING == value_radiusWidth_value_type) { valueSerializer.writeInt8(1) const value_radiusWidth_value_1 = unsafeCast(value_radiusWidth_value) valueSerializer.writeString(value_radiusWidth_value_1) @@ -7274,12 +7438,12 @@ export class Serializer extends SerializerBase { const value_radiusHeight_value = value_radiusHeight! let value_radiusHeight_value_type: int32 = RuntimeType.UNDEFINED value_radiusHeight_value_type = runtimeType(value_radiusHeight_value) - if (((RuntimeType.NUMBER == value_radiusHeight_value_type))) { + if (RuntimeType.NUMBER == value_radiusHeight_value_type) { valueSerializer.writeInt8(0) const value_radiusHeight_value_0 = unsafeCast(value_radiusHeight_value) valueSerializer.writeNumber(value_radiusHeight_value_0) } - else if (((RuntimeType.STRING == value_radiusHeight_value_type))) { + else if (RuntimeType.STRING == value_radiusHeight_value_type) { valueSerializer.writeInt8(1) const value_radiusHeight_value_1 = unsafeCast(value_radiusHeight_value) valueSerializer.writeString(value_radiusHeight_value_1) @@ -7296,12 +7460,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -7315,12 +7479,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -7334,17 +7498,17 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type: int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0) const value_radius_value_0 = unsafeCast(value_radius_value) valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.STRING == value_radius_value_type))) { + else if (RuntimeType.STRING == value_radius_value_type) { valueSerializer.writeInt8(1) const value_radius_value_1 = unsafeCast(value_radius_value) valueSerializer.writeString(value_radius_value_1) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(2) const value_radius_value_2 = unsafeCast>(value_radius_value) valueSerializer.writeInt32(value_radius_value_2.length) @@ -7352,12 +7516,12 @@ export class Serializer extends SerializerBase { const value_radius_value_2_element: number | string = value_radius_value_2[i] let value_radius_value_2_element_type: int32 = RuntimeType.UNDEFINED value_radius_value_2_element_type = runtimeType(value_radius_value_2_element) - if (((RuntimeType.NUMBER == value_radius_value_2_element_type))) { + if (RuntimeType.NUMBER == value_radius_value_2_element_type) { valueSerializer.writeInt8(0) const value_radius_value_2_element_0 = unsafeCast(value_radius_value_2_element) valueSerializer.writeNumber(value_radius_value_2_element_0) } - else if (((RuntimeType.STRING == value_radius_value_2_element_type))) { + else if (RuntimeType.STRING == value_radius_value_2_element_type) { valueSerializer.writeInt8(1) const value_radius_value_2_element_1 = unsafeCast(value_radius_value_2_element) valueSerializer.writeString(value_radius_value_2_element_1) @@ -7424,17 +7588,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0 = unsafeCast(value_borderColor_value) valueSerializer.writeInt32(value_borderColor_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1 = unsafeCast(value_borderColor_value) valueSerializer.writeNumber(value_borderColor_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_2 = unsafeCast(value_borderColor_value) valueSerializer.writeString(value_borderColor_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_3 = unsafeCast(value_borderColor_value) valueSerializer.writeResource(value_borderColor_value_3) @@ -7477,17 +7641,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -7563,17 +7727,17 @@ export class Serializer extends SerializerBase { const value_strokeRadius_value = value_strokeRadius! let value_strokeRadius_value_type: int32 = RuntimeType.UNDEFINED value_strokeRadius_value_type = runtimeType(value_strokeRadius_value) - if (((RuntimeType.STRING == value_strokeRadius_value_type))) { + if (RuntimeType.STRING == value_strokeRadius_value_type) { valueSerializer.writeInt8(0) const value_strokeRadius_value_0 = unsafeCast(value_strokeRadius_value) valueSerializer.writeString(value_strokeRadius_value_0) } - else if (((RuntimeType.NUMBER == value_strokeRadius_value_type))) { + else if (RuntimeType.NUMBER == value_strokeRadius_value_type) { valueSerializer.writeInt8(1) const value_strokeRadius_value_1 = unsafeCast(value_strokeRadius_value) valueSerializer.writeNumber(value_strokeRadius_value_1) } - else if (((RuntimeType.OBJECT == value_strokeRadius_value_type))) { + else if (RuntimeType.OBJECT == value_strokeRadius_value_type) { valueSerializer.writeInt8(2) const value_strokeRadius_value_2 = unsafeCast(value_strokeRadius_value) valueSerializer.writeResource(value_strokeRadius_value_2) @@ -7602,17 +7766,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -7735,6 +7899,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeBoolean(value_animated_value) } } + writeNavDestinationAttribute(value: NavDestinationAttribute): void { + } writeNavigationToolbarOptions(value: NavigationToolbarOptions): void { let valueSerializer: Serializer = this const value_backgroundColor = value.backgroundColor @@ -7750,17 +7916,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -7798,17 +7964,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -7894,12 +8060,12 @@ export class Serializer extends SerializerBase { const value_main = value.main let value_main_type: int32 = RuntimeType.UNDEFINED value_main_type = runtimeType(value_main) - if (((RuntimeType.STRING == value_main_type))) { + if (RuntimeType.STRING == value_main_type) { valueSerializer.writeInt8(0) const value_main_0 = unsafeCast(value_main) valueSerializer.writeString(value_main_0) } - else if (((RuntimeType.OBJECT == value_main_type))) { + else if (RuntimeType.OBJECT == value_main_type) { valueSerializer.writeInt8(1) const value_main_1 = unsafeCast(value_main) valueSerializer.writeResource(value_main_1) @@ -7907,12 +8073,12 @@ export class Serializer extends SerializerBase { const value_sub = value.sub let value_sub_type: int32 = RuntimeType.UNDEFINED value_sub_type = runtimeType(value_sub) - if (((RuntimeType.STRING == value_sub_type))) { + if (RuntimeType.STRING == value_sub_type) { valueSerializer.writeInt8(0) const value_sub_0 = unsafeCast(value_sub) valueSerializer.writeString(value_sub_0) } - else if (((RuntimeType.OBJECT == value_sub_type))) { + else if (RuntimeType.OBJECT == value_sub_type) { valueSerializer.writeInt8(1) const value_sub_1 = unsafeCast(value_sub) valueSerializer.writeResource(value_sub_1) @@ -7923,6 +8089,15 @@ export class Serializer extends SerializerBase { const value__SystemBarStyleStub = value._SystemBarStyleStub valueSerializer.writeString(value__SystemBarStyleStub) } + writeRouteMapConfig(value: RouteMapConfig): void { + let valueSerializer: Serializer = this + const value_name = value.name + valueSerializer.writeString(value_name) + const value_pageSourceFile = value.pageSourceFile + valueSerializer.writeString(value_pageSourceFile) + const value_data = value.data + valueSerializer.writeCustomObject("Object", value_data) + } writeMenuItemOptions(value: MenuItemOptions): void { let valueSerializer: Serializer = this const value_startIcon = value.startIcon @@ -7933,12 +8108,12 @@ export class Serializer extends SerializerBase { const value_startIcon_value = value_startIcon! let value_startIcon_value_type: int32 = RuntimeType.UNDEFINED value_startIcon_value_type = runtimeType(value_startIcon_value) - if (((RuntimeType.STRING == value_startIcon_value_type))) { + if (RuntimeType.STRING == value_startIcon_value_type) { valueSerializer.writeInt8(0) const value_startIcon_value_0 = unsafeCast(value_startIcon_value) valueSerializer.writeString(value_startIcon_value_0) } - else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + else if (RuntimeType.OBJECT == value_startIcon_value_type) { valueSerializer.writeInt8(1) const value_startIcon_value_1 = unsafeCast(value_startIcon_value) valueSerializer.writeResource(value_startIcon_value_1) @@ -7960,12 +8135,12 @@ export class Serializer extends SerializerBase { const value_content_value = value_content! let value_content_value_type: int32 = RuntimeType.UNDEFINED value_content_value_type = runtimeType(value_content_value) - if (((RuntimeType.STRING == value_content_value_type))) { + if (RuntimeType.STRING == value_content_value_type) { valueSerializer.writeInt8(0) const value_content_value_0 = unsafeCast(value_content_value) valueSerializer.writeString(value_content_value_0) } - else if (((RuntimeType.OBJECT == value_content_value_type))) { + else if (RuntimeType.OBJECT == value_content_value_type) { valueSerializer.writeInt8(1) const value_content_value_1 = unsafeCast(value_content_value) valueSerializer.writeResource(value_content_value_1) @@ -7979,12 +8154,12 @@ export class Serializer extends SerializerBase { const value_endIcon_value = value_endIcon! let value_endIcon_value_type: int32 = RuntimeType.UNDEFINED value_endIcon_value_type = runtimeType(value_endIcon_value) - if (((RuntimeType.STRING == value_endIcon_value_type))) { + if (RuntimeType.STRING == value_endIcon_value_type) { valueSerializer.writeInt8(0) const value_endIcon_value_0 = unsafeCast(value_endIcon_value) valueSerializer.writeString(value_endIcon_value_0) } - else if (((RuntimeType.OBJECT == value_endIcon_value_type))) { + else if (RuntimeType.OBJECT == value_endIcon_value_type) { valueSerializer.writeInt8(1) const value_endIcon_value_1 = unsafeCast(value_endIcon_value) valueSerializer.writeResource(value_endIcon_value_1) @@ -8006,12 +8181,12 @@ export class Serializer extends SerializerBase { const value_labelInfo_value = value_labelInfo! let value_labelInfo_value_type: int32 = RuntimeType.UNDEFINED value_labelInfo_value_type = runtimeType(value_labelInfo_value) - if (((RuntimeType.STRING == value_labelInfo_value_type))) { + if (RuntimeType.STRING == value_labelInfo_value_type) { valueSerializer.writeInt8(0) const value_labelInfo_value_0 = unsafeCast(value_labelInfo_value) valueSerializer.writeString(value_labelInfo_value_0) } - else if (((RuntimeType.OBJECT == value_labelInfo_value_type))) { + else if (RuntimeType.OBJECT == value_labelInfo_value_type) { valueSerializer.writeInt8(1) const value_labelInfo_value_1 = unsafeCast(value_labelInfo_value) valueSerializer.writeResource(value_labelInfo_value_1) @@ -8049,17 +8224,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -8132,17 +8307,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -8165,6 +8340,29 @@ export class Serializer extends SerializerBase { valueSerializer.writeLength(value_endMargin_value) } } + writeListAttribute(value: ListAttribute): void { + } + writeVisibleListContentInfo(value: VisibleListContentInfo): void { + let valueSerializer: Serializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_itemGroupArea = value.itemGroupArea + let value_itemGroupArea_type: int32 = RuntimeType.UNDEFINED + value_itemGroupArea_type = runtimeType(value_itemGroupArea) + valueSerializer.writeInt8(value_itemGroupArea_type) + if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { + const value_itemGroupArea_value = value_itemGroupArea! + valueSerializer.writeInt32(value_itemGroupArea_value) + } + const value_itemIndexInGroup = value.itemIndexInGroup + let value_itemIndexInGroup_type: int32 = RuntimeType.UNDEFINED + value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup) + valueSerializer.writeInt8(value_itemIndexInGroup_type) + if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { + const value_itemIndexInGroup_value = value_itemIndexInGroup! + valueSerializer.writeNumber(value_itemIndexInGroup_value) + } + } writeCloseSwipeActionOptions(value: CloseSwipeActionOptions): void { let valueSerializer: Serializer = this const value_onFinish = value.onFinish @@ -8221,6 +8419,42 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_reference_value) } } + writeGridAttribute(value: GridAttribute): void { + } + writePanGestureOptions(value: PanGestureOptions): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeEventTargetInfo(value: EventTargetInfo): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeWindowStatusType(value: WindowStatusType): void { let valueSerializer: Serializer = this const value__WindowStatusTypeStub = value._WindowStatusTypeStub @@ -8431,17 +8665,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -8495,12 +8729,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -8557,17 +8791,17 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type: int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((RuntimeType.NUMBER == value_curve_value_type))) { + if (RuntimeType.NUMBER == value_curve_value_type) { valueSerializer.writeInt8(0) const value_curve_value_0 = unsafeCast(value_curve_value) valueSerializer.writeInt32(value_curve_value_0) } - else if (((RuntimeType.STRING == value_curve_value_type))) { + else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1) const value_curve_value_1 = unsafeCast(value_curve_value) valueSerializer.writeString(value_curve_value_1) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(2) const value_curve_value_2 = unsafeCast(value_curve_value) valueSerializer.writeICurve(value_curve_value_2) @@ -8622,6 +8856,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value) } } + writeComponent3DAttribute(value: Component3DAttribute): void { + } writeUIGestureEvent(value: UIGestureEvent): void { } writeVisibleAreaEventOptions(value: VisibleAreaEventOptions): void { @@ -8657,6 +8893,33 @@ export class Serializer extends SerializerBase { const value__RectShapeStub = value._RectShapeStub valueSerializer.writeString(value__RectShapeStub) } + writeCaretOffset(value: CaretOffset): void { + let valueSerializer: Serializer = this + const value_index = value.index + valueSerializer.writeNumber(value_index) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } + writeDirectionalEdgesT(value: DirectionalEdgesT): void { + let valueSerializer: Serializer = this + const value_start = value.start + valueSerializer.writeNumber(value_start) + const value_end = value.end + valueSerializer.writeNumber(value_end) + const value_top = value.top + valueSerializer.writeNumber(value_top) + const value_bottom = value.bottom + valueSerializer.writeNumber(value_bottom) + } + writeMeasureResult(value: MeasureResult): void { + let valueSerializer: Serializer = this + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeConstraintSizeOptions(value: ConstraintSizeOptions): void { let valueSerializer: Serializer = this const value_minWidth = value.minWidth @@ -8718,17 +8981,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -8806,17 +9069,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = unsafeCast(value_maskColor_value) valueSerializer.writeInt32(value_maskColor_value_0) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1) const value_maskColor_value_1 = unsafeCast(value_maskColor_value) valueSerializer.writeNumber(value_maskColor_value_1) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(2) const value_maskColor_value_2 = unsafeCast(value_maskColor_value) valueSerializer.writeString(value_maskColor_value_2) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(3) const value_maskColor_value_3 = unsafeCast(value_maskColor_value) valueSerializer.writeResource(value_maskColor_value_3) @@ -8896,12 +9159,12 @@ export class Serializer extends SerializerBase { const value_showClose_value = value_showClose! let value_showClose_value_type: int32 = RuntimeType.UNDEFINED value_showClose_value_type = runtimeType(value_showClose_value) - if (((RuntimeType.BOOLEAN == value_showClose_value_type))) { + if (RuntimeType.BOOLEAN == value_showClose_value_type) { valueSerializer.writeInt8(0) const value_showClose_value_0 = unsafeCast(value_showClose_value) valueSerializer.writeBoolean(value_showClose_value_0) } - else if (((RuntimeType.OBJECT == value_showClose_value_type))) { + else if (RuntimeType.OBJECT == value_showClose_value_type) { valueSerializer.writeInt8(1) const value_showClose_value_1 = unsafeCast(value_showClose_value) valueSerializer.writeResource(value_showClose_value_1) @@ -8923,12 +9186,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.OBJECT == value_title_value_type))) { + if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeSheetTitleOptions(value_title_value_0) } - else if (((RuntimeType.FUNCTION == value_title_value_type))) { + else if (RuntimeType.FUNCTION == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_title_value_1)) @@ -9037,7 +9300,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -9047,17 +9310,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -9079,17 +9342,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -9108,17 +9371,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -9137,17 +9400,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -9166,17 +9429,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -9197,12 +9460,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -9247,12 +9510,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -9338,17 +9601,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9453,12 +9716,12 @@ export class Serializer extends SerializerBase { const value_preview_value = value_preview! let value_preview_value_type: int32 = RuntimeType.UNDEFINED value_preview_value_type = runtimeType(value_preview_value) - if (((RuntimeType.NUMBER == value_preview_value_type))) { + if (RuntimeType.NUMBER == value_preview_value_type) { valueSerializer.writeInt8(0) const value_preview_value_0 = unsafeCast(value_preview_value) valueSerializer.writeInt32(value_preview_value_0) } - else if (((RuntimeType.FUNCTION == value_preview_value_type))) { + else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1) const value_preview_value_1 = unsafeCast(value_preview_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_preview_value_1)) @@ -9611,17 +9874,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9694,12 +9957,12 @@ export class Serializer extends SerializerBase { const value_preview_value = value_preview! let value_preview_value_type: int32 = RuntimeType.UNDEFINED value_preview_value_type = runtimeType(value_preview_value) - if (((RuntimeType.NUMBER == value_preview_value_type))) { + if (RuntimeType.NUMBER == value_preview_value_type) { valueSerializer.writeInt8(0) const value_preview_value_0 = unsafeCast(value_preview_value) valueSerializer.writeInt32(value_preview_value_0) } - else if (((RuntimeType.FUNCTION == value_preview_value_type))) { + else if (RuntimeType.FUNCTION == value_preview_value_type) { valueSerializer.writeInt8(1) const value_preview_value_1 = unsafeCast(value_preview_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_preview_value_1)) @@ -9852,17 +10115,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -9900,12 +10163,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.writeResource(value_title_value_1) @@ -9945,17 +10208,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = unsafeCast(value_maskColor_value) valueSerializer.writeInt32(value_maskColor_value_0) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(1) const value_maskColor_value_1 = unsafeCast(value_maskColor_value) valueSerializer.writeString(value_maskColor_value_1) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(2) const value_maskColor_value_2 = unsafeCast(value_maskColor_value) valueSerializer.writeResource(value_maskColor_value_2) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(3) const value_maskColor_value_3 = unsafeCast(value_maskColor_value) valueSerializer.writeNumber(value_maskColor_value_3) @@ -9974,17 +10237,17 @@ export class Serializer extends SerializerBase { const value_popupColor_value_0 = unsafeCast(value_popupColor_value) valueSerializer.writeInt32(value_popupColor_value_0) } - else if (((RuntimeType.STRING == value_popupColor_value_type))) { + else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1) const value_popupColor_value_1 = unsafeCast(value_popupColor_value) valueSerializer.writeString(value_popupColor_value_1) } - else if (((RuntimeType.OBJECT == value_popupColor_value_type))) { + else if (RuntimeType.OBJECT == value_popupColor_value_type) { valueSerializer.writeInt8(2) const value_popupColor_value_2 = unsafeCast(value_popupColor_value) valueSerializer.writeResource(value_popupColor_value_2) } - else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + else if (RuntimeType.NUMBER == value_popupColor_value_type) { valueSerializer.writeInt8(3) const value_popupColor_value_3 = unsafeCast(value_popupColor_value) valueSerializer.writeNumber(value_popupColor_value_3) @@ -10038,12 +10301,12 @@ export class Serializer extends SerializerBase { const value_mask_value = value_mask! let value_mask_value_type: int32 = RuntimeType.UNDEFINED value_mask_value_type = runtimeType(value_mask_value) - if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + if (RuntimeType.BOOLEAN == value_mask_value_type) { valueSerializer.writeInt8(0) const value_mask_value_0 = unsafeCast(value_mask_value) valueSerializer.writeBoolean(value_mask_value_0) } - else if (((RuntimeType.OBJECT == value_mask_value_type))) { + else if (RuntimeType.OBJECT == value_mask_value_type) { valueSerializer.writeInt8(1) const value_mask_value_1 = unsafeCast<{ color: ResourceColor }>(value_mask_value) const value_mask_value_1_color = value_mask_value_1.color @@ -10054,17 +10317,17 @@ export class Serializer extends SerializerBase { const value_mask_value_1_color_0 = unsafeCast(value_mask_value_1_color) valueSerializer.writeInt32(value_mask_value_1_color_0) } - else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1) const value_mask_value_1_color_1 = unsafeCast(value_mask_value_1_color) valueSerializer.writeNumber(value_mask_value_1_color_1) } - else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + else if (RuntimeType.STRING == value_mask_value_1_color_type) { valueSerializer.writeInt8(2) const value_mask_value_1_color_2 = unsafeCast(value_mask_value_1_color) valueSerializer.writeString(value_mask_value_1_color_2) } - else if (((RuntimeType.OBJECT == value_mask_value_1_color_type))) { + else if (RuntimeType.OBJECT == value_mask_value_1_color_type) { valueSerializer.writeInt8(3) const value_mask_value_1_color_3 = unsafeCast(value_mask_value_1_color) valueSerializer.writeResource(value_mask_value_1_color_3) @@ -10135,12 +10398,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -10178,12 +10441,12 @@ export class Serializer extends SerializerBase { const value_onWillDismiss_value = value_onWillDismiss! let value_onWillDismiss_value_type: int32 = RuntimeType.UNDEFINED value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) - if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + if (RuntimeType.BOOLEAN == value_onWillDismiss_value_type) { valueSerializer.writeInt8(0) const value_onWillDismiss_value_0 = unsafeCast(value_onWillDismiss_value) valueSerializer.writeBoolean(value_onWillDismiss_value_0) } - else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + else if (RuntimeType.FUNCTION == value_onWillDismiss_value_type) { valueSerializer.writeInt8(1) const value_onWillDismiss_value_1 = unsafeCast<((parameter: DismissPopupAction) => void)>(value_onWillDismiss_value) valueSerializer.holdAndWriteCallback(value_onWillDismiss_value_1) @@ -10280,12 +10543,12 @@ export class Serializer extends SerializerBase { const value_mask_value = value_mask! let value_mask_value_type: int32 = RuntimeType.UNDEFINED value_mask_value_type = runtimeType(value_mask_value) - if (((RuntimeType.BOOLEAN == value_mask_value_type))) { + if (RuntimeType.BOOLEAN == value_mask_value_type) { valueSerializer.writeInt8(0) const value_mask_value_0 = unsafeCast(value_mask_value) valueSerializer.writeBoolean(value_mask_value_0) } - else if (((RuntimeType.OBJECT == value_mask_value_type))) { + else if (RuntimeType.OBJECT == value_mask_value_type) { valueSerializer.writeInt8(1) const value_mask_value_1 = unsafeCast<{ color: ResourceColor }>(value_mask_value) const value_mask_value_1_color = value_mask_value_1.color @@ -10296,17 +10559,17 @@ export class Serializer extends SerializerBase { const value_mask_value_1_color_0 = unsafeCast(value_mask_value_1_color) valueSerializer.writeInt32(value_mask_value_1_color_0) } - else if (((RuntimeType.NUMBER == value_mask_value_1_color_type))) { + else if (RuntimeType.NUMBER == value_mask_value_1_color_type) { valueSerializer.writeInt8(1) const value_mask_value_1_color_1 = unsafeCast(value_mask_value_1_color) valueSerializer.writeNumber(value_mask_value_1_color_1) } - else if (((RuntimeType.STRING == value_mask_value_1_color_type))) { + else if (RuntimeType.STRING == value_mask_value_1_color_type) { valueSerializer.writeInt8(2) const value_mask_value_1_color_2 = unsafeCast(value_mask_value_1_color) valueSerializer.writeString(value_mask_value_1_color_2) } - else if (((RuntimeType.OBJECT == value_mask_value_1_color_type))) { + else if (RuntimeType.OBJECT == value_mask_value_1_color_type) { valueSerializer.writeInt8(3) const value_mask_value_1_color_3 = unsafeCast(value_mask_value_1_color) valueSerializer.writeResource(value_mask_value_1_color_3) @@ -10358,17 +10621,17 @@ export class Serializer extends SerializerBase { const value_popupColor_value_0 = unsafeCast(value_popupColor_value) valueSerializer.writeInt32(value_popupColor_value_0) } - else if (((RuntimeType.STRING == value_popupColor_value_type))) { + else if (RuntimeType.STRING == value_popupColor_value_type) { valueSerializer.writeInt8(1) const value_popupColor_value_1 = unsafeCast(value_popupColor_value) valueSerializer.writeString(value_popupColor_value_1) } - else if (((RuntimeType.OBJECT == value_popupColor_value_type))) { + else if (RuntimeType.OBJECT == value_popupColor_value_type) { valueSerializer.writeInt8(2) const value_popupColor_value_2 = unsafeCast(value_popupColor_value) valueSerializer.writeResource(value_popupColor_value_2) } - else if (((RuntimeType.NUMBER == value_popupColor_value_type))) { + else if (RuntimeType.NUMBER == value_popupColor_value_type) { valueSerializer.writeInt8(3) const value_popupColor_value_3 = unsafeCast(value_popupColor_value) valueSerializer.writeNumber(value_popupColor_value_3) @@ -10430,12 +10693,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -10465,12 +10728,12 @@ export class Serializer extends SerializerBase { const value_onWillDismiss_value = value_onWillDismiss! let value_onWillDismiss_value_type: int32 = RuntimeType.UNDEFINED value_onWillDismiss_value_type = runtimeType(value_onWillDismiss_value) - if (((RuntimeType.BOOLEAN == value_onWillDismiss_value_type))) { + if (RuntimeType.BOOLEAN == value_onWillDismiss_value_type) { valueSerializer.writeInt8(0) const value_onWillDismiss_value_0 = unsafeCast(value_onWillDismiss_value) valueSerializer.writeBoolean(value_onWillDismiss_value_0) } - else if (((RuntimeType.FUNCTION == value_onWillDismiss_value_type))) { + else if (RuntimeType.FUNCTION == value_onWillDismiss_value_type) { valueSerializer.writeInt8(1) const value_onWillDismiss_value_1 = unsafeCast<((parameter: DismissPopupAction) => void)>(value_onWillDismiss_value) valueSerializer.holdAndWriteCallback(value_onWillDismiss_value_1) @@ -10565,12 +10828,12 @@ export class Serializer extends SerializerBase { const value_mode_value = value_mode! let value_mode_value_type: int32 = RuntimeType.UNDEFINED value_mode_value_type = runtimeType(value_mode_value) - if (((RuntimeType.NUMBER == value_mode_value_type))) { + if (RuntimeType.NUMBER == value_mode_value_type) { valueSerializer.writeInt8(0) const value_mode_value_0 = unsafeCast(value_mode_value) valueSerializer.writeInt32(value_mode_value_0) } - else if (((RuntimeType.OBJECT == value_mode_value_type))) { + else if (RuntimeType.OBJECT == value_mode_value_type) { valueSerializer.writeInt8(1) const value_mode_value_1 = unsafeCast>(value_mode_value) valueSerializer.writeInt32(value_mode_value_1.length) @@ -10596,12 +10859,12 @@ export class Serializer extends SerializerBase { const value_numberBadge_value = value_numberBadge! let value_numberBadge_value_type: int32 = RuntimeType.UNDEFINED value_numberBadge_value_type = runtimeType(value_numberBadge_value) - if (((RuntimeType.BOOLEAN == value_numberBadge_value_type))) { + if (RuntimeType.BOOLEAN == value_numberBadge_value_type) { valueSerializer.writeInt8(0) const value_numberBadge_value_0 = unsafeCast(value_numberBadge_value) valueSerializer.writeBoolean(value_numberBadge_value_0) } - else if (((RuntimeType.NUMBER == value_numberBadge_value_type))) { + else if (RuntimeType.NUMBER == value_numberBadge_value_type) { valueSerializer.writeInt8(1) const value_numberBadge_value_1 = unsafeCast(value_numberBadge_value) valueSerializer.writeNumber(value_numberBadge_value_1) @@ -10626,17 +10889,17 @@ export class Serializer extends SerializerBase { const value_curve_value = value_curve! let value_curve_value_type: int32 = RuntimeType.UNDEFINED value_curve_value_type = runtimeType(value_curve_value) - if (((RuntimeType.NUMBER == value_curve_value_type))) { + if (RuntimeType.NUMBER == value_curve_value_type) { valueSerializer.writeInt8(0) const value_curve_value_0 = unsafeCast(value_curve_value) valueSerializer.writeInt32(value_curve_value_0) } - else if (((RuntimeType.STRING == value_curve_value_type))) { + else if (RuntimeType.STRING == value_curve_value_type) { valueSerializer.writeInt8(1) const value_curve_value_1 = unsafeCast(value_curve_value) valueSerializer.writeString(value_curve_value_1) } - else if (((RuntimeType.OBJECT == value_curve_value_type))) { + else if (RuntimeType.OBJECT == value_curve_value_type) { valueSerializer.writeInt8(2) const value_curve_value_2 = unsafeCast(value_curve_value) valueSerializer.writeICurve(value_curve_value_2) @@ -10909,21 +11172,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeRotateOptions(value_rotate_value) } } - writeDrawingLattice(value: DrawingLattice): void { - let valueSerializer: Serializer = this - const value__DrawingLatticeStub = value._DrawingLatticeStub - valueSerializer.writeString(value__DrawingLatticeStub) - } - writeRectResult(value: RectResult): void { - let valueSerializer: Serializer = this - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) - const value_width = value.width - valueSerializer.writeNumber(value_width) - const value_height = value.height - valueSerializer.writeNumber(value_height) + writeDrawingLattice(value: DrawingLattice): void { + let valueSerializer: Serializer = this + const value__DrawingLatticeStub = value._DrawingLatticeStub + valueSerializer.writeString(value__DrawingLatticeStub) } writeDrawModifier(value: DrawModifier): void { let valueSerializer: Serializer = this @@ -10947,6 +11199,11 @@ export class Serializer extends SerializerBase { const value__IntentionCodeStub = value._IntentionCodeStub valueSerializer.writeString(value__IntentionCodeStub) } + writeSummary(value: Summary): void { + let valueSerializer: Serializer = this + const value__SummaryStub = value._SummaryStub + valueSerializer.writeString(value__SummaryStub) + } writeUnifiedData(value: UnifiedData): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -10964,6 +11221,29 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTouchObject(value: TouchObject): void { + let valueSerializer: Serializer = this + const value_type = value.type + valueSerializer.writeInt32(value_type) + const value_id = value.id + valueSerializer.writeNumber(value_id) + const value_displayX = value.displayX + valueSerializer.writeNumber(value_displayX) + const value_displayY = value.displayY + valueSerializer.writeNumber(value_displayY) + const value_windowX = value.windowX + valueSerializer.writeNumber(value_windowX) + const value_windowY = value.windowY + valueSerializer.writeNumber(value_windowY) + const value_screenX = value.screenX + valueSerializer.writeNumber(value_screenX) + const value_screenY = value.screenY + valueSerializer.writeNumber(value_screenY) + const value_x = value.x + valueSerializer.writeNumber(value_x) + const value_y = value.y + valueSerializer.writeNumber(value_y) + } writeColumnSplitDividerStyle(value: ColumnSplitDividerStyle): void { let valueSerializer: Serializer = this const value_startMargin = value.startMargin @@ -11006,17 +11286,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -11057,6 +11337,40 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeOffscreenCanvasRenderingContext2D(value: OffscreenCanvasRenderingContext2D): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } + writeRenderingContextSettings(value: RenderingContextSettings): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeImageBitmap(value: ImageBitmap): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -11074,6 +11388,35 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } + writeTextMetrics(value: TextMetrics): void { + let valueSerializer: Serializer = this + const value_actualBoundingBoxAscent = value.actualBoundingBoxAscent + valueSerializer.writeNumber(value_actualBoundingBoxAscent) + const value_actualBoundingBoxDescent = value.actualBoundingBoxDescent + valueSerializer.writeNumber(value_actualBoundingBoxDescent) + const value_actualBoundingBoxLeft = value.actualBoundingBoxLeft + valueSerializer.writeNumber(value_actualBoundingBoxLeft) + const value_actualBoundingBoxRight = value.actualBoundingBoxRight + valueSerializer.writeNumber(value_actualBoundingBoxRight) + const value_alphabeticBaseline = value.alphabeticBaseline + valueSerializer.writeNumber(value_alphabeticBaseline) + const value_emHeightAscent = value.emHeightAscent + valueSerializer.writeNumber(value_emHeightAscent) + const value_emHeightDescent = value.emHeightDescent + valueSerializer.writeNumber(value_emHeightDescent) + const value_fontBoundingBoxAscent = value.fontBoundingBoxAscent + valueSerializer.writeNumber(value_fontBoundingBoxAscent) + const value_fontBoundingBoxDescent = value.fontBoundingBoxDescent + valueSerializer.writeNumber(value_fontBoundingBoxDescent) + const value_hangingBaseline = value.hangingBaseline + valueSerializer.writeNumber(value_hangingBaseline) + const value_ideographicBaseline = value.ideographicBaseline + valueSerializer.writeNumber(value_ideographicBaseline) + const value_width = value.width + valueSerializer.writeNumber(value_width) + const value_height = value.height + valueSerializer.writeNumber(value_height) + } writeImageData(value: ImageData): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -11118,12 +11461,12 @@ export class Serializer extends SerializerBase { const value_hintRadius_value = value_hintRadius! let value_hintRadius_value_type: int32 = RuntimeType.UNDEFINED value_hintRadius_value_type = runtimeType(value_hintRadius_value) - if (((RuntimeType.NUMBER == value_hintRadius_value_type))) { + if (RuntimeType.NUMBER == value_hintRadius_value_type) { valueSerializer.writeInt8(0) const value_hintRadius_value_0 = unsafeCast(value_hintRadius_value) valueSerializer.writeNumber(value_hintRadius_value_0) } - else if (((RuntimeType.OBJECT == value_hintRadius_value_type))) { + else if (RuntimeType.OBJECT == value_hintRadius_value_type) { valueSerializer.writeInt8(1) const value_hintRadius_value_1 = unsafeCast(value_hintRadius_value) valueSerializer.writeResource(value_hintRadius_value_1) @@ -11174,17 +11517,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -11254,12 +11597,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -11282,6 +11625,8 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_hoverModeArea_value) } } + writeCalendarPickerAttribute(value: CalendarPickerAttribute): void { + } writeCalendarController(value: CalendarController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -11327,17 +11672,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -11351,12 +11696,12 @@ export class Serializer extends SerializerBase { const value_fontSize_value = value_fontSize! let value_fontSize_value_type: int32 = RuntimeType.UNDEFINED value_fontSize_value_type = runtimeType(value_fontSize_value) - if (((RuntimeType.NUMBER == value_fontSize_value_type))) { + if (RuntimeType.NUMBER == value_fontSize_value_type) { valueSerializer.writeInt8(0) const value_fontSize_value_0 = unsafeCast(value_fontSize_value) valueSerializer.writeNumber(value_fontSize_value_0) } - else if (((RuntimeType.STRING == value_fontSize_value_type))) { + else if (RuntimeType.STRING == value_fontSize_value_type) { valueSerializer.writeInt8(1) const value_fontSize_value_1 = unsafeCast(value_fontSize_value) valueSerializer.writeString(value_fontSize_value_1) @@ -11370,12 +11715,12 @@ export class Serializer extends SerializerBase { const value_badgeSize_value = value_badgeSize! let value_badgeSize_value_type: int32 = RuntimeType.UNDEFINED value_badgeSize_value_type = runtimeType(value_badgeSize_value) - if (((RuntimeType.NUMBER == value_badgeSize_value_type))) { + if (RuntimeType.NUMBER == value_badgeSize_value_type) { valueSerializer.writeInt8(0) const value_badgeSize_value_0 = unsafeCast(value_badgeSize_value) valueSerializer.writeNumber(value_badgeSize_value_0) } - else if (((RuntimeType.STRING == value_badgeSize_value_type))) { + else if (RuntimeType.STRING == value_badgeSize_value_type) { valueSerializer.writeInt8(1) const value_badgeSize_value_1 = unsafeCast(value_badgeSize_value) valueSerializer.writeString(value_badgeSize_value_1) @@ -11394,17 +11739,17 @@ export class Serializer extends SerializerBase { const value_badgeColor_value_0 = unsafeCast(value_badgeColor_value) valueSerializer.writeInt32(value_badgeColor_value_0) } - else if (((RuntimeType.NUMBER == value_badgeColor_value_type))) { + else if (RuntimeType.NUMBER == value_badgeColor_value_type) { valueSerializer.writeInt8(1) const value_badgeColor_value_1 = unsafeCast(value_badgeColor_value) valueSerializer.writeNumber(value_badgeColor_value_1) } - else if (((RuntimeType.STRING == value_badgeColor_value_type))) { + else if (RuntimeType.STRING == value_badgeColor_value_type) { valueSerializer.writeInt8(2) const value_badgeColor_value_2 = unsafeCast(value_badgeColor_value) valueSerializer.writeString(value_badgeColor_value_2) } - else if (((RuntimeType.OBJECT == value_badgeColor_value_type))) { + else if (RuntimeType.OBJECT == value_badgeColor_value_type) { valueSerializer.writeInt8(3) const value_badgeColor_value_3 = unsafeCast(value_badgeColor_value) valueSerializer.writeResource(value_badgeColor_value_3) @@ -11423,17 +11768,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0 = unsafeCast(value_borderColor_value) valueSerializer.writeInt32(value_borderColor_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1 = unsafeCast(value_borderColor_value) valueSerializer.writeNumber(value_borderColor_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_2 = unsafeCast(value_borderColor_value) valueSerializer.writeString(value_borderColor_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_3 = unsafeCast(value_borderColor_value) valueSerializer.writeResource(value_borderColor_value_3) @@ -11455,7 +11800,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type: int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0) const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_0) @@ -11465,13 +11810,15 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) } } } + writeAlphabetIndexerAttribute(value: AlphabetIndexerAttribute): void { + } writeAlertDialogParamWithOptions(value: AlertDialogParamWithOptions): void { let valueSerializer: Serializer = this const value_title = value.title @@ -11482,12 +11829,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.writeResource(value_title_value_1) @@ -11501,12 +11848,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -11515,12 +11862,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type: int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0) const value_message_0 = unsafeCast(value_message) valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1) const value_message_1 = unsafeCast(value_message) valueSerializer.writeResource(value_message_1) @@ -11605,17 +11952,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -11779,7 +12126,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -11789,17 +12136,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -11821,17 +12168,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -11850,17 +12197,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -11879,17 +12226,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -11908,17 +12255,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -11939,12 +12286,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -11989,12 +12336,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -12049,12 +12396,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.writeResource(value_title_value_1) @@ -12068,12 +12415,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -12082,12 +12429,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type: int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0) const value_message_0 = unsafeCast(value_message) valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1) const value_message_1 = unsafeCast(value_message) valueSerializer.writeResource(value_message_1) @@ -12172,17 +12519,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -12346,7 +12693,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -12356,17 +12703,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -12388,17 +12735,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -12417,17 +12764,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -12446,17 +12793,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -12475,17 +12822,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -12506,12 +12853,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -12556,12 +12903,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -12606,12 +12953,12 @@ export class Serializer extends SerializerBase { const value_title_value = value_title! let value_title_value_type: int32 = RuntimeType.UNDEFINED value_title_value_type = runtimeType(value_title_value) - if (((RuntimeType.STRING == value_title_value_type))) { + if (RuntimeType.STRING == value_title_value_type) { valueSerializer.writeInt8(0) const value_title_value_0 = unsafeCast(value_title_value) valueSerializer.writeString(value_title_value_0) } - else if (((RuntimeType.OBJECT == value_title_value_type))) { + else if (RuntimeType.OBJECT == value_title_value_type) { valueSerializer.writeInt8(1) const value_title_value_1 = unsafeCast(value_title_value) valueSerializer.writeResource(value_title_value_1) @@ -12625,12 +12972,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -12639,12 +12986,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type: int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0) const value_message_0 = unsafeCast(value_message) valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1) const value_message_1 = unsafeCast(value_message) valueSerializer.writeResource(value_message_1) @@ -12729,17 +13076,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -12903,7 +13250,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -12913,17 +13260,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -12945,17 +13292,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -12974,17 +13321,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -13003,17 +13350,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -13032,17 +13379,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -13063,12 +13410,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -13113,12 +13460,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -13162,12 +13509,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type: int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0) const value_title_0 = unsafeCast(value_title) valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1) const value_title_1 = unsafeCast(value_title) valueSerializer.writeResource(value_title_1) @@ -13180,12 +13527,12 @@ export class Serializer extends SerializerBase { const value_subtitle_value = value_subtitle! let value_subtitle_value_type: int32 = RuntimeType.UNDEFINED value_subtitle_value_type = runtimeType(value_subtitle_value) - if (((RuntimeType.STRING == value_subtitle_value_type))) { + if (RuntimeType.STRING == value_subtitle_value_type) { valueSerializer.writeInt8(0) const value_subtitle_value_0 = unsafeCast(value_subtitle_value) valueSerializer.writeString(value_subtitle_value_0) } - else if (((RuntimeType.OBJECT == value_subtitle_value_type))) { + else if (RuntimeType.OBJECT == value_subtitle_value_type) { valueSerializer.writeInt8(1) const value_subtitle_value_1 = unsafeCast(value_subtitle_value) valueSerializer.writeResource(value_subtitle_value_1) @@ -13194,12 +13541,12 @@ export class Serializer extends SerializerBase { const value_message = value.message let value_message_type: int32 = RuntimeType.UNDEFINED value_message_type = runtimeType(value_message) - if (((RuntimeType.STRING == value_message_type))) { + if (RuntimeType.STRING == value_message_type) { valueSerializer.writeInt8(0) const value_message_0 = unsafeCast(value_message) valueSerializer.writeString(value_message_0) } - else if (((RuntimeType.OBJECT == value_message_type))) { + else if (RuntimeType.OBJECT == value_message_type) { valueSerializer.writeInt8(1) const value_message_1 = unsafeCast(value_message) valueSerializer.writeResource(value_message_1) @@ -13287,17 +13634,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -13461,7 +13808,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -13471,17 +13818,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -13503,17 +13850,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -13532,17 +13879,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -13561,17 +13908,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -13590,17 +13937,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -13621,12 +13968,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -13671,12 +14018,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -13750,17 +14097,17 @@ export class Serializer extends SerializerBase { const value_curve = value.curve let value_curve_type: int32 = RuntimeType.UNDEFINED value_curve_type = runtimeType(value_curve) - if (((RuntimeType.NUMBER == value_curve_type))) { + if (RuntimeType.NUMBER == value_curve_type) { valueSerializer.writeInt8(0) const value_curve_0 = unsafeCast(value_curve) valueSerializer.writeInt32(value_curve_0) } - else if (((RuntimeType.STRING == value_curve_type))) { + else if (RuntimeType.STRING == value_curve_type) { valueSerializer.writeInt8(1) const value_curve_1 = unsafeCast(value_curve) valueSerializer.writeString(value_curve_1) } - else if (((RuntimeType.OBJECT == value_curve_type))) { + else if (RuntimeType.OBJECT == value_curve_type) { valueSerializer.writeInt8(2) const value_curve_2 = unsafeCast(value_curve) valueSerializer.writeICurve(value_curve_2) @@ -13866,23 +14213,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value) } } - writeMutableStyledString(value: MutableStyledString): void { - let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeUrlStyle(value: UrlStyle): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -13972,7 +14302,7 @@ export class Serializer extends SerializerBase { const value_leadingMargin_value_0 = unsafeCast(value_leadingMargin_value) valueSerializer.writeLengthMetrics(value_leadingMargin_value_0) } - else if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && (((value_leadingMargin_value!.hasOwnProperty("pixelMap"))))) { + else if (((RuntimeType.OBJECT) == (value_leadingMargin_value_type)) && ((value_leadingMargin_value!.hasOwnProperty("pixelMap")))) { valueSerializer.writeInt8(1) const value_leadingMargin_value_1 = unsafeCast(value_leadingMargin_value) valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1) @@ -14132,17 +14462,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -14156,12 +14486,12 @@ export class Serializer extends SerializerBase { const value_fontFamily_value = value_fontFamily! let value_fontFamily_value_type: int32 = RuntimeType.UNDEFINED value_fontFamily_value_type = runtimeType(value_fontFamily_value) - if (((RuntimeType.STRING == value_fontFamily_value_type))) { + if (RuntimeType.STRING == value_fontFamily_value_type) { valueSerializer.writeInt8(0) const value_fontFamily_value_0 = unsafeCast(value_fontFamily_value) valueSerializer.writeString(value_fontFamily_value_0) } - else if (((RuntimeType.OBJECT == value_fontFamily_value_type))) { + else if (RuntimeType.OBJECT == value_fontFamily_value_type) { valueSerializer.writeInt8(1) const value_fontFamily_value_1 = unsafeCast(value_fontFamily_value) valueSerializer.writeResource(value_fontFamily_value_1) @@ -14183,7 +14513,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value = value_fontWeight! let value_fontWeight_value_type: int32 = RuntimeType.UNDEFINED value_fontWeight_value_type = runtimeType(value_fontWeight_value) - if (((RuntimeType.NUMBER == value_fontWeight_value_type))) { + if (RuntimeType.NUMBER == value_fontWeight_value_type) { valueSerializer.writeInt8(0) const value_fontWeight_value_0 = unsafeCast(value_fontWeight_value) valueSerializer.writeNumber(value_fontWeight_value_0) @@ -14193,7 +14523,7 @@ export class Serializer extends SerializerBase { const value_fontWeight_value_1 = unsafeCast(value_fontWeight_value) valueSerializer.writeInt32(value_fontWeight_value_1) } - else if (((RuntimeType.STRING == value_fontWeight_value_type))) { + else if (RuntimeType.STRING == value_fontWeight_value_type) { valueSerializer.writeInt8(2) const value_fontWeight_value_2 = unsafeCast(value_fontWeight_value) valueSerializer.writeString(value_fontWeight_value_2) @@ -14461,12 +14791,12 @@ export class Serializer extends SerializerBase { const value_content = value.content let value_content_type: int32 = RuntimeType.UNDEFINED value_content_type = runtimeType(value_content) - if (((RuntimeType.STRING == value_content_type))) { + if (RuntimeType.STRING == value_content_type) { valueSerializer.writeInt8(0) const value_content_0 = unsafeCast(value_content) valueSerializer.writeString(value_content_0) } - else if (((RuntimeType.OBJECT == value_content_type))) { + else if (RuntimeType.OBJECT == value_content_type) { valueSerializer.writeInt8(1) const value_content_1 = unsafeCast(value_content) valueSerializer.writeResource(value_content_1) @@ -14479,12 +14809,12 @@ export class Serializer extends SerializerBase { const value_startIcon_value = value_startIcon! let value_startIcon_value_type: int32 = RuntimeType.UNDEFINED value_startIcon_value_type = runtimeType(value_startIcon_value) - if (((RuntimeType.STRING == value_startIcon_value_type))) { + if (RuntimeType.STRING == value_startIcon_value_type) { valueSerializer.writeInt8(0) const value_startIcon_value_0 = unsafeCast(value_startIcon_value) valueSerializer.writeString(value_startIcon_value_0) } - else if (((RuntimeType.OBJECT == value_startIcon_value_type))) { + else if (RuntimeType.OBJECT == value_startIcon_value_type) { valueSerializer.writeInt8(1) const value_startIcon_value_1 = unsafeCast(value_startIcon_value) valueSerializer.writeResource(value_startIcon_value_1) @@ -15059,12 +15389,12 @@ export class Serializer extends SerializerBase { const value_src = value.src let value_src_type: int32 = RuntimeType.UNDEFINED value_src_type = runtimeType(value_src) - if (((RuntimeType.STRING == value_src_type))) { + if (RuntimeType.STRING == value_src_type) { valueSerializer.writeInt8(0) const value_src_0 = unsafeCast(value_src) valueSerializer.writeString(value_src_0) } - else if (((RuntimeType.OBJECT == value_src_type))) { + else if (RuntimeType.OBJECT == value_src_type) { valueSerializer.writeInt8(1) const value_src_1 = unsafeCast(value_src) valueSerializer.writeResource(value_src_1) @@ -15107,23 +15437,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_sharedRenderProcessToken_value) } } - writeWebCookie(value: WebCookie): void { - let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeHeader(value: Header): void { let valueSerializer: Serializer = this const value_headerKey = value.headerKey @@ -15156,12 +15469,12 @@ export class Serializer extends SerializerBase { const value_src_value = value_src! let value_src_value_type: int32 = RuntimeType.UNDEFINED value_src_value_type = runtimeType(value_src_value) - if (((RuntimeType.STRING == value_src_value_type))) { + if (RuntimeType.STRING == value_src_value_type) { valueSerializer.writeInt8(0) const value_src_value_0 = unsafeCast(value_src_value) valueSerializer.writeString(value_src_value_0) } - else if (((RuntimeType.OBJECT == value_src_value_type))) { + else if (RuntimeType.OBJECT == value_src_value_type) { valueSerializer.writeInt8(1) const value_src_value_1 = unsafeCast(value_src_value) valueSerializer.writeResource(value_src_value_1) @@ -15175,12 +15488,12 @@ export class Serializer extends SerializerBase { const value_currentProgressRate_value = value_currentProgressRate! let value_currentProgressRate_value_type: int32 = RuntimeType.UNDEFINED value_currentProgressRate_value_type = runtimeType(value_currentProgressRate_value) - if (((RuntimeType.NUMBER == value_currentProgressRate_value_type))) { + if (RuntimeType.NUMBER == value_currentProgressRate_value_type) { valueSerializer.writeInt8(0) const value_currentProgressRate_value_0 = unsafeCast(value_currentProgressRate_value) valueSerializer.writeNumber(value_currentProgressRate_value_0) } - else if (((RuntimeType.STRING == value_currentProgressRate_value_type))) { + else if (RuntimeType.STRING == value_currentProgressRate_value_type) { valueSerializer.writeInt8(1) const value_currentProgressRate_value_1 = unsafeCast(value_currentProgressRate_value) valueSerializer.writeString(value_currentProgressRate_value_1) @@ -15199,17 +15512,17 @@ export class Serializer extends SerializerBase { const value_previewUri_value = value_previewUri! let value_previewUri_value_type: int32 = RuntimeType.UNDEFINED value_previewUri_value_type = runtimeType(value_previewUri_value) - if (((RuntimeType.STRING == value_previewUri_value_type))) { + if (RuntimeType.STRING == value_previewUri_value_type) { valueSerializer.writeInt8(0) const value_previewUri_value_0 = unsafeCast(value_previewUri_value) valueSerializer.writeString(value_previewUri_value_0) } - else if (((RuntimeType.OBJECT) == (value_previewUri_value_type)) && (((value_previewUri_value!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_previewUri_value_type)) && ((value_previewUri_value!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(1) const value_previewUri_value_1 = unsafeCast(value_previewUri_value) valueSerializer.writePixelMap(value_previewUri_value_1) } - else if (((RuntimeType.OBJECT) == (value_previewUri_value_type)) && (((value_previewUri_value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_previewUri_value_type)) && ((value_previewUri_value!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_previewUri_value_2 = unsafeCast(value_previewUri_value) valueSerializer.writeResource(value_previewUri_value_2) @@ -15242,12 +15555,12 @@ export class Serializer extends SerializerBase { const value_pointRadius_value = value_pointRadius! let value_pointRadius_value_type: int32 = RuntimeType.UNDEFINED value_pointRadius_value_type = runtimeType(value_pointRadius_value) - if (((RuntimeType.NUMBER == value_pointRadius_value_type))) { + if (RuntimeType.NUMBER == value_pointRadius_value_type) { valueSerializer.writeInt8(0) const value_pointRadius_value_0 = unsafeCast(value_pointRadius_value) valueSerializer.writeNumber(value_pointRadius_value_0) } - else if (((RuntimeType.OBJECT == value_pointRadius_value_type))) { + else if (RuntimeType.OBJECT == value_pointRadius_value_type) { valueSerializer.writeInt8(1) const value_pointRadius_value_1 = unsafeCast(value_pointRadius_value) valueSerializer.writeResource(value_pointRadius_value_1) @@ -15266,17 +15579,17 @@ export class Serializer extends SerializerBase { const value_unselectedColor_value_0 = unsafeCast(value_unselectedColor_value) valueSerializer.writeInt32(value_unselectedColor_value_0) } - else if (((RuntimeType.NUMBER == value_unselectedColor_value_type))) { + else if (RuntimeType.NUMBER == value_unselectedColor_value_type) { valueSerializer.writeInt8(1) const value_unselectedColor_value_1 = unsafeCast(value_unselectedColor_value) valueSerializer.writeNumber(value_unselectedColor_value_1) } - else if (((RuntimeType.STRING == value_unselectedColor_value_type))) { + else if (RuntimeType.STRING == value_unselectedColor_value_type) { valueSerializer.writeInt8(2) const value_unselectedColor_value_2 = unsafeCast(value_unselectedColor_value) valueSerializer.writeString(value_unselectedColor_value_2) } - else if (((RuntimeType.OBJECT == value_unselectedColor_value_type))) { + else if (RuntimeType.OBJECT == value_unselectedColor_value_type) { valueSerializer.writeInt8(3) const value_unselectedColor_value_3 = unsafeCast(value_unselectedColor_value) valueSerializer.writeResource(value_unselectedColor_value_3) @@ -15295,17 +15608,17 @@ export class Serializer extends SerializerBase { const value_pointColor_value_0 = unsafeCast(value_pointColor_value) valueSerializer.writeInt32(value_pointColor_value_0) } - else if (((RuntimeType.NUMBER == value_pointColor_value_type))) { + else if (RuntimeType.NUMBER == value_pointColor_value_type) { valueSerializer.writeInt8(1) const value_pointColor_value_1 = unsafeCast(value_pointColor_value) valueSerializer.writeNumber(value_pointColor_value_1) } - else if (((RuntimeType.STRING == value_pointColor_value_type))) { + else if (RuntimeType.STRING == value_pointColor_value_type) { valueSerializer.writeInt8(2) const value_pointColor_value_2 = unsafeCast(value_pointColor_value) valueSerializer.writeString(value_pointColor_value_2) } - else if (((RuntimeType.OBJECT == value_pointColor_value_type))) { + else if (RuntimeType.OBJECT == value_pointColor_value_type) { valueSerializer.writeInt8(3) const value_pointColor_value_3 = unsafeCast(value_pointColor_value) valueSerializer.writeResource(value_pointColor_value_3) @@ -15319,12 +15632,12 @@ export class Serializer extends SerializerBase { const value_trackBorderRadius_value = value_trackBorderRadius! let value_trackBorderRadius_value_type: int32 = RuntimeType.UNDEFINED value_trackBorderRadius_value_type = runtimeType(value_trackBorderRadius_value) - if (((RuntimeType.NUMBER == value_trackBorderRadius_value_type))) { + if (RuntimeType.NUMBER == value_trackBorderRadius_value_type) { valueSerializer.writeInt8(0) const value_trackBorderRadius_value_0 = unsafeCast(value_trackBorderRadius_value) valueSerializer.writeNumber(value_trackBorderRadius_value_0) } - else if (((RuntimeType.OBJECT == value_trackBorderRadius_value_type))) { + else if (RuntimeType.OBJECT == value_trackBorderRadius_value_type) { valueSerializer.writeInt8(1) const value_trackBorderRadius_value_1 = unsafeCast(value_trackBorderRadius_value) valueSerializer.writeResource(value_trackBorderRadius_value_1) @@ -15421,12 +15734,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast>(value_value) valueSerializer.writeInt32(value_value_1.length) @@ -15438,12 +15751,12 @@ export class Serializer extends SerializerBase { const value_index = value.index let value_index_type: int32 = RuntimeType.UNDEFINED value_index_type = runtimeType(value_index) - if (((RuntimeType.NUMBER == value_index_type))) { + if (RuntimeType.NUMBER == value_index_type) { valueSerializer.writeInt8(0) const value_index_0 = unsafeCast(value_index) valueSerializer.writeNumber(value_index_0) } - else if (((RuntimeType.OBJECT == value_index_type))) { + else if (RuntimeType.OBJECT == value_index_type) { valueSerializer.writeInt8(1) const value_index_1 = unsafeCast>(value_index) valueSerializer.writeInt32(value_index_1.length) @@ -15475,12 +15788,12 @@ export class Serializer extends SerializerBase { const value_text = value.text let value_text_type: int32 = RuntimeType.UNDEFINED value_text_type = runtimeType(value_text) - if (((RuntimeType.STRING == value_text_type))) { + if (RuntimeType.STRING == value_text_type) { valueSerializer.writeInt8(0) const value_text_0 = unsafeCast(value_text) valueSerializer.writeString(value_text_0) } - else if (((RuntimeType.OBJECT == value_text_type))) { + else if (RuntimeType.OBJECT == value_text_type) { valueSerializer.writeInt8(1) const value_text_1 = unsafeCast(value_text) valueSerializer.writeResource(value_text_1) @@ -15503,12 +15816,12 @@ export class Serializer extends SerializerBase { const value_icon = value.icon let value_icon_type: int32 = RuntimeType.UNDEFINED value_icon_type = runtimeType(value_icon) - if (((RuntimeType.STRING == value_icon_type))) { + if (RuntimeType.STRING == value_icon_type) { valueSerializer.writeInt8(0) const value_icon_0 = unsafeCast(value_icon) valueSerializer.writeString(value_icon_0) } - else if (((RuntimeType.OBJECT == value_icon_type))) { + else if (RuntimeType.OBJECT == value_icon_type) { valueSerializer.writeInt8(1) const value_icon_1 = unsafeCast(value_icon) valueSerializer.writeResource(value_icon_1) @@ -15521,12 +15834,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type: int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0) const value_text_value_0 = unsafeCast(value_text_value) valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1) const value_text_value_1 = unsafeCast(value_text_value) valueSerializer.writeResource(value_text_value_1) @@ -15560,7 +15873,7 @@ export class Serializer extends SerializerBase { } } } - else if (((RuntimeType.OBJECT) == (value_range_type)) && (((value_range!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_range_type)) && ((value_range!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(2) const value_range_2 = unsafeCast(value_range) valueSerializer.writeResource(value_range_2) @@ -15591,12 +15904,12 @@ export class Serializer extends SerializerBase { const value_value_value = value_value! let value_value_value_type: int32 = RuntimeType.UNDEFINED value_value_value_type = runtimeType(value_value_value) - if (((RuntimeType.STRING == value_value_value_type))) { + if (RuntimeType.STRING == value_value_value_type) { valueSerializer.writeInt8(0) const value_value_value_0 = unsafeCast(value_value_value) valueSerializer.writeString(value_value_value_0) } - else if (((RuntimeType.OBJECT == value_value_value_type))) { + else if (RuntimeType.OBJECT == value_value_value_type) { valueSerializer.writeInt8(1) const value_value_value_1 = unsafeCast>(value_value_value) valueSerializer.writeInt32(value_value_value_1.length) @@ -15614,12 +15927,12 @@ export class Serializer extends SerializerBase { const value_selected_value = value_selected! let value_selected_value_type: int32 = RuntimeType.UNDEFINED value_selected_value_type = runtimeType(value_selected_value) - if (((RuntimeType.NUMBER == value_selected_value_type))) { + if (RuntimeType.NUMBER == value_selected_value_type) { valueSerializer.writeInt8(0) const value_selected_value_0 = unsafeCast(value_selected_value) valueSerializer.writeNumber(value_selected_value_0) } - else if (((RuntimeType.OBJECT == value_selected_value_type))) { + else if (RuntimeType.OBJECT == value_selected_value_type) { valueSerializer.writeInt8(1) const value_selected_value_1 = unsafeCast>(value_selected_value) valueSerializer.writeInt32(value_selected_value_1.length) @@ -15640,12 +15953,12 @@ export class Serializer extends SerializerBase { const value_onIconSrc_value = value_onIconSrc! let value_onIconSrc_value_type: int32 = RuntimeType.UNDEFINED value_onIconSrc_value_type = runtimeType(value_onIconSrc_value) - if (((RuntimeType.STRING == value_onIconSrc_value_type))) { + if (RuntimeType.STRING == value_onIconSrc_value_type) { valueSerializer.writeInt8(0) const value_onIconSrc_value_0 = unsafeCast(value_onIconSrc_value) valueSerializer.writeString(value_onIconSrc_value_0) } - else if (((RuntimeType.OBJECT == value_onIconSrc_value_type))) { + else if (RuntimeType.OBJECT == value_onIconSrc_value_type) { valueSerializer.writeInt8(1) const value_onIconSrc_value_1 = unsafeCast(value_onIconSrc_value) valueSerializer.writeResource(value_onIconSrc_value_1) @@ -15659,12 +15972,12 @@ export class Serializer extends SerializerBase { const value_offIconSrc_value = value_offIconSrc! let value_offIconSrc_value_type: int32 = RuntimeType.UNDEFINED value_offIconSrc_value_type = runtimeType(value_offIconSrc_value) - if (((RuntimeType.STRING == value_offIconSrc_value_type))) { + if (RuntimeType.STRING == value_offIconSrc_value_type) { valueSerializer.writeInt8(0) const value_offIconSrc_value_0 = unsafeCast(value_offIconSrc_value) valueSerializer.writeString(value_offIconSrc_value_0) } - else if (((RuntimeType.OBJECT == value_offIconSrc_value_type))) { + else if (RuntimeType.OBJECT == value_offIconSrc_value_type) { valueSerializer.writeInt8(1) const value_offIconSrc_value_1 = unsafeCast(value_offIconSrc_value) valueSerializer.writeResource(value_offIconSrc_value_1) @@ -15681,12 +15994,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type: int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0) const value_placeholder_value_0 = unsafeCast(value_placeholder_value) valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1) const value_placeholder_value_1 = unsafeCast(value_placeholder_value) valueSerializer.writeResource(value_placeholder_value_1) @@ -15700,12 +16013,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type: int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0) const value_text_value_0 = unsafeCast(value_text_value) valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1) const value_text_value_1 = unsafeCast(value_text_value) valueSerializer.writeResource(value_text_value_1) @@ -15720,22 +16033,10 @@ export class Serializer extends SerializerBase { valueSerializer.writeTextInputController(value_controller_value) } } - writeLayoutManager(value: LayoutManager): void { + writeTextBox(value: TextBox): void { let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } + const value__TextBoxStub = value._TextBoxStub + valueSerializer.writeString(value__TextBoxStub) } writeStyledStringController(value: StyledStringController): void { let valueSerializer: Serializer = this @@ -15817,12 +16118,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type: int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0) const value_placeholder_value_0 = unsafeCast(value_placeholder_value) valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1) const value_placeholder_value_1 = unsafeCast(value_placeholder_value) valueSerializer.writeResource(value_placeholder_value_1) @@ -15836,12 +16137,12 @@ export class Serializer extends SerializerBase { const value_text_value = value_text! let value_text_value_type: int32 = RuntimeType.UNDEFINED value_text_value_type = runtimeType(value_text_value) - if (((RuntimeType.STRING == value_text_value_type))) { + if (RuntimeType.STRING == value_text_value_type) { valueSerializer.writeInt8(0) const value_text_value_0 = unsafeCast(value_text_value) valueSerializer.writeString(value_text_value_0) } - else if (((RuntimeType.OBJECT == value_text_value_type))) { + else if (RuntimeType.OBJECT == value_text_value_type) { valueSerializer.writeInt8(1) const value_text_value_1 = unsafeCast(value_text_value) valueSerializer.writeResource(value_text_value_1) @@ -16179,12 +16480,12 @@ export class Serializer extends SerializerBase { const value_image_value = value_image! let value_image_value_type: int32 = RuntimeType.UNDEFINED value_image_value_type = runtimeType(value_image_value) - if (((RuntimeType.STRING == value_image_value_type))) { + if (RuntimeType.STRING == value_image_value_type) { valueSerializer.writeInt8(0) const value_image_value_0 = unsafeCast(value_image_value) valueSerializer.writeString(value_image_value_0) } - else if (((RuntimeType.OBJECT == value_image_value_type))) { + else if (RuntimeType.OBJECT == value_image_value_type) { valueSerializer.writeInt8(1) const value_image_value_1 = unsafeCast(value_image_value) valueSerializer.writeResource(value_image_value_1) @@ -16268,12 +16569,12 @@ export class Serializer extends SerializerBase { const value_x_value = value_x! let value_x_value_type: int32 = RuntimeType.UNDEFINED value_x_value_type = runtimeType(value_x_value) - if (((RuntimeType.NUMBER == value_x_value_type))) { + if (RuntimeType.NUMBER == value_x_value_type) { valueSerializer.writeInt8(0) const value_x_value_0 = unsafeCast(value_x_value) valueSerializer.writeNumber(value_x_value_0) } - else if (((RuntimeType.STRING == value_x_value_type))) { + else if (RuntimeType.STRING == value_x_value_type) { valueSerializer.writeInt8(1) const value_x_value_1 = unsafeCast(value_x_value) valueSerializer.writeString(value_x_value_1) @@ -16287,12 +16588,12 @@ export class Serializer extends SerializerBase { const value_y_value = value_y! let value_y_value_type: int32 = RuntimeType.UNDEFINED value_y_value_type = runtimeType(value_y_value) - if (((RuntimeType.NUMBER == value_y_value_type))) { + if (RuntimeType.NUMBER == value_y_value_type) { valueSerializer.writeInt8(0) const value_y_value_0 = unsafeCast(value_y_value) valueSerializer.writeNumber(value_y_value_0) } - else if (((RuntimeType.STRING == value_y_value_type))) { + else if (RuntimeType.STRING == value_y_value_type) { valueSerializer.writeInt8(1) const value_y_value_1 = unsafeCast(value_y_value) valueSerializer.writeString(value_y_value_1) @@ -16306,12 +16607,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -16325,12 +16626,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -16342,12 +16643,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -16360,12 +16661,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -16413,17 +16714,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -16438,13 +16739,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_style_value) } } - writePreviewText(value: PreviewText): void { - let valueSerializer: Serializer = this - const value_offset = value.offset - valueSerializer.writeNumber(value_offset) - const value_value = value.value - valueSerializer.writeString(value_value) - } writeCaretStyle(value: CaretStyle): void { let valueSerializer: Serializer = this const value_width = value.width @@ -16468,17 +16762,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -16503,12 +16797,12 @@ export class Serializer extends SerializerBase { const value_placeholder_value = value_placeholder! let value_placeholder_value_type: int32 = RuntimeType.UNDEFINED value_placeholder_value_type = runtimeType(value_placeholder_value) - if (((RuntimeType.STRING == value_placeholder_value_type))) { + if (RuntimeType.STRING == value_placeholder_value_type) { valueSerializer.writeInt8(0) const value_placeholder_value_0 = unsafeCast(value_placeholder_value) valueSerializer.writeString(value_placeholder_value_0) } - else if (((RuntimeType.OBJECT == value_placeholder_value_type))) { + else if (RuntimeType.OBJECT == value_placeholder_value_type) { valueSerializer.writeInt8(1) const value_placeholder_value_1 = unsafeCast(value_placeholder_value) valueSerializer.writeResource(value_placeholder_value_1) @@ -16657,12 +16951,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type: int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.STRING == value_space_value_type))) { + if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(0) const value_space_value_0 = unsafeCast(value_space_value) valueSerializer.writeString(value_space_value_0) } - else if (((RuntimeType.NUMBER == value_space_value_type))) { + else if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(1) const value_space_value_1 = unsafeCast(value_space_value) valueSerializer.writeNumber(value_space_value_1) @@ -16789,17 +17083,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -16839,12 +17133,12 @@ export class Serializer extends SerializerBase { const value_richEditorDeleteSpans_element: RichEditorTextSpanResult | RichEditorImageSpanResult = value_richEditorDeleteSpans[i] let value_richEditorDeleteSpans_element_type: int32 = RuntimeType.UNDEFINED value_richEditorDeleteSpans_element_type = runtimeType(value_richEditorDeleteSpans_element) - if (((RuntimeType.OBJECT) == (value_richEditorDeleteSpans_element_type)) && (((value_richEditorDeleteSpans_element!.hasOwnProperty("value"))))) { + if (((RuntimeType.OBJECT) == (value_richEditorDeleteSpans_element_type)) && ((value_richEditorDeleteSpans_element!.hasOwnProperty("value")))) { valueSerializer.writeInt8(0) const value_richEditorDeleteSpans_element_0 = unsafeCast(value_richEditorDeleteSpans_element) valueSerializer.writeRichEditorTextSpanResult(value_richEditorDeleteSpans_element_0) } - else if (((RuntimeType.OBJECT) == (value_richEditorDeleteSpans_element_type)) && (((value_richEditorDeleteSpans_element!.hasOwnProperty("imageStyle"))))) { + else if (((RuntimeType.OBJECT) == (value_richEditorDeleteSpans_element_type)) && ((value_richEditorDeleteSpans_element!.hasOwnProperty("imageStyle")))) { valueSerializer.writeInt8(1) const value_richEditorDeleteSpans_element_1 = unsafeCast(value_richEditorDeleteSpans_element) valueSerializer.writeRichEditorImageSpanResult(value_richEditorDeleteSpans_element_1) @@ -16866,31 +17160,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeString(value_previewText_value) } } - writeRichEditorSelection(value: RichEditorSelection): void { - let valueSerializer: Serializer = this - const value_selection = value.selection - const value_selection_0 = value_selection[0] - valueSerializer.writeNumber(value_selection_0) - const value_selection_1 = value_selection[1] - valueSerializer.writeNumber(value_selection_1) - const value_spans = value.spans - valueSerializer.writeInt32(value_spans.length) - for (let i = 0; i < value_spans.length; i++) { - const value_spans_element: RichEditorTextSpanResult | RichEditorImageSpanResult = value_spans[i] - let value_spans_element_type: int32 = RuntimeType.UNDEFINED - value_spans_element_type = runtimeType(value_spans_element) - if (((RuntimeType.OBJECT) == (value_spans_element_type)) && (((value_spans_element!.hasOwnProperty("value"))))) { - valueSerializer.writeInt8(0) - const value_spans_element_0 = unsafeCast(value_spans_element) - valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0) - } - else if (((RuntimeType.OBJECT) == (value_spans_element_type)) && (((value_spans_element!.hasOwnProperty("imageStyle"))))) { - valueSerializer.writeInt8(1) - const value_spans_element_1 = unsafeCast(value_spans_element) - valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1) - } - } - } writeStyledStringChangeValue(value: StyledStringChangeValue): void { let valueSerializer: Serializer = this const value_range = value.range @@ -16906,6 +17175,16 @@ export class Serializer extends SerializerBase { valueSerializer.writeStyledString(value_previewText_value) } } + writeRichEditorParagraphResult(value: RichEditorParagraphResult): void { + let valueSerializer: Serializer = this + const value_style = value.style + valueSerializer.writeRichEditorParagraphStyle(value_style) + const value_range = value.range + const value_range_0 = value_range[0] + valueSerializer.writeNumber(value_range_0) + const value_range_1 = value_range[1] + valueSerializer.writeNumber(value_range_1) + } writeRichEditorBaseController(value: RichEditorBaseController): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -16970,12 +17249,12 @@ export class Serializer extends SerializerBase { const value_offset_value = value_offset! let value_offset_value_type: int32 = RuntimeType.UNDEFINED value_offset_value_type = runtimeType(value_offset_value) - if (((RuntimeType.NUMBER == value_offset_value_type))) { + if (RuntimeType.NUMBER == value_offset_value_type) { valueSerializer.writeInt8(0) const value_offset_value_0 = unsafeCast(value_offset_value) valueSerializer.writeNumber(value_offset_value_0) } - else if (((RuntimeType.STRING == value_offset_value_type))) { + else if (RuntimeType.STRING == value_offset_value_type) { valueSerializer.writeInt8(1) const value_offset_value_1 = unsafeCast(value_offset_value) valueSerializer.writeString(value_offset_value_1) @@ -16989,12 +17268,12 @@ export class Serializer extends SerializerBase { const value_friction_value = value_friction! let value_friction_value_type: int32 = RuntimeType.UNDEFINED value_friction_value_type = runtimeType(value_friction_value) - if (((RuntimeType.NUMBER == value_friction_value_type))) { + if (RuntimeType.NUMBER == value_friction_value_type) { valueSerializer.writeInt8(0) const value_friction_value_0 = unsafeCast(value_friction_value) valueSerializer.writeNumber(value_friction_value_0) } - else if (((RuntimeType.STRING == value_friction_value_type))) { + else if (RuntimeType.STRING == value_friction_value_type) { valueSerializer.writeInt8(1) const value_friction_value_1 = unsafeCast(value_friction_value) valueSerializer.writeString(value_friction_value_1) @@ -17008,12 +17287,12 @@ export class Serializer extends SerializerBase { const value_promptText_value = value_promptText! let value_promptText_value_type: int32 = RuntimeType.UNDEFINED value_promptText_value_type = runtimeType(value_promptText_value) - if (((RuntimeType.STRING == value_promptText_value_type))) { + if (RuntimeType.STRING == value_promptText_value_type) { valueSerializer.writeInt8(0) const value_promptText_value_0 = unsafeCast(value_promptText_value) valueSerializer.writeString(value_promptText_value_0) } - else if (((RuntimeType.OBJECT == value_promptText_value_type))) { + else if (RuntimeType.OBJECT == value_promptText_value_type) { valueSerializer.writeInt8(1) const value_promptText_value_1 = unsafeCast(value_promptText_value) valueSerializer.writeResource(value_promptText_value_1) @@ -17079,17 +17358,17 @@ export class Serializer extends SerializerBase { const value_checkedBackgroundColor_value_0 = unsafeCast(value_checkedBackgroundColor_value) valueSerializer.writeInt32(value_checkedBackgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(1) const value_checkedBackgroundColor_value_1 = unsafeCast(value_checkedBackgroundColor_value) valueSerializer.writeNumber(value_checkedBackgroundColor_value_1) } - else if (((RuntimeType.STRING == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.STRING == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(2) const value_checkedBackgroundColor_value_2 = unsafeCast(value_checkedBackgroundColor_value) valueSerializer.writeString(value_checkedBackgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_checkedBackgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_checkedBackgroundColor_value_type) { valueSerializer.writeInt8(3) const value_checkedBackgroundColor_value_3 = unsafeCast(value_checkedBackgroundColor_value) valueSerializer.writeResource(value_checkedBackgroundColor_value_3) @@ -17108,17 +17387,17 @@ export class Serializer extends SerializerBase { const value_uncheckedBorderColor_value_0 = unsafeCast(value_uncheckedBorderColor_value) valueSerializer.writeInt32(value_uncheckedBorderColor_value_0) } - else if (((RuntimeType.NUMBER == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.NUMBER == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(1) const value_uncheckedBorderColor_value_1 = unsafeCast(value_uncheckedBorderColor_value) valueSerializer.writeNumber(value_uncheckedBorderColor_value_1) } - else if (((RuntimeType.STRING == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.STRING == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(2) const value_uncheckedBorderColor_value_2 = unsafeCast(value_uncheckedBorderColor_value) valueSerializer.writeString(value_uncheckedBorderColor_value_2) } - else if (((RuntimeType.OBJECT == value_uncheckedBorderColor_value_type))) { + else if (RuntimeType.OBJECT == value_uncheckedBorderColor_value_type) { valueSerializer.writeInt8(3) const value_uncheckedBorderColor_value_3 = unsafeCast(value_uncheckedBorderColor_value) valueSerializer.writeResource(value_uncheckedBorderColor_value_3) @@ -17137,17 +17416,17 @@ export class Serializer extends SerializerBase { const value_indicatorColor_value_0 = unsafeCast(value_indicatorColor_value) valueSerializer.writeInt32(value_indicatorColor_value_0) } - else if (((RuntimeType.NUMBER == value_indicatorColor_value_type))) { + else if (RuntimeType.NUMBER == value_indicatorColor_value_type) { valueSerializer.writeInt8(1) const value_indicatorColor_value_1 = unsafeCast(value_indicatorColor_value) valueSerializer.writeNumber(value_indicatorColor_value_1) } - else if (((RuntimeType.STRING == value_indicatorColor_value_type))) { + else if (RuntimeType.STRING == value_indicatorColor_value_type) { valueSerializer.writeInt8(2) const value_indicatorColor_value_2 = unsafeCast(value_indicatorColor_value) valueSerializer.writeString(value_indicatorColor_value_2) } - else if (((RuntimeType.OBJECT == value_indicatorColor_value_type))) { + else if (RuntimeType.OBJECT == value_indicatorColor_value_type) { valueSerializer.writeInt8(3) const value_indicatorColor_value_3 = unsafeCast(value_indicatorColor_value) valueSerializer.writeResource(value_indicatorColor_value_3) @@ -17216,12 +17495,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -17235,12 +17514,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -17264,12 +17543,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -17283,12 +17562,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -17336,12 +17615,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -17355,12 +17634,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -17439,12 +17718,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -17457,12 +17736,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -17500,12 +17779,12 @@ export class Serializer extends SerializerBase { const value_activeIcon_value = value_activeIcon! let value_activeIcon_value_type: int32 = RuntimeType.UNDEFINED value_activeIcon_value_type = runtimeType(value_activeIcon_value) - if (((RuntimeType.STRING == value_activeIcon_value_type))) { + if (RuntimeType.STRING == value_activeIcon_value_type) { valueSerializer.writeInt8(0) const value_activeIcon_value_0 = unsafeCast(value_activeIcon_value) valueSerializer.writeString(value_activeIcon_value_0) } - else if (((RuntimeType.OBJECT == value_activeIcon_value_type))) { + else if (RuntimeType.OBJECT == value_activeIcon_value_type) { valueSerializer.writeInt8(1) const value_activeIcon_value_1 = unsafeCast(value_activeIcon_value) valueSerializer.writeResource(value_activeIcon_value_1) @@ -17525,12 +17804,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -17543,12 +17822,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -17596,23 +17875,23 @@ export class Serializer extends SerializerBase { const value_header_value = value_header! let value_header_value_type: int32 = RuntimeType.UNDEFINED value_header_value_type = runtimeType(value_header_value) - if (((RuntimeType.STRING == value_header_value_type)) || ((RuntimeType.OBJECT == value_header_value_type))) { + if ((RuntimeType.STRING == value_header_value_type) || (RuntimeType.OBJECT == value_header_value_type)) { valueSerializer.writeInt8(0) const value_header_value_0 = unsafeCast(value_header_value) let value_header_value_0_type: int32 = RuntimeType.UNDEFINED value_header_value_0_type = runtimeType(value_header_value_0) - if (((RuntimeType.STRING == value_header_value_0_type))) { + if (RuntimeType.STRING == value_header_value_0_type) { valueSerializer.writeInt8(0) const value_header_value_0_0 = unsafeCast(value_header_value_0) valueSerializer.writeString(value_header_value_0_0) } - else if (((RuntimeType.OBJECT == value_header_value_0_type))) { + else if (RuntimeType.OBJECT == value_header_value_0_type) { valueSerializer.writeInt8(1) const value_header_value_0_1 = unsafeCast(value_header_value_0) valueSerializer.writeResource(value_header_value_0_1) } } - else if (((RuntimeType.FUNCTION == value_header_value_type))) { + else if (RuntimeType.FUNCTION == value_header_value_type) { valueSerializer.writeInt8(1) const value_header_value_1 = unsafeCast(value_header_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_header_value_1)) @@ -17626,23 +17905,23 @@ export class Serializer extends SerializerBase { const value_footer_value = value_footer! let value_footer_value_type: int32 = RuntimeType.UNDEFINED value_footer_value_type = runtimeType(value_footer_value) - if (((RuntimeType.STRING == value_footer_value_type)) || ((RuntimeType.OBJECT == value_footer_value_type))) { + if ((RuntimeType.STRING == value_footer_value_type) || (RuntimeType.OBJECT == value_footer_value_type)) { valueSerializer.writeInt8(0) const value_footer_value_0 = unsafeCast(value_footer_value) let value_footer_value_0_type: int32 = RuntimeType.UNDEFINED value_footer_value_0_type = runtimeType(value_footer_value_0) - if (((RuntimeType.STRING == value_footer_value_0_type))) { + if (RuntimeType.STRING == value_footer_value_0_type) { valueSerializer.writeInt8(0) const value_footer_value_0_0 = unsafeCast(value_footer_value_0) valueSerializer.writeString(value_footer_value_0_0) } - else if (((RuntimeType.OBJECT == value_footer_value_0_type))) { + else if (RuntimeType.OBJECT == value_footer_value_0_type) { valueSerializer.writeInt8(1) const value_footer_value_0_1 = unsafeCast(value_footer_value_0) valueSerializer.writeResource(value_footer_value_0_1) } } - else if (((RuntimeType.FUNCTION == value_footer_value_type))) { + else if (RuntimeType.FUNCTION == value_footer_value_type) { valueSerializer.writeInt8(1) const value_footer_value_1 = unsafeCast(value_footer_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_footer_value_1)) @@ -17749,12 +18028,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type: int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.NUMBER == value_space_value_type))) { + if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(0) const value_space_value_0 = unsafeCast(value_space_value) valueSerializer.writeNumber(value_space_value_0) } - else if (((RuntimeType.STRING == value_space_value_type))) { + else if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(1) const value_space_value_1 = unsafeCast(value_space_value) valueSerializer.writeString(value_space_value_1) @@ -17779,12 +18058,12 @@ export class Serializer extends SerializerBase { const value_start_value = value_start! let value_start_value_type: int32 = RuntimeType.UNDEFINED value_start_value_type = runtimeType(value_start_value) - if (((RuntimeType.FUNCTION == value_start_value_type))) { + if (RuntimeType.FUNCTION == value_start_value_type) { valueSerializer.writeInt8(0) const value_start_value_0 = unsafeCast(value_start_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_start_value_0)) } - else if (((RuntimeType.OBJECT == value_start_value_type))) { + else if (RuntimeType.OBJECT == value_start_value_type) { valueSerializer.writeInt8(1) const value_start_value_1 = unsafeCast(value_start_value) valueSerializer.writeSwipeActionItem(value_start_value_1) @@ -17798,12 +18077,12 @@ export class Serializer extends SerializerBase { const value_end_value = value_end! let value_end_value_type: int32 = RuntimeType.UNDEFINED value_end_value_type = runtimeType(value_end_value) - if (((RuntimeType.FUNCTION == value_end_value_type))) { + if (RuntimeType.FUNCTION == value_end_value_type) { valueSerializer.writeInt8(0) const value_end_value_0 = unsafeCast(value_end_value) valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_end_value_0)) } - else if (((RuntimeType.OBJECT == value_end_value_type))) { + else if (RuntimeType.OBJECT == value_end_value_type) { valueSerializer.writeInt8(1) const value_end_value_1 = unsafeCast(value_end_value) valueSerializer.writeSwipeActionItem(value_end_value_1) @@ -17837,27 +18116,6 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_style_value) } } - writeVisibleListContentInfo(value: VisibleListContentInfo): void { - let valueSerializer: Serializer = this - const value_index = value.index - valueSerializer.writeNumber(value_index) - const value_itemGroupArea = value.itemGroupArea - let value_itemGroupArea_type: int32 = RuntimeType.UNDEFINED - value_itemGroupArea_type = runtimeType(value_itemGroupArea) - valueSerializer.writeInt8(value_itemGroupArea_type) - if ((RuntimeType.UNDEFINED) != (value_itemGroupArea_type)) { - const value_itemGroupArea_value = value_itemGroupArea! - valueSerializer.writeInt32(value_itemGroupArea_value) - } - const value_itemIndexInGroup = value.itemIndexInGroup - let value_itemIndexInGroup_type: int32 = RuntimeType.UNDEFINED - value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup) - valueSerializer.writeInt8(value_itemIndexInGroup_type) - if ((RuntimeType.UNDEFINED) != (value_itemIndexInGroup_type)) { - const value_itemIndexInGroup_value = value_itemIndexInGroup! - valueSerializer.writeNumber(value_itemIndexInGroup_value) - } - } writeChainAnimationOptions(value: ChainAnimationOptions): void { let valueSerializer: Serializer = this const value_minSpace = value.minSpace @@ -17923,12 +18181,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type: int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.NUMBER == value_space_value_type))) { + if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(0) const value_space_value_0 = unsafeCast(value_space_value) valueSerializer.writeNumber(value_space_value_0) } - else if (((RuntimeType.STRING == value_space_value_type))) { + else if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(1) const value_space_value_1 = unsafeCast(value_space_value) valueSerializer.writeString(value_space_value_1) @@ -17970,12 +18228,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -17989,12 +18247,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -18027,17 +18285,17 @@ export class Serializer extends SerializerBase { const value_src = value.src let value_src_type: int32 = RuntimeType.UNDEFINED value_src_type = runtimeType(value_src) - if (((RuntimeType.STRING == value_src_type))) { + if (RuntimeType.STRING == value_src_type) { valueSerializer.writeInt8(0) const value_src_0 = unsafeCast(value_src) valueSerializer.writeString(value_src_0) } - else if (((RuntimeType.OBJECT) == (value_src_type)) && (((value_src!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_src_type)) && ((value_src!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(1) const value_src_1 = unsafeCast(value_src) valueSerializer.writeResource(value_src_1) } - else if (((RuntimeType.OBJECT) == (value_src_type)) && (((value_src!.hasOwnProperty("isEditable"))))) { + else if (((RuntimeType.OBJECT) == (value_src_type)) && ((value_src!.hasOwnProperty("isEditable")))) { valueSerializer.writeInt8(2) const value_src_2 = unsafeCast(value_src) valueSerializer.writePixelMap(value_src_2) @@ -18050,12 +18308,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.NUMBER == value_width_value_type))) { + if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_0) } - else if (((RuntimeType.STRING == value_width_value_type))) { + else if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_1) @@ -18069,12 +18327,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.NUMBER == value_height_value_type))) { + if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_0) } - else if (((RuntimeType.STRING == value_height_value_type))) { + else if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_1) @@ -18088,12 +18346,12 @@ export class Serializer extends SerializerBase { const value_top_value = value_top! let value_top_value_type: int32 = RuntimeType.UNDEFINED value_top_value_type = runtimeType(value_top_value) - if (((RuntimeType.NUMBER == value_top_value_type))) { + if (RuntimeType.NUMBER == value_top_value_type) { valueSerializer.writeInt8(0) const value_top_value_0 = unsafeCast(value_top_value) valueSerializer.writeNumber(value_top_value_0) } - else if (((RuntimeType.STRING == value_top_value_type))) { + else if (RuntimeType.STRING == value_top_value_type) { valueSerializer.writeInt8(1) const value_top_value_1 = unsafeCast(value_top_value) valueSerializer.writeString(value_top_value_1) @@ -18107,12 +18365,12 @@ export class Serializer extends SerializerBase { const value_left_value = value_left! let value_left_value_type: int32 = RuntimeType.UNDEFINED value_left_value_type = runtimeType(value_left_value) - if (((RuntimeType.NUMBER == value_left_value_type))) { + if (RuntimeType.NUMBER == value_left_value_type) { valueSerializer.writeInt8(0) const value_left_value_0 = unsafeCast(value_left_value) valueSerializer.writeNumber(value_left_value_0) } - else if (((RuntimeType.STRING == value_left_value_type))) { + else if (RuntimeType.STRING == value_left_value_type) { valueSerializer.writeInt8(1) const value_left_value_1 = unsafeCast(value_left_value) valueSerializer.writeString(value_left_value_1) @@ -18177,12 +18435,12 @@ export class Serializer extends SerializerBase { const value_columns_value = value_columns! let value_columns_value_type: int32 = RuntimeType.UNDEFINED value_columns_value_type = runtimeType(value_columns_value) - if (((RuntimeType.NUMBER == value_columns_value_type))) { + if (RuntimeType.NUMBER == value_columns_value_type) { valueSerializer.writeInt8(0) const value_columns_value_0 = unsafeCast(value_columns_value) valueSerializer.writeNumber(value_columns_value_0) } - else if (((RuntimeType.OBJECT == value_columns_value_type))) { + else if (RuntimeType.OBJECT == value_columns_value_type) { valueSerializer.writeInt8(1) const value_columns_value_1 = unsafeCast(value_columns_value) valueSerializer.writeGridRowColumnOption(value_columns_value_1) @@ -18215,12 +18473,12 @@ export class Serializer extends SerializerBase { const value_columns_value = value_columns! let value_columns_value_type: int32 = RuntimeType.UNDEFINED value_columns_value_type = runtimeType(value_columns_value) - if (((RuntimeType.NUMBER == value_columns_value_type))) { + if (RuntimeType.NUMBER == value_columns_value_type) { valueSerializer.writeInt8(0) const value_columns_value_0 = unsafeCast(value_columns_value) valueSerializer.writeNumber(value_columns_value_0) } - else if (((RuntimeType.STRING == value_columns_value_type))) { + else if (RuntimeType.STRING == value_columns_value_type) { valueSerializer.writeInt8(1) const value_columns_value_1 = unsafeCast(value_columns_value) valueSerializer.writeString(value_columns_value_1) @@ -18242,12 +18500,12 @@ export class Serializer extends SerializerBase { const value_gutter_value = value_gutter! let value_gutter_value_type: int32 = RuntimeType.UNDEFINED value_gutter_value_type = runtimeType(value_gutter_value) - if (((RuntimeType.NUMBER == value_gutter_value_type))) { + if (RuntimeType.NUMBER == value_gutter_value_type) { valueSerializer.writeInt8(0) const value_gutter_value_0 = unsafeCast(value_gutter_value) valueSerializer.writeNumber(value_gutter_value_0) } - else if (((RuntimeType.STRING == value_gutter_value_type))) { + else if (RuntimeType.STRING == value_gutter_value_type) { valueSerializer.writeInt8(1) const value_gutter_value_1 = unsafeCast(value_gutter_value) valueSerializer.writeString(value_gutter_value_1) @@ -18261,12 +18519,12 @@ export class Serializer extends SerializerBase { const value_margin_value = value_margin! let value_margin_value_type: int32 = RuntimeType.UNDEFINED value_margin_value_type = runtimeType(value_margin_value) - if (((RuntimeType.NUMBER == value_margin_value_type))) { + if (RuntimeType.NUMBER == value_margin_value_type) { valueSerializer.writeInt8(0) const value_margin_value_0 = unsafeCast(value_margin_value) valueSerializer.writeNumber(value_margin_value_0) } - else if (((RuntimeType.STRING == value_margin_value_type))) { + else if (RuntimeType.STRING == value_margin_value_type) { valueSerializer.writeInt8(1) const value_margin_value_1 = unsafeCast(value_margin_value) valueSerializer.writeString(value_margin_value_1) @@ -18283,12 +18541,12 @@ export class Serializer extends SerializerBase { const value_span_value = value_span! let value_span_value_type: int32 = RuntimeType.UNDEFINED value_span_value_type = runtimeType(value_span_value) - if (((RuntimeType.NUMBER == value_span_value_type))) { + if (RuntimeType.NUMBER == value_span_value_type) { valueSerializer.writeInt8(0) const value_span_value_0 = unsafeCast(value_span_value) valueSerializer.writeNumber(value_span_value_0) } - else if (((RuntimeType.OBJECT == value_span_value_type))) { + else if (RuntimeType.OBJECT == value_span_value_type) { valueSerializer.writeInt8(1) const value_span_value_1 = unsafeCast(value_span_value) valueSerializer.writeGridColColumnOption(value_span_value_1) @@ -18302,12 +18560,12 @@ export class Serializer extends SerializerBase { const value_offset_value = value_offset! let value_offset_value_type: int32 = RuntimeType.UNDEFINED value_offset_value_type = runtimeType(value_offset_value) - if (((RuntimeType.NUMBER == value_offset_value_type))) { + if (RuntimeType.NUMBER == value_offset_value_type) { valueSerializer.writeInt8(0) const value_offset_value_0 = unsafeCast(value_offset_value) valueSerializer.writeNumber(value_offset_value_0) } - else if (((RuntimeType.OBJECT == value_offset_value_type))) { + else if (RuntimeType.OBJECT == value_offset_value_type) { valueSerializer.writeInt8(1) const value_offset_value_1 = unsafeCast(value_offset_value) valueSerializer.writeGridColColumnOption(value_offset_value_1) @@ -18321,12 +18579,12 @@ export class Serializer extends SerializerBase { const value_order_value = value_order! let value_order_value_type: int32 = RuntimeType.UNDEFINED value_order_value_type = runtimeType(value_order_value) - if (((RuntimeType.NUMBER == value_order_value_type))) { + if (RuntimeType.NUMBER == value_order_value_type) { valueSerializer.writeInt8(0) const value_order_value_0 = unsafeCast(value_order_value) valueSerializer.writeNumber(value_order_value_0) } - else if (((RuntimeType.OBJECT == value_order_value_type))) { + else if (RuntimeType.OBJECT == value_order_value_type) { valueSerializer.writeInt8(1) const value_order_value_1 = unsafeCast(value_order_value) valueSerializer.writeGridColColumnOption(value_order_value_1) @@ -18411,23 +18669,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeEventTargetInfo(value: EventTargetInfo): void { - let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeScrollableTargetInfo(value: ScrollableTargetInfo): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -18445,23 +18686,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writePanGestureOptions(value: PanGestureOptions): void { - let valueSerializer: Serializer = this - if (value.hasOwnProperty("peer")) - { - const base: MaterializedBase = unsafeCast(value) - const peer = base.getPeer() - let ptr: KPointer = nullptr - if (peer != undefined) - ptr = peer.ptr - valueSerializer.writePointer(ptr) - return - } - else - { - throw new Error("Value is not a MaterializedBase instance!") - } - } writeGestureEvent(value: GestureEvent): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -18591,12 +18815,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -18621,12 +18845,12 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type: int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0) const value_radius_value_0 = unsafeCast(value_radius_value) valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(1) const value_radius_value_1 = unsafeCast(value_radius_value) valueSerializer.writeResource(value_radius_value_1) @@ -18640,12 +18864,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type: int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0) const value_offsetX_value_0 = unsafeCast(value_offsetX_value) valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1) const value_offsetX_value_1 = unsafeCast(value_offsetX_value) valueSerializer.writeResource(value_offsetX_value_1) @@ -18659,12 +18883,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type: int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0) const value_offsetY_value_0 = unsafeCast(value_offsetY_value) valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1) const value_offsetY_value_1 = unsafeCast(value_offsetY_value) valueSerializer.writeResource(value_offsetY_value_1) @@ -18749,12 +18973,12 @@ export class Serializer extends SerializerBase { const value_id = value.id let value_id_type: int32 = RuntimeType.UNDEFINED value_id_type = runtimeType(value_id) - if (((RuntimeType.NUMBER == value_id_type))) { + if (RuntimeType.NUMBER == value_id_type) { valueSerializer.writeInt8(0) const value_id_0 = unsafeCast(value_id) valueSerializer.writeNumber(value_id_0) } - else if (((RuntimeType.STRING == value_id_type))) { + else if (RuntimeType.STRING == value_id_type) { valueSerializer.writeInt8(1) const value_id_1 = unsafeCast(value_id) valueSerializer.writeString(value_id_1) @@ -18913,12 +19137,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -18932,12 +19156,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -19025,12 +19249,12 @@ export class Serializer extends SerializerBase { const value_radius_value = value_radius! let value_radius_value_type: int32 = RuntimeType.UNDEFINED value_radius_value_type = runtimeType(value_radius_value) - if (((RuntimeType.NUMBER == value_radius_value_type))) { + if (RuntimeType.NUMBER == value_radius_value_type) { valueSerializer.writeInt8(0) const value_radius_value_0 = unsafeCast(value_radius_value) valueSerializer.writeNumber(value_radius_value_0) } - else if (((RuntimeType.OBJECT == value_radius_value_type))) { + else if (RuntimeType.OBJECT == value_radius_value_type) { valueSerializer.writeInt8(1) const value_radius_value_1 = unsafeCast(value_radius_value) valueSerializer.writeResource(value_radius_value_1) @@ -19044,12 +19268,12 @@ export class Serializer extends SerializerBase { const value_offsetX_value = value_offsetX! let value_offsetX_value_type: int32 = RuntimeType.UNDEFINED value_offsetX_value_type = runtimeType(value_offsetX_value) - if (((RuntimeType.NUMBER == value_offsetX_value_type))) { + if (RuntimeType.NUMBER == value_offsetX_value_type) { valueSerializer.writeInt8(0) const value_offsetX_value_0 = unsafeCast(value_offsetX_value) valueSerializer.writeNumber(value_offsetX_value_0) } - else if (((RuntimeType.OBJECT == value_offsetX_value_type))) { + else if (RuntimeType.OBJECT == value_offsetX_value_type) { valueSerializer.writeInt8(1) const value_offsetX_value_1 = unsafeCast(value_offsetX_value) valueSerializer.writeResource(value_offsetX_value_1) @@ -19063,12 +19287,12 @@ export class Serializer extends SerializerBase { const value_offsetY_value = value_offsetY! let value_offsetY_value_type: int32 = RuntimeType.UNDEFINED value_offsetY_value_type = runtimeType(value_offsetY_value) - if (((RuntimeType.NUMBER == value_offsetY_value_type))) { + if (RuntimeType.NUMBER == value_offsetY_value_type) { valueSerializer.writeInt8(0) const value_offsetY_value_0 = unsafeCast(value_offsetY_value) valueSerializer.writeNumber(value_offsetY_value_0) } - else if (((RuntimeType.OBJECT == value_offsetY_value_type))) { + else if (RuntimeType.OBJECT == value_offsetY_value_type) { valueSerializer.writeInt8(1) const value_offsetY_value_1 = unsafeCast(value_offsetY_value) valueSerializer.writeResource(value_offsetY_value_1) @@ -19085,7 +19309,7 @@ export class Serializer extends SerializerBase { const value_colors_value_element: ResourceColor | LinearGradient = value_colors_value[i] let value_colors_value_element_type: int32 = RuntimeType.UNDEFINED value_colors_value_element_type = runtimeType(value_colors_value_element) - if ((((RuntimeType.NUMBER) == (value_colors_value_element_type)) && ((unsafeCast(value_colors_value_element)) >= (0)) && ((unsafeCast(value_colors_value_element)) <= (11))) || (((RuntimeType.NUMBER == value_colors_value_element_type))) || (((RuntimeType.STRING == value_colors_value_element_type))) || (((RuntimeType.OBJECT == value_colors_value_element_type)))) { + if ((((RuntimeType.NUMBER) == (value_colors_value_element_type)) && ((unsafeCast(value_colors_value_element)) >= (0)) && ((unsafeCast(value_colors_value_element)) <= (11))) || (RuntimeType.NUMBER == value_colors_value_element_type) || (RuntimeType.STRING == value_colors_value_element_type) || (RuntimeType.OBJECT == value_colors_value_element_type)) { valueSerializer.writeInt8(0) const value_colors_value_element_0 = unsafeCast(value_colors_value_element) let value_colors_value_element_0_type: int32 = RuntimeType.UNDEFINED @@ -19095,17 +19319,17 @@ export class Serializer extends SerializerBase { const value_colors_value_element_0_0 = unsafeCast(value_colors_value_element_0) valueSerializer.writeInt32(value_colors_value_element_0_0) } - else if (((RuntimeType.NUMBER == value_colors_value_element_0_type))) { + else if (RuntimeType.NUMBER == value_colors_value_element_0_type) { valueSerializer.writeInt8(1) const value_colors_value_element_0_1 = unsafeCast(value_colors_value_element_0) valueSerializer.writeNumber(value_colors_value_element_0_1) } - else if (((RuntimeType.STRING == value_colors_value_element_0_type))) { + else if (RuntimeType.STRING == value_colors_value_element_0_type) { valueSerializer.writeInt8(2) const value_colors_value_element_0_2 = unsafeCast(value_colors_value_element_0) valueSerializer.writeString(value_colors_value_element_0_2) } - else if (((RuntimeType.OBJECT == value_colors_value_element_0_type))) { + else if (RuntimeType.OBJECT == value_colors_value_element_0_type) { valueSerializer.writeInt8(3) const value_colors_value_element_0_3 = unsafeCast(value_colors_value_element_0) valueSerializer.writeResource(value_colors_value_element_0_3) @@ -19154,17 +19378,17 @@ export class Serializer extends SerializerBase { const value_color_0 = unsafeCast(value_color) valueSerializer.writeInt32(value_color_0) } - else if (((RuntimeType.NUMBER == value_color_type))) { + else if (RuntimeType.NUMBER == value_color_type) { valueSerializer.writeInt8(1) const value_color_1 = unsafeCast(value_color) valueSerializer.writeNumber(value_color_1) } - else if (((RuntimeType.STRING == value_color_type))) { + else if (RuntimeType.STRING == value_color_type) { valueSerializer.writeInt8(2) const value_color_2 = unsafeCast(value_color) valueSerializer.writeString(value_color_2) } - else if (((RuntimeType.OBJECT == value_color_type))) { + else if (RuntimeType.OBJECT == value_color_type) { valueSerializer.writeInt8(3) const value_color_3 = unsafeCast(value_color) valueSerializer.writeResource(value_color_3) @@ -19240,17 +19464,17 @@ export class Serializer extends SerializerBase { const value_maskColor_value_0 = unsafeCast(value_maskColor_value) valueSerializer.writeInt32(value_maskColor_value_0) } - else if (((RuntimeType.NUMBER == value_maskColor_value_type))) { + else if (RuntimeType.NUMBER == value_maskColor_value_type) { valueSerializer.writeInt8(1) const value_maskColor_value_1 = unsafeCast(value_maskColor_value) valueSerializer.writeNumber(value_maskColor_value_1) } - else if (((RuntimeType.STRING == value_maskColor_value_type))) { + else if (RuntimeType.STRING == value_maskColor_value_type) { valueSerializer.writeInt8(2) const value_maskColor_value_2 = unsafeCast(value_maskColor_value) valueSerializer.writeString(value_maskColor_value_2) } - else if (((RuntimeType.OBJECT == value_maskColor_value_type))) { + else if (RuntimeType.OBJECT == value_maskColor_value_type) { valueSerializer.writeInt8(3) const value_maskColor_value_3 = unsafeCast(value_maskColor_value) valueSerializer.writeResource(value_maskColor_value_3) @@ -19301,17 +19525,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -19457,7 +19681,7 @@ export class Serializer extends SerializerBase { const value_borderColor_value = value_borderColor! let value_borderColor_value_type: int32 = RuntimeType.UNDEFINED value_borderColor_value_type = runtimeType(value_borderColor_value) - if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (((RuntimeType.NUMBER == value_borderColor_value_type))) || (((RuntimeType.STRING == value_borderColor_value_type))) || (((RuntimeType.OBJECT == value_borderColor_value_type)))) { + if ((((RuntimeType.NUMBER) == (value_borderColor_value_type)) && ((unsafeCast(value_borderColor_value)) >= (0)) && ((unsafeCast(value_borderColor_value)) <= (11))) || (RuntimeType.NUMBER == value_borderColor_value_type) || (RuntimeType.STRING == value_borderColor_value_type) || (RuntimeType.OBJECT == value_borderColor_value_type)) { valueSerializer.writeInt8(0) const value_borderColor_value_0 = unsafeCast(value_borderColor_value) let value_borderColor_value_0_type: int32 = RuntimeType.UNDEFINED @@ -19467,17 +19691,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_0_0 = unsafeCast(value_borderColor_value_0) valueSerializer.writeInt32(value_borderColor_value_0_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_0_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_0_type) { valueSerializer.writeInt8(1) const value_borderColor_value_0_1 = unsafeCast(value_borderColor_value_0) valueSerializer.writeNumber(value_borderColor_value_0_1) } - else if (((RuntimeType.STRING == value_borderColor_value_0_type))) { + else if (RuntimeType.STRING == value_borderColor_value_0_type) { valueSerializer.writeInt8(2) const value_borderColor_value_0_2 = unsafeCast(value_borderColor_value_0) valueSerializer.writeString(value_borderColor_value_0_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_0_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_0_type) { valueSerializer.writeInt8(3) const value_borderColor_value_0_3 = unsafeCast(value_borderColor_value_0) valueSerializer.writeResource(value_borderColor_value_0_3) @@ -19499,17 +19723,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_top_value_0 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeInt32(value_borderColor_value_1_top_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_top_value_1 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeNumber(value_borderColor_value_1_top_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_top_value_2 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeString(value_borderColor_value_1_top_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_top_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_top_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_top_value_3 = unsafeCast(value_borderColor_value_1_top_value) valueSerializer.writeResource(value_borderColor_value_1_top_value_3) @@ -19528,17 +19752,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_right_value_0 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeInt32(value_borderColor_value_1_right_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_right_value_1 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeNumber(value_borderColor_value_1_right_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_right_value_2 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeString(value_borderColor_value_1_right_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_right_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_right_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_right_value_3 = unsafeCast(value_borderColor_value_1_right_value) valueSerializer.writeResource(value_borderColor_value_1_right_value_3) @@ -19557,17 +19781,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_bottom_value_0 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeInt32(value_borderColor_value_1_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_bottom_value_1 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_bottom_value_2 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeString(value_borderColor_value_1_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_bottom_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_bottom_value_3 = unsafeCast(value_borderColor_value_1_bottom_value) valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3) @@ -19586,17 +19810,17 @@ export class Serializer extends SerializerBase { const value_borderColor_value_1_left_value_0 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeInt32(value_borderColor_value_1_left_value_0) } - else if (((RuntimeType.NUMBER == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.NUMBER == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(1) const value_borderColor_value_1_left_value_1 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeNumber(value_borderColor_value_1_left_value_1) } - else if (((RuntimeType.STRING == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.STRING == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(2) const value_borderColor_value_1_left_value_2 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeString(value_borderColor_value_1_left_value_2) } - else if (((RuntimeType.OBJECT == value_borderColor_value_1_left_value_type))) { + else if (RuntimeType.OBJECT == value_borderColor_value_1_left_value_type) { valueSerializer.writeInt8(3) const value_borderColor_value_1_left_value_3 = unsafeCast(value_borderColor_value_1_left_value) valueSerializer.writeResource(value_borderColor_value_1_left_value_3) @@ -19612,12 +19836,12 @@ export class Serializer extends SerializerBase { const value_borderStyle_value = value_borderStyle! let value_borderStyle_value_type: int32 = RuntimeType.UNDEFINED value_borderStyle_value_type = runtimeType(value_borderStyle_value) - if (((RuntimeType.NUMBER == value_borderStyle_value_type))) { + if (RuntimeType.NUMBER == value_borderStyle_value_type) { valueSerializer.writeInt8(0) const value_borderStyle_value_0 = unsafeCast(value_borderStyle_value) valueSerializer.writeInt32(value_borderStyle_value_0) } - else if (((RuntimeType.OBJECT == value_borderStyle_value_type))) { + else if (RuntimeType.OBJECT == value_borderStyle_value_type) { valueSerializer.writeInt8(1) const value_borderStyle_value_1 = unsafeCast(value_borderStyle_value) const value_borderStyle_value_1_top = value_borderStyle_value_1.top @@ -19662,12 +19886,12 @@ export class Serializer extends SerializerBase { const value_shadow_value = value_shadow! let value_shadow_value_type: int32 = RuntimeType.UNDEFINED value_shadow_value_type = runtimeType(value_shadow_value) - if (((RuntimeType.OBJECT == value_shadow_value_type))) { + if (RuntimeType.OBJECT == value_shadow_value_type) { valueSerializer.writeInt8(0) const value_shadow_value_0 = unsafeCast(value_shadow_value) valueSerializer.writeShadowOptions(value_shadow_value_0) } - else if (((RuntimeType.NUMBER == value_shadow_value_type))) { + else if (RuntimeType.NUMBER == value_shadow_value_type) { valueSerializer.writeInt8(1) const value_shadow_value_1 = unsafeCast(value_shadow_value) valueSerializer.writeInt32(value_shadow_value_1) @@ -19750,23 +19974,23 @@ export class Serializer extends SerializerBase { const value_scene_value = value_scene! let value_scene_value_type: int32 = RuntimeType.UNDEFINED value_scene_value_type = runtimeType(value_scene_value) - if ((((RuntimeType.STRING == value_scene_value_type))) || (((RuntimeType.OBJECT == value_scene_value_type)))) { + if ((RuntimeType.STRING == value_scene_value_type) || (RuntimeType.OBJECT == value_scene_value_type)) { valueSerializer.writeInt8(0) const value_scene_value_0 = unsafeCast(value_scene_value) let value_scene_value_0_type: int32 = RuntimeType.UNDEFINED value_scene_value_0_type = runtimeType(value_scene_value_0) - if (((RuntimeType.STRING == value_scene_value_0_type))) { + if (RuntimeType.STRING == value_scene_value_0_type) { valueSerializer.writeInt8(0) const value_scene_value_0_0 = unsafeCast(value_scene_value_0) valueSerializer.writeString(value_scene_value_0_0) } - else if (((RuntimeType.OBJECT == value_scene_value_0_type))) { + else if (RuntimeType.OBJECT == value_scene_value_0_type) { valueSerializer.writeInt8(1) const value_scene_value_0_1 = unsafeCast(value_scene_value_0) valueSerializer.writeResource(value_scene_value_0_1) } } - else if (((RuntimeType.OBJECT) == (value_scene_value_type)) && (((value_scene_value!.hasOwnProperty("_SceneStub"))))) { + else if (((RuntimeType.OBJECT) == (value_scene_value_type)) && ((value_scene_value!.hasOwnProperty("_SceneStub")))) { valueSerializer.writeInt8(1) const value_scene_value_1 = unsafeCast(value_scene_value) valueSerializer.writeScene(value_scene_value_1) @@ -19815,13 +20039,6 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeOffsetResult(value: OffsetResult): void { - let valueSerializer: Serializer = this - const value_xOffset = value.xOffset - valueSerializer.writeNumber(value_xOffset) - const value_yOffset = value.yOffset - valueSerializer.writeNumber(value_yOffset) - } writeTextContentControllerBase(value: TextContentControllerBase): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) @@ -19902,12 +20119,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -19920,12 +20137,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -20384,17 +20601,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_top_value_0 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeInt32(value_color_value_0_top_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_top_value_1 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeNumber(value_color_value_0_top_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_top_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_top_value_2 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeString(value_color_value_0_top_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_top_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_top_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_top_value_3 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeResource(value_color_value_0_top_value_3) @@ -20413,17 +20630,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_right_value_0 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeInt32(value_color_value_0_right_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_right_value_1 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeNumber(value_color_value_0_right_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_right_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_right_value_2 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeString(value_color_value_0_right_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_right_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_right_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_right_value_3 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeResource(value_color_value_0_right_value_3) @@ -20442,17 +20659,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_bottom_value_0 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeInt32(value_color_value_0_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_bottom_value_1 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeNumber(value_color_value_0_bottom_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_bottom_value_2 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeString(value_color_value_0_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_bottom_value_3 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeResource(value_color_value_0_bottom_value_3) @@ -20471,24 +20688,24 @@ export class Serializer extends SerializerBase { const value_color_value_0_left_value_0 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeInt32(value_color_value_0_left_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_left_value_1 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeNumber(value_color_value_0_left_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_left_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_left_value_2 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeString(value_color_value_0_left_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_left_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_left_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_left_value_3 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeResource(value_color_value_0_left_value_3) } } } - else if ((((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) || (((RuntimeType.NUMBER == value_color_value_type))) || (((RuntimeType.STRING == value_color_value_type))) || (((RuntimeType.OBJECT == value_color_value_type)))) { + else if ((((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) || (RuntimeType.NUMBER == value_color_value_type) || (RuntimeType.STRING == value_color_value_type) || (RuntimeType.OBJECT == value_color_value_type)) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) let value_color_value_1_type: int32 = RuntimeType.UNDEFINED @@ -20498,17 +20715,17 @@ export class Serializer extends SerializerBase { const value_color_value_1_0 = unsafeCast(value_color_value_1) valueSerializer.writeInt32(value_color_value_1_0) } - else if (((RuntimeType.NUMBER == value_color_value_1_type))) { + else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1) const value_color_value_1_1 = unsafeCast(value_color_value_1) valueSerializer.writeNumber(value_color_value_1_1) } - else if (((RuntimeType.STRING == value_color_value_1_type))) { + else if (RuntimeType.STRING == value_color_value_1_type) { valueSerializer.writeInt8(2) const value_color_value_1_2 = unsafeCast(value_color_value_1) valueSerializer.writeString(value_color_value_1_2) } - else if (((RuntimeType.OBJECT == value_color_value_1_type))) { + else if (RuntimeType.OBJECT == value_color_value_1_type) { valueSerializer.writeInt8(3) const value_color_value_1_3 = unsafeCast(value_color_value_1) valueSerializer.writeResource(value_color_value_1_3) @@ -20578,7 +20795,7 @@ export class Serializer extends SerializerBase { const value_style_value = value_style! let value_style_value_type: int32 = RuntimeType.UNDEFINED value_style_value_type = runtimeType(value_style_value) - if (((RuntimeType.OBJECT == value_style_value_type))) { + if (RuntimeType.OBJECT == value_style_value_type) { valueSerializer.writeInt8(0) const value_style_value_0 = unsafeCast(value_style_value) const value_style_value_0_top = value_style_value_0.top @@ -20614,7 +20831,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_style_value_0_left_value) } } - else if (((RuntimeType.NUMBER == value_style_value_type))) { + else if (RuntimeType.NUMBER == value_style_value_type) { valueSerializer.writeInt8(1) const value_style_value_1 = unsafeCast(value_style_value) valueSerializer.writeInt32(value_style_value_1) @@ -20694,17 +20911,17 @@ export class Serializer extends SerializerBase { const value_source_value = value_source! let value_source_value_type: int32 = RuntimeType.UNDEFINED value_source_value_type = runtimeType(value_source_value) - if (((RuntimeType.STRING == value_source_value_type))) { + if (RuntimeType.STRING == value_source_value_type) { valueSerializer.writeInt8(0) const value_source_value_0 = unsafeCast(value_source_value) valueSerializer.writeString(value_source_value_0) } - else if (((RuntimeType.OBJECT) == (value_source_value_type)) && (((value_source_value!.hasOwnProperty("bundleName"))))) { + else if (((RuntimeType.OBJECT) == (value_source_value_type)) && ((value_source_value!.hasOwnProperty("bundleName")))) { valueSerializer.writeInt8(1) const value_source_value_1 = unsafeCast(value_source_value) valueSerializer.writeResource(value_source_value_1) } - else if (((RuntimeType.OBJECT) == (value_source_value_type)) && (((value_source_value!.hasOwnProperty("colors"))))) { + else if (((RuntimeType.OBJECT) == (value_source_value_type)) && ((value_source_value!.hasOwnProperty("colors")))) { valueSerializer.writeInt8(2) const value_source_value_2 = unsafeCast(value_source_value) valueSerializer.writeLinearGradient_common(value_source_value_2) @@ -20910,17 +21127,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_top_value_0 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeInt32(value_color_value_0_top_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_top_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_top_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_top_value_1 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeNumber(value_color_value_0_top_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_top_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_top_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_top_value_2 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeString(value_color_value_0_top_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_top_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_top_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_top_value_3 = unsafeCast(value_color_value_0_top_value) valueSerializer.writeResource(value_color_value_0_top_value_3) @@ -20939,17 +21156,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_right_value_0 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeInt32(value_color_value_0_right_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_right_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_right_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_right_value_1 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeNumber(value_color_value_0_right_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_right_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_right_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_right_value_2 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeString(value_color_value_0_right_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_right_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_right_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_right_value_3 = unsafeCast(value_color_value_0_right_value) valueSerializer.writeResource(value_color_value_0_right_value_3) @@ -20968,17 +21185,17 @@ export class Serializer extends SerializerBase { const value_color_value_0_bottom_value_0 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeInt32(value_color_value_0_bottom_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_bottom_value_1 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeNumber(value_color_value_0_bottom_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_bottom_value_2 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeString(value_color_value_0_bottom_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_bottom_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_bottom_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_bottom_value_3 = unsafeCast(value_color_value_0_bottom_value) valueSerializer.writeResource(value_color_value_0_bottom_value_3) @@ -20997,24 +21214,24 @@ export class Serializer extends SerializerBase { const value_color_value_0_left_value_0 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeInt32(value_color_value_0_left_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_0_left_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_0_left_value_type) { valueSerializer.writeInt8(1) const value_color_value_0_left_value_1 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeNumber(value_color_value_0_left_value_1) } - else if (((RuntimeType.STRING == value_color_value_0_left_value_type))) { + else if (RuntimeType.STRING == value_color_value_0_left_value_type) { valueSerializer.writeInt8(2) const value_color_value_0_left_value_2 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeString(value_color_value_0_left_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_0_left_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_0_left_value_type) { valueSerializer.writeInt8(3) const value_color_value_0_left_value_3 = unsafeCast(value_color_value_0_left_value) valueSerializer.writeResource(value_color_value_0_left_value_3) } } } - else if ((((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) || (((RuntimeType.NUMBER == value_color_value_type))) || (((RuntimeType.STRING == value_color_value_type))) || (((RuntimeType.OBJECT == value_color_value_type)))) { + else if ((((RuntimeType.NUMBER) == (value_color_value_type)) && ((unsafeCast(value_color_value)) >= (0)) && ((unsafeCast(value_color_value)) <= (11))) || (RuntimeType.NUMBER == value_color_value_type) || (RuntimeType.STRING == value_color_value_type) || (RuntimeType.OBJECT == value_color_value_type)) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) let value_color_value_1_type: int32 = RuntimeType.UNDEFINED @@ -21024,17 +21241,17 @@ export class Serializer extends SerializerBase { const value_color_value_1_0 = unsafeCast(value_color_value_1) valueSerializer.writeInt32(value_color_value_1_0) } - else if (((RuntimeType.NUMBER == value_color_value_1_type))) { + else if (RuntimeType.NUMBER == value_color_value_1_type) { valueSerializer.writeInt8(1) const value_color_value_1_1 = unsafeCast(value_color_value_1) valueSerializer.writeNumber(value_color_value_1_1) } - else if (((RuntimeType.STRING == value_color_value_1_type))) { + else if (RuntimeType.STRING == value_color_value_1_type) { valueSerializer.writeInt8(2) const value_color_value_1_2 = unsafeCast(value_color_value_1) valueSerializer.writeString(value_color_value_1_2) } - else if (((RuntimeType.OBJECT == value_color_value_1_type))) { + else if (RuntimeType.OBJECT == value_color_value_1_type) { valueSerializer.writeInt8(3) const value_color_value_1_3 = unsafeCast(value_color_value_1) valueSerializer.writeResource(value_color_value_1_3) @@ -21109,7 +21326,7 @@ export class Serializer extends SerializerBase { const value_style_value = value_style! let value_style_value_type: int32 = RuntimeType.UNDEFINED value_style_value_type = runtimeType(value_style_value) - if (((RuntimeType.OBJECT == value_style_value_type))) { + if (RuntimeType.OBJECT == value_style_value_type) { valueSerializer.writeInt8(0) const value_style_value_0 = unsafeCast(value_style_value) const value_style_value_0_top = value_style_value_0.top @@ -21145,7 +21362,7 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(value_style_value_0_left_value) } } - else if (((RuntimeType.NUMBER == value_style_value_type))) { + else if (RuntimeType.NUMBER == value_style_value_type) { valueSerializer.writeInt8(1) const value_style_value_1 = unsafeCast(value_style_value) valueSerializer.writeInt32(value_style_value_1) @@ -21360,17 +21577,17 @@ export class Serializer extends SerializerBase { const value_color_value_0 = unsafeCast(value_color_value) valueSerializer.writeInt32(value_color_value_0) } - else if (((RuntimeType.NUMBER == value_color_value_type))) { + else if (RuntimeType.NUMBER == value_color_value_type) { valueSerializer.writeInt8(1) const value_color_value_1 = unsafeCast(value_color_value) valueSerializer.writeNumber(value_color_value_1) } - else if (((RuntimeType.STRING == value_color_value_type))) { + else if (RuntimeType.STRING == value_color_value_type) { valueSerializer.writeInt8(2) const value_color_value_2 = unsafeCast(value_color_value) valueSerializer.writeString(value_color_value_2) } - else if (((RuntimeType.OBJECT == value_color_value_type))) { + else if (RuntimeType.OBJECT == value_color_value_type) { valueSerializer.writeInt8(3) const value_color_value_3 = unsafeCast(value_color_value) valueSerializer.writeResource(value_color_value_3) @@ -21413,17 +21630,17 @@ export class Serializer extends SerializerBase { const value_inactiveColor_value_0 = unsafeCast(value_inactiveColor_value) valueSerializer.writeInt32(value_inactiveColor_value_0) } - else if (((RuntimeType.NUMBER == value_inactiveColor_value_type))) { + else if (RuntimeType.NUMBER == value_inactiveColor_value_type) { valueSerializer.writeInt8(1) const value_inactiveColor_value_1 = unsafeCast(value_inactiveColor_value) valueSerializer.writeNumber(value_inactiveColor_value_1) } - else if (((RuntimeType.STRING == value_inactiveColor_value_type))) { + else if (RuntimeType.STRING == value_inactiveColor_value_type) { valueSerializer.writeInt8(2) const value_inactiveColor_value_2 = unsafeCast(value_inactiveColor_value) valueSerializer.writeString(value_inactiveColor_value_2) } - else if (((RuntimeType.OBJECT == value_inactiveColor_value_type))) { + else if (RuntimeType.OBJECT == value_inactiveColor_value_type) { valueSerializer.writeInt8(3) const value_inactiveColor_value_3 = unsafeCast(value_inactiveColor_value) valueSerializer.writeResource(value_inactiveColor_value_3) @@ -21567,28 +21784,16 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeTouchObject(value: TouchObject): void { + writeHistoricalPoint(value: HistoricalPoint): void { let valueSerializer: Serializer = this - const value_type = value.type - valueSerializer.writeInt32(value_type) - const value_id = value.id - valueSerializer.writeNumber(value_id) - const value_displayX = value.displayX - valueSerializer.writeNumber(value_displayX) - const value_displayY = value.displayY - valueSerializer.writeNumber(value_displayY) - const value_windowX = value.windowX - valueSerializer.writeNumber(value_windowX) - const value_windowY = value.windowY - valueSerializer.writeNumber(value_windowY) - const value_screenX = value.screenX - valueSerializer.writeNumber(value_screenX) - const value_screenY = value.screenY - valueSerializer.writeNumber(value_screenY) - const value_x = value.x - valueSerializer.writeNumber(value_x) - const value_y = value.y - valueSerializer.writeNumber(value_y) + const value_touchObject = value.touchObject + valueSerializer.writeTouchObject(value_touchObject) + const value_size = value.size + valueSerializer.writeNumber(value_size) + const value_force = value.force + valueSerializer.writeNumber(value_force) + const value_timestamp = value.timestamp + valueSerializer.writeNumber(value_timestamp) } writeAccessibilityHoverEvent(value: AccessibilityHoverEvent): void { let valueSerializer: Serializer = this @@ -21695,12 +21900,12 @@ export class Serializer extends SerializerBase { const value_space_value = value_space! let value_space_value_type: int32 = RuntimeType.UNDEFINED value_space_value_type = runtimeType(value_space_value) - if (((RuntimeType.STRING == value_space_value_type))) { + if (RuntimeType.STRING == value_space_value_type) { valueSerializer.writeInt8(0) const value_space_value_0 = unsafeCast(value_space_value) valueSerializer.writeString(value_space_value_0) } - else if (((RuntimeType.NUMBER == value_space_value_type))) { + else if (RuntimeType.NUMBER == value_space_value_type) { valueSerializer.writeInt8(1) const value_space_value_1 = unsafeCast(value_space_value) valueSerializer.writeNumber(value_space_value_1) @@ -21717,12 +21922,12 @@ export class Serializer extends SerializerBase { const value_width_value = value_width! let value_width_value_type: int32 = RuntimeType.UNDEFINED value_width_value_type = runtimeType(value_width_value) - if (((RuntimeType.STRING == value_width_value_type))) { + if (RuntimeType.STRING == value_width_value_type) { valueSerializer.writeInt8(0) const value_width_value_0 = unsafeCast(value_width_value) valueSerializer.writeString(value_width_value_0) } - else if (((RuntimeType.NUMBER == value_width_value_type))) { + else if (RuntimeType.NUMBER == value_width_value_type) { valueSerializer.writeInt8(1) const value_width_value_1 = unsafeCast(value_width_value) valueSerializer.writeNumber(value_width_value_1) @@ -21736,12 +21941,12 @@ export class Serializer extends SerializerBase { const value_height_value = value_height! let value_height_value_type: int32 = RuntimeType.UNDEFINED value_height_value_type = runtimeType(value_height_value) - if (((RuntimeType.STRING == value_height_value_type))) { + if (RuntimeType.STRING == value_height_value_type) { valueSerializer.writeInt8(0) const value_height_value_0 = unsafeCast(value_height_value) valueSerializer.writeString(value_height_value_0) } - else if (((RuntimeType.NUMBER == value_height_value_type))) { + else if (RuntimeType.NUMBER == value_height_value_type) { valueSerializer.writeInt8(1) const value_height_value_1 = unsafeCast(value_height_value) valueSerializer.writeNumber(value_height_value_1) @@ -21785,17 +21990,17 @@ export class Serializer extends SerializerBase { const value_strokeColor_value_0 = unsafeCast(value_strokeColor_value) valueSerializer.writeInt32(value_strokeColor_value_0) } - else if (((RuntimeType.NUMBER == value_strokeColor_value_type))) { + else if (RuntimeType.NUMBER == value_strokeColor_value_type) { valueSerializer.writeInt8(1) const value_strokeColor_value_1 = unsafeCast(value_strokeColor_value) valueSerializer.writeNumber(value_strokeColor_value_1) } - else if (((RuntimeType.STRING == value_strokeColor_value_type))) { + else if (RuntimeType.STRING == value_strokeColor_value_type) { valueSerializer.writeInt8(2) const value_strokeColor_value_2 = unsafeCast(value_strokeColor_value) valueSerializer.writeString(value_strokeColor_value_2) } - else if (((RuntimeType.OBJECT == value_strokeColor_value_type))) { + else if (RuntimeType.OBJECT == value_strokeColor_value_type) { valueSerializer.writeInt8(3) const value_strokeColor_value_3 = unsafeCast(value_strokeColor_value) valueSerializer.writeResource(value_strokeColor_value_3) @@ -21845,7 +22050,7 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_indicatorBuilder_value)) } } - writeCanvasRenderer(value: CanvasRenderer): void { + writeOffscreenCanvas(value: OffscreenCanvas): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -21862,7 +22067,7 @@ export class Serializer extends SerializerBase { throw new Error("Value is not a MaterializedBase instance!") } } - writeRenderingContextSettings(value: RenderingContextSettings): void { + writeCanvasRenderer(value: CanvasRenderer): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) { @@ -21928,12 +22133,12 @@ export class Serializer extends SerializerBase { const value_hintRadius_value = value_hintRadius! let value_hintRadius_value_type: int32 = RuntimeType.UNDEFINED value_hintRadius_value_type = runtimeType(value_hintRadius_value) - if (((RuntimeType.NUMBER == value_hintRadius_value_type))) { + if (RuntimeType.NUMBER == value_hintRadius_value_type) { valueSerializer.writeInt8(0) const value_hintRadius_value_0 = unsafeCast(value_hintRadius_value) valueSerializer.writeNumber(value_hintRadius_value_0) } - else if (((RuntimeType.OBJECT == value_hintRadius_value_type))) { + else if (RuntimeType.OBJECT == value_hintRadius_value_type) { valueSerializer.writeInt8(1) const value_hintRadius_value_1 = unsafeCast(value_hintRadius_value) valueSerializer.writeResource(value_hintRadius_value_1) @@ -21985,17 +22190,17 @@ export class Serializer extends SerializerBase { const value_workDayMarkColor_value_0 = unsafeCast(value_workDayMarkColor_value) valueSerializer.writeInt32(value_workDayMarkColor_value_0) } - else if (((RuntimeType.NUMBER == value_workDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(1) const value_workDayMarkColor_value_1 = unsafeCast(value_workDayMarkColor_value) valueSerializer.writeNumber(value_workDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_workDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(2) const value_workDayMarkColor_value_2 = unsafeCast(value_workDayMarkColor_value) valueSerializer.writeString(value_workDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_workDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_workDayMarkColor_value_type) { valueSerializer.writeInt8(3) const value_workDayMarkColor_value_3 = unsafeCast(value_workDayMarkColor_value) valueSerializer.writeResource(value_workDayMarkColor_value_3) @@ -22014,17 +22219,17 @@ export class Serializer extends SerializerBase { const value_offDayMarkColor_value_0 = unsafeCast(value_offDayMarkColor_value) valueSerializer.writeInt32(value_offDayMarkColor_value_0) } - else if (((RuntimeType.NUMBER == value_offDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(1) const value_offDayMarkColor_value_1 = unsafeCast(value_offDayMarkColor_value) valueSerializer.writeNumber(value_offDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_offDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(2) const value_offDayMarkColor_value_2 = unsafeCast(value_offDayMarkColor_value) valueSerializer.writeString(value_offDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_offDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_offDayMarkColor_value_type) { valueSerializer.writeInt8(3) const value_offDayMarkColor_value_3 = unsafeCast(value_offDayMarkColor_value) valueSerializer.writeResource(value_offDayMarkColor_value_3) @@ -22086,17 +22291,17 @@ export class Serializer extends SerializerBase { const value_weekColor_value_0 = unsafeCast(value_weekColor_value) valueSerializer.writeInt32(value_weekColor_value_0) } - else if (((RuntimeType.NUMBER == value_weekColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekColor_value_type) { valueSerializer.writeInt8(1) const value_weekColor_value_1 = unsafeCast(value_weekColor_value) valueSerializer.writeNumber(value_weekColor_value_1) } - else if (((RuntimeType.STRING == value_weekColor_value_type))) { + else if (RuntimeType.STRING == value_weekColor_value_type) { valueSerializer.writeInt8(2) const value_weekColor_value_2 = unsafeCast(value_weekColor_value) valueSerializer.writeString(value_weekColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekColor_value_type) { valueSerializer.writeInt8(3) const value_weekColor_value_3 = unsafeCast(value_weekColor_value) valueSerializer.writeResource(value_weekColor_value_3) @@ -22115,17 +22320,17 @@ export class Serializer extends SerializerBase { const value_weekendDayColor_value_0 = unsafeCast(value_weekendDayColor_value) valueSerializer.writeInt32(value_weekendDayColor_value_0) } - else if (((RuntimeType.NUMBER == value_weekendDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekendDayColor_value_type) { valueSerializer.writeInt8(1) const value_weekendDayColor_value_1 = unsafeCast(value_weekendDayColor_value) valueSerializer.writeNumber(value_weekendDayColor_value_1) } - else if (((RuntimeType.STRING == value_weekendDayColor_value_type))) { + else if (RuntimeType.STRING == value_weekendDayColor_value_type) { valueSerializer.writeInt8(2) const value_weekendDayColor_value_2 = unsafeCast(value_weekendDayColor_value) valueSerializer.writeString(value_weekendDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekendDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekendDayColor_value_type) { valueSerializer.writeInt8(3) const value_weekendDayColor_value_3 = unsafeCast(value_weekendDayColor_value) valueSerializer.writeResource(value_weekendDayColor_value_3) @@ -22144,17 +22349,17 @@ export class Serializer extends SerializerBase { const value_weekendLunarColor_value_0 = unsafeCast(value_weekendLunarColor_value) valueSerializer.writeInt32(value_weekendLunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_weekendLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(1) const value_weekendLunarColor_value_1 = unsafeCast(value_weekendLunarColor_value) valueSerializer.writeNumber(value_weekendLunarColor_value_1) } - else if (((RuntimeType.STRING == value_weekendLunarColor_value_type))) { + else if (RuntimeType.STRING == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(2) const value_weekendLunarColor_value_2 = unsafeCast(value_weekendLunarColor_value) valueSerializer.writeString(value_weekendLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_weekendLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_weekendLunarColor_value_type) { valueSerializer.writeInt8(3) const value_weekendLunarColor_value_3 = unsafeCast(value_weekendLunarColor_value) valueSerializer.writeResource(value_weekendLunarColor_value_3) @@ -22208,17 +22413,17 @@ export class Serializer extends SerializerBase { const value_focusedDayColor_value_0 = unsafeCast(value_focusedDayColor_value) valueSerializer.writeInt32(value_focusedDayColor_value_0) } - else if (((RuntimeType.NUMBER == value_focusedDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedDayColor_value_type) { valueSerializer.writeInt8(1) const value_focusedDayColor_value_1 = unsafeCast(value_focusedDayColor_value) valueSerializer.writeNumber(value_focusedDayColor_value_1) } - else if (((RuntimeType.STRING == value_focusedDayColor_value_type))) { + else if (RuntimeType.STRING == value_focusedDayColor_value_type) { valueSerializer.writeInt8(2) const value_focusedDayColor_value_2 = unsafeCast(value_focusedDayColor_value) valueSerializer.writeString(value_focusedDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedDayColor_value_type) { valueSerializer.writeInt8(3) const value_focusedDayColor_value_3 = unsafeCast(value_focusedDayColor_value) valueSerializer.writeResource(value_focusedDayColor_value_3) @@ -22237,17 +22442,17 @@ export class Serializer extends SerializerBase { const value_focusedLunarColor_value_0 = unsafeCast(value_focusedLunarColor_value) valueSerializer.writeInt32(value_focusedLunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_focusedLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(1) const value_focusedLunarColor_value_1 = unsafeCast(value_focusedLunarColor_value) valueSerializer.writeNumber(value_focusedLunarColor_value_1) } - else if (((RuntimeType.STRING == value_focusedLunarColor_value_type))) { + else if (RuntimeType.STRING == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(2) const value_focusedLunarColor_value_2 = unsafeCast(value_focusedLunarColor_value) valueSerializer.writeString(value_focusedLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedLunarColor_value_type) { valueSerializer.writeInt8(3) const value_focusedLunarColor_value_3 = unsafeCast(value_focusedLunarColor_value) valueSerializer.writeResource(value_focusedLunarColor_value_3) @@ -22266,17 +22471,17 @@ export class Serializer extends SerializerBase { const value_focusedAreaBackgroundColor_value_0 = unsafeCast(value_focusedAreaBackgroundColor_value) valueSerializer.writeInt32(value_focusedAreaBackgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(1) const value_focusedAreaBackgroundColor_value_1 = unsafeCast(value_focusedAreaBackgroundColor_value) valueSerializer.writeNumber(value_focusedAreaBackgroundColor_value_1) } - else if (((RuntimeType.STRING == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.STRING == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(2) const value_focusedAreaBackgroundColor_value_2 = unsafeCast(value_focusedAreaBackgroundColor_value) valueSerializer.writeString(value_focusedAreaBackgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_focusedAreaBackgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_focusedAreaBackgroundColor_value_type) { valueSerializer.writeInt8(3) const value_focusedAreaBackgroundColor_value_3 = unsafeCast(value_focusedAreaBackgroundColor_value) valueSerializer.writeResource(value_focusedAreaBackgroundColor_value_3) @@ -22306,17 +22511,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthDayColor_value_0 = unsafeCast(value_nonCurrentMonthDayColor_value) valueSerializer.writeInt32(value_nonCurrentMonthDayColor_value_0) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(1) const value_nonCurrentMonthDayColor_value_1 = unsafeCast(value_nonCurrentMonthDayColor_value) valueSerializer.writeNumber(value_nonCurrentMonthDayColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(2) const value_nonCurrentMonthDayColor_value_2 = unsafeCast(value_nonCurrentMonthDayColor_value) valueSerializer.writeString(value_nonCurrentMonthDayColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthDayColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthDayColor_value_type) { valueSerializer.writeInt8(3) const value_nonCurrentMonthDayColor_value_3 = unsafeCast(value_nonCurrentMonthDayColor_value) valueSerializer.writeResource(value_nonCurrentMonthDayColor_value_3) @@ -22335,17 +22540,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthLunarColor_value_0 = unsafeCast(value_nonCurrentMonthLunarColor_value) valueSerializer.writeInt32(value_nonCurrentMonthLunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(1) const value_nonCurrentMonthLunarColor_value_1 = unsafeCast(value_nonCurrentMonthLunarColor_value) valueSerializer.writeNumber(value_nonCurrentMonthLunarColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(2) const value_nonCurrentMonthLunarColor_value_2 = unsafeCast(value_nonCurrentMonthLunarColor_value) valueSerializer.writeString(value_nonCurrentMonthLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthLunarColor_value_type) { valueSerializer.writeInt8(3) const value_nonCurrentMonthLunarColor_value_3 = unsafeCast(value_nonCurrentMonthLunarColor_value) valueSerializer.writeResource(value_nonCurrentMonthLunarColor_value_3) @@ -22364,17 +22569,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthWorkDayMarkColor_value_0 = unsafeCast(value_nonCurrentMonthWorkDayMarkColor_value) valueSerializer.writeInt32(value_nonCurrentMonthWorkDayMarkColor_value_0) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(1) const value_nonCurrentMonthWorkDayMarkColor_value_1 = unsafeCast(value_nonCurrentMonthWorkDayMarkColor_value) valueSerializer.writeNumber(value_nonCurrentMonthWorkDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(2) const value_nonCurrentMonthWorkDayMarkColor_value_2 = unsafeCast(value_nonCurrentMonthWorkDayMarkColor_value) valueSerializer.writeString(value_nonCurrentMonthWorkDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthWorkDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthWorkDayMarkColor_value_type) { valueSerializer.writeInt8(3) const value_nonCurrentMonthWorkDayMarkColor_value_3 = unsafeCast(value_nonCurrentMonthWorkDayMarkColor_value) valueSerializer.writeResource(value_nonCurrentMonthWorkDayMarkColor_value_3) @@ -22393,17 +22598,17 @@ export class Serializer extends SerializerBase { const value_nonCurrentMonthOffDayMarkColor_value_0 = unsafeCast(value_nonCurrentMonthOffDayMarkColor_value) valueSerializer.writeInt32(value_nonCurrentMonthOffDayMarkColor_value_0) } - else if (((RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.NUMBER == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(1) const value_nonCurrentMonthOffDayMarkColor_value_1 = unsafeCast(value_nonCurrentMonthOffDayMarkColor_value) valueSerializer.writeNumber(value_nonCurrentMonthOffDayMarkColor_value_1) } - else if (((RuntimeType.STRING == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.STRING == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(2) const value_nonCurrentMonthOffDayMarkColor_value_2 = unsafeCast(value_nonCurrentMonthOffDayMarkColor_value) valueSerializer.writeString(value_nonCurrentMonthOffDayMarkColor_value_2) } - else if (((RuntimeType.OBJECT == value_nonCurrentMonthOffDayMarkColor_value_type))) { + else if (RuntimeType.OBJECT == value_nonCurrentMonthOffDayMarkColor_value_type) { valueSerializer.writeInt8(3) const value_nonCurrentMonthOffDayMarkColor_value_3 = unsafeCast(value_nonCurrentMonthOffDayMarkColor_value) valueSerializer.writeResource(value_nonCurrentMonthOffDayMarkColor_value_3) @@ -22425,17 +22630,17 @@ export class Serializer extends SerializerBase { const value_dayColor_value_0 = unsafeCast(value_dayColor_value) valueSerializer.writeInt32(value_dayColor_value_0) } - else if (((RuntimeType.NUMBER == value_dayColor_value_type))) { + else if (RuntimeType.NUMBER == value_dayColor_value_type) { valueSerializer.writeInt8(1) const value_dayColor_value_1 = unsafeCast(value_dayColor_value) valueSerializer.writeNumber(value_dayColor_value_1) } - else if (((RuntimeType.STRING == value_dayColor_value_type))) { + else if (RuntimeType.STRING == value_dayColor_value_type) { valueSerializer.writeInt8(2) const value_dayColor_value_2 = unsafeCast(value_dayColor_value) valueSerializer.writeString(value_dayColor_value_2) } - else if (((RuntimeType.OBJECT == value_dayColor_value_type))) { + else if (RuntimeType.OBJECT == value_dayColor_value_type) { valueSerializer.writeInt8(3) const value_dayColor_value_3 = unsafeCast(value_dayColor_value) valueSerializer.writeResource(value_dayColor_value_3) @@ -22454,17 +22659,17 @@ export class Serializer extends SerializerBase { const value_lunarColor_value_0 = unsafeCast(value_lunarColor_value) valueSerializer.writeInt32(value_lunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_lunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_lunarColor_value_type) { valueSerializer.writeInt8(1) const value_lunarColor_value_1 = unsafeCast(value_lunarColor_value) valueSerializer.writeNumber(value_lunarColor_value_1) } - else if (((RuntimeType.STRING == value_lunarColor_value_type))) { + else if (RuntimeType.STRING == value_lunarColor_value_type) { valueSerializer.writeInt8(2) const value_lunarColor_value_2 = unsafeCast(value_lunarColor_value) valueSerializer.writeString(value_lunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_lunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_lunarColor_value_type) { valueSerializer.writeInt8(3) const value_lunarColor_value_3 = unsafeCast(value_lunarColor_value) valueSerializer.writeResource(value_lunarColor_value_3) @@ -22483,17 +22688,17 @@ export class Serializer extends SerializerBase { const value_markLunarColor_value_0 = unsafeCast(value_markLunarColor_value) valueSerializer.writeInt32(value_markLunarColor_value_0) } - else if (((RuntimeType.NUMBER == value_markLunarColor_value_type))) { + else if (RuntimeType.NUMBER == value_markLunarColor_value_type) { valueSerializer.writeInt8(1) const value_markLunarColor_value_1 = unsafeCast(value_markLunarColor_value) valueSerializer.writeNumber(value_markLunarColor_value_1) } - else if (((RuntimeType.STRING == value_markLunarColor_value_type))) { + else if (RuntimeType.STRING == value_markLunarColor_value_type) { valueSerializer.writeInt8(2) const value_markLunarColor_value_2 = unsafeCast(value_markLunarColor_value) valueSerializer.writeString(value_markLunarColor_value_2) } - else if (((RuntimeType.OBJECT == value_markLunarColor_value_type))) { + else if (RuntimeType.OBJECT == value_markLunarColor_value_type) { valueSerializer.writeInt8(3) const value_markLunarColor_value_3 = unsafeCast(value_markLunarColor_value) valueSerializer.writeResource(value_markLunarColor_value_3) @@ -22738,12 +22943,12 @@ export class Serializer extends SerializerBase { const value_position_value = value_position! let value_position_value_type: int32 = RuntimeType.UNDEFINED value_position_value_type = runtimeType(value_position_value) - if (((RuntimeType.NUMBER == value_position_value_type))) { + if (RuntimeType.NUMBER == value_position_value_type) { valueSerializer.writeInt8(0) const value_position_value_0 = unsafeCast(value_position_value) valueSerializer.writeInt32(value_position_value_0) } - else if (((RuntimeType.OBJECT == value_position_value_type))) { + else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1) const value_position_value_1 = unsafeCast(value_position_value) valueSerializer.writePosition(value_position_value_1) @@ -22764,12 +22969,12 @@ export class Serializer extends SerializerBase { const value_position_value = value_position! let value_position_value_type: int32 = RuntimeType.UNDEFINED value_position_value_type = runtimeType(value_position_value) - if (((RuntimeType.NUMBER == value_position_value_type))) { + if (RuntimeType.NUMBER == value_position_value_type) { valueSerializer.writeInt8(0) const value_position_value_0 = unsafeCast(value_position_value) valueSerializer.writeInt32(value_position_value_0) } - else if (((RuntimeType.OBJECT == value_position_value_type))) { + else if (RuntimeType.OBJECT == value_position_value_type) { valueSerializer.writeInt8(1) const value_position_value_1 = unsafeCast(value_position_value) valueSerializer.writePosition(value_position_value_1) @@ -22896,12 +23101,12 @@ export class Serializer extends SerializerBase { const value_value = value.value let value_value_type: int32 = RuntimeType.UNDEFINED value_value_type = runtimeType(value_value) - if (((RuntimeType.STRING == value_value_type))) { + if (RuntimeType.STRING == value_value_type) { valueSerializer.writeInt8(0) const value_value_0 = unsafeCast(value_value) valueSerializer.writeString(value_value_0) } - else if (((RuntimeType.OBJECT == value_value_type))) { + else if (RuntimeType.OBJECT == value_value_type) { valueSerializer.writeInt8(1) const value_value_1 = unsafeCast(value_value) valueSerializer.writeResource(value_value_1) @@ -22919,17 +23124,17 @@ export class Serializer extends SerializerBase { const value_fontColor_value_0 = unsafeCast(value_fontColor_value) valueSerializer.writeInt32(value_fontColor_value_0) } - else if (((RuntimeType.NUMBER == value_fontColor_value_type))) { + else if (RuntimeType.NUMBER == value_fontColor_value_type) { valueSerializer.writeInt8(1) const value_fontColor_value_1 = unsafeCast(value_fontColor_value) valueSerializer.writeNumber(value_fontColor_value_1) } - else if (((RuntimeType.STRING == value_fontColor_value_type))) { + else if (RuntimeType.STRING == value_fontColor_value_type) { valueSerializer.writeInt8(2) const value_fontColor_value_2 = unsafeCast(value_fontColor_value) valueSerializer.writeString(value_fontColor_value_2) } - else if (((RuntimeType.OBJECT == value_fontColor_value_type))) { + else if (RuntimeType.OBJECT == value_fontColor_value_type) { valueSerializer.writeInt8(3) const value_fontColor_value_3 = unsafeCast(value_fontColor_value) valueSerializer.writeResource(value_fontColor_value_3) @@ -22948,17 +23153,17 @@ export class Serializer extends SerializerBase { const value_backgroundColor_value_0 = unsafeCast(value_backgroundColor_value) valueSerializer.writeInt32(value_backgroundColor_value_0) } - else if (((RuntimeType.NUMBER == value_backgroundColor_value_type))) { + else if (RuntimeType.NUMBER == value_backgroundColor_value_type) { valueSerializer.writeInt8(1) const value_backgroundColor_value_1 = unsafeCast(value_backgroundColor_value) valueSerializer.writeNumber(value_backgroundColor_value_1) } - else if (((RuntimeType.STRING == value_backgroundColor_value_type))) { + else if (RuntimeType.STRING == value_backgroundColor_value_type) { valueSerializer.writeInt8(2) const value_backgroundColor_value_2 = unsafeCast(value_backgroundColor_value) valueSerializer.writeString(value_backgroundColor_value_2) } - else if (((RuntimeType.OBJECT == value_backgroundColor_value_type))) { + else if (RuntimeType.OBJECT == value_backgroundColor_value_type) { valueSerializer.writeInt8(3) const value_backgroundColor_value_3 = unsafeCast(value_backgroundColor_value) valueSerializer.writeResource(value_backgroundColor_value_3) @@ -23004,12 +23209,12 @@ export class Serializer extends SerializerBase { const value_title = value.title let value_title_type: int32 = RuntimeType.UNDEFINED value_title_type = runtimeType(value_title) - if (((RuntimeType.STRING == value_title_type))) { + if (RuntimeType.STRING == value_title_type) { valueSerializer.writeInt8(0) const value_title_0 = unsafeCast(value_title) valueSerializer.writeString(value_title_0) } - else if (((RuntimeType.OBJECT == value_title_type))) { + else if (RuntimeType.OBJECT == value_title_type) { valueSerializer.writeInt8(1) const value_title_1 = unsafeCast(value_title) valueSerializer.writeResource(value_title_1) @@ -23022,12 +23227,12 @@ export class Serializer extends SerializerBase { const value_icon_value = value_icon! let value_icon_value_type: int32 = RuntimeType.UNDEFINED value_icon_value_type = runtimeType(value_icon_value) - if (((RuntimeType.STRING == value_icon_value_type))) { + if (RuntimeType.STRING == value_icon_value_type) { valueSerializer.writeInt8(0) const value_icon_value_0 = unsafeCast(value_icon_value) valueSerializer.writeString(value_icon_value_0) } - else if (((RuntimeType.OBJECT == value_icon_value_type))) { + else if (RuntimeType.OBJECT == value_icon_value_type) { valueSerializer.writeInt8(1) const value_icon_value_1 = unsafeCast(value_icon_value) valueSerializer.writeResource(value_icon_value_1) @@ -23128,6 +23333,23 @@ export class Serializer extends SerializerBase { const value_headerValue = value.headerValue valueSerializer.writeString(value_headerValue) } + writeSystemOps(value: SystemOps): void { + let valueSerializer: Serializer = this + if (value.hasOwnProperty("peer")) + { + const base: MaterializedBase = unsafeCast(value) + const peer = base.getPeer() + let ptr: KPointer = nullptr + if (peer != undefined) + ptr = peer.ptr + valueSerializer.writePointer(ptr) + return + } + else + { + throw new Error("Value is not a MaterializedBase instance!") + } + } writeLazyForEachOps(value: LazyForEachOps): void { let valueSerializer: Serializer = this if (value.hasOwnProperty("peer")) diff --git a/arkoala-arkts/arkui/src/generated/MaterializedBase.ts b/arkoala/arkui/src/generated/shared/generated-utils.ts similarity index 69% rename from arkoala-arkts/arkui/src/generated/MaterializedBase.ts rename to arkoala/arkui/src/generated/shared/generated-utils.ts index dd2abe85887317b070728df51cf2267b1fb7d225..59eb317f5d9a80065e88a085a8d16bede6c94959 100644 --- a/arkoala-arkts/arkui/src/generated/MaterializedBase.ts +++ b/arkoala/arkui/src/generated/shared/generated-utils.ts @@ -13,9 +13,20 @@ * limitations under the License. */ -import { Finalizable } from "@koalaui/interop" +export { unsafeCast } from "@koalaui/interop" -export interface MaterializedBase { - getPeer(): Finalizable | undefined +export enum GestureName { + Tap, + LongPress, + Pan, + Pinch, + Swipe, + Rotation, + Group } +export class GestureComponent { + public type?: GestureName + public value?: T + public hasEvent?: Int32Array +} diff --git a/arkoala/arkui/src/use_properties.ts b/arkoala/arkui/src/generated/use_properties.ts similarity index 93% rename from arkoala/arkui/src/use_properties.ts rename to arkoala/arkui/src/generated/use_properties.ts index bdd36496b1e6735b3efe407082536a137da118cb..2aa4d4cf228257e65596842ffab9c3edc0d3f3fa 100644 --- a/arkoala/arkui/src/use_properties.ts +++ b/arkoala/arkui/src/generated/use_properties.ts @@ -1,5 +1,3 @@ -// stub for idlize generated code - import { GeneratedPartialPropertiesType, PeerNode, PeerNodeType } from "@koalaui/arkoala" import { PeerEventsProperties } from "./peer_events" import { DataNode, contextNode } from "@koalaui/runtime" diff --git a/arkoala/arkui/src/handwritten/ArkNavPathStack.ts b/arkoala/arkui/src/handwritten/ArkNavPathStack.ts index cca42b1a1f71a5bd8c1a5cf19e6d2b690dbdff26..c4912da136c724679919411420412e5607442b0e 100644 --- a/arkoala/arkui/src/handwritten/ArkNavPathStack.ts +++ b/arkoala/arkui/src/handwritten/ArkNavPathStack.ts @@ -12,7 +12,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { GlobalStateManager, MutableState } from "@koalaui/runtime" export class PathData { readonly name: string diff --git a/arkoala/arkui/src/handwritten/ArkPageTransition.ts b/arkoala/arkui/src/handwritten/ArkPageTransition.ts index f681be159a84f3378d862216e50a99855399c1cc..7b3adec0c3a614fad74f22a3c12eac55411d699c 100644 --- a/arkoala/arkui/src/handwritten/ArkPageTransition.ts +++ b/arkoala/arkui/src/handwritten/ArkPageTransition.ts @@ -17,6 +17,7 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { ComponentBase } from "../ComponentBase" + /** @memo:stable */ export class ArkCommonTransitionComponent extends ComponentBase { // getPeer(): ArkCommonTransitionPeer { diff --git a/arkoala/arkui/src/index.ts b/arkoala/arkui/src/index.ts index a0aa4dab87a1971eaea71a8964facdc142589ca9..cf654d25924006d80bba95b421cbec52f9021a9e 100644 --- a/arkoala/arkui/src/index.ts +++ b/arkoala/arkui/src/index.ts @@ -12,43 +12,43 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -export * from "./ArkUIGeneratedNativeModule" -export * from "./ArkUIGeneratedNativeModuleEmpty" +export * from "./generated/ArkUIGeneratedNativeModule" +export * from "./generated/ArkUIGeneratedNativeModuleEmpty" export * from "./peer_events_checker" export * from "./root_construct" -export * from "./ArkButton" -export * from "./ArkColumn" -export { ArkCommonMethodComponent} from "./ArkCommon" -export * from "./ArkXComponentControllerMaterialized" -export * from "./ArkScrollerMaterialized" -export * from "./ArkVideoControllerMaterialized" -export * from "./ArkCanvasRenderingContext2DMaterialized" +export * from "./generated/ArkButton" +export * from "./generated/ArkColumn" +export { ArkCommonMethodComponent} from "./generated/ArkCommon" +export * from "./generated/ArkXComponentControllerMaterialized" +export * from "./generated/ArkScrollerMaterialized" +export * from "./generated/ArkVideoControllerMaterialized" +export * from "./generated/ArkCanvasRenderingContext2DMaterialized" export * from "./ComponentBase" -export * from "./ArkColumnSplit" -export * from "./ArkRow" -export * from "./ArkRowSplit" -export * from "./ArkText" -export * from "./ArkTextArea" -export * from "./ArkTextInput" -export * from "./ArkImage" -export * from "./ArkMediaCachedImage" -export * from "./ArkStack" -export * from "./ArkList" -export * from "./ArkListItem" -export * from "./ArkDatePicker" -export * from "./ArkDivider" -export * from "./ArkFlex" -export * from "./ArkFormLink" -export * from "./ArkVideo" -export * from "./ArkWeb" -export * from "./ArkNavigator" -export * from "./ArkGrid" -export * from "./ArkGridItem" -export * from "./ArkScrollBar" -export * from "./ArkScroll" -export * from "./ArkSlider" -export * from "./ArkStepper" -export * from "./ArkSwiper" +export * from "./generated/ArkColumnSplit" +export * from "./generated/ArkRow" +export * from "./generated/ArkRowSplit" +export * from "./generated/ArkText" +export * from "./generated/ArkTextArea" +export * from "./generated/ArkTextInput" +export * from "./generated/ArkImage" +export * from "./generated/ArkMediaCachedImage" +export * from "./generated/ArkStack" +export * from "./generated/ArkList" +export * from "./generated/ArkListItem" +export * from "./generated/ArkDatePicker" +export * from "./generated/ArkDivider" +export * from "./generated/ArkFlex" +export * from "./generated/ArkFormLink" +export * from "./generated/ArkVideo" +export * from "./generated/ArkWeb" +export * from "./generated/ArkNavigator" +export * from "./generated/ArkGrid" +export * from "./generated/ArkGridItem" +export * from "./generated/ArkScrollBar" +export * from "./generated/ArkScroll" +export * from "./generated/ArkSlider" +export * from "./generated/ArkStepper" +export * from "./generated/ArkSwiper" export * from "./shared/ArkResource" export * from "./ArkComponentRoot" export * from "./ArkCustomDialogCommon" @@ -58,71 +58,71 @@ export * from "./Events" export * from "./ArkRoot" export * from "./ForEach" export * from "./LazyForEach" -export * from "./ArkTabs" +export * from "./generated/ArkTabs" export * from "./shared/Controllers" export * from "./ArkAnimation" export * from "./handwritten/ArkPageTransition" export * from "./handwritten/ArkNavPathStack" export * from "./shared/ohos.router" export * from "./shared/ohos.matrix4" -export * from "./ArkNavDestination" +export * from "./generated/ArkNavDestination" export * from "./ArkGesture" -export * from "./ArkCanvas" -export * from "./ArkGauge" -export * from "./ArkBadge" -export * from "./ArkHyperlink" -export * from "./ArkToggle" -export * from "./ArkRefresh" -export * from "./ArkAlphabetIndexer" -export * from "./ArkBlank" -export * from "./ArkCheckbox" -export * from "./ArkCheckboxgroup" -export * from "./ArkMenu" -export * from "./ArkMenuItem" -export * from "./ArkMenuItemGroup" -export * from "./ArkListItemGroup" -export * from "./ArkLoadingProgress" -export * from "./ArkImageAnimator" -export * from "./ArkRating" -export * from "./ArkSearch" -export * from "./ArkTextClock" -export * from "./ArkTextPicker" -export * from "./ArkTextTimer" -export * from "./ArkTimePicker" +export * from "./generated/ArkCanvas" +export * from "./generated/ArkGauge" +export * from "./generated/ArkBadge" +export * from "./generated/ArkHyperlink" +export * from "./generated/ArkToggle" +export * from "./generated/ArkRefresh" +export * from "./generated/ArkAlphabetIndexer" +export * from "./generated/ArkBlank" +export * from "./generated/ArkCheckbox" +export * from "./generated/ArkCheckboxgroup" +export * from "./generated/ArkMenu" +export * from "./generated/ArkMenuItem" +export * from "./generated/ArkMenuItemGroup" +export * from "./generated/ArkListItemGroup" +export * from "./generated/ArkLoadingProgress" +export * from "./generated/ArkImageAnimator" +export * from "./generated/ArkRating" +export * from "./generated/ArkSearch" +export * from "./generated/ArkTextClock" +export * from "./generated/ArkTextPicker" +export * from "./generated/ArkTextTimer" +export * from "./generated/ArkTimePicker" -export * from "./ArkTabContent" -export * from "./ArkSidebar" +export * from "./generated/ArkTabContent" +export * from "./generated/ArkSidebar" -export * from "./ArkMarquee" -export * from "./ArkSpan" -export * from "./ArkSelect" -export * from "./ArkCounter" -export * from "./ArkGridCol" -export * from "./ArkGridRow" -export * from "./ArkXcomponent" -export * from "./ArkRelativeContainer" -export * from "./ArkWeb" -export * from "./ArkEffectComponent" +export * from "./generated/ArkMarquee" +export * from "./generated/ArkSpan" +export * from "./generated/ArkSelect" +export * from "./generated/ArkCounter" +export * from "./generated/ArkGridCol" +export * from "./generated/ArkGridRow" +export * from "./generated/ArkXcomponent" +export * from "./generated/ArkRelativeContainer" +export * from "./generated/ArkWeb" +export * from "./generated/ArkEffectComponent" -export * from "./ArkRadio" -export * from "./ArkPatternLock" +export * from "./generated/ArkRadio" +export * from "./generated/ArkPatternLock" -export * from "./ArkRichEditor" -export * from "./ArkQrcode" +export * from "./generated/ArkRichEditor" +export * from "./generated/ArkQrcode" //shape -export * from "./ArkShape" -export * from "./ArkLine" -export * from "./ArkCircle" -export * from "./ArkEllipse" -export * from "./ArkPolygon" -export * from "./ArkPolyline" -export * from "./ArkRect" -export * from "./ArkPath" +export * from "./generated/ArkShape" +export * from "./generated/ArkLine" +export * from "./generated/ArkCircle" +export * from "./generated/ArkEllipse" +export * from "./generated/ArkPolygon" +export * from "./generated/ArkPolyline" +export * from "./generated/ArkRect" +export * from "./generated/ArkPath" export { _r, _rawfile, __registerResources } from "./resources" export * from "./ArkTransition" -export * from "./ArkDataPanel" -export * from "./ArkPanel" +export * from "./generated/ArkDataPanel" +export * from "./generated/ArkPanel" export { ArkPageTransitionEnterComponent, ArkPageTransitionEnterComponent as PageTransitionEnterAttribute, @@ -134,9 +134,9 @@ export { export { Observed, observableProxy } from "@koalaui/common" export * from "@koalaui/arkui-common" export * from "./shared/ArkUtils" -export * from "./peers/ArkButtonPeer" -export { ArkCommonMethodPeer } from "./peers/ArkCommonPeer" -export * from "./peers/ArkTextInputPeer" +export * from "./generated/peers/ArkButtonPeer" +export { ArkCommonMethodPeer } from "./generated/peers/ArkCommonPeer" +export * from "./generated/peers/ArkTextInputPeer" export { startApplicationByPageUrl } from "./startApplication" @@ -144,83 +144,83 @@ export { startApplicationByPageUrl } from "./startApplication" export { ArkUINodeType } from "./peers/ArkUINodeType" export { LinearGradient } from "./shared/LinearGradient" -export * from "./peers/ArkCommonPeer" -export * from "./ArkSubTabBarStyleBuilder" -export * from "./ArkBottomTabBarStyleBuilder" -export * from "./ArkIndicatorBuilder" +export * from "./generated/peers/ArkCommonPeer" +export * from "./generated/ArkSubTabBarStyleBuilder" +export * from "./generated/ArkBottomTabBarStyleBuilder" +export * from "./generated/ArkIndicatorBuilder" export * from "./ArkNavigation" export { Attach } from "./ComponentBase" -export * from "./ArkNavPathStackMaterialized" -export * from "./ArkTabsControllerMaterialized" -export * from "./ArkRenderingContextSettingsMaterialized" +export * from "./generated/ArkNavPathStackMaterialized" +export * from "./generated/ArkTabsControllerMaterialized" +export * from "./generated/ArkRenderingContextSettingsMaterialized" -export * from "./ArkAlertDialogInterfaces" -export * from "./ArkAlphabetIndexerInterfaces" -export * from "./ArkArkuiCustomInterfaces" -export * from "./ArkArkuiExternalInterfaces" -export * from "./ArkBadgeInterfaces" -export * from "./ArkButtonInterfaces" -export * from "./ArkCanvasInterfaces" -export * from "./ArkCalendarPickerInterfaces" -export * from "./ArkCheckboxgroupInterfaces" -export * from "./ArkCommonInterfaces" -export * from "./ArkComponent3dInterfaces" -export * from "./ArkDataPanelInterfaces" -export * from "./ArkEnumsInterfaces" -export * from "./ArkFocusInterfaces" -export * from "./ArkFormComponentInterfaces" -export * from "./ArkGestureInterfaces" -export * from "./ArkGridContainerInterfaces" -export * from "./ArkGridInterfaces" -export * from "./ArkGridItemInterfaces" -export * from "./ArkGridRowInterfaces" -export * from "./ArkImageCommonInterfaces" -export * from "./ArkImageInterfaces" -export * from "./ArkLazyForEachInterfaces" -export * from "./ArkListInterfaces" -export * from "./ArkListItemGroupInterfaces" -export * from "./ArkListItemInterfaces" -export * from "./ArkLoadingProgressInterfaces" -export * from "./ArkLocationButtonInterfaces" -export * from "./ArkMenuInterfaces" -export * from "./ArkNavDestinationInterfaces" -export * from "./ArkNavigationInterfaces" -export * from "./ArkNavigatorInterfaces" -export * from "./ArkNavRouterInterfaces" -export * from "./ArkPageTransitionInterfaces" -export * from "./ArkPanelInterfaces" -export * from "./ArkParticleInterfaces" -export * from "./ArkPasteButtonInterfaces" -export * from "./ArkPatternLockInterfaces" -export * from "./ArkProgressInterfaces" -export * from "./ArkRadioInterfaces" -export * from "./ArkRefreshInterfaces" -export * from "./ArkRelativeContainerInterfaces" -export * from "./ArkResourceInterfaces" -export * from "./ArkRichEditorInterfaces" -export * from "./ArkSaveButtonInterfaces" -export * from "./ArkScrollBarInterfaces" -export * from "./ArkScrollInterfaces" -export * from "./ArkSearchInterfaces" -export * from "./ArkSecurityComponentInterfaces" -export * from "./ArkSelectInterfaces" -export * from "./ArkSidebarInterfaces" -export * from "./ArkSliderInterfaces" -export * from "./ArkStateManagementInterfaces" -export * from "./ArkStepperItemInterfaces" -export * from "./ArkStyledStringInterfaces" -export * from "./ArkSwiperInterfaces" -export * from "./ArkSymbolglyphInterfaces" -export * from "./ArkTabContentInterfaces" -export * from "./ArkTabsInterfaces" -export * from "./ArkTextAreaInterfaces" -export * from "./ArkTextCommonInterfaces" -export * from "./ArkTextInputInterfaces" -export * from "./ArkTextInterfaces" -export * from "./ArkTimePickerInterfaces" -export * from "./ArkToggleInterfaces" -export * from "./ArkUiExtensionComponentInterfaces" -export * from "./ArkVideoInterfaces" -export * from "./ArkWaterFlowInterfaces" -export * from "./ArkWebInterfaces" +export * from "./generated/ArkAlertDialogInterfaces" +export * from "./generated/ArkAlphabetIndexerInterfaces" +export * from "./generated/ArkArkuiCustomInterfaces" +export * from "./generated/ArkArkuiExternalInterfaces" +export * from "./generated/ArkBadgeInterfaces" +export * from "./generated/ArkButtonInterfaces" +export * from "./generated/ArkCanvasInterfaces" +export * from "./generated/ArkCalendarPickerInterfaces" +export * from "./generated/ArkCheckboxgroupInterfaces" +export * from "./generated/ArkCommonInterfaces" +export * from "./generated/ArkComponent3dInterfaces" +export * from "./generated/ArkDataPanelInterfaces" +export * from "./generated/ArkEnumsInterfaces" +export * from "./generated/ArkFocusInterfaces" +export * from "./generated/ArkFormComponentInterfaces" +export * from "./generated/ArkGestureInterfaces" +export * from "./generated/ArkGridContainerInterfaces" +export * from "./generated/ArkGridInterfaces" +export * from "./generated/ArkGridItemInterfaces" +export * from "./generated/ArkGridRowInterfaces" +export * from "./generated/ArkImageCommonInterfaces" +export * from "./generated/ArkImageInterfaces" +export * from "./generated/ArkLazyForEachInterfaces" +export * from "./generated/ArkListInterfaces" +export * from "./generated/ArkListItemGroupInterfaces" +export * from "./generated/ArkListItemInterfaces" +export * from "./generated/ArkLoadingProgressInterfaces" +export * from "./generated/ArkLocationButtonInterfaces" +export * from "./generated/ArkMenuInterfaces" +export * from "./generated/ArkNavDestinationInterfaces" +export * from "./generated/ArkNavigationInterfaces" +export * from "./generated/ArkNavigatorInterfaces" +export * from "./generated/ArkNavRouterInterfaces" +export * from "./generated/ArkPageTransitionInterfaces" +export * from "./generated/ArkPanelInterfaces" +export * from "./generated/ArkParticleInterfaces" +export * from "./generated/ArkPasteButtonInterfaces" +export * from "./generated/ArkPatternLockInterfaces" +export * from "./generated/ArkProgressInterfaces" +export * from "./generated/ArkRadioInterfaces" +export * from "./generated/ArkRefreshInterfaces" +export * from "./generated/ArkRelativeContainerInterfaces" +export * from "./generated/ArkResourceInterfaces" +export * from "./generated/ArkRichEditorInterfaces" +export * from "./generated/ArkSaveButtonInterfaces" +export * from "./generated/ArkScrollBarInterfaces" +export * from "./generated/ArkScrollInterfaces" +export * from "./generated/ArkSearchInterfaces" +export * from "./generated/ArkSecurityComponentInterfaces" +export * from "./generated/ArkSelectInterfaces" +export * from "./generated/ArkSidebarInterfaces" +export * from "./generated/ArkSliderInterfaces" +export * from "./generated/ArkStateManagementInterfaces" +export * from "./generated/ArkStepperItemInterfaces" +export * from "./generated/ArkStyledStringInterfaces" +export * from "./generated/ArkSwiperInterfaces" +export * from "./generated/ArkSymbolglyphInterfaces" +export * from "./generated/ArkTabContentInterfaces" +export * from "./generated/ArkTabsInterfaces" +export * from "./generated/ArkTextAreaInterfaces" +export * from "./generated/ArkTextCommonInterfaces" +export * from "./generated/ArkTextInputInterfaces" +export * from "./generated/ArkTextInterfaces" +export * from "./generated/ArkTimePickerInterfaces" +export * from "./generated/ArkToggleInterfaces" +export * from "./generated/ArkUiExtensionComponentInterfaces" +export * from "./generated/ArkVideoInterfaces" +export * from "./generated/ArkWaterFlowInterfaces" +export * from "./generated/ArkWebInterfaces" diff --git a/arkoala/arkui/src/peer_events_checker.ts b/arkoala/arkui/src/peer_events_checker.ts index 4ec05894c91bfa6d8e30882513ad8a2ae9823992..441b21d9f79e57debda897a5530e6568dd0e75e2 100644 --- a/arkoala/arkui/src/peer_events_checker.ts +++ b/arkoala/arkui/src/peer_events_checker.ts @@ -1,7 +1,7 @@ -import {InteropNativeModule, ResourceHolder} from "@koalaui/interop" -import {setCustomEventsChecker} from "@koalaui/arkoala" -import {Deserializer} from "./peers/Deserializer" -import {deserializeAndCallCallback} from "./peers/CallbackDeserializeCall" +import { InteropNativeModule, ResourceHolder } from "@koalaui/interop" +import { setCustomEventsChecker } from "@koalaui/arkoala" +import { Deserializer } from "./generated/peers/Deserializer" +import { deserializeAndCallCallback } from "./generated/peers/CallbackDeserializeCall" enum CallbackEventKind { Event_CallCallback = 0, diff --git a/arkoala/arkui/src/peers/ArkNavigationPeer.ts b/arkoala/arkui/src/peers/ArkNavigationPeer.ts index 7265681878572504f61480bb704ca55dff63e34d..1987a2c1ae8f071bebc71f2204bea9e8366fb311 100644 --- a/arkoala/arkui/src/peers/ArkNavigationPeer.ts +++ b/arkoala/arkui/src/peers/ArkNavigationPeer.ts @@ -17,11 +17,11 @@ // WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! import { int32 } from "@koalaui/common" -import { nullptr, KPointer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" -import {ArkCommonMethodAttributes, ArkCommonMethodPeer} from "./ArkCommonPeer" -import {ComponentBase} from "../ComponentBase"; -import {PeerNode} from "../PeerNode"; -import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule" +import { KPointer } from "@koalaui/interop" +import { ArkCommonMethodAttributes, ArkCommonMethodPeer } from "../generated/peers/ArkCommonPeer" +import { ComponentBase } from "../ComponentBase"; +import { PeerNode } from "../PeerNode"; +import { ArkUIGeneratedNativeModule } from "../generated/ArkUIGeneratedNativeModule" export class ArkNavigationPeer extends ArkCommonMethodPeer { diff --git a/arkoala/arkui/src/resources.ts b/arkoala/arkui/src/resources.ts index 59269a9580a7cea85a8d7e2734265fc50be63c13..134a18a4c1d351fe02f6c2ca74f754b981e88a76 100644 --- a/arkoala/arkui/src/resources.ts +++ b/arkoala/arkui/src/resources.ts @@ -1,103 +1,40 @@ -/* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -import { ArkResource } from "./shared/ArkResource" - -const RESOURCE_TYPE: Record = { // Copied from ets2bundle/compiler/src/pre_define.ts - color: 10001, - float: 10002, - string: 10003, - plural: 10004, - boolean: 10005, - intarray: 10006, - integer: 10007, - pattern: 10008, - strarray: 10009, - media: 20000, - rawfile: 30000 -}; - -class ResourceContext { - private bundleName: string = "" - private moduleName: string = "" - private resources: Record = {} - - initialize(bundleName: string, moduleName: string, resources: Record) { - this.bundleName = bundleName - this.moduleName = moduleName - this.resources = resources - } - - getResourceDescriptor(name: string, key: string, type: string, params?: any[]): Resource { - if (!this.bundleName) throw new Error("Uninitialized resources") - - let typeId = RESOURCE_TYPE[type]! - if (typeId == undefined) throw new Error("Illegal resource type: " + type) - - let id = this.resources[key] - if (id == undefined) throw new Error("No such resource: " + key) - - return this.getResourceDescriptorFromRaw(name, id, typeId, params) - } - - getRawfileResourceDescriptor(name: string, key: string): Resource { - if (!this.bundleName) throw new Error("Uninitialized resources") - return this.getResourceDescriptorFromRaw(name, 0, RESOURCE_TYPE.rawfile, [key]) - } - - private getResourceDescriptorFromRaw(name: string, id: number, type: number, params?: any[]): Resource { - return new ArkResource( - this.bundleName, - this.moduleName, - id, - type, - name, - params - ) +export function _r(bundleName: string, moduleName: string, name: string): Resource { + const param: string = name.split(".")[1]; + let res_type = 20000; + + switch (param) { + case 'media': + res_type = 20000; + break; + case 'color': + res_type = 10001; + break; + case 'string': + res_type = 10003; + break; + case 'float': + res_type = 10002; + break; } -} - -const resourceContext = new ResourceContext() -// TODO consider resolving resources in plugin - -const KEY_SCOPE_SPLIT_REGEXP = new RegExp("(.*?)\\.(.*)") - -function getAppKey(key: string): string { - let parts = key.match(KEY_SCOPE_SPLIT_REGEXP) - if (!parts) throw new Error("Illegal key: " + key) - if (parts[1] !== "app") throw new Error("Only 'app' resources are supported") // TODO 'sys' resources - return parts[2] + return { + "id": -1, + "type": res_type, + "params": new Array(name), + "bundleName": bundleName, + "moduleName": moduleName + } as Resource } -export function _r(name: string, ...params: any[]): Resource { - let key = getAppKey(name) - let type = key.split(".", 1)[0] - return resourceContext.getResourceDescriptor(name, key, type, params) +export function _rawfile(bundleName: string, moduleName: string, name: string): Resource { + return { + "id": 0, + "type": 30000, + "params": new Array(name), + "bundleName": bundleName, + "moduleName": moduleName + } as Resource } -export function _rawfile(name: string): Resource { - // TODO Does rawfile support extra params? - return resourceContext.getRawfileResourceDescriptor(name, getAppKey('app.' + name)) -} - -// /** @internal */ -export function __registerResources(bundleName: string, moduleName: string, resources: Record) { - if (!bundleName) throw new RangeError("Illegal bundle name") - if (!moduleName) throw new RangeError("Illegal module name") - - resourceContext.initialize(bundleName, moduleName, resources) -} \ No newline at end of file +export function __registerResources(bundleName: string, moduleName: string, resources: Record) {} \ No newline at end of file diff --git a/arkoala/arkui/src/root_construct.ts b/arkoala/arkui/src/root_construct.ts index 9bfc5157246afa113c9c5061adacbcfe3e085e26..4bc42c5c8c17a56bcb8e1e3c037c5dac6481f75b 100644 --- a/arkoala/arkui/src/root_construct.ts +++ b/arkoala/arkui/src/root_construct.ts @@ -1,4 +1,4 @@ -import { ArkRootPeer } from "./peers/ArkStaticComponentsPeer" +import { ArkRootPeer } from "./generated/peers/ArkStaticComponentsPeer" import { setRootConstruct } from "@koalaui/arkoala" setRootConstruct(() => ArkRootPeer.create()) \ No newline at end of file diff --git a/arkoala/arkui/src/shared/Controllers.ts b/arkoala/arkui/src/shared/Controllers.ts index d7bbde2f4dc4be3b7ee11281c7cf89067e415a13..fbf5731b613fbbd2315376c9271fcc441d504347 100644 --- a/arkoala/arkui/src/shared/Controllers.ts +++ b/arkoala/arkui/src/shared/Controllers.ts @@ -13,10 +13,9 @@ * limitations under the License. */ -import { Access, nullptr, pointer, withFloat32Array, KFloat32ArrayPtr, withInt32Array, KInt32ArrayPtr } from "@koalaui/interop"; -import { parseDimension, translateGeoLengthToArray } from "./basic" -import {WebCookie} from "../ArkWebCookieMaterialized"; -import { ArkUIGeneratedNativeModule } from "../ArkUIGeneratedNativeModule"; +import { nullptr, pointer } from "@koalaui/interop"; +import { WebCookie } from "../generated/ArkWebCookieMaterialized"; +import { ArkUIGeneratedNativeModule } from "../generated/ArkUIGeneratedNativeModule"; interface RunJavaScriptType { script: string; diff --git a/arkoala/arkui/src/shared/basic.ts b/arkoala/arkui/src/shared/basic.ts index 8a2a4b5b6f0f6b598599d453aaecab26472745d3..3b7b2dd4894c16097d381faeb3f79816318d682c 100644 --- a/arkoala/arkui/src/shared/basic.ts +++ b/arkoala/arkui/src/shared/basic.ts @@ -15,7 +15,6 @@ import { ArkoalaColor, translateColorToArkoalaColor } from "./ArkoalaColor" import { isEdgeColors, isEdgeWidths } from "./utils" -import { Access, withFloat32Array, withString } from "@koalaui/interop"; import { parseFontWeight } from "../base/textUtils"; import { clamp } from "@koalaui/common"; diff --git a/arkoala/arkui/src/shared/generated-utils.ts b/arkoala/arkui/src/shared/generated-utils.ts deleted file mode 100644 index a8f915e93da6d59df199e2230f818d56c45bc625..0000000000000000000000000000000000000000 --- a/arkoala/arkui/src/shared/generated-utils.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * TODO: move to compat - */ - -/** - * Only to workaround non-int enums - */ -export function unsafeCast(value: unknown): T { - return value as unknown as T -} - -export enum GestureName { - Tap, - LongPress, - Pan, - Pinch, - Swipe, - Rotation, - Group -} - -export class GestureComponent { - public type?: GestureName - public value?: T - public hasEvent?: Int32Array -} diff --git a/arkoala/ets-plugin/.gitlab-ci.yml b/arkoala/ets-plugin/.gitlab-ci.yml index 1f26c8b83a4984e34c532e535682902da4c2f856..b23b44b2c9361bb758128fdc179bbbca8fa9ce57 100644 --- a/arkoala/ets-plugin/.gitlab-ci.yml +++ b/arkoala/ets-plugin/.gitlab-ci.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2024 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -45,6 +45,7 @@ test ets-plugin (arkoala): - build compat - build common - build ets-plugin + - build harness test ets-plugin (arkts): stage: test @@ -61,6 +62,7 @@ test ets-plugin (arkts): - build compat - build common - build ets-plugin + - build harness test ets-plugin (koala): stage: test @@ -77,6 +79,7 @@ test ets-plugin (koala): - build compat - build common - build ets-plugin + - build harness test ets-plugin (arkoala spec): stage: test @@ -94,6 +97,7 @@ test ets-plugin (arkoala spec): - build compat - build common - build ets-plugin + - build harness test ets-plugin (arkts spec): stage: test @@ -111,6 +115,7 @@ test ets-plugin (arkts spec): - build compat - build common - build ets-plugin + - build harness test ets-plugin (koala spec): stage: test @@ -128,6 +133,7 @@ test ets-plugin (koala spec): - build compat - build common - build ets-plugin + - build harness pack ets-plugin: extends: diff --git a/arkoala/ets-plugin/oh-package.json5 b/arkoala/ets-plugin/oh-package.json5 index 48b4bce3620d3e280c602532ca8435f1a723635a..17a0cd831c24ba6eff3e4e57842128407f08338f 100644 --- a/arkoala/ets-plugin/oh-package.json5 +++ b/arkoala/ets-plugin/oh-package.json5 @@ -24,11 +24,8 @@ "keywords": [], "dependencies": {}, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/arkoala/ets-plugin/package.json b/arkoala/ets-plugin/package.json index 1672624374e1b264c82ac8a589a41f7bb946ebf4..4cc6699ab4b6a8d9b56ac1456f42b22356cf5251 100644 --- a/arkoala/ets-plugin/package.json +++ b/arkoala/ets-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/ets-plugin", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "types": "build/lib/src/index.d.ts", @@ -40,14 +40,13 @@ "clean": "rimraf build test/spec test/specification/ets2bundle" }, "keywords": [], - "dependencies": {}, + "dependencies": { + "@koalaui/harness": "1.5.5+devel" + }, "devDependencies": { "@koalaui/ets-tsc": "4.9.5-r4", - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/arkoala/ets-plugin/src/ApiUtils.ts b/arkoala/ets-plugin/src/ApiUtils.ts index b469a9d12752177b97e78c8ecd24d9e01cdb9bba..b461bbaf489044b1dfe2463505664abb81cd6562 100644 --- a/arkoala/ets-plugin/src/ApiUtils.ts +++ b/arkoala/ets-plugin/src/ApiUtils.ts @@ -104,24 +104,6 @@ export function undefinedValue(): ts.Expression { return ts.factory.createIdentifier("undefined") } -export function partialForName(className: string) { - return ts.factory.createTypeReferenceNode( - "Partial", - [ - ts.factory.createTypeReferenceNode(className) - ] - ) -} - -export function partial(className: ts.Identifier) { - return ts.factory.createTypeReferenceNode( - "Partial", - [ - ts.factory.createTypeReferenceNode(ts.idText(className)) - ] - ) -} - export function anyIfNoType(type: ts.TypeNode | undefined): ts.TypeNode { if (!type) return Any() return type diff --git a/arkoala/ets-plugin/src/StructTransformer.ts b/arkoala/ets-plugin/src/StructTransformer.ts index 289e041a33357ad80b8b4d7b4aaab8f5e93454ce..7f93de0d332f9614dfbc1077e62fd3138627ece2 100644 --- a/arkoala/ets-plugin/src/StructTransformer.ts +++ b/arkoala/ets-plugin/src/StructTransformer.ts @@ -667,13 +667,7 @@ export class StructTransformer extends AbstractVisitor { [ parameter( id("initializer"), - ts.factory.createTypeReferenceNode( - ts.factory.createIdentifier("Partial"), - [ts.factory.createTypeReferenceNode( - this.translateComponentName(adaptorClassName(node.name))!, - undefined - )] - ), + this.structOptions.createTypeReference(node), ts.factory.createObjectLiteralExpression() ) ], diff --git a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts index 3e171348bcc6d7aad5b97f2d0a0ac85ba6d2245c..92e7c274d22106486ac85e8590355716c591784b 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/ets/Rewrite.ts @@ -875,7 +875,7 @@ export function CustomDialogExampleImpl(initializers?: CustomDialogExampleOption }; ArkCustomDialogExampleComponent._instantiate(undefined, () => new ArkCustomDialogExampleComponent, undefined, updatedInitializers); } -export function CustomDialogExample(initializer: Partial = {}) { +export function CustomDialogExample(initializer: CustomDialogExampleOptions = {}) { return { build: bindCustomDialog(CustomDialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts index 4180f4500a2955db7883e09c860a07a5d1d3a9b5..4efc825ebe93c38d258b3470bc97f21db9417b8c 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/@customDialog.ts @@ -190,7 +190,7 @@ export function DialogExampleImpl(initializers?: DialogExampleOptions): void { }; ArkDialogExampleComponent._instantiate(undefined, () => new ArkDialogExampleComponent, undefined, updatedInitializers); } -export function DialogExample(initializer: Partial = {}) { +export function DialogExample(initializer: DialogExampleOptions = {}) { return { build: bindCustomDialog(DialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts index 54ca1c411dec6a52e084e8bc7e732397826f7ca9..62189f28913a6fdbae51a4d97be2c103929ea352 100644 --- a/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkoala/spec/test/pages/import@CustomDialog.ts @@ -102,7 +102,7 @@ export function CustomDialogExample1Impl(initializers?: CustomDialogExample1Opti }; ArkCustomDialogExample1Component._instantiate(undefined, () => new ArkCustomDialogExample1Component, undefined, updatedInitializers); } -export function CustomDialogExample1(initializer: Partial = {}) { +export function CustomDialogExample1(initializer: CustomDialogExample1Options = {}) { return { build: bindCustomDialog(CustomDialogExample1Impl, initializer), buildOptions: initializer }; } export interface CustomDialogExample1Options { diff --git a/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts index 093fc0dce2464b25b84dd29c7afbc16756d9bdc0..c8b81391f8f3495f357f6833029a4312a5f71d7f 100644 --- a/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/arkts/ets/Rewrite.ts @@ -876,7 +876,7 @@ export function CustomDialogExampleImpl(initializers?: CustomDialogExampleOption }; ArkCustomDialogExampleComponent._instantiate(undefined, () => new ArkCustomDialogExampleComponent, undefined, updatedInitializers); } -export function CustomDialogExample(initializer: Partial = {}) { +export function CustomDialogExample(initializer: CustomDialogExampleOptions = {}) { return { build: bindCustomDialog(CustomDialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/arkts/spec/@customDialog.ts b/arkoala/ets-plugin/test/golden/arkts/spec/@customDialog.ts index 32f190e275573b59bfe082b2b1a999cf52d05c4f..2ee1bfc8f62d45320eeae4c96b46085af9dd21a6 100644 --- a/arkoala/ets-plugin/test/golden/arkts/spec/@customDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkts/spec/@customDialog.ts @@ -192,7 +192,7 @@ export function DialogExampleImpl(initializers?: DialogExampleOptions): void { }; ArkDialogExampleComponent._instantiate(undefined, () => new ArkDialogExampleComponent, undefined, updatedInitializers); } -export function DialogExample(initializer: Partial = {}) { +export function DialogExample(initializer: DialogExampleOptions = {}) { return { build: bindCustomDialog(DialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/import@CustomDialog.ts index 22be2c938c0036d1bcfc2964937b6122f2d35e43..a5c169cc6ca4a545d970d7786786acba976adc38 100644 --- a/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/arkts/spec/test/pages/import@CustomDialog.ts @@ -105,7 +105,7 @@ export function CustomDialogExample1Impl(initializers?: CustomDialogExample1Opti }; ArkCustomDialogExample1Component._instantiate(undefined, () => new ArkCustomDialogExample1Component, undefined, updatedInitializers); } -export function CustomDialogExample1(initializer: Partial = {}) { +export function CustomDialogExample1(initializer: CustomDialogExample1Options = {}) { return { build: bindCustomDialog(CustomDialogExample1Impl, initializer), buildOptions: initializer }; } export interface CustomDialogExample1Options { diff --git a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts index c05169dbb15491227888c502a0d341858d4990b8..86c02fb02c3b90d78d78345531e72115e3e3f585 100644 --- a/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts +++ b/arkoala/ets-plugin/test/golden/koala/ets/Rewrite.ts @@ -873,7 +873,7 @@ export function CustomDialogExampleImpl(initializers?: CustomDialogExampleOption }; ArkCustomDialogExampleComponent._instantiate(undefined, () => new ArkCustomDialogExampleComponent, undefined, updatedInitializers); } -export function CustomDialogExample(initializer: Partial = {}) { +export function CustomDialogExample(initializer: CustomDialogExampleOptions = {}) { return { build: bindCustomDialog(CustomDialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts b/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts index 6421236b7940feda68fdd849790d49cf113dde52..e7de33702e333c159fbbcc5208d19594520f2017 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/@customDialog.ts @@ -192,7 +192,7 @@ export function DialogExampleImpl(initializers?: DialogExampleOptions): void { }; ArkDialogExampleComponent._instantiate(undefined, () => new ArkDialogExampleComponent, undefined, updatedInitializers); } -export function DialogExample(initializer: Partial = {}) { +export function DialogExample(initializer: DialogExampleOptions = {}) { return { build: bindCustomDialog(DialogExampleImpl, initializer), buildOptions: initializer }; } /** @memo */ diff --git a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts index 3f0441a650839b1929c26d5a0cf8a982d9d95884..0e5828e7ee2591110987fe9536ee4aab752446c1 100644 --- a/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts +++ b/arkoala/ets-plugin/test/golden/koala/spec/test/pages/import@CustomDialog.ts @@ -104,7 +104,7 @@ export function CustomDialogExample1Impl(initializers?: CustomDialogExample1Opti }; ArkCustomDialogExample1Component._instantiate(undefined, () => new ArkCustomDialogExample1Component, undefined, updatedInitializers); } -export function CustomDialogExample1(initializer: Partial = {}) { +export function CustomDialogExample1(initializer: CustomDialogExample1Options = {}) { return { build: bindCustomDialog(CustomDialogExample1Impl, initializer), buildOptions: initializer }; } export interface CustomDialogExample1Options { diff --git a/arkoala/ets-plugin/test/rewrites.test.ts b/arkoala/ets-plugin/test/rewrites.test.ts index 42b6978a4b63fd6800f01376c92ac39ceeb3709a..6a0a433dc4b90090cdac3d2d3e8a8f6e90904c54 100644 --- a/arkoala/ets-plugin/test/rewrites.test.ts +++ b/arkoala/ets-plugin/test/rewrites.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,6 +13,7 @@ * limitations under the License. */ +import { suite, test } from "@koalaui/harness" import { assertGeneratedEqualsGolden, testFolder } from "./utils" suite("Basic rewrites of ArkUI syntactic features", () => { diff --git a/arkoala/ets-plugin/test/specification/specification.test.ts b/arkoala/ets-plugin/test/specification/specification.test.ts index ab0ba5ec5975f42d06abfe719829b8fc3517e474..fd23a8e6b113747fc312968ce0d6ecb9cd34b3f0 100644 --- a/arkoala/ets-plugin/test/specification/specification.test.ts +++ b/arkoala/ets-plugin/test/specification/specification.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,6 +13,7 @@ * limitations under the License. */ +import { suite } from "@koalaui/harness" import { directoriesManager, testsForDirectories } from "../utils"; suite("ArkUI specification", () => { diff --git a/arkoala/ets-plugin/test/utils.ts b/arkoala/ets-plugin/test/utils.ts index aba4f32aa171fa825c3a1bd52e934203cca5f713..f278a6741a932810e345503d244e9eed39594183 100644 --- a/arkoala/ets-plugin/test/utils.ts +++ b/arkoala/ets-plugin/test/utils.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -15,7 +15,7 @@ import * as path from 'path' import * as fs from 'fs' -import { assert } from "chai" +import { Assert as assert } from "@koalaui/harness" import * as child from "child_process" export function testFolder(folder: string) { diff --git a/arkoala/framework/native/src/generated/Serializers.h b/arkoala/framework/native/src/generated/Serializers.h index 75a4c79744bf775ae2ce8c5cf1f20bf07ca29012..33285e0e965c6b7bfdc5881b8999f267d67dd028 100644 --- a/arkoala/framework/native/src/generated/Serializers.h +++ b/arkoala/framework/native/src/generated/Serializers.h @@ -138,6 +138,29 @@ inline Ark_RuntimeType runtimeType(const Opt_Length& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Boolean& value) +{ + return INTEROP_RUNTIME_BOOLEAN; +} +template <> +inline void WriteToString(std::string* result, const Opt_Boolean* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Boolean& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Resource& value) { return INTEROP_RUNTIME_OBJECT; @@ -505,29 +528,6 @@ inline Ark_RuntimeType runtimeType(const Opt_PixelMap& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_Boolean& value) -{ - return INTEROP_RUNTIME_BOOLEAN; -} -template <> -inline void WriteToString(std::string* result, const Opt_Boolean* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Boolean& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Union_Number_Resource& value) { switch (value.selector) { @@ -5584,6 +5584,37 @@ inline Ark_RuntimeType runtimeType(const Opt_TextMenuItemId& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Affinity& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Affinity* value) { + result->append("{"); + // Ark_String _AffinityStub + result->append("._AffinityStub="); + WriteToString(result, &value->_AffinityStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Affinity* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Affinity& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const MenuOnAppearCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -6771,6 +6802,45 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_StyledStringChangeValue_Bo return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value); + +inline void WriteToString(std::string* result, const Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_RichEditorImageSpanStyle& value) { return INTEROP_RUNTIME_OBJECT; @@ -7374,6 +7444,35 @@ inline Ark_RuntimeType runtimeType(const Opt_SwipeActionItem& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ListItemGroupArea& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ListItemGroupArea value) { + result->append("Ark_ListItemGroupArea("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ListItemGroupArea* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ListItemGroupArea& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_BreakpointsReference& value) { return INTEROP_RUNTIME_NUMBER; @@ -10951,6 +11050,41 @@ inline Ark_RuntimeType runtimeType(const Opt_DrawContext& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CustomSpanMetrics& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CustomSpanMetrics* value) { + result->append("{"); + // Ark_Number width + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Number height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_CustomSpanMetrics* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_CustomSpanMetrics& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_CustomSpanMeasureInfo& value) { return INTEROP_RUNTIME_OBJECT; @@ -11303,6 +11437,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_UIExtensionProxy_Void& val return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WaterFlowAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WaterFlowAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_WaterFlowAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_WaterFlowAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_WaterFlowLayoutMode& value) { return INTEROP_RUNTIME_NUMBER; @@ -11797,6 +11959,62 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_Number_surfaceHeight_surfac return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WindowSceneAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WindowSceneAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_WindowSceneAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_WindowSceneAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_WebAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WebAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_WebAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_WebAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SelectionMenuOptionsExt& value) { return INTEROP_RUNTIME_OBJECT; @@ -12936,6 +13154,62 @@ inline Ark_RuntimeType runtimeType(const Opt_RenderMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_WebCookie& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_WebCookie value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_WebCookie* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_WebCookie& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_HitTestType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_HitTestType value) { + result->append("Ark_HitTestType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_HitTestType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_HitTestType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Literal_Object_object__String_name_Array_String_methodList& value) { return INTEROP_RUNTIME_OBJECT; @@ -13092,6 +13366,122 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_String_script_Callback_Stri return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_MessageLevel& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_MessageLevel value) { + result->append("Ark_MessageLevel("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_MessageLevel* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_MessageLevel& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ContextMenuInputFieldType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ContextMenuInputFieldType value) { + result->append("Ark_ContextMenuInputFieldType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ContextMenuInputFieldType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ContextMenuInputFieldType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ContextMenuSourceType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ContextMenuSourceType value) { + result->append("Ark_ContextMenuSourceType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ContextMenuSourceType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ContextMenuSourceType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_ContextMenuMediaType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_ContextMenuMediaType value) { + result->append("Ark_ContextMenuMediaType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ContextMenuMediaType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ContextMenuMediaType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ScreenCaptureConfig& value) { return INTEROP_RUNTIME_OBJECT; @@ -13123,6 +13513,35 @@ inline Ark_RuntimeType runtimeType(const Opt_ScreenCaptureConfig& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_FileSelectorMode& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_FileSelectorMode value) { + result->append("Ark_FileSelectorMode("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_FileSelectorMode* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_FileSelectorMode& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_VideoController& value) { return INTEROP_RUNTIME_OBJECT; @@ -13672,6 +14091,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_ResourceStr_Void& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextInputAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextInputAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextInputAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextInputAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_InputCounterOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -14029,6 +14476,161 @@ inline Ark_RuntimeType runtimeType(const Opt_RectWidthStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_LineMetrics& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LineMetrics* value) { + result->append("{"); + // Ark_String _LineMetricsStub + result->append("._LineMetricsStub="); + WriteToString(result, &value->_LineMetricsStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_LineMetrics* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_LineMetrics& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_PositionWithAffinity& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PositionWithAffinity* value) { + result->append("{"); + // Ark_Number position + result->append(".position="); + WriteToString(result, &value->position); + // Ark_Affinity affinity + result->append(", "); + result->append(".affinity="); + WriteToString(result, &value->affinity); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_PositionWithAffinity* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_PositionWithAffinity& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_MutableStyledString& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_MutableStyledString value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_MutableStyledString* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_MutableStyledString& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_PreviewText& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PreviewText* value) { + result->append("{"); + // Ark_Number offset + result->append(".offset="); + WriteToString(result, &value->offset); + // Ark_String value + result->append(", "); + result->append(".value="); + WriteToString(result, &value->value); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_PreviewText* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_PreviewText& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_LayoutManager& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LayoutManager value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_LayoutManager* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_LayoutManager& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_TextClockController& value) { return INTEROP_RUNTIME_OBJECT; @@ -14056,6 +14658,34 @@ inline Ark_RuntimeType runtimeType(const Opt_TextClockController& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextAreaAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextAreaAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextAreaAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextAreaAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_TextAreaController& value) { return INTEROP_RUNTIME_OBJECT; @@ -14083,6 +14713,34 @@ inline Ark_RuntimeType runtimeType(const Opt_TextAreaController& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SelectionMenuOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -14391,6 +15049,34 @@ inline Ark_RuntimeType runtimeType(const Opt_TabBarOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TabsAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TabsAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TabsAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TabsAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_BackgroundBlurStyleOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -14655,6 +15341,34 @@ inline Ark_RuntimeType runtimeType(const Opt_BarPosition& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SymbolGlyphAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SymbolGlyphAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SymbolGlyphAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SymbolGlyphAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SymbolEffect& value) { return INTEROP_RUNTIME_OBJECT; @@ -14920,6 +15634,34 @@ inline Ark_RuntimeType runtimeType(const Opt_DotIndicator& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SwiperAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SwiperAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SwiperAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SwiperAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SwiperAutoFill& value) { return INTEROP_RUNTIME_OBJECT; @@ -15033,6 +15775,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_SwiperContentTransitionPro return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SliderAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SliderAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SliderAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SliderAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SliderBlockType& value) { return INTEROP_RUNTIME_NUMBER; @@ -15091,6 +15861,34 @@ inline Ark_RuntimeType runtimeType(const Opt_SliderStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ShapeAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ShapeAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ShapeAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ShapeAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Callback_Union_Number_Resource_Void& value) { return INTEROP_RUNTIME_OBJECT; @@ -15122,6 +15920,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Union_Number_Resource_Void return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SelectAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SelectAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SelectAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SelectAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_MenuAlignType& value) { return INTEROP_RUNTIME_NUMBER; @@ -15266,6 +16092,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Edges& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SearchAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SearchAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SearchAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SearchAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SearchButtonOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -15489,6 +16343,34 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollBarDirection& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ScrollAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ScrollAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ScrollAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ScrollAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_EdgeEffectOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -15625,6 +16507,49 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollOnWillScrollCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RectResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RectResult* value) { + result->append("{"); + // Ark_Number x + result->append(".x="); + WriteToString(result, &value->x); + // Ark_Number y + result->append(", "); + result->append(".y="); + WriteToString(result, &value->y); + // Ark_Number width + result->append(", "); + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Number height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RectResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RectResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ScrollToIndexOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -15685,6 +16610,41 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollAlign& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_OffsetResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_OffsetResult* value) { + result->append("{"); + // Ark_Number xOffset + result->append(".xOffset="); + WriteToString(result, &value->xOffset); + // Ark_Number yOffset + result->append(", "); + result->append(".yOffset="); + WriteToString(result, &value->yOffset); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_OffsetResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_OffsetResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Literal_Boolean_next_Axis_direction& value) { return INTEROP_RUNTIME_OBJECT; @@ -16011,6 +16971,34 @@ inline Ark_RuntimeType runtimeType(const Opt_RichEditorController& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RichEditorAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RichEditorAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RichEditorAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_PlaceholderStyle& value) { return INTEROP_RUNTIME_OBJECT; @@ -16356,45 +17344,6 @@ inline Ark_RuntimeType runtimeType(const Opt_RichEditorTextSpanResult& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult& value) -{ - return INTEROP_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value); - -inline void WriteToString(std::string* result, const Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, (const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult*)&value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_RichEditorDeleteDirection& value) { return INTEROP_RUNTIME_NUMBER; @@ -16494,6 +17443,41 @@ inline Ark_RuntimeType runtimeType(const Opt_RichEditorRange& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RichEditorSelection& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorSelection* value) { + result->append("{"); + // Ark_Tuple_Number_Number selection + result->append(".selection="); + WriteToString(result, &value->selection); + // Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans + result->append(", "); + result->append(".spans="); + WriteToString(result, &value->spans); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RichEditorSelection* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RichEditorSelection& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_RichEditorParagraphStyleOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -17638,6 +18622,34 @@ inline Ark_RuntimeType runtimeType(const Opt_NavigationOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_NavDestinationAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_NavDestinationAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_NavDestinationAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_NavDestinationAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_NavigationToolbarOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -17944,6 +18956,45 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_NavigationMenuItem& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RouteMapConfig& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RouteMapConfig* value) { + result->append("{"); + // Ark_String name + result->append(".name="); + WriteToString(result, &value->name); + // Ark_String pageSourceFile + result->append(", "); + result->append(".pageSourceFile="); + WriteToString(result, &value->pageSourceFile); + // Ark_CustomObject data + result->append(", "); + result->append(".data="); + WriteToString(result, &value->data); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RouteMapConfig* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RouteMapConfig& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Union_ResourceStr_CustomBuilder& value) { switch (value.selector) { @@ -18442,6 +19493,34 @@ inline Ark_RuntimeType runtimeType(const Opt_ListItemStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ListAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ListAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ListAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ListAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_LengthConstrain& value) { return INTEROP_RUNTIME_OBJECT; @@ -18477,18 +19556,18 @@ inline Ark_RuntimeType runtimeType(const Opt_LengthConstrain& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ListItemGroupArea& value) +inline Ark_RuntimeType runtimeType(const Ark_ChainEdgeEffect& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ListItemGroupArea value) { - result->append("Ark_ListItemGroupArea("); +inline void WriteToString(std::string* result, const Ark_ChainEdgeEffect value) { + result->append("Ark_ChainEdgeEffect("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ListItemGroupArea* value) { +inline void WriteToString(std::string* result, const Opt_ChainEdgeEffect* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -18501,28 +19580,38 @@ inline void WriteToString(std::string* result, const Opt_ListItemGroupArea* valu result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ListItemGroupArea& value) +inline Ark_RuntimeType runtimeType(const Opt_ChainEdgeEffect& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ChainEdgeEffect& value) +inline Ark_RuntimeType runtimeType(const Ark_VisibleListContentInfo& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ChainEdgeEffect value) { - result->append("Ark_ChainEdgeEffect("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_VisibleListContentInfo* value) { + result->append("{"); + // Ark_Number index + result->append(".index="); + WriteToString(result, &value->index); + // Ark_ListItemGroupArea itemGroupArea + result->append(", "); + result->append(".itemGroupArea="); + WriteToString(result, &value->itemGroupArea); + // Ark_Number itemIndexInGroup + result->append(", "); + result->append(".itemIndexInGroup="); + WriteToString(result, &value->itemIndexInGroup); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ChainEdgeEffect* value) { +inline void WriteToString(std::string* result, const Opt_VisibleListContentInfo* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -18530,7 +19619,7 @@ inline void WriteToString(std::string* result, const Opt_ChainEdgeEffect* value) result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ChainEdgeEffect& value) +inline Ark_RuntimeType runtimeType(const Opt_VisibleListContentInfo& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -18961,6 +20050,34 @@ inline Ark_RuntimeType runtimeType(const Opt_GridItemStyle& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_GridAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GridAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GridAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GridAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_GridItemAlignment& value) { return INTEROP_RUNTIME_NUMBER; @@ -19052,6 +20169,118 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Number_Tuple_Number_Number return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_PanGestureOptions& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_PanGestureOptions value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_PanGestureOptions* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_PanGestureOptions& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_EventTargetInfo& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_EventTargetInfo value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_EventTargetInfo* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_EventTargetInfo& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GestureRecognizerState& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_GestureRecognizerState value) { + result->append("Ark_GestureRecognizerState("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GestureRecognizerState* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GestureRecognizerState& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GestureControl_GestureType& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_GestureControl_GestureType value) { + result->append("Ark_GestureControl_GestureType("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GestureControl_GestureType* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GestureControl_GestureType& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_PanDirection& value) { return INTEROP_RUNTIME_NUMBER; @@ -19932,6 +21161,34 @@ inline Ark_RuntimeType runtimeType(const Opt_AnimateParam& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Component3DAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Component3DAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Component3DAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Component3DAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ModelType& value) { return INTEROP_RUNTIME_NUMBER; @@ -20006,35 +21263,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_ResourceStr_Scene& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_PointerStyle& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_PointerStyle value) { - result->append("Ark_PointerStyle("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_PointerStyle* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_PointerStyle& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_UIGestureEvent& value) { return INTEROP_RUNTIME_OBJECT; @@ -20406,6 +21634,123 @@ inline Ark_RuntimeType runtimeType(const Opt_ContentClipMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CaretOffset& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CaretOffset* value) { + result->append("{"); + // Ark_Number index + result->append(".index="); + WriteToString(result, &value->index); + // Ark_Number x + result->append(", "); + result->append(".x="); + WriteToString(result, &value->x); + // Ark_Number y + result->append(", "); + result->append(".y="); + WriteToString(result, &value->y); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_CaretOffset* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_CaretOffset& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_DirectionalEdgesT& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DirectionalEdgesT* value) { + result->append("{"); + // Ark_Number start + result->append(".start="); + WriteToString(result, &value->start); + // Ark_Number end + result->append(", "); + result->append(".end="); + WriteToString(result, &value->end); + // Ark_Number top + result->append(", "); + result->append(".top="); + WriteToString(result, &value->top); + // Ark_Number bottom + result->append(", "); + result->append(".bottom="); + WriteToString(result, &value->bottom); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_DirectionalEdgesT* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_DirectionalEdgesT& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_MeasureResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_MeasureResult* value) { + result->append("{"); + // Ark_Number width + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Number height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_MeasureResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_MeasureResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ConstraintSizeOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -21902,35 +23247,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_Alignment_align& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GestureControl_GestureType& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_GestureControl_GestureType value) { - result->append("Ark_GestureControl_GestureType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_GestureControl_GestureType* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GestureControl_GestureType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_PathShape& value) { return INTEROP_RUNTIME_OBJECT; @@ -23173,49 +24489,6 @@ inline Ark_RuntimeType runtimeType(const Opt_TouchTestStrategy& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_RectResult& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_RectResult* value) { - result->append("{"); - // Ark_Number x - result->append(".x="); - WriteToString(result, &value->x); - // Ark_Number y - result->append(", "); - result->append(".y="); - WriteToString(result, &value->y); - // Ark_Number width - result->append(", "); - result->append(".width="); - WriteToString(result, &value->width); - // Ark_Number height - result->append(", "); - result->append(".height="); - WriteToString(result, &value->height); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_RectResult* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_RectResult& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Array_Rectangle& value) { return INTEROP_RUNTIME_OBJECT; @@ -23400,6 +24673,37 @@ inline Ark_RuntimeType runtimeType(const Opt_DragResult& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_Summary& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_Summary* value) { + result->append("{"); + // Ark_String _SummaryStub + result->append("._SummaryStub="); + WriteToString(result, &value->_SummaryStub); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Summary* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Summary& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_UnifiedData& value) { return INTEROP_RUNTIME_OBJECT; @@ -23456,6 +24760,73 @@ inline Ark_RuntimeType runtimeType(const Opt_DragBehavior& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TouchObject& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TouchObject* value) { + result->append("{"); + // Ark_TouchType type + result->append(".type="); + WriteToString(result, value->type); + // Ark_Number id + result->append(", "); + result->append(".id="); + WriteToString(result, &value->id); + // Ark_Number displayX + result->append(", "); + result->append(".displayX="); + WriteToString(result, &value->displayX); + // Ark_Number displayY + result->append(", "); + result->append(".displayY="); + WriteToString(result, &value->displayY); + // Ark_Number windowX + result->append(", "); + result->append(".windowX="); + WriteToString(result, &value->windowX); + // Ark_Number windowY + result->append(", "); + result->append(".windowY="); + WriteToString(result, &value->windowY); + // Ark_Number screenX + result->append(", "); + result->append(".screenX="); + WriteToString(result, &value->screenX); + // Ark_Number screenY + result->append(", "); + result->append(".screenY="); + WriteToString(result, &value->screenY); + // Ark_Number x + result->append(", "); + result->append(".x="); + WriteToString(result, &value->x); + // Ark_Number y + result->append(", "); + result->append(".y="); + WriteToString(result, &value->y); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TouchObject* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TouchObject& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_AccessibilityHoverType& value) { return INTEROP_RUNTIME_NUMBER; @@ -23543,6 +24914,35 @@ inline Ark_RuntimeType runtimeType(const Opt_MouseButton& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_PointerStyle& value) +{ + return INTEROP_RUNTIME_NUMBER; +} +template <> +inline void WriteToString(std::string* result, const Ark_PointerStyle value) { + result->append("Ark_PointerStyle("); + WriteToString(result, (Ark_Int32) value); + result->append(")"); +} +template <> +inline void WriteToString(std::string* result, const Opt_PointerStyle* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_PointerStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Literal_TransitionEffect_appear_disappear& value) { return INTEROP_RUNTIME_OBJECT; @@ -23824,6 +25224,60 @@ inline Ark_RuntimeType runtimeType(const Opt_CanvasRenderingContext2D& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_OffscreenCanvasRenderingContext2D& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_OffscreenCanvasRenderingContext2D value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_OffscreenCanvasRenderingContext2D* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_OffscreenCanvasRenderingContext2D& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_RenderingContextSettings& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RenderingContextSettings value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_RenderingContextSettings* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RenderingContextSettings& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ImageBitmap& value) { return INTEROP_RUNTIME_OBJECT; @@ -23851,6 +25305,85 @@ inline Ark_RuntimeType runtimeType(const Opt_ImageBitmap& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextMetrics& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextMetrics* value) { + result->append("{"); + // Ark_Number actualBoundingBoxAscent + result->append(".actualBoundingBoxAscent="); + WriteToString(result, &value->actualBoundingBoxAscent); + // Ark_Number actualBoundingBoxDescent + result->append(", "); + result->append(".actualBoundingBoxDescent="); + WriteToString(result, &value->actualBoundingBoxDescent); + // Ark_Number actualBoundingBoxLeft + result->append(", "); + result->append(".actualBoundingBoxLeft="); + WriteToString(result, &value->actualBoundingBoxLeft); + // Ark_Number actualBoundingBoxRight + result->append(", "); + result->append(".actualBoundingBoxRight="); + WriteToString(result, &value->actualBoundingBoxRight); + // Ark_Number alphabeticBaseline + result->append(", "); + result->append(".alphabeticBaseline="); + WriteToString(result, &value->alphabeticBaseline); + // Ark_Number emHeightAscent + result->append(", "); + result->append(".emHeightAscent="); + WriteToString(result, &value->emHeightAscent); + // Ark_Number emHeightDescent + result->append(", "); + result->append(".emHeightDescent="); + WriteToString(result, &value->emHeightDescent); + // Ark_Number fontBoundingBoxAscent + result->append(", "); + result->append(".fontBoundingBoxAscent="); + WriteToString(result, &value->fontBoundingBoxAscent); + // Ark_Number fontBoundingBoxDescent + result->append(", "); + result->append(".fontBoundingBoxDescent="); + WriteToString(result, &value->fontBoundingBoxDescent); + // Ark_Number hangingBaseline + result->append(", "); + result->append(".hangingBaseline="); + WriteToString(result, &value->hangingBaseline); + // Ark_Number ideographicBaseline + result->append(", "); + result->append(".ideographicBaseline="); + WriteToString(result, &value->ideographicBaseline); + // Ark_Number width + result->append(", "); + result->append(".width="); + WriteToString(result, &value->width); + // Ark_Number height + result->append(", "); + result->append(".height="); + WriteToString(result, &value->height); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextMetrics* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextMetrics& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ImageData& value) { return INTEROP_RUNTIME_OBJECT; @@ -23996,6 +25529,34 @@ inline Ark_RuntimeType runtimeType(const Opt_CalendarDialogOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CalendarPickerAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CalendarPickerAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_CalendarPickerAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_CalendarPickerAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_CalendarAlign& value) { return INTEROP_RUNTIME_NUMBER; @@ -24259,6 +25820,34 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_BadgePosition_Position& value return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_AlphabetIndexerAttribute& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_AlphabetIndexerAttribute* value) { + result->append("{"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_AlphabetIndexerAttribute* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_AlphabetIndexerAttribute& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_IndexerAlign& value) { return INTEROP_RUNTIME_NUMBER; @@ -26206,16 +27795,16 @@ inline Ark_RuntimeType runtimeType(const Opt_ButtonTriggerClickCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_inspector& value) +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_Profiler_inspector& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_GlobalScope_inspector value) { +inline void WriteToString(std::string* result, const Ark_GlobalScope_Profiler_inspector value) { WriteToString(result, static_cast(value)); } template <> -inline void WriteToString(std::string* result, const Opt_GlobalScope_inspector* value) { +inline void WriteToString(std::string* result, const Opt_GlobalScope_Profiler_inspector* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -26228,7 +27817,7 @@ inline void WriteToString(std::string* result, const Opt_GlobalScope_inspector* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_inspector& value) +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_Profiler_inspector& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -26307,33 +27896,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ImageAttachmentInterface& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_MutableStyledString& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_MutableStyledString value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_MutableStyledString* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_MutableStyledString& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_UrlStyle& value) { return INTEROP_RUNTIME_OBJECT; @@ -26870,6 +28432,45 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_String_ImageAttachment_Custom return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Array_SpanStyle& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_SpanStyle* value); + +inline void WriteToString(std::string* result, const Array_SpanStyle* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_SpanStyle*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_SpanStyle* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_SpanStyle& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_Literal_Number_code_Want_want& value) { return INTEROP_RUNTIME_OBJECT; @@ -31495,68 +33096,6 @@ inline Ark_RuntimeType runtimeType(const Opt_WebOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_WebCookie& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_WebCookie value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_WebCookie* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_WebCookie& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_Header& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_Header* value) { - result->append("{"); - // Ark_String headerKey - result->append(".headerKey="); - WriteToString(result, &value->headerKey); - // Ark_String headerValue - result->append(", "); - result->append(".headerValue="); - WriteToString(result, &value->headerValue); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Header* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Header& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_Union_String_Number_Resource_Buffer& value) { switch (value.selector) { @@ -31614,52 +33153,51 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_String_Number_Resource_Buffer return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ViewportFit& value) +inline Ark_RuntimeType runtimeType(const Ark_Union_String_Number_Buffer_Resource& value) { - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_ViewportFit value) { - result->append("Ark_ViewportFit("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + case 2: return runtimeType(value.value2); + case 3: return runtimeType(value.value3); + default: INTEROP_FATAL("Bad selector in Ark_Union_String_Number_Buffer_Resource: %d", value.selector); + } } template <> -inline void WriteToString(std::string* result, const Opt_ViewportFit* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); +inline void WriteToString(std::string* result, const Ark_Union_String_Number_Buffer_Resource* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_String + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_Number + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + // Ark_Buffer + if (value->selector == 2) { + result->append(".value2="); + WriteToString(result, value->value2); + } + // Ark_Resource + if (value->selector == 3) { + result->append(".value3="); + WriteToString(result, &value->value3); } result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ViewportFit& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_ContextMenuEditStateFlags& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_ContextMenuEditStateFlags value) { - result->append("Ark_ContextMenuEditStateFlags("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_ContextMenuEditStateFlags* value) { +inline void WriteToString(std::string* result, const Opt_Union_String_Number_Buffer_Resource* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -31667,28 +33205,34 @@ inline void WriteToString(std::string* result, const Opt_ContextMenuEditStateFla result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ContextMenuEditStateFlags& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_String_Number_Buffer_Resource& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ContextMenuInputFieldType& value) +inline Ark_RuntimeType runtimeType(const Ark_Header& value) { - return INTEROP_RUNTIME_NUMBER; + return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_ContextMenuInputFieldType value) { - result->append("Ark_ContextMenuInputFieldType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); +inline void WriteToString(std::string* result, const Ark_Header* value) { + result->append("{"); + // Ark_String headerKey + result->append(".headerKey="); + WriteToString(result, &value->headerKey); + // Ark_String headerValue + result->append(", "); + result->append(".headerValue="); + WriteToString(result, &value->headerValue); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_ContextMenuInputFieldType* value) { +inline void WriteToString(std::string* result, const Opt_Header* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -31696,23 +33240,23 @@ inline void WriteToString(std::string* result, const Opt_ContextMenuInputFieldTy result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ContextMenuInputFieldType& value) +inline Ark_RuntimeType runtimeType(const Opt_Header& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ContextMenuMediaType& value) +inline Ark_RuntimeType runtimeType(const Ark_ViewportFit& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ContextMenuMediaType value) { - result->append("Ark_ContextMenuMediaType("); +inline void WriteToString(std::string* result, const Ark_ViewportFit value) { + result->append("Ark_ViewportFit("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ContextMenuMediaType* value) { +inline void WriteToString(std::string* result, const Opt_ViewportFit* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -31725,23 +33269,23 @@ inline void WriteToString(std::string* result, const Opt_ContextMenuMediaType* v result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ContextMenuMediaType& value) +inline Ark_RuntimeType runtimeType(const Opt_ViewportFit& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_ContextMenuSourceType& value) +inline Ark_RuntimeType runtimeType(const Ark_ContextMenuEditStateFlags& value) { return INTEROP_RUNTIME_NUMBER; } template <> -inline void WriteToString(std::string* result, const Ark_ContextMenuSourceType value) { - result->append("Ark_ContextMenuSourceType("); +inline void WriteToString(std::string* result, const Ark_ContextMenuEditStateFlags value) { + result->append("Ark_ContextMenuEditStateFlags("); WriteToString(result, (Ark_Int32) value); result->append(")"); } template <> -inline void WriteToString(std::string* result, const Opt_ContextMenuSourceType* value) { +inline void WriteToString(std::string* result, const Opt_ContextMenuEditStateFlags* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -31754,7 +33298,7 @@ inline void WriteToString(std::string* result, const Opt_ContextMenuSourceType* result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_ContextMenuSourceType& value) +inline Ark_RuntimeType runtimeType(const Opt_ContextMenuEditStateFlags& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -31817,35 +33361,6 @@ inline Ark_RuntimeType runtimeType(const Opt_WebLayoutMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_FileSelectorMode& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_FileSelectorMode value) { - result->append("Ark_FileSelectorMode("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_FileSelectorMode* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_FileSelectorMode& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ThreatType& value) { return INTEROP_RUNTIME_NUMBER; @@ -31962,35 +33477,6 @@ inline Ark_RuntimeType runtimeType(const Opt_CacheMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_HitTestType& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_HitTestType value) { - result->append("Ark_HitTestType("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_HitTestType* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_HitTestType& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_MixedMode& value) { return INTEROP_RUNTIME_NUMBER; @@ -32020,35 +33506,6 @@ inline Ark_RuntimeType runtimeType(const Opt_MixedMode& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_MessageLevel& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_MessageLevel value) { - result->append("Ark_MessageLevel("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_MessageLevel* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_MessageLevel& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_PlaybackInfo& value) { return INTEROP_RUNTIME_OBJECT; @@ -32996,21 +34453,25 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_TextMenuItem& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_LayoutManager& value) +inline Ark_RuntimeType runtimeType(const Ark_TextBox& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_LayoutManager value) { - WriteToString(result, static_cast(value)); +inline void WriteToString(std::string* result, const Ark_TextBox* value) { + result->append("{"); + // Ark_String _TextBoxStub + result->append("._TextBoxStub="); + WriteToString(result, &value->_TextBoxStub); + result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_LayoutManager* value) { +inline void WriteToString(std::string* result, const Opt_TextBox* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); + WriteToString(result, &value->value); } else { Ark_Undefined undefined = { 0 }; WriteToString(result, undefined); @@ -33018,7 +34479,46 @@ inline void WriteToString(std::string* result, const Opt_LayoutManager* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_LayoutManager& value) +inline Ark_RuntimeType runtimeType(const Opt_TextBox& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_TextBox& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_TextBox* value); + +inline void WriteToString(std::string* result, const Array_TextBox* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_TextBox*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_TextBox* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_TextBox& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -35494,41 +36994,6 @@ inline Ark_RuntimeType runtimeType(const Opt_OnTextSelectionChangeCallback& valu return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_PreviewText& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_PreviewText* value) { - result->append("{"); - // Ark_Number offset - result->append(".offset="); - WriteToString(result, &value->offset); - // Ark_String value - result->append(", "); - result->append(".value="); - WriteToString(result, &value->value); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_PreviewText* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_PreviewText& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const EditableTextOnChangeCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -37071,24 +38536,20 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_RichEditorRange_Void& valu return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_RichEditorSelection& value) +inline Ark_RuntimeType runtimeType(const Callback_RichEditorSelection_Void& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_RichEditorSelection* value) { +inline void WriteToString(std::string* result, const Callback_RichEditorSelection_Void* value) { result->append("{"); - // Ark_Tuple_Number_Number selection - result->append(".selection="); - WriteToString(result, &value->selection); - // Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans - result->append(", "); - result->append(".spans="); - WriteToString(result, &value->spans); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_RichEditorSelection* value) { +inline void WriteToString(std::string* result, const Opt_Callback_RichEditorSelection_Void* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -37101,25 +38562,33 @@ inline void WriteToString(std::string* result, const Opt_RichEditorSelection* va result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_RichEditorSelection& value) +inline Ark_RuntimeType runtimeType(const Opt_Callback_RichEditorSelection_Void& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Callback_RichEditorSelection_Void& value) +inline Ark_RuntimeType runtimeType(const Ark_StyledStringChangeValue& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Callback_RichEditorSelection_Void* value) { +inline void WriteToString(std::string* result, const Ark_StyledStringChangeValue* value) { result->append("{"); - result->append(".resource="); - WriteToString(result, &value->resource); - result->append(", .call=0"); + // Ark_TextRange range + result->append(".range="); + WriteToString(result, &value->range); + // Ark_StyledString replacementString + result->append(", "); + result->append(".replacementString="); + WriteToString(result, value->replacementString); + // Ark_StyledString previewText + result->append(", "); + result->append(".previewText="); + WriteToString(result, &value->previewText); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_Callback_RichEditorSelection_Void* value) { +inline void WriteToString(std::string* result, const Opt_StyledStringChangeValue* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -37132,33 +38601,197 @@ inline void WriteToString(std::string* result, const Opt_Callback_RichEditorSele result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_Callback_RichEditorSelection_Void& value) +inline Ark_RuntimeType runtimeType(const Opt_StyledStringChangeValue& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_StyledStringChangeValue& value) +inline Ark_RuntimeType runtimeType(const Ark_RichEditorSpan& value) +{ + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_RichEditorSpan: %d", value.selector); + } +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorSpan* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); + result->append(", "); + // Ark_RichEditorImageSpanResult + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_RichEditorTextSpanResult + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RichEditorSpan* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RichEditorSpan& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_RichEditorSpan& value) { return INTEROP_RUNTIME_OBJECT; } + template <> -inline void WriteToString(std::string* result, const Ark_StyledStringChangeValue* value) { +inline void WriteToString(std::string* result, const Ark_RichEditorSpan* value); + +inline void WriteToString(std::string* result, const Array_RichEditorSpan* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_RichEditorSpan*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_RichEditorSpan* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_RichEditorSpan& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_RichEditorParagraphResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorParagraphResult* value) { result->append("{"); - // Ark_TextRange range + // Ark_RichEditorParagraphStyle style + result->append(".style="); + WriteToString(result, &value->style); + // Ark_Tuple_Number_Number range + result->append(", "); result->append(".range="); WriteToString(result, &value->range); - // Ark_StyledString replacementString - result->append(", "); - result->append(".replacementString="); - WriteToString(result, value->replacementString); - // Ark_StyledString previewText + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RichEditorParagraphResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RichEditorParagraphResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_RichEditorParagraphResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_RichEditorParagraphResult* value); + +inline void WriteToString(std::string* result, const Array_RichEditorParagraphResult* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_RichEditorParagraphResult*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_RichEditorParagraphResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_RichEditorParagraphResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult& value) +{ + switch (value.selector) { + case 0: return runtimeType(value.value0); + case 1: return runtimeType(value.value1); + default: INTEROP_FATAL("Bad selector in Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult: %d", value.selector); + } +} +template <> +inline void WriteToString(std::string* result, const Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value) { + result->append("{"); + result->append(".selector="); + result->append(std::to_string(value->selector)); result->append(", "); - result->append(".previewText="); - WriteToString(result, &value->previewText); + // Ark_RichEditorImageSpanResult + if (value->selector == 0) { + result->append(".value0="); + WriteToString(result, &value->value0); + } + // Ark_RichEditorTextSpanResult + if (value->selector == 1) { + result->append(".value1="); + WriteToString(result, &value->value1); + } result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_StyledStringChangeValue* value) { +inline void WriteToString(std::string* result, const Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -37171,7 +38804,46 @@ inline void WriteToString(std::string* result, const Opt_StyledStringChangeValue result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_StyledStringChangeValue& value) +inline Ark_RuntimeType runtimeType(const Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value); + +inline void WriteToString(std::string* result, const Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -38887,6 +40559,45 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_NavDestinationContext_NavBar& return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Array_CustomObject& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_CustomObject* value); + +inline void WriteToString(std::string* result, const Array_CustomObject* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_CustomObject*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_CustomObject* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_CustomObject& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_NavigationTitleMode& value) { return INTEROP_RUNTIME_NUMBER; @@ -40275,45 +41986,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Number_Boolean& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_VisibleListContentInfo& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_VisibleListContentInfo* value) { - result->append("{"); - // Ark_Number index - result->append(".index="); - WriteToString(result, &value->index); - // Ark_ListItemGroupArea itemGroupArea - result->append(", "); - result->append(".itemGroupArea="); - WriteToString(result, &value->itemGroupArea); - // Ark_Number itemIndexInGroup - result->append(", "); - result->append(".itemIndexInGroup="); - WriteToString(result, &value->itemIndexInGroup); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_VisibleListContentInfo* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_VisibleListContentInfo& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const OnScrollVisibleContentChangeCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -41991,33 +43663,6 @@ inline Ark_RuntimeType runtimeType(const Opt_PanRecognizer& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_EventTargetInfo& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_EventTargetInfo value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_EventTargetInfo* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_EventTargetInfo& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ScrollableTargetInfo& value) { return INTEROP_RUNTIME_OBJECT; @@ -42045,35 +43690,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollableTargetInfo& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_GestureRecognizerState& value) -{ - return INTEROP_RUNTIME_NUMBER; -} -template <> -inline void WriteToString(std::string* result, const Ark_GestureRecognizerState value) { - result->append("Ark_GestureRecognizerState("); - WriteToString(result, (Ark_Int32) value); - result->append(")"); -} -template <> -inline void WriteToString(std::string* result, const Opt_GestureRecognizerState* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GestureRecognizerState& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_GesturePriority& value) { return INTEROP_RUNTIME_NUMBER; @@ -42142,33 +43758,6 @@ inline Ark_RuntimeType runtimeType(const Opt_Literal_Number_distance_fingers_Pan return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_PanGestureOptions& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_PanGestureOptions value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_PanGestureOptions* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_PanGestureOptions& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_GestureEvent& value) { return INTEROP_RUNTIME_OBJECT; @@ -43986,72 +45575,6 @@ inline Ark_RuntimeType runtimeType(const Opt_SceneOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Array_CustomObject& value) -{ - return INTEROP_RUNTIME_OBJECT; -} - -template <> -inline void WriteToString(std::string* result, const Ark_CustomObject* value); - -inline void WriteToString(std::string* result, const Array_CustomObject* value) { - int32_t count = value->length; - result->append("{.array=allocArray({{"); - for (int i = 0; i < count; i++) { - if (i > 0) result->append(", "); - WriteToString(result, (const Ark_CustomObject*)&value->array[i]); - } - result->append("}})"); - result->append(", .length="); - result->append(std::to_string(value->length)); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_Array_CustomObject* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_Array_CustomObject& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> -inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_common& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_GlobalScope_common value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_GlobalScope_common* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_common& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_UICommonEvent& value) { return INTEROP_RUNTIME_OBJECT; @@ -44209,41 +45732,6 @@ inline Ark_RuntimeType runtimeType(const Opt_ScrollOnScrollCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_OffsetResult& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_OffsetResult* value) { - result->append("{"); - // Ark_Number xOffset - result->append(".xOffset="); - WriteToString(result, &value->xOffset); - // Ark_Number yOffset - result->append(", "); - result->append(".yOffset="); - WriteToString(result, &value->yOffset); - result->append("}"); -} -template <> -inline void WriteToString(std::string* result, const Opt_OffsetResult* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, &value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_OffsetResult& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_ScrollSource& value) { return INTEROP_RUNTIME_NUMBER; @@ -47955,56 +49443,32 @@ inline Ark_RuntimeType runtimeType(const Opt_PixelMapMock& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_TouchObject& value) +inline Ark_RuntimeType runtimeType(const Ark_HistoricalPoint& value) { return INTEROP_RUNTIME_OBJECT; } template <> -inline void WriteToString(std::string* result, const Ark_TouchObject* value) { +inline void WriteToString(std::string* result, const Ark_HistoricalPoint* value) { result->append("{"); - // Ark_TouchType type - result->append(".type="); - WriteToString(result, value->type); - // Ark_Number id - result->append(", "); - result->append(".id="); - WriteToString(result, &value->id); - // Ark_Number displayX - result->append(", "); - result->append(".displayX="); - WriteToString(result, &value->displayX); - // Ark_Number displayY - result->append(", "); - result->append(".displayY="); - WriteToString(result, &value->displayY); - // Ark_Number windowX + // Ark_TouchObject touchObject + result->append(".touchObject="); + WriteToString(result, &value->touchObject); + // Ark_Number size result->append(", "); - result->append(".windowX="); - WriteToString(result, &value->windowX); - // Ark_Number windowY - result->append(", "); - result->append(".windowY="); - WriteToString(result, &value->windowY); - // Ark_Number screenX - result->append(", "); - result->append(".screenX="); - WriteToString(result, &value->screenX); - // Ark_Number screenY - result->append(", "); - result->append(".screenY="); - WriteToString(result, &value->screenY); - // Ark_Number x + result->append(".size="); + WriteToString(result, &value->size); + // Ark_Number force result->append(", "); - result->append(".x="); - WriteToString(result, &value->x); - // Ark_Number y + result->append(".force="); + WriteToString(result, &value->force); + // Ark_Number timestamp result->append(", "); - result->append(".y="); - WriteToString(result, &value->y); + result->append(".timestamp="); + WriteToString(result, &value->timestamp); result->append("}"); } template <> -inline void WriteToString(std::string* result, const Opt_TouchObject* value) { +inline void WriteToString(std::string* result, const Opt_HistoricalPoint* value) { result->append("{.tag="); result->append(tagNameExact((Ark_Tag)(value->tag))); result->append(", .value="); @@ -48017,7 +49481,46 @@ inline void WriteToString(std::string* result, const Opt_TouchObject* value) { result->append("}"); } template <> -inline Ark_RuntimeType runtimeType(const Opt_TouchObject& value) +inline Ark_RuntimeType runtimeType(const Opt_HistoricalPoint& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Array_HistoricalPoint& value) +{ + return INTEROP_RUNTIME_OBJECT; +} + +template <> +inline void WriteToString(std::string* result, const Ark_HistoricalPoint* value); + +inline void WriteToString(std::string* result, const Array_HistoricalPoint* value) { + int32_t count = value->length; + result->append("{.array=allocArray({{"); + for (int i = 0; i < count; i++) { + if (i > 0) result->append(", "); + WriteToString(result, (const Ark_HistoricalPoint*)&value->array[i]); + } + result->append("}})"); + result->append(", .length="); + result->append(std::to_string(value->length)); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_Array_HistoricalPoint* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_Array_HistoricalPoint& value) { return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } @@ -48246,6 +49749,60 @@ inline Ark_RuntimeType runtimeType(const Opt_SafeAreaType& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_cursorControl_common& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GlobalScope_cursorControl_common value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GlobalScope_cursorControl_common* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_cursorControl_common& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const Ark_GlobalScope_focusControl_common& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GlobalScope_focusControl_common value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_GlobalScope_focusControl_common* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GlobalScope_focusControl_common& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_PreDragStatus& value) { return INTEROP_RUNTIME_NUMBER; @@ -48719,6 +50276,33 @@ inline Ark_RuntimeType runtimeType(const Opt_Union_CanvasRenderingContext2D_Draw return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_OffscreenCanvas& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_OffscreenCanvas value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_OffscreenCanvas* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_OffscreenCanvas& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ImageAnalyzerType& value) { return INTEROP_RUNTIME_NUMBER; @@ -48820,33 +50404,6 @@ inline Ark_RuntimeType runtimeType(const Opt_CanvasRenderer& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> -inline Ark_RuntimeType runtimeType(const Ark_RenderingContextSettings& value) -{ - return INTEROP_RUNTIME_OBJECT; -} -template <> -inline void WriteToString(std::string* result, const Ark_RenderingContextSettings value) { - WriteToString(result, static_cast(value)); -} -template <> -inline void WriteToString(std::string* result, const Opt_RenderingContextSettings* value) { - result->append("{.tag="); - result->append(tagNameExact((Ark_Tag)(value->tag))); - result->append(", .value="); - if (value->tag != INTEROP_TAG_UNDEFINED) { - WriteToString(result, value->value); - } else { - Ark_Undefined undefined = { 0 }; - WriteToString(result, undefined); - } - result->append("}"); -} -template <> -inline Ark_RuntimeType runtimeType(const Opt_RenderingContextSettings& value) -{ - return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); -} -template <> inline Ark_RuntimeType runtimeType(const Ark_LengthMetricsUnit& value) { return INTEROP_RUNTIME_OBJECT; @@ -50422,6 +51979,33 @@ inline Ark_RuntimeType runtimeType(const Opt_Array_WebHeader& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SystemOps& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SystemOps value) { + WriteToString(result, static_cast(value)); +} +template <> +inline void WriteToString(std::string* result, const Opt_SystemOps* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SystemOps& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_LazyForEachOps& value) { return INTEROP_RUNTIME_OBJECT; @@ -50503,6 +52087,9 @@ inline Ark_RuntimeType runtimeType(const Opt_AnimationExtender& value) // Serializers class Serializer : public SerializerBase { + public: + Serializer(CallbackResourceHolder* resourceHolder = nullptr) : SerializerBase(resourceHolder) { + } public: Serializer(uint8_t* data, Ark_UInt32 dataLength = 0, CallbackResourceHolder* resourceHolder = nullptr) : SerializerBase(data, dataLength, resourceHolder) { } @@ -50594,12 +52181,12 @@ class Serializer : public SerializerBase { const auto value_radius = value.radius; Ark_Int32 value_radius_type = INTEROP_RUNTIME_UNDEFINED; value_radius_type = value_radius.selector; - if (((value_radius_type == 0))) { + if (value_radius_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_0 = value_radius.value0; valueSerializer.writeNumber(value_radius_0); } - else if (((value_radius_type == 1))) { + else if (value_radius_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_1 = value_radius.value1; valueSerializer.writeResource(value_radius_1); @@ -50620,22 +52207,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeString(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeResource(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeInt32(value_color_value_3); @@ -50649,12 +52236,12 @@ class Serializer : public SerializerBase { const auto value_offsetX_value = value_offsetX.value; Ark_Int32 value_offsetX_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetX_value_type = value_offsetX_value.selector; - if (((value_offsetX_value_type == 0))) { + if (value_offsetX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetX_value_0 = value_offsetX_value.value0; valueSerializer.writeNumber(value_offsetX_value_0); } - else if (((value_offsetX_value_type == 1))) { + else if (value_offsetX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetX_value_1 = value_offsetX_value.value1; valueSerializer.writeResource(value_offsetX_value_1); @@ -50668,12 +52255,12 @@ class Serializer : public SerializerBase { const auto value_offsetY_value = value_offsetY.value; Ark_Int32 value_offsetY_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetY_value_type = value_offsetY_value.selector; - if (((value_offsetY_value_type == 0))) { + if (value_offsetY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetY_value_0 = value_offsetY_value.value0; valueSerializer.writeNumber(value_offsetY_value_0); } - else if (((value_offsetY_value_type == 1))) { + else if (value_offsetY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetY_value_1 = value_offsetY_value.value1; valueSerializer.writeResource(value_offsetY_value_1); @@ -50771,17 +52358,17 @@ class Serializer : public SerializerBase { const auto value_weight_value = value_weight.value; Ark_Int32 value_weight_value_type = INTEROP_RUNTIME_UNDEFINED; value_weight_value_type = value_weight_value.selector; - if (((value_weight_value_type == 0))) { + if (value_weight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_weight_value_0 = value_weight_value.value0; valueSerializer.writeInt32(static_cast(value_weight_value_0)); } - else if (((value_weight_value_type == 1))) { + else if (value_weight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_weight_value_1 = value_weight_value.value1; valueSerializer.writeNumber(value_weight_value_1); } - else if (((value_weight_value_type == 2))) { + else if (value_weight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_weight_value_2 = value_weight_value.value2; valueSerializer.writeString(value_weight_value_2); @@ -50795,12 +52382,12 @@ class Serializer : public SerializerBase { const auto value_family_value = value_family.value; Ark_Int32 value_family_value_type = INTEROP_RUNTIME_UNDEFINED; value_family_value_type = value_family_value.selector; - if (((value_family_value_type == 0))) { + if (value_family_value_type == 0) { valueSerializer.writeInt8(0); const auto value_family_value_0 = value_family_value.value0; valueSerializer.writeString(value_family_value_0); } - else if (((value_family_value_type == 1))) { + else if (value_family_value_type == 1) { valueSerializer.writeInt8(1); const auto value_family_value_1 = value_family_value.value1; valueSerializer.writeResource(value_family_value_1); @@ -50860,12 +52447,12 @@ class Serializer : public SerializerBase { const auto value_curve_value = value_curve.value; Ark_Int32 value_curve_value_type = INTEROP_RUNTIME_UNDEFINED; value_curve_value_type = value_curve_value.selector; - if (((value_curve_value_type == 0))) { + if (value_curve_value_type == 0) { valueSerializer.writeInt8(0); const auto value_curve_value_0 = value_curve_value.value0; valueSerializer.writeInt32(static_cast(value_curve_value_0)); } - else if (((value_curve_value_type == 1))) { + else if (value_curve_value_type == 1) { valueSerializer.writeInt8(1); const auto value_curve_value_1 = value_curve_value.value1; valueSerializer.writeICurve(value_curve_value_1); @@ -50891,12 +52478,12 @@ class Serializer : public SerializerBase { const auto value_margin_value = value_margin.value; Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; value_margin_value_type = value_margin_value.selector; - if (((value_margin_value_type == 0)) || ((value_margin_value_type == 0)) || ((value_margin_value_type == 0))) { + if ((value_margin_value_type == 0) || (value_margin_value_type == 0) || (value_margin_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_margin_value_0 = value_margin_value.value0; valueSerializer.writeLength(value_margin_value_0); } - else if (((value_margin_value_type == 1))) { + else if (value_margin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_margin_value_1 = value_margin_value.value1; const auto value_margin_value_1_top = value_margin_value_1.top; @@ -50941,12 +52528,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0))) { + if ((value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLength(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -50992,22 +52579,22 @@ class Serializer : public SerializerBase { const auto value_color = value.color; Ark_Int32 value_color_type = INTEROP_RUNTIME_UNDEFINED; value_color_type = value_color.selector; - if (((value_color_type == 0))) { + if (value_color_type == 0) { valueSerializer.writeInt8(0); const auto value_color_0 = value_color.value0; valueSerializer.writeInt32(static_cast(value_color_0)); } - else if (((value_color_type == 1))) { + else if (value_color_type == 1) { valueSerializer.writeInt8(1); const auto value_color_1 = value_color.value1; valueSerializer.writeNumber(value_color_1); } - else if (((value_color_type == 2))) { + else if (value_color_type == 2) { valueSerializer.writeInt8(2); const auto value_color_2 = value_color.value2; valueSerializer.writeString(value_color_2); } - else if (((value_color_type == 3))) { + else if (value_color_type == 3) { valueSerializer.writeInt8(3); const auto value_color_3 = value_color.value3; valueSerializer.writeResource(value_color_3); @@ -51034,22 +52621,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -51075,22 +52662,22 @@ class Serializer : public SerializerBase { const auto value_top_value = value_top.value; Ark_Int32 value_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_top_value_type = value_top_value.selector; - if (((value_top_value_type == 0))) { + if (value_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_top_value_0 = value_top_value.value0; valueSerializer.writeInt32(static_cast(value_top_value_0)); } - else if (((value_top_value_type == 1))) { + else if (value_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_top_value_1 = value_top_value.value1; valueSerializer.writeNumber(value_top_value_1); } - else if (((value_top_value_type == 2))) { + else if (value_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_top_value_2 = value_top_value.value2; valueSerializer.writeString(value_top_value_2); } - else if (((value_top_value_type == 3))) { + else if (value_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_top_value_3 = value_top_value.value3; valueSerializer.writeResource(value_top_value_3); @@ -51104,22 +52691,22 @@ class Serializer : public SerializerBase { const auto value_end_value = value_end.value; Ark_Int32 value_end_value_type = INTEROP_RUNTIME_UNDEFINED; value_end_value_type = value_end_value.selector; - if (((value_end_value_type == 0))) { + if (value_end_value_type == 0) { valueSerializer.writeInt8(0); const auto value_end_value_0 = value_end_value.value0; valueSerializer.writeInt32(static_cast(value_end_value_0)); } - else if (((value_end_value_type == 1))) { + else if (value_end_value_type == 1) { valueSerializer.writeInt8(1); const auto value_end_value_1 = value_end_value.value1; valueSerializer.writeNumber(value_end_value_1); } - else if (((value_end_value_type == 2))) { + else if (value_end_value_type == 2) { valueSerializer.writeInt8(2); const auto value_end_value_2 = value_end_value.value2; valueSerializer.writeString(value_end_value_2); } - else if (((value_end_value_type == 3))) { + else if (value_end_value_type == 3) { valueSerializer.writeInt8(3); const auto value_end_value_3 = value_end_value.value3; valueSerializer.writeResource(value_end_value_3); @@ -51133,22 +52720,22 @@ class Serializer : public SerializerBase { const auto value_bottom_value = value_bottom.value; Ark_Int32 value_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_bottom_value_type = value_bottom_value.selector; - if (((value_bottom_value_type == 0))) { + if (value_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_bottom_value_0 = value_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_bottom_value_0)); } - else if (((value_bottom_value_type == 1))) { + else if (value_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_bottom_value_1 = value_bottom_value.value1; valueSerializer.writeNumber(value_bottom_value_1); } - else if (((value_bottom_value_type == 2))) { + else if (value_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_bottom_value_2 = value_bottom_value.value2; valueSerializer.writeString(value_bottom_value_2); } - else if (((value_bottom_value_type == 3))) { + else if (value_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_bottom_value_3 = value_bottom_value.value3; valueSerializer.writeResource(value_bottom_value_3); @@ -51162,22 +52749,22 @@ class Serializer : public SerializerBase { const auto value_start_value = value_start.value; Ark_Int32 value_start_value_type = INTEROP_RUNTIME_UNDEFINED; value_start_value_type = value_start_value.selector; - if (((value_start_value_type == 0))) { + if (value_start_value_type == 0) { valueSerializer.writeInt8(0); const auto value_start_value_0 = value_start_value.value0; valueSerializer.writeInt32(static_cast(value_start_value_0)); } - else if (((value_start_value_type == 1))) { + else if (value_start_value_type == 1) { valueSerializer.writeInt8(1); const auto value_start_value_1 = value_start_value.value1; valueSerializer.writeNumber(value_start_value_1); } - else if (((value_start_value_type == 2))) { + else if (value_start_value_type == 2) { valueSerializer.writeInt8(2); const auto value_start_value_2 = value_start_value.value2; valueSerializer.writeString(value_start_value_2); } - else if (((value_start_value_type == 3))) { + else if (value_start_value_type == 3) { valueSerializer.writeInt8(3); const auto value_start_value_3 = value_start_value.value3; valueSerializer.writeResource(value_start_value_3); @@ -51226,12 +52813,12 @@ class Serializer : public SerializerBase { const auto value_title = value.title; Ark_Int32 value_title_type = INTEROP_RUNTIME_UNDEFINED; value_title_type = value_title.selector; - if (((value_title_type == 0))) { + if (value_title_type == 0) { valueSerializer.writeInt8(0); const auto value_title_0 = value_title.value0; valueSerializer.writeString(value_title_0); } - else if (((value_title_type == 1))) { + else if (value_title_type == 1) { valueSerializer.writeInt8(1); const auto value_title_1 = value_title.value1; valueSerializer.writeResource(value_title_1); @@ -51244,12 +52831,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -51330,12 +52917,12 @@ class Serializer : public SerializerBase { const auto value_margin_value = value_margin.value; Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; value_margin_value_type = value_margin_value.selector; - if (((value_margin_value_type == 0))) { + if (value_margin_value_type == 0) { valueSerializer.writeInt8(0); const auto value_margin_value_0 = value_margin_value.value0; valueSerializer.writeLengthMetrics(value_margin_value_0); } - else if (((value_margin_value_type == 1))) { + else if (value_margin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_margin_value_1 = value_margin_value.value1; const auto value_margin_value_1_top = value_margin_value_1.top; @@ -51380,12 +52967,12 @@ class Serializer : public SerializerBase { const auto value_padding_value = value_padding.value; Ark_Int32 value_padding_value_type = INTEROP_RUNTIME_UNDEFINED; value_padding_value_type = value_padding_value.selector; - if (((value_padding_value_type == 0))) { + if (value_padding_value_type == 0) { valueSerializer.writeInt8(0); const auto value_padding_value_0 = value_padding_value.value0; valueSerializer.writeLengthMetrics(value_padding_value_0); } - else if (((value_padding_value_type == 1))) { + else if (value_padding_value_type == 1) { valueSerializer.writeInt8(1); const auto value_padding_value_1 = value_padding_value.value1; const auto value_padding_value_1_top = value_padding_value_1.top; @@ -51430,12 +53017,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0))) { + if (value_borderRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLengthMetrics(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -51572,22 +53159,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -51645,22 +53232,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -51674,17 +53261,17 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeInt32(static_cast(value_fontWeight_value_0)); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeNumber(value_fontWeight_value_1); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); @@ -51706,12 +53293,12 @@ class Serializer : public SerializerBase { const auto value_fontFamily_value = value_fontFamily.value; Ark_Int32 value_fontFamily_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontFamily_value_type = value_fontFamily_value.selector; - if (((value_fontFamily_value_type == 0))) { + if (value_fontFamily_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontFamily_value_0 = value_fontFamily_value.value0; valueSerializer.writeResource(value_fontFamily_value_0); } - else if (((value_fontFamily_value_type == 1))) { + else if (value_fontFamily_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontFamily_value_1 = value_fontFamily_value.value1; valueSerializer.writeString(value_fontFamily_value_1); @@ -51725,22 +53312,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -51754,12 +53341,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0))) { + if ((value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLength(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -51810,6 +53397,12 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeAffinity(Ark_Affinity value) + { + Serializer& valueSerializer = *this; + const auto value__AffinityStub = value._AffinityStub; + valueSerializer.writeString(value__AffinityStub); + } void writeTabBarIconStyle(Ark_TabBarIconStyle value) { Serializer& valueSerializer = *this; @@ -51821,22 +53414,22 @@ class Serializer : public SerializerBase { const auto value_selectedColor_value = value_selectedColor.value; Ark_Int32 value_selectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_selectedColor_value_type = value_selectedColor_value.selector; - if (((value_selectedColor_value_type == 0))) { + if (value_selectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selectedColor_value_0 = value_selectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_selectedColor_value_0)); } - else if (((value_selectedColor_value_type == 1))) { + else if (value_selectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selectedColor_value_1 = value_selectedColor_value.value1; valueSerializer.writeNumber(value_selectedColor_value_1); } - else if (((value_selectedColor_value_type == 2))) { + else if (value_selectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_selectedColor_value_2 = value_selectedColor_value.value2; valueSerializer.writeString(value_selectedColor_value_2); } - else if (((value_selectedColor_value_type == 3))) { + else if (value_selectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_selectedColor_value_3 = value_selectedColor_value.value3; valueSerializer.writeResource(value_selectedColor_value_3); @@ -51850,22 +53443,22 @@ class Serializer : public SerializerBase { const auto value_unselectedColor_value = value_unselectedColor.value; Ark_Int32 value_unselectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_unselectedColor_value_type = value_unselectedColor_value.selector; - if (((value_unselectedColor_value_type == 0))) { + if (value_unselectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_unselectedColor_value_0 = value_unselectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_unselectedColor_value_0)); } - else if (((value_unselectedColor_value_type == 1))) { + else if (value_unselectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_unselectedColor_value_1 = value_unselectedColor_value.value1; valueSerializer.writeNumber(value_unselectedColor_value_1); } - else if (((value_unselectedColor_value_type == 2))) { + else if (value_unselectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_unselectedColor_value_2 = value_unselectedColor_value.value2; valueSerializer.writeString(value_unselectedColor_value_2); } - else if (((value_unselectedColor_value_type == 3))) { + else if (value_unselectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_unselectedColor_value_3 = value_unselectedColor_value.value3; valueSerializer.writeResource(value_unselectedColor_value_3); @@ -51899,22 +53492,22 @@ class Serializer : public SerializerBase { const auto value_minFontSize_value = value_minFontSize.value; Ark_Int32 value_minFontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_minFontSize_value_type = value_minFontSize_value.selector; - if (((value_minFontSize_value_type == 0))) { + if (value_minFontSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_minFontSize_value_0 = value_minFontSize_value.value0; valueSerializer.writeNumber(value_minFontSize_value_0); } - else if (((value_minFontSize_value_type == 1)) || ((value_minFontSize_value_type == 1))) { + else if ((value_minFontSize_value_type == 1) || (value_minFontSize_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_minFontSize_value_1 = value_minFontSize_value.value1; Ark_Int32 value_minFontSize_value_1_type = INTEROP_RUNTIME_UNDEFINED; value_minFontSize_value_1_type = value_minFontSize_value_1.selector; - if (((value_minFontSize_value_1_type == 0))) { + if (value_minFontSize_value_1_type == 0) { valueSerializer.writeInt8(0); const auto value_minFontSize_value_1_0 = value_minFontSize_value_1.value0; valueSerializer.writeString(value_minFontSize_value_1_0); } - else if (((value_minFontSize_value_1_type == 1))) { + else if (value_minFontSize_value_1_type == 1) { valueSerializer.writeInt8(1); const auto value_minFontSize_value_1_1 = value_minFontSize_value_1.value1; valueSerializer.writeResource(value_minFontSize_value_1_1); @@ -51929,22 +53522,22 @@ class Serializer : public SerializerBase { const auto value_maxFontSize_value = value_maxFontSize.value; Ark_Int32 value_maxFontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_maxFontSize_value_type = value_maxFontSize_value.selector; - if (((value_maxFontSize_value_type == 0))) { + if (value_maxFontSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_maxFontSize_value_0 = value_maxFontSize_value.value0; valueSerializer.writeNumber(value_maxFontSize_value_0); } - else if (((value_maxFontSize_value_type == 1)) || ((value_maxFontSize_value_type == 1))) { + else if ((value_maxFontSize_value_type == 1) || (value_maxFontSize_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_maxFontSize_value_1 = value_maxFontSize_value.value1; Ark_Int32 value_maxFontSize_value_1_type = INTEROP_RUNTIME_UNDEFINED; value_maxFontSize_value_1_type = value_maxFontSize_value_1.selector; - if (((value_maxFontSize_value_1_type == 0))) { + if (value_maxFontSize_value_1_type == 0) { valueSerializer.writeInt8(0); const auto value_maxFontSize_value_1_0 = value_maxFontSize_value_1.value0; valueSerializer.writeString(value_maxFontSize_value_1_0); } - else if (((value_maxFontSize_value_1_type == 1))) { + else if (value_maxFontSize_value_1_type == 1) { valueSerializer.writeInt8(1); const auto value_maxFontSize_value_1_1 = value_maxFontSize_value_1.value1; valueSerializer.writeResource(value_maxFontSize_value_1_1); @@ -52039,22 +53632,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -52068,22 +53661,22 @@ class Serializer : public SerializerBase { const auto value_selectedColor_value = value_selectedColor.value; Ark_Int32 value_selectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_selectedColor_value_type = value_selectedColor_value.selector; - if (((value_selectedColor_value_type == 0))) { + if (value_selectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selectedColor_value_0 = value_selectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_selectedColor_value_0)); } - else if (((value_selectedColor_value_type == 1))) { + else if (value_selectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selectedColor_value_1 = value_selectedColor_value.value1; valueSerializer.writeNumber(value_selectedColor_value_1); } - else if (((value_selectedColor_value_type == 2))) { + else if (value_selectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_selectedColor_value_2 = value_selectedColor_value.value2; valueSerializer.writeString(value_selectedColor_value_2); } - else if (((value_selectedColor_value_type == 3))) { + else if (value_selectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_selectedColor_value_3 = value_selectedColor_value.value3; valueSerializer.writeResource(value_selectedColor_value_3); @@ -52118,22 +53711,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -52147,12 +53740,12 @@ class Serializer : public SerializerBase { const auto value_src_value = value_src.value; Ark_Int32 value_src_value_type = INTEROP_RUNTIME_UNDEFINED; value_src_value_type = value_src_value.selector; - if (((value_src_value_type == 0))) { + if (value_src_value_type == 0) { valueSerializer.writeInt8(0); const auto value_src_value_0 = value_src_value.value0; valueSerializer.writeString(value_src_value_0); } - else if (((value_src_value_type == 1))) { + else if (value_src_value_type == 1) { valueSerializer.writeInt8(1); const auto value_src_value_1 = value_src_value.value1; valueSerializer.writeResource(value_src_value_1); @@ -52210,12 +53803,12 @@ class Serializer : public SerializerBase { const auto value_leadingMargin_value = value_leadingMargin.value; Ark_Int32 value_leadingMargin_value_type = INTEROP_RUNTIME_UNDEFINED; value_leadingMargin_value_type = value_leadingMargin_value.selector; - if (((value_leadingMargin_value_type == 0)) || ((value_leadingMargin_value_type == 0)) || ((value_leadingMargin_value_type == 0))) { + if ((value_leadingMargin_value_type == 0) || (value_leadingMargin_value_type == 0) || (value_leadingMargin_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_leadingMargin_value_0 = value_leadingMargin_value.value0; valueSerializer.writeLength(value_leadingMargin_value_0); } - else if (((value_leadingMargin_value_type == 1))) { + else if (value_leadingMargin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_leadingMargin_value_1 = value_leadingMargin_value.value1; valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1); @@ -52249,17 +53842,17 @@ class Serializer : public SerializerBase { const auto value_fontSize_value = value_fontSize.value; Ark_Int32 value_fontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontSize_value_type = value_fontSize_value.selector; - if (((value_fontSize_value_type == 0))) { + if (value_fontSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontSize_value_0 = value_fontSize_value.value0; valueSerializer.writeNumber(value_fontSize_value_0); } - else if (((value_fontSize_value_type == 1))) { + else if (value_fontSize_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontSize_value_1 = value_fontSize_value.value1; valueSerializer.writeString(value_fontSize_value_1); } - else if (((value_fontSize_value_type == 2))) { + else if (value_fontSize_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontSize_value_2 = value_fontSize_value.value2; valueSerializer.writeResource(value_fontSize_value_2); @@ -52276,22 +53869,22 @@ class Serializer : public SerializerBase { const Ark_ResourceColor value_fontColor_value_element = value_fontColor_value.array[i]; Ark_Int32 value_fontColor_value_element_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_element_type = value_fontColor_value_element.selector; - if (((value_fontColor_value_element_type == 0))) { + if (value_fontColor_value_element_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_element_0 = value_fontColor_value_element.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_element_0)); } - else if (((value_fontColor_value_element_type == 1))) { + else if (value_fontColor_value_element_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_element_1 = value_fontColor_value_element.value1; valueSerializer.writeNumber(value_fontColor_value_element_1); } - else if (((value_fontColor_value_element_type == 2))) { + else if (value_fontColor_value_element_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_element_2 = value_fontColor_value_element.value2; valueSerializer.writeString(value_fontColor_value_element_2); } - else if (((value_fontColor_value_element_type == 3))) { + else if (value_fontColor_value_element_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_element_3 = value_fontColor_value_element.value3; valueSerializer.writeResource(value_fontColor_value_element_3); @@ -52306,17 +53899,17 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeNumber(value_fontWeight_value_0); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeInt32(static_cast(value_fontWeight_value_1)); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); @@ -52345,22 +53938,22 @@ class Serializer : public SerializerBase { const auto value_fontColor = value.fontColor; Ark_Int32 value_fontColor_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_type = value_fontColor.selector; - if (((value_fontColor_type == 0))) { + if (value_fontColor_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_0 = value_fontColor.value0; valueSerializer.writeInt32(static_cast(value_fontColor_0)); } - else if (((value_fontColor_type == 1))) { + else if (value_fontColor_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_1 = value_fontColor.value1; valueSerializer.writeNumber(value_fontColor_1); } - else if (((value_fontColor_type == 2))) { + else if (value_fontColor_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_2 = value_fontColor.value2; valueSerializer.writeString(value_fontColor_2); } - else if (((value_fontColor_type == 3))) { + else if (value_fontColor_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_3 = value_fontColor.value3; valueSerializer.writeResource(value_fontColor_3); @@ -52462,22 +54055,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -52491,12 +54084,12 @@ class Serializer : public SerializerBase { const auto value_fontSize_value = value_fontSize.value; Ark_Int32 value_fontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontSize_value_type = value_fontSize_value.selector; - if (((value_fontSize_value_type == 0)) || ((value_fontSize_value_type == 0)) || ((value_fontSize_value_type == 0))) { + if ((value_fontSize_value_type == 0) || (value_fontSize_value_type == 0) || (value_fontSize_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_fontSize_value_0 = value_fontSize_value.value0; valueSerializer.writeLength(value_fontSize_value_0); } - else if (((value_fontSize_value_type == 1))) { + else if (value_fontSize_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontSize_value_1 = value_fontSize_value.value1; valueSerializer.writeNumber(value_fontSize_value_1); @@ -52518,17 +54111,17 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeNumber(value_fontWeight_value_0); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeInt32(static_cast(value_fontWeight_value_1)); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); @@ -52542,12 +54135,12 @@ class Serializer : public SerializerBase { const auto value_fontFamily_value = value_fontFamily.value; Ark_Int32 value_fontFamily_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontFamily_value_type = value_fontFamily_value.selector; - if (((value_fontFamily_value_type == 0))) { + if (value_fontFamily_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontFamily_value_0 = value_fontFamily_value.value0; valueSerializer.writeString(value_fontFamily_value_0); } - else if (((value_fontFamily_value_type == 1))) { + else if (value_fontFamily_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontFamily_value_1 = value_fontFamily_value.value1; valueSerializer.writeResource(value_fontFamily_value_1); @@ -52569,12 +54162,12 @@ class Serializer : public SerializerBase { const auto value_textShadow_value = value_textShadow.value; Ark_Int32 value_textShadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_textShadow_value_type = value_textShadow_value.selector; - if (((value_textShadow_value_type == 0))) { + if (value_textShadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_textShadow_value_0 = value_textShadow_value.value0; valueSerializer.writeShadowOptions(value_textShadow_value_0); } - else if (((value_textShadow_value_type == 1))) { + else if (value_textShadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_textShadow_value_1 = value_textShadow_value.value1; valueSerializer.writeInt32(value_textShadow_value_1.length); @@ -52592,12 +54185,12 @@ class Serializer : public SerializerBase { const auto value_letterSpacing_value = value_letterSpacing.value; Ark_Int32 value_letterSpacing_value_type = INTEROP_RUNTIME_UNDEFINED; value_letterSpacing_value_type = value_letterSpacing_value.selector; - if (((value_letterSpacing_value_type == 0))) { + if (value_letterSpacing_value_type == 0) { valueSerializer.writeInt8(0); const auto value_letterSpacing_value_0 = value_letterSpacing_value.value0; valueSerializer.writeNumber(value_letterSpacing_value_0); } - else if (((value_letterSpacing_value_type == 1))) { + else if (value_letterSpacing_value_type == 1) { valueSerializer.writeInt8(1); const auto value_letterSpacing_value_1 = value_letterSpacing_value.value1; valueSerializer.writeString(value_letterSpacing_value_1); @@ -52611,17 +54204,17 @@ class Serializer : public SerializerBase { const auto value_lineHeight_value = value_lineHeight.value; Ark_Int32 value_lineHeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_lineHeight_value_type = value_lineHeight_value.selector; - if (((value_lineHeight_value_type == 0))) { + if (value_lineHeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_lineHeight_value_0 = value_lineHeight_value.value0; valueSerializer.writeNumber(value_lineHeight_value_0); } - else if (((value_lineHeight_value_type == 1))) { + else if (value_lineHeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_lineHeight_value_1 = value_lineHeight_value.value1; valueSerializer.writeString(value_lineHeight_value_1); } - else if (((value_lineHeight_value_type == 2))) { + else if (value_lineHeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_lineHeight_value_2 = value_lineHeight_value.value2; valueSerializer.writeResource(value_lineHeight_value_2); @@ -52798,12 +54391,12 @@ class Serializer : public SerializerBase { const auto value_x_value = value_x.value; Ark_Int32 value_x_value_type = INTEROP_RUNTIME_UNDEFINED; value_x_value_type = value_x_value.selector; - if (((value_x_value_type == 0)) || ((value_x_value_type == 0)) || ((value_x_value_type == 0))) { + if ((value_x_value_type == 0) || (value_x_value_type == 0) || (value_x_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_x_value_0 = value_x_value.value0; valueSerializer.writeLength(value_x_value_0); } - else if (((value_x_value_type == 1))) { + else if (value_x_value_type == 1) { valueSerializer.writeInt8(1); const auto value_x_value_1 = value_x_value.value1; valueSerializer.writeGridRowSizeOption(value_x_value_1); @@ -52817,12 +54410,12 @@ class Serializer : public SerializerBase { const auto value_y_value = value_y.value; Ark_Int32 value_y_value_type = INTEROP_RUNTIME_UNDEFINED; value_y_value_type = value_y_value.selector; - if (((value_y_value_type == 0)) || ((value_y_value_type == 0)) || ((value_y_value_type == 0))) { + if ((value_y_value_type == 0) || (value_y_value_type == 0) || (value_y_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_y_value_0 = value_y_value.value0; valueSerializer.writeLength(value_y_value_0); } - else if (((value_y_value_type == 1))) { + else if (value_y_value_type == 1) { valueSerializer.writeInt8(1); const auto value_y_value_1 = value_y_value.value1; valueSerializer.writeGridRowSizeOption(value_y_value_1); @@ -52897,22 +54490,22 @@ class Serializer : public SerializerBase { const auto value_selectedColor_value = value_selectedColor.value; Ark_Int32 value_selectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_selectedColor_value_type = value_selectedColor_value.selector; - if (((value_selectedColor_value_type == 0))) { + if (value_selectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selectedColor_value_0 = value_selectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_selectedColor_value_0)); } - else if (((value_selectedColor_value_type == 1))) { + else if (value_selectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selectedColor_value_1 = value_selectedColor_value.value1; valueSerializer.writeNumber(value_selectedColor_value_1); } - else if (((value_selectedColor_value_type == 2))) { + else if (value_selectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_selectedColor_value_2 = value_selectedColor_value.value2; valueSerializer.writeString(value_selectedColor_value_2); } - else if (((value_selectedColor_value_type == 3))) { + else if (value_selectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_selectedColor_value_3 = value_selectedColor_value.value3; valueSerializer.writeResource(value_selectedColor_value_3); @@ -52926,22 +54519,22 @@ class Serializer : public SerializerBase { const auto value_unselectedColor_value = value_unselectedColor.value; Ark_Int32 value_unselectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_unselectedColor_value_type = value_unselectedColor_value.selector; - if (((value_unselectedColor_value_type == 0))) { + if (value_unselectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_unselectedColor_value_0 = value_unselectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_unselectedColor_value_0)); } - else if (((value_unselectedColor_value_type == 1))) { + else if (value_unselectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_unselectedColor_value_1 = value_unselectedColor_value.value1; valueSerializer.writeNumber(value_unselectedColor_value_1); } - else if (((value_unselectedColor_value_type == 2))) { + else if (value_unselectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_unselectedColor_value_2 = value_unselectedColor_value.value2; valueSerializer.writeString(value_unselectedColor_value_2); } - else if (((value_unselectedColor_value_type == 3))) { + else if (value_unselectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_unselectedColor_value_3 = value_unselectedColor_value.value3; valueSerializer.writeResource(value_unselectedColor_value_3); @@ -52955,22 +54548,22 @@ class Serializer : public SerializerBase { const auto value_strokeColor_value = value_strokeColor.value; Ark_Int32 value_strokeColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_strokeColor_value_type = value_strokeColor_value.selector; - if (((value_strokeColor_value_type == 0))) { + if (value_strokeColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_strokeColor_value_0 = value_strokeColor_value.value0; valueSerializer.writeInt32(static_cast(value_strokeColor_value_0)); } - else if (((value_strokeColor_value_type == 1))) { + else if (value_strokeColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_strokeColor_value_1 = value_strokeColor_value.value1; valueSerializer.writeNumber(value_strokeColor_value_1); } - else if (((value_strokeColor_value_type == 2))) { + else if (value_strokeColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_strokeColor_value_2 = value_strokeColor_value.value2; valueSerializer.writeString(value_strokeColor_value_2); } - else if (((value_strokeColor_value_type == 3))) { + else if (value_strokeColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_strokeColor_value_3 = value_strokeColor_value.value3; valueSerializer.writeResource(value_strokeColor_value_3); @@ -53038,22 +54631,22 @@ class Serializer : public SerializerBase { const auto value_textColor_value = value_textColor.value; Ark_Int32 value_textColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_textColor_value_type = value_textColor_value.selector; - if (((value_textColor_value_type == 0))) { + if (value_textColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_textColor_value_0 = value_textColor_value.value0; valueSerializer.writeInt32(static_cast(value_textColor_value_0)); } - else if (((value_textColor_value_type == 1))) { + else if (value_textColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_textColor_value_1 = value_textColor_value.value1; valueSerializer.writeNumber(value_textColor_value_1); } - else if (((value_textColor_value_type == 2))) { + else if (value_textColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_textColor_value_2 = value_textColor_value.value2; valueSerializer.writeString(value_textColor_value_2); } - else if (((value_textColor_value_type == 3))) { + else if (value_textColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_textColor_value_3 = value_textColor_value.value3; valueSerializer.writeResource(value_textColor_value_3); @@ -53180,12 +54773,12 @@ class Serializer : public SerializerBase { const auto value_centerX_value = value_centerX.value; Ark_Int32 value_centerX_value_type = INTEROP_RUNTIME_UNDEFINED; value_centerX_value_type = value_centerX_value.selector; - if (((value_centerX_value_type == 0))) { + if (value_centerX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_centerX_value_0 = value_centerX_value.value0; valueSerializer.writeNumber(value_centerX_value_0); } - else if (((value_centerX_value_type == 1))) { + else if (value_centerX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_centerX_value_1 = value_centerX_value.value1; valueSerializer.writeString(value_centerX_value_1); @@ -53199,12 +54792,12 @@ class Serializer : public SerializerBase { const auto value_centerY_value = value_centerY.value; Ark_Int32 value_centerY_value_type = INTEROP_RUNTIME_UNDEFINED; value_centerY_value_type = value_centerY_value.selector; - if (((value_centerY_value_type == 0))) { + if (value_centerY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_centerY_value_0 = value_centerY_value.value0; valueSerializer.writeNumber(value_centerY_value_0); } - else if (((value_centerY_value_type == 1))) { + else if (value_centerY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_centerY_value_1 = value_centerY_value.value1; valueSerializer.writeString(value_centerY_value_1); @@ -53229,12 +54822,12 @@ class Serializer : public SerializerBase { const auto value_angle = value.angle; Ark_Int32 value_angle_type = INTEROP_RUNTIME_UNDEFINED; value_angle_type = value_angle.selector; - if (((value_angle_type == 0))) { + if (value_angle_type == 0) { valueSerializer.writeInt8(0); const auto value_angle_0 = value_angle.value0; valueSerializer.writeNumber(value_angle_0); } - else if (((value_angle_type == 1))) { + else if (value_angle_type == 1) { valueSerializer.writeInt8(1); const auto value_angle_1 = value_angle.value1; valueSerializer.writeString(value_angle_1); @@ -53275,12 +54868,12 @@ class Serializer : public SerializerBase { const auto value_centerX_value = value_centerX.value; Ark_Int32 value_centerX_value_type = INTEROP_RUNTIME_UNDEFINED; value_centerX_value_type = value_centerX_value.selector; - if (((value_centerX_value_type == 0))) { + if (value_centerX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_centerX_value_0 = value_centerX_value.value0; valueSerializer.writeNumber(value_centerX_value_0); } - else if (((value_centerX_value_type == 1))) { + else if (value_centerX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_centerX_value_1 = value_centerX_value.value1; valueSerializer.writeString(value_centerX_value_1); @@ -53294,12 +54887,12 @@ class Serializer : public SerializerBase { const auto value_centerY_value = value_centerY.value; Ark_Int32 value_centerY_value_type = INTEROP_RUNTIME_UNDEFINED; value_centerY_value_type = value_centerY_value.selector; - if (((value_centerY_value_type == 0))) { + if (value_centerY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_centerY_value_0 = value_centerY_value.value0; valueSerializer.writeNumber(value_centerY_value_0); } - else if (((value_centerY_value_type == 1))) { + else if (value_centerY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_centerY_value_1 = value_centerY_value.value1; valueSerializer.writeString(value_centerY_value_1); @@ -53317,12 +54910,12 @@ class Serializer : public SerializerBase { const auto value_x_value = value_x.value; Ark_Int32 value_x_value_type = INTEROP_RUNTIME_UNDEFINED; value_x_value_type = value_x_value.selector; - if (((value_x_value_type == 0))) { + if (value_x_value_type == 0) { valueSerializer.writeInt8(0); const auto value_x_value_0 = value_x_value.value0; valueSerializer.writeNumber(value_x_value_0); } - else if (((value_x_value_type == 1))) { + else if (value_x_value_type == 1) { valueSerializer.writeInt8(1); const auto value_x_value_1 = value_x_value.value1; valueSerializer.writeString(value_x_value_1); @@ -53336,12 +54929,12 @@ class Serializer : public SerializerBase { const auto value_y_value = value_y.value; Ark_Int32 value_y_value_type = INTEROP_RUNTIME_UNDEFINED; value_y_value_type = value_y_value.selector; - if (((value_y_value_type == 0))) { + if (value_y_value_type == 0) { valueSerializer.writeInt8(0); const auto value_y_value_0 = value_y_value.value0; valueSerializer.writeNumber(value_y_value_0); } - else if (((value_y_value_type == 1))) { + else if (value_y_value_type == 1) { valueSerializer.writeInt8(1); const auto value_y_value_1 = value_y_value.value1; valueSerializer.writeString(value_y_value_1); @@ -53355,12 +54948,12 @@ class Serializer : public SerializerBase { const auto value_z_value = value_z.value; Ark_Int32 value_z_value_type = INTEROP_RUNTIME_UNDEFINED; value_z_value_type = value_z_value.selector; - if (((value_z_value_type == 0))) { + if (value_z_value_type == 0) { valueSerializer.writeInt8(0); const auto value_z_value_0 = value_z_value.value0; valueSerializer.writeNumber(value_z_value_0); } - else if (((value_z_value_type == 1))) { + else if (value_z_value_type == 1) { valueSerializer.writeInt8(1); const auto value_z_value_1 = value_z_value.value1; valueSerializer.writeString(value_z_value_1); @@ -53378,12 +54971,12 @@ class Serializer : public SerializerBase { const auto value_angle_value = value_angle.value; Ark_Int32 value_angle_value_type = INTEROP_RUNTIME_UNDEFINED; value_angle_value_type = value_angle_value.selector; - if (((value_angle_value_type == 0))) { + if (value_angle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_angle_value_0 = value_angle_value.value0; valueSerializer.writeNumber(value_angle_value_0); } - else if (((value_angle_value_type == 1))) { + else if (value_angle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_angle_value_1 = value_angle_value.value1; valueSerializer.writeString(value_angle_value_1); @@ -53404,22 +54997,22 @@ class Serializer : public SerializerBase { const auto value_colors_element_0 = value_colors_element.value0; Ark_Int32 value_colors_element_0_type = INTEROP_RUNTIME_UNDEFINED; value_colors_element_0_type = value_colors_element_0.selector; - if (((value_colors_element_0_type == 0))) { + if (value_colors_element_0_type == 0) { valueSerializer.writeInt8(0); const auto value_colors_element_0_0 = value_colors_element_0.value0; valueSerializer.writeInt32(static_cast(value_colors_element_0_0)); } - else if (((value_colors_element_0_type == 1))) { + else if (value_colors_element_0_type == 1) { valueSerializer.writeInt8(1); const auto value_colors_element_0_1 = value_colors_element_0.value1; valueSerializer.writeNumber(value_colors_element_0_1); } - else if (((value_colors_element_0_type == 2))) { + else if (value_colors_element_0_type == 2) { valueSerializer.writeInt8(2); const auto value_colors_element_0_2 = value_colors_element_0.value2; valueSerializer.writeString(value_colors_element_0_2); } - else if (((value_colors_element_0_type == 3))) { + else if (value_colors_element_0_type == 3) { valueSerializer.writeInt8(3); const auto value_colors_element_0_3 = value_colors_element_0.value3; valueSerializer.writeResource(value_colors_element_0_3); @@ -53496,12 +55089,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -53514,22 +55107,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -53543,22 +55136,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -53575,17 +55168,17 @@ class Serializer : public SerializerBase { const auto value_dx = value.dx; Ark_Int32 value_dx_type = INTEROP_RUNTIME_UNDEFINED; value_dx_type = value_dx.selector; - if (((value_dx_type == 0))) { + if (value_dx_type == 0) { valueSerializer.writeInt8(0); const auto value_dx_0 = value_dx.value0; valueSerializer.writeNumber(value_dx_0); } - else if (((value_dx_type == 1))) { + else if (value_dx_type == 1) { valueSerializer.writeInt8(1); const auto value_dx_1 = value_dx.value1; valueSerializer.writeString(value_dx_1); } - else if (((value_dx_type == 2))) { + else if (value_dx_type == 2) { valueSerializer.writeInt8(2); const auto value_dx_2 = value_dx.value2; valueSerializer.writeResource(value_dx_2); @@ -53593,17 +55186,17 @@ class Serializer : public SerializerBase { const auto value_dy = value.dy; Ark_Int32 value_dy_type = INTEROP_RUNTIME_UNDEFINED; value_dy_type = value_dy.selector; - if (((value_dy_type == 0))) { + if (value_dy_type == 0) { valueSerializer.writeInt8(0); const auto value_dy_0 = value_dy.value0; valueSerializer.writeNumber(value_dy_0); } - else if (((value_dy_type == 1))) { + else if (value_dy_type == 1) { valueSerializer.writeInt8(1); const auto value_dy_1 = value_dy.value1; valueSerializer.writeString(value_dy_1); } - else if (((value_dy_type == 2))) { + else if (value_dy_type == 2) { valueSerializer.writeInt8(2); const auto value_dy_2 = value_dy.value2; valueSerializer.writeResource(value_dy_2); @@ -53639,12 +55232,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -53881,6 +55474,20 @@ class Serializer : public SerializerBase { const auto value__DrawContextStub = value._DrawContextStub; valueSerializer.writeString(value__DrawContextStub); } + void writeCustomSpanMetrics(Ark_CustomSpanMetrics value) + { + Serializer& valueSerializer = *this; + const auto value_width = value.width; + valueSerializer.writeNumber(value_width); + const auto value_height = value.height; + Ark_Int32 value_height_type = INTEROP_RUNTIME_UNDEFINED; + value_height_type = runtimeType(value_height); + valueSerializer.writeInt8(value_height_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_height_type)) { + const auto value_height_value = value_height.value; + valueSerializer.writeNumber(value_height_value); + } + } void writeCustomSpanMeasureInfo(Ark_CustomSpanMeasureInfo value) { Serializer& valueSerializer = *this; @@ -53910,22 +55517,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -53939,12 +55546,12 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0)) || ((value_radius_value_type == 0)) || ((value_radius_value_type == 0))) { + if ((value_radius_value_type == 0) || (value_radius_value_type == 0) || (value_radius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; valueSerializer.writeLength(value_radius_value_0); } - else if (((value_radius_value_type == 1))) { + else if (value_radius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; const auto value_radius_value_1_topLeft = value_radius_value_1.topLeft; @@ -53992,6 +55599,9 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeWaterFlowAttribute(Ark_WaterFlowAttribute value) + { + } void writeWaterFlowSections(Ark_WaterFlowSections value) { Serializer& valueSerializer = *this; @@ -54049,7 +55659,7 @@ class Serializer : public SerializerBase { const auto value_margin_value = value_margin.value; Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; value_margin_value_type = value_margin_value.selector; - if (((value_margin_value_type == 0))) { + if (value_margin_value_type == 0) { valueSerializer.writeInt8(0); const auto value_margin_value_0 = value_margin_value.value0; const auto value_margin_value_0_top = value_margin_value_0.top; @@ -54085,7 +55695,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_margin_value_0_left_value); } } - else if (((value_margin_value_type == 1)) || ((value_margin_value_type == 1)) || ((value_margin_value_type == 1))) { + else if ((value_margin_value_type == 1) || (value_margin_value_type == 1) || (value_margin_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_margin_value_1 = value_margin_value.value1; valueSerializer.writeLength(value_margin_value_1); @@ -54119,22 +55729,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -54163,17 +55773,17 @@ class Serializer : public SerializerBase { const auto value_shown = value.shown; Ark_Int32 value_shown_type = INTEROP_RUNTIME_UNDEFINED; value_shown_type = value_shown.selector; - if (((value_shown_type == 0))) { + if (value_shown_type == 0) { valueSerializer.writeInt8(0); const auto value_shown_0 = value_shown.value0; valueSerializer.writeString(value_shown_0); } - else if (((value_shown_type == 1))) { + else if (value_shown_type == 1) { valueSerializer.writeInt8(1); const auto value_shown_1 = value_shown.value1; valueSerializer.writePixelMap(value_shown_1); } - else if (((value_shown_type == 2))) { + else if (value_shown_type == 2) { valueSerializer.writeInt8(2); const auto value_shown_2 = value_shown.value2; valueSerializer.writeResource(value_shown_2); @@ -54181,17 +55791,17 @@ class Serializer : public SerializerBase { const auto value_hidden = value.hidden; Ark_Int32 value_hidden_type = INTEROP_RUNTIME_UNDEFINED; value_hidden_type = value_hidden.selector; - if (((value_hidden_type == 0))) { + if (value_hidden_type == 0) { valueSerializer.writeInt8(0); const auto value_hidden_0 = value_hidden.value0; valueSerializer.writeString(value_hidden_0); } - else if (((value_hidden_type == 1))) { + else if (value_hidden_type == 1) { valueSerializer.writeInt8(1); const auto value_hidden_1 = value_hidden.value1; valueSerializer.writePixelMap(value_hidden_1); } - else if (((value_hidden_type == 2))) { + else if (value_hidden_type == 2) { valueSerializer.writeInt8(2); const auto value_hidden_2 = value_hidden.value2; valueSerializer.writeResource(value_hidden_2); @@ -54204,17 +55814,17 @@ class Serializer : public SerializerBase { const auto value_switching_value = value_switching.value; Ark_Int32 value_switching_value_type = INTEROP_RUNTIME_UNDEFINED; value_switching_value_type = value_switching_value.selector; - if (((value_switching_value_type == 0))) { + if (value_switching_value_type == 0) { valueSerializer.writeInt8(0); const auto value_switching_value_0 = value_switching_value.value0; valueSerializer.writeString(value_switching_value_0); } - else if (((value_switching_value_type == 1))) { + else if (value_switching_value_type == 1) { valueSerializer.writeInt8(1); const auto value_switching_value_1 = value_switching_value.value1; valueSerializer.writePixelMap(value_switching_value_1); } - else if (((value_switching_value_type == 2))) { + else if (value_switching_value_type == 2) { valueSerializer.writeInt8(2); const auto value_switching_value_2 = value_switching_value.value2; valueSerializer.writeResource(value_switching_value_2); @@ -54296,6 +55906,12 @@ class Serializer : public SerializerBase { valueSerializer.writeBoolean(value_lock_value); } } + void writeWindowSceneAttribute(Ark_WindowSceneAttribute value) + { + } + void writeWebAttribute(Ark_WebAttribute value) + { + } void writeSelectionMenuOptionsExt(Ark_SelectionMenuOptionsExt value) { Serializer& valueSerializer = *this; @@ -54564,6 +56180,11 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeWebCookie(Ark_WebCookie value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeScreenCaptureConfig(Ark_ScreenCaptureConfig value) { Serializer& valueSerializer = *this; @@ -54707,22 +56328,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -54784,12 +56405,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -54831,7 +56452,7 @@ class Serializer : public SerializerBase { const auto value_range = value.range; Ark_Int32 value_range_type = INTEROP_RUNTIME_UNDEFINED; value_range_type = value_range.selector; - if (((value_range_type == 0))) { + if (value_range_type == 0) { valueSerializer.writeInt8(0); const auto value_range_0 = value_range.value0; valueSerializer.writeInt32(value_range_0.length); @@ -54840,7 +56461,7 @@ class Serializer : public SerializerBase { valueSerializer.writeString(value_range_0_element); } } - else if (((value_range_type == 1))) { + else if (value_range_type == 1) { valueSerializer.writeInt8(1); const auto value_range_1 = value_range.value1; valueSerializer.writeInt32(value_range_1.length); @@ -54853,12 +56474,12 @@ class Serializer : public SerializerBase { } } } - else if (((value_range_type == 2))) { + else if (value_range_type == 2) { valueSerializer.writeInt8(2); const auto value_range_2 = value_range.value2; valueSerializer.writeResource(value_range_2); } - else if (((value_range_type == 3))) { + else if (value_range_type == 3) { valueSerializer.writeInt8(3); const auto value_range_3 = value_range.value3; valueSerializer.writeInt32(value_range_3.length); @@ -54867,7 +56488,7 @@ class Serializer : public SerializerBase { valueSerializer.writeTextPickerRangeContent(value_range_3_element); } } - else if (((value_range_type == 4))) { + else if (value_range_type == 4) { valueSerializer.writeInt8(4); const auto value_range_4 = value_range.value4; valueSerializer.writeInt32(value_range_4.length); @@ -54884,12 +56505,12 @@ class Serializer : public SerializerBase { const auto value_value_value = value_value.value; Ark_Int32 value_value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_value_type = value_value_value.selector; - if (((value_value_value_type == 0))) { + if (value_value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_value_0 = value_value_value.value0; valueSerializer.writeString(value_value_value_0); } - else if (((value_value_value_type == 1))) { + else if (value_value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_value_1 = value_value_value.value1; valueSerializer.writeInt32(value_value_value_1.length); @@ -54907,12 +56528,12 @@ class Serializer : public SerializerBase { const auto value_selected_value = value_selected.value; Ark_Int32 value_selected_value_type = INTEROP_RUNTIME_UNDEFINED; value_selected_value_type = value_selected_value.selector; - if (((value_selected_value_type == 0))) { + if (value_selected_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selected_value_0 = value_selected_value.value0; valueSerializer.writeNumber(value_selected_value_0); } - else if (((value_selected_value_type == 1))) { + else if (value_selected_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selected_value_1 = value_selected_value.value1; valueSerializer.writeInt32(value_selected_value_1.length); @@ -54930,12 +56551,12 @@ class Serializer : public SerializerBase { const auto value_defaultPickerItemHeight_value = value_defaultPickerItemHeight.value; Ark_Int32 value_defaultPickerItemHeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_defaultPickerItemHeight_value_type = value_defaultPickerItemHeight_value.selector; - if (((value_defaultPickerItemHeight_value_type == 0))) { + if (value_defaultPickerItemHeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_defaultPickerItemHeight_value_0 = value_defaultPickerItemHeight_value.value0; valueSerializer.writeNumber(value_defaultPickerItemHeight_value_0); } - else if (((value_defaultPickerItemHeight_value_type == 1))) { + else if (value_defaultPickerItemHeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_defaultPickerItemHeight_value_1 = value_defaultPickerItemHeight_value.value1; valueSerializer.writeString(value_defaultPickerItemHeight_value_1); @@ -55054,22 +56675,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -55131,12 +56752,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -55178,22 +56799,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -55216,6 +56837,9 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_endMargin_value); } } + void writeTextInputAttribute(Ark_TextInputAttribute value) + { + } void writeInputCounterOptions(Ark_InputCounterOptions value) { Serializer& valueSerializer = *this; @@ -55259,22 +56883,22 @@ class Serializer : public SerializerBase { const auto value_typing_value = value_typing.value; Ark_Int32 value_typing_value_type = INTEROP_RUNTIME_UNDEFINED; value_typing_value_type = value_typing_value.selector; - if (((value_typing_value_type == 0))) { + if (value_typing_value_type == 0) { valueSerializer.writeInt8(0); const auto value_typing_value_0 = value_typing_value.value0; valueSerializer.writeInt32(static_cast(value_typing_value_0)); } - else if (((value_typing_value_type == 1))) { + else if (value_typing_value_type == 1) { valueSerializer.writeInt8(1); const auto value_typing_value_1 = value_typing_value.value1; valueSerializer.writeNumber(value_typing_value_1); } - else if (((value_typing_value_type == 2))) { + else if (value_typing_value_type == 2) { valueSerializer.writeInt8(2); const auto value_typing_value_2 = value_typing_value.value2; valueSerializer.writeString(value_typing_value_2); } - else if (((value_typing_value_type == 3))) { + else if (value_typing_value_type == 3) { valueSerializer.writeInt8(3); const auto value_typing_value_3 = value_typing_value.value3; valueSerializer.writeResource(value_typing_value_3); @@ -55288,22 +56912,22 @@ class Serializer : public SerializerBase { const auto value_normal_value = value_normal.value; Ark_Int32 value_normal_value_type = INTEROP_RUNTIME_UNDEFINED; value_normal_value_type = value_normal_value.selector; - if (((value_normal_value_type == 0))) { + if (value_normal_value_type == 0) { valueSerializer.writeInt8(0); const auto value_normal_value_0 = value_normal_value.value0; valueSerializer.writeInt32(static_cast(value_normal_value_0)); } - else if (((value_normal_value_type == 1))) { + else if (value_normal_value_type == 1) { valueSerializer.writeInt8(1); const auto value_normal_value_1 = value_normal_value.value1; valueSerializer.writeNumber(value_normal_value_1); } - else if (((value_normal_value_type == 2))) { + else if (value_normal_value_type == 2) { valueSerializer.writeInt8(2); const auto value_normal_value_2 = value_normal_value.value2; valueSerializer.writeString(value_normal_value_2); } - else if (((value_normal_value_type == 3))) { + else if (value_normal_value_type == 3) { valueSerializer.writeInt8(3); const auto value_normal_value_3 = value_normal_value.value3; valueSerializer.writeResource(value_normal_value_3); @@ -55317,22 +56941,22 @@ class Serializer : public SerializerBase { const auto value_error_value = value_error.value; Ark_Int32 value_error_value_type = INTEROP_RUNTIME_UNDEFINED; value_error_value_type = value_error_value.selector; - if (((value_error_value_type == 0))) { + if (value_error_value_type == 0) { valueSerializer.writeInt8(0); const auto value_error_value_0 = value_error_value.value0; valueSerializer.writeInt32(static_cast(value_error_value_0)); } - else if (((value_error_value_type == 1))) { + else if (value_error_value_type == 1) { valueSerializer.writeInt8(1); const auto value_error_value_1 = value_error_value.value1; valueSerializer.writeNumber(value_error_value_1); } - else if (((value_error_value_type == 2))) { + else if (value_error_value_type == 2) { valueSerializer.writeInt8(2); const auto value_error_value_2 = value_error_value.value2; valueSerializer.writeString(value_error_value_2); } - else if (((value_error_value_type == 3))) { + else if (value_error_value_type == 3) { valueSerializer.writeInt8(3); const auto value_error_value_3 = value_error_value.value3; valueSerializer.writeResource(value_error_value_3); @@ -55346,22 +56970,22 @@ class Serializer : public SerializerBase { const auto value_disable_value = value_disable.value; Ark_Int32 value_disable_value_type = INTEROP_RUNTIME_UNDEFINED; value_disable_value_type = value_disable_value.selector; - if (((value_disable_value_type == 0))) { + if (value_disable_value_type == 0) { valueSerializer.writeInt8(0); const auto value_disable_value_0 = value_disable_value.value0; valueSerializer.writeInt32(static_cast(value_disable_value_0)); } - else if (((value_disable_value_type == 1))) { + else if (value_disable_value_type == 1) { valueSerializer.writeInt8(1); const auto value_disable_value_1 = value_disable_value.value1; valueSerializer.writeNumber(value_disable_value_1); } - else if (((value_disable_value_type == 2))) { + else if (value_disable_value_type == 2) { valueSerializer.writeInt8(2); const auto value_disable_value_2 = value_disable_value.value2; valueSerializer.writeString(value_disable_value_2); } - else if (((value_disable_value_type == 3))) { + else if (value_disable_value_type == 3) { valueSerializer.writeInt8(3); const auto value_disable_value_3 = value_disable_value.value3; valueSerializer.writeResource(value_disable_value_3); @@ -55411,12 +57035,12 @@ class Serializer : public SerializerBase { const auto value_content = value.content; Ark_Int32 value_content_type = INTEROP_RUNTIME_UNDEFINED; value_content_type = value_content.selector; - if (((value_content_type == 0))) { + if (value_content_type == 0) { valueSerializer.writeInt8(0); const auto value_content_0 = value_content.value0; valueSerializer.writeString(value_content_0); } - else if (((value_content_type == 1))) { + else if (value_content_type == 1) { valueSerializer.writeInt8(1); const auto value_content_1 = value_content.value1; valueSerializer.writeResource(value_content_1); @@ -55429,12 +57053,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -55443,16 +57067,54 @@ class Serializer : public SerializerBase { const auto value_id = value.id; valueSerializer.writeTextMenuItemId(value_id); } + void writeLineMetrics(Ark_LineMetrics value) + { + Serializer& valueSerializer = *this; + const auto value__LineMetricsStub = value._LineMetricsStub; + valueSerializer.writeString(value__LineMetricsStub); + } + void writePositionWithAffinity(Ark_PositionWithAffinity value) + { + Serializer& valueSerializer = *this; + const auto value_position = value.position; + valueSerializer.writeNumber(value_position); + const auto value_affinity = value.affinity; + valueSerializer.writeAffinity(value_affinity); + } + void writeMutableStyledString(Ark_MutableStyledString value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writePreviewText(Ark_PreviewText value) + { + Serializer& valueSerializer = *this; + const auto value_offset = value.offset; + valueSerializer.writeNumber(value_offset); + const auto value_value = value.value; + valueSerializer.writeString(value_value); + } + void writeLayoutManager(Ark_LayoutManager value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeTextClockController(Ark_TextClockController value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTextAreaAttribute(Ark_TextAreaAttribute value) + { + } void writeTextAreaController(Ark_TextAreaController value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTextAttribute(Ark_TextAttribute value) + { + } void writeSelectionMenuOptions(Ark_SelectionMenuOptions value) { Serializer& valueSerializer = *this; @@ -55513,23 +57175,23 @@ class Serializer : public SerializerBase { const auto value__icon_value = value__icon.value; Ark_Int32 value__icon_value_type = INTEROP_RUNTIME_UNDEFINED; value__icon_value_type = value__icon_value.selector; - if (((value__icon_value_type == 0)) || ((value__icon_value_type == 0))) { + if ((value__icon_value_type == 0) || (value__icon_value_type == 0)) { valueSerializer.writeInt8(0); const auto value__icon_value_0 = value__icon_value.value0; Ark_Int32 value__icon_value_0_type = INTEROP_RUNTIME_UNDEFINED; value__icon_value_0_type = value__icon_value_0.selector; - if (((value__icon_value_0_type == 0))) { + if (value__icon_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value__icon_value_0_0 = value__icon_value_0.value0; valueSerializer.writeString(value__icon_value_0_0); } - else if (((value__icon_value_0_type == 1))) { + else if (value__icon_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value__icon_value_0_1 = value__icon_value_0.value1; valueSerializer.writeResource(value__icon_value_0_1); } } - else if (((value__icon_value_type == 1))) { + else if (value__icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value__icon_value_1 = value__icon_value.value1; valueSerializer.writeTabBarSymbol(value__icon_value_1); @@ -55543,12 +57205,12 @@ class Serializer : public SerializerBase { const auto value__text_value = value__text.value; Ark_Int32 value__text_value_type = INTEROP_RUNTIME_UNDEFINED; value__text_value_type = value__text_value.selector; - if (((value__text_value_type == 0))) { + if (value__text_value_type == 0) { valueSerializer.writeInt8(0); const auto value__text_value_0 = value__text_value.value0; valueSerializer.writeString(value__text_value_0); } - else if (((value__text_value_type == 1))) { + else if (value__text_value_type == 1) { valueSerializer.writeInt8(1); const auto value__text_value_1 = value__text_value.value1; valueSerializer.writeResource(value__text_value_1); @@ -55570,7 +57232,7 @@ class Serializer : public SerializerBase { const auto value__padding_value = value__padding.value; Ark_Int32 value__padding_value_type = INTEROP_RUNTIME_UNDEFINED; value__padding_value_type = value__padding_value.selector; - if (((value__padding_value_type == 0))) { + if (value__padding_value_type == 0) { valueSerializer.writeInt8(0); const auto value__padding_value_0 = value__padding_value.value0; const auto value__padding_value_0_top = value__padding_value_0.top; @@ -55606,12 +57268,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value__padding_value_0_left_value); } } - else if (((value__padding_value_type == 1)) || ((value__padding_value_type == 1)) || ((value__padding_value_type == 1))) { + else if ((value__padding_value_type == 1) || (value__padding_value_type == 1) || (value__padding_value_type == 1)) { valueSerializer.writeInt8(1); const auto value__padding_value_1 = value__padding_value.value1; valueSerializer.writeLength(value__padding_value_1); } - else if (((value__padding_value_type == 2))) { + else if (value__padding_value_type == 2) { valueSerializer.writeInt8(2); const auto value__padding_value_2 = value__padding_value.value2; valueSerializer.writeLocalizedPadding(value__padding_value_2); @@ -55669,17 +57331,17 @@ class Serializer : public SerializerBase { const auto value__content_value = value__content.value; Ark_Int32 value__content_value_type = INTEROP_RUNTIME_UNDEFINED; value__content_value_type = value__content_value.selector; - if (((value__content_value_type == 0))) { + if (value__content_value_type == 0) { valueSerializer.writeInt8(0); const auto value__content_value_0 = value__content_value.value0; valueSerializer.writeString(value__content_value_0); } - else if (((value__content_value_type == 1))) { + else if (value__content_value_type == 1) { valueSerializer.writeInt8(1); const auto value__content_value_1 = value__content_value.value1; valueSerializer.writeResource(value__content_value_1); } - else if (((value__content_value_type == 2))) { + else if (value__content_value_type == 2) { valueSerializer.writeInt8(2); const auto value__content_value_2 = value__content_value.value2; valueSerializer.writeComponentContent(value__content_value_2); @@ -55725,12 +57387,12 @@ class Serializer : public SerializerBase { const auto value__padding_value = value__padding.value; Ark_Int32 value__padding_value_type = INTEROP_RUNTIME_UNDEFINED; value__padding_value_type = value__padding_value.selector; - if (((value__padding_value_type == 0)) || ((value__padding_value_type == 0)) || ((value__padding_value_type == 0)) || ((value__padding_value_type == 0))) { + if ((value__padding_value_type == 0) || (value__padding_value_type == 0) || (value__padding_value_type == 0) || (value__padding_value_type == 0)) { valueSerializer.writeInt8(0); const auto value__padding_value_0 = value__padding_value.value0; Ark_Int32 value__padding_value_0_type = INTEROP_RUNTIME_UNDEFINED; value__padding_value_0_type = value__padding_value_0.selector; - if (((value__padding_value_0_type == 0))) { + if (value__padding_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value__padding_value_0_0 = value__padding_value_0.value0; const auto value__padding_value_0_0_top = value__padding_value_0_0.top; @@ -55766,13 +57428,13 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value__padding_value_0_0_left_value); } } - else if (((value__padding_value_0_type == 1)) || ((value__padding_value_0_type == 1)) || ((value__padding_value_0_type == 1))) { + else if ((value__padding_value_0_type == 1) || (value__padding_value_0_type == 1) || (value__padding_value_0_type == 1)) { valueSerializer.writeInt8(1); const auto value__padding_value_0_1 = value__padding_value_0.value1; valueSerializer.writeLength(value__padding_value_0_1); } } - else if (((value__padding_value_type == 1))) { + else if (value__padding_value_type == 1) { valueSerializer.writeInt8(1); const auto value__padding_value_1 = value__padding_value.value1; valueSerializer.writeLocalizedPadding(value__padding_value_1); @@ -55798,12 +57460,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -55817,18 +57479,21 @@ class Serializer : public SerializerBase { const auto value_text_value = value_text.value; Ark_Int32 value_text_value_type = INTEROP_RUNTIME_UNDEFINED; value_text_value_type = value_text_value.selector; - if (((value_text_value_type == 0))) { + if (value_text_value_type == 0) { valueSerializer.writeInt8(0); const auto value_text_value_0 = value_text_value.value0; valueSerializer.writeString(value_text_value_0); } - else if (((value_text_value_type == 1))) { + else if (value_text_value_type == 1) { valueSerializer.writeInt8(1); const auto value_text_value_1 = value_text_value.value1; valueSerializer.writeResource(value_text_value_1); } } } + void writeTabsAttribute(Ark_TabsAttribute value) + { + } void writeBackgroundBlurStyleOptions(Ark_BackgroundBlurStyleOptions value) { Serializer& valueSerializer = *this; @@ -55880,22 +57545,22 @@ class Serializer : public SerializerBase { const auto value_inactiveColor_value = value_inactiveColor.value; Ark_Int32 value_inactiveColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_inactiveColor_value_type = value_inactiveColor_value.selector; - if (((value_inactiveColor_value_type == 0))) { + if (value_inactiveColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_inactiveColor_value_0 = value_inactiveColor_value.value0; valueSerializer.writeInt32(static_cast(value_inactiveColor_value_0)); } - else if (((value_inactiveColor_value_type == 1))) { + else if (value_inactiveColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_inactiveColor_value_1 = value_inactiveColor_value.value1; valueSerializer.writeNumber(value_inactiveColor_value_1); } - else if (((value_inactiveColor_value_type == 2))) { + else if (value_inactiveColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_inactiveColor_value_2 = value_inactiveColor_value.value2; valueSerializer.writeString(value_inactiveColor_value_2); } - else if (((value_inactiveColor_value_type == 3))) { + else if (value_inactiveColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_inactiveColor_value_3 = value_inactiveColor_value.value3; valueSerializer.writeResource(value_inactiveColor_value_3); @@ -55943,6 +57608,9 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeSymbolGlyphAttribute(Ark_SymbolGlyphAttribute value) + { + } void writeSymbolEffect(Ark_SymbolEffect value) { } @@ -56005,22 +57673,22 @@ class Serializer : public SerializerBase { const auto value__fontColor_value = value__fontColor.value; Ark_Int32 value__fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value__fontColor_value_type = value__fontColor_value.selector; - if (((value__fontColor_value_type == 0))) { + if (value__fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value__fontColor_value_0 = value__fontColor_value.value0; valueSerializer.writeInt32(static_cast(value__fontColor_value_0)); } - else if (((value__fontColor_value_type == 1))) { + else if (value__fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value__fontColor_value_1 = value__fontColor_value.value1; valueSerializer.writeNumber(value__fontColor_value_1); } - else if (((value__fontColor_value_type == 2))) { + else if (value__fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value__fontColor_value_2 = value__fontColor_value.value2; valueSerializer.writeString(value__fontColor_value_2); } - else if (((value__fontColor_value_type == 3))) { + else if (value__fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value__fontColor_value_3 = value__fontColor_value.value3; valueSerializer.writeResource(value__fontColor_value_3); @@ -56034,22 +57702,22 @@ class Serializer : public SerializerBase { const auto value__selectedFontColor_value = value__selectedFontColor.value; Ark_Int32 value__selectedFontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value__selectedFontColor_value_type = value__selectedFontColor_value.selector; - if (((value__selectedFontColor_value_type == 0))) { + if (value__selectedFontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value__selectedFontColor_value_0 = value__selectedFontColor_value.value0; valueSerializer.writeInt32(static_cast(value__selectedFontColor_value_0)); } - else if (((value__selectedFontColor_value_type == 1))) { + else if (value__selectedFontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value__selectedFontColor_value_1 = value__selectedFontColor_value.value1; valueSerializer.writeNumber(value__selectedFontColor_value_1); } - else if (((value__selectedFontColor_value_type == 2))) { + else if (value__selectedFontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value__selectedFontColor_value_2 = value__selectedFontColor_value.value2; valueSerializer.writeString(value__selectedFontColor_value_2); } - else if (((value__selectedFontColor_value_type == 3))) { + else if (value__selectedFontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value__selectedFontColor_value_3 = value__selectedFontColor_value.value3; valueSerializer.writeResource(value__selectedFontColor_value_3); @@ -56171,22 +57839,22 @@ class Serializer : public SerializerBase { const auto value__color_value = value__color.value; Ark_Int32 value__color_value_type = INTEROP_RUNTIME_UNDEFINED; value__color_value_type = value__color_value.selector; - if (((value__color_value_type == 0))) { + if (value__color_value_type == 0) { valueSerializer.writeInt8(0); const auto value__color_value_0 = value__color_value.value0; valueSerializer.writeInt32(static_cast(value__color_value_0)); } - else if (((value__color_value_type == 1))) { + else if (value__color_value_type == 1) { valueSerializer.writeInt8(1); const auto value__color_value_1 = value__color_value.value1; valueSerializer.writeNumber(value__color_value_1); } - else if (((value__color_value_type == 2))) { + else if (value__color_value_type == 2) { valueSerializer.writeInt8(2); const auto value__color_value_2 = value__color_value.value2; valueSerializer.writeString(value__color_value_2); } - else if (((value__color_value_type == 3))) { + else if (value__color_value_type == 3) { valueSerializer.writeInt8(3); const auto value__color_value_3 = value__color_value.value3; valueSerializer.writeResource(value__color_value_3); @@ -56200,22 +57868,22 @@ class Serializer : public SerializerBase { const auto value__selectedColor_value = value__selectedColor.value; Ark_Int32 value__selectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value__selectedColor_value_type = value__selectedColor_value.selector; - if (((value__selectedColor_value_type == 0))) { + if (value__selectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value__selectedColor_value_0 = value__selectedColor_value.value0; valueSerializer.writeInt32(static_cast(value__selectedColor_value_0)); } - else if (((value__selectedColor_value_type == 1))) { + else if (value__selectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value__selectedColor_value_1 = value__selectedColor_value.value1; valueSerializer.writeNumber(value__selectedColor_value_1); } - else if (((value__selectedColor_value_type == 2))) { + else if (value__selectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value__selectedColor_value_2 = value__selectedColor_value.value2; valueSerializer.writeString(value__selectedColor_value_2); } - else if (((value__selectedColor_value_type == 3))) { + else if (value__selectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value__selectedColor_value_3 = value__selectedColor_value.value3; valueSerializer.writeResource(value__selectedColor_value_3); @@ -56230,18 +57898,21 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value__maxDisplayCount_value); } } + void writeSwiperAttribute(Ark_SwiperAttribute value) + { + } void writeSwiperAutoFill(Ark_SwiperAutoFill value) { Serializer& valueSerializer = *this; const auto value_minSize = value.minSize; Ark_Int32 value_minSize_type = INTEROP_RUNTIME_UNDEFINED; value_minSize_type = value_minSize.selector; - if (((value_minSize_type == 0))) { + if (value_minSize_type == 0) { valueSerializer.writeInt8(0); const auto value_minSize_0 = value_minSize.value0; valueSerializer.writeString(value_minSize_0); } - else if (((value_minSize_type == 1))) { + else if (value_minSize_type == 1) { valueSerializer.writeInt8(1); const auto value_minSize_1 = value_minSize.value1; valueSerializer.writeNumber(value_minSize_1); @@ -56282,22 +57953,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -56319,28 +57990,37 @@ class Serializer : public SerializerBase { const auto value_arrowColor_value = value_arrowColor.value; Ark_Int32 value_arrowColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_arrowColor_value_type = value_arrowColor_value.selector; - if (((value_arrowColor_value_type == 0))) { + if (value_arrowColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_arrowColor_value_0 = value_arrowColor_value.value0; valueSerializer.writeInt32(static_cast(value_arrowColor_value_0)); } - else if (((value_arrowColor_value_type == 1))) { + else if (value_arrowColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_arrowColor_value_1 = value_arrowColor_value.value1; valueSerializer.writeNumber(value_arrowColor_value_1); } - else if (((value_arrowColor_value_type == 2))) { + else if (value_arrowColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_arrowColor_value_2 = value_arrowColor_value.value2; valueSerializer.writeString(value_arrowColor_value_2); } - else if (((value_arrowColor_value_type == 3))) { + else if (value_arrowColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_arrowColor_value_3 = value_arrowColor_value.value3; valueSerializer.writeResource(value_arrowColor_value_3); } } } + void writeSliderAttribute(Ark_SliderAttribute value) + { + } + void writeShapeAttribute(Ark_ShapeAttribute value) + { + } + void writeSelectAttribute(Ark_SelectAttribute value) + { + } void writeLocalizedEdges(Ark_LocalizedEdges value) { Serializer& valueSerializer = *this; @@ -56413,6 +58093,9 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_right_value); } } + void writeSearchAttribute(Ark_SearchAttribute value) + { + } void writeSearchButtonOptions(Ark_SearchButtonOptions value) { Serializer& valueSerializer = *this; @@ -56432,22 +58115,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -56507,12 +58190,27 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeScrollAttribute(Ark_ScrollAttribute value) + { + } void writeEdgeEffectOptions(Ark_EdgeEffectOptions value) { Serializer& valueSerializer = *this; const auto value_alwaysEnabled = value.alwaysEnabled; valueSerializer.writeBoolean(value_alwaysEnabled); } + void writeRectResult(Ark_RectResult value) + { + Serializer& valueSerializer = *this; + const auto value_x = value.x; + valueSerializer.writeNumber(value_x); + const auto value_y = value.y; + valueSerializer.writeNumber(value_y); + const auto value_width = value.width; + valueSerializer.writeNumber(value_width); + const auto value_height = value.height; + valueSerializer.writeNumber(value_height); + } void writeScrollToIndexOptions(Ark_ScrollToIndexOptions value) { Serializer& valueSerializer = *this; @@ -56525,6 +58223,14 @@ class Serializer : public SerializerBase { valueSerializer.writeLengthMetrics(value_extraOffset_value); } } + void writeOffsetResult(Ark_OffsetResult value) + { + Serializer& valueSerializer = *this; + const auto value_xOffset = value.xOffset; + valueSerializer.writeNumber(value_xOffset); + const auto value_yOffset = value.yOffset; + valueSerializer.writeNumber(value_yOffset); + } void writeScrollPageOptions(Ark_ScrollPageOptions value) { Serializer& valueSerializer = *this; @@ -56557,12 +58263,12 @@ class Serializer : public SerializerBase { const auto value_xOffset = value.xOffset; Ark_Int32 value_xOffset_type = INTEROP_RUNTIME_UNDEFINED; value_xOffset_type = value_xOffset.selector; - if (((value_xOffset_type == 0))) { + if (value_xOffset_type == 0) { valueSerializer.writeInt8(0); const auto value_xOffset_0 = value_xOffset.value0; valueSerializer.writeNumber(value_xOffset_0); } - else if (((value_xOffset_type == 1))) { + else if (value_xOffset_type == 1) { valueSerializer.writeInt8(1); const auto value_xOffset_1 = value_xOffset.value1; valueSerializer.writeString(value_xOffset_1); @@ -56570,12 +58276,12 @@ class Serializer : public SerializerBase { const auto value_yOffset = value.yOffset; Ark_Int32 value_yOffset_type = INTEROP_RUNTIME_UNDEFINED; value_yOffset_type = value_yOffset.selector; - if (((value_yOffset_type == 0))) { + if (value_yOffset_type == 0) { valueSerializer.writeInt8(0); const auto value_yOffset_0 = value_yOffset.value0; valueSerializer.writeNumber(value_yOffset_0); } - else if (((value_yOffset_type == 1))) { + else if (value_yOffset_type == 1) { valueSerializer.writeInt8(1); const auto value_yOffset_1 = value_yOffset.value1; valueSerializer.writeString(value_yOffset_1); @@ -56588,12 +58294,12 @@ class Serializer : public SerializerBase { const auto value_animation_value = value_animation.value; Ark_Int32 value_animation_value_type = INTEROP_RUNTIME_UNDEFINED; value_animation_value_type = value_animation_value.selector; - if (((value_animation_value_type == 0))) { + if (value_animation_value_type == 0) { valueSerializer.writeInt8(0); const auto value_animation_value_0 = value_animation_value.value0; valueSerializer.writeScrollAnimationOptions(value_animation_value_0); } - else if (((value_animation_value_type == 1))) { + else if (value_animation_value_type == 1) { valueSerializer.writeInt8(1); const auto value_animation_value_1 = value_animation_value.value1; valueSerializer.writeBoolean(value_animation_value_1); @@ -56610,6 +58316,9 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeRichEditorAttribute(Ark_RichEditorAttribute value) + { + } void writePlaceholderStyle(Ark_PlaceholderStyle value) { Serializer& valueSerializer = *this; @@ -56629,22 +58338,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -56672,12 +58381,12 @@ class Serializer : public SerializerBase { const auto value_valueResourceStr_value = value_valueResourceStr.value; Ark_Int32 value_valueResourceStr_value_type = INTEROP_RUNTIME_UNDEFINED; value_valueResourceStr_value_type = value_valueResourceStr_value.selector; - if (((value_valueResourceStr_value_type == 0))) { + if (value_valueResourceStr_value_type == 0) { valueSerializer.writeInt8(0); const auto value_valueResourceStr_value_0 = value_valueResourceStr_value.value0; valueSerializer.writeString(value_valueResourceStr_value_0); } - else if (((value_valueResourceStr_value_type == 1))) { + else if (value_valueResourceStr_value_type == 1) { valueSerializer.writeInt8(1); const auto value_valueResourceStr_value_1 = value_valueResourceStr_value.value1; valueSerializer.writeResource(value_valueResourceStr_value_1); @@ -56782,6 +58491,32 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value_end_value); } } + void writeRichEditorSelection(Ark_RichEditorSelection value) + { + Serializer& valueSerializer = *this; + const auto value_selection = value.selection; + const auto value_selection_0 = value_selection.value0; + valueSerializer.writeNumber(value_selection_0); + const auto value_selection_1 = value_selection.value1; + valueSerializer.writeNumber(value_selection_1); + const auto value_spans = value.spans; + valueSerializer.writeInt32(value_spans.length); + for (int i = 0; i < value_spans.length; i++) { + const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value_spans_element = value_spans.array[i]; + Ark_Int32 value_spans_element_type = INTEROP_RUNTIME_UNDEFINED; + value_spans_element_type = value_spans_element.selector; + if (value_spans_element_type == 0) { + valueSerializer.writeInt8(0); + const auto value_spans_element_0 = value_spans_element.value0; + valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0); + } + else if (value_spans_element_type == 1) { + valueSerializer.writeInt8(1); + const auto value_spans_element_1 = value_spans_element.value1; + valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1); + } + } + } void writeRichEditorParagraphStyleOptions(Ark_RichEditorParagraphStyleOptions value) { Serializer& valueSerializer = *this; @@ -56997,12 +58732,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -57016,12 +58751,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -57035,12 +58770,12 @@ class Serializer : public SerializerBase { const auto value_radiusWidth_value = value_radiusWidth.value; Ark_Int32 value_radiusWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_radiusWidth_value_type = value_radiusWidth_value.selector; - if (((value_radiusWidth_value_type == 0))) { + if (value_radiusWidth_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radiusWidth_value_0 = value_radiusWidth_value.value0; valueSerializer.writeNumber(value_radiusWidth_value_0); } - else if (((value_radiusWidth_value_type == 1))) { + else if (value_radiusWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radiusWidth_value_1 = value_radiusWidth_value.value1; valueSerializer.writeString(value_radiusWidth_value_1); @@ -57054,12 +58789,12 @@ class Serializer : public SerializerBase { const auto value_radiusHeight_value = value_radiusHeight.value; Ark_Int32 value_radiusHeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_radiusHeight_value_type = value_radiusHeight_value.selector; - if (((value_radiusHeight_value_type == 0))) { + if (value_radiusHeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radiusHeight_value_0 = value_radiusHeight_value.value0; valueSerializer.writeNumber(value_radiusHeight_value_0); } - else if (((value_radiusHeight_value_type == 1))) { + else if (value_radiusHeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radiusHeight_value_1 = value_radiusHeight_value.value1; valueSerializer.writeString(value_radiusHeight_value_1); @@ -57077,12 +58812,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -57096,12 +58831,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -57115,17 +58850,17 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; valueSerializer.writeNumber(value_radius_value_0); } - else if (((value_radius_value_type == 1))) { + else if (value_radius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeString(value_radius_value_1); } - else if (((value_radius_value_type == 2))) { + else if (value_radius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_radius_value_2 = value_radius_value.value2; valueSerializer.writeInt32(value_radius_value_2.length); @@ -57133,12 +58868,12 @@ class Serializer : public SerializerBase { const Ark_Union_Number_String value_radius_value_2_element = value_radius_value_2.array[i]; Ark_Int32 value_radius_value_2_element_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_2_element_type = value_radius_value_2_element.selector; - if (((value_radius_value_2_element_type == 0))) { + if (value_radius_value_2_element_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_2_element_0 = value_radius_value_2_element.value0; valueSerializer.writeNumber(value_radius_value_2_element_0); } - else if (((value_radius_value_2_element_type == 1))) { + else if (value_radius_value_2_element_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_2_element_1 = value_radius_value_2_element.value1; valueSerializer.writeString(value_radius_value_2_element_1); @@ -57202,22 +58937,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0))) { + if (value_borderColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0)); } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; valueSerializer.writeNumber(value_borderColor_value_1); } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeString(value_borderColor_value_2); } - else if (((value_borderColor_value_type == 3))) { + else if (value_borderColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_3 = value_borderColor_value.value3; valueSerializer.writeResource(value_borderColor_value_3); @@ -57255,22 +58990,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -57348,17 +59083,17 @@ class Serializer : public SerializerBase { const auto value_strokeRadius_value = value_strokeRadius.value; Ark_Int32 value_strokeRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_strokeRadius_value_type = value_strokeRadius_value.selector; - if (((value_strokeRadius_value_type == 0))) { + if (value_strokeRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_strokeRadius_value_0 = value_strokeRadius_value.value0; valueSerializer.writeString(value_strokeRadius_value_0); } - else if (((value_strokeRadius_value_type == 1))) { + else if (value_strokeRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_strokeRadius_value_1 = value_strokeRadius_value.value1; valueSerializer.writeNumber(value_strokeRadius_value_1); } - else if (((value_strokeRadius_value_type == 2))) { + else if (value_strokeRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_strokeRadius_value_2 = value_strokeRadius_value.value2; valueSerializer.writeResource(value_strokeRadius_value_2); @@ -57384,22 +59119,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -57519,6 +59254,9 @@ class Serializer : public SerializerBase { valueSerializer.writeBoolean(value_animated_value); } } + void writeNavDestinationAttribute(Ark_NavDestinationAttribute value) + { + } void writeNavigationToolbarOptions(Ark_NavigationToolbarOptions value) { Serializer& valueSerializer = *this; @@ -57530,22 +59268,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -57579,22 +59317,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -57667,12 +59405,12 @@ class Serializer : public SerializerBase { const auto value_height = value.height; Ark_Int32 value_height_type = INTEROP_RUNTIME_UNDEFINED; value_height_type = value_height.selector; - if (((value_height_type == 0))) { + if (value_height_type == 0) { valueSerializer.writeInt8(0); const auto value_height_0 = value_height.value0; valueSerializer.writeInt32(static_cast(value_height_0)); } - else if (((value_height_type == 1)) || ((value_height_type == 1)) || ((value_height_type == 1))) { + else if ((value_height_type == 1) || (value_height_type == 1) || (value_height_type == 1)) { valueSerializer.writeInt8(1); const auto value_height_1 = value_height.value1; valueSerializer.writeLength(value_height_1); @@ -57684,12 +59422,12 @@ class Serializer : public SerializerBase { const auto value_main = value.main; Ark_Int32 value_main_type = INTEROP_RUNTIME_UNDEFINED; value_main_type = value_main.selector; - if (((value_main_type == 0))) { + if (value_main_type == 0) { valueSerializer.writeInt8(0); const auto value_main_0 = value_main.value0; valueSerializer.writeString(value_main_0); } - else if (((value_main_type == 1))) { + else if (value_main_type == 1) { valueSerializer.writeInt8(1); const auto value_main_1 = value_main.value1; valueSerializer.writeResource(value_main_1); @@ -57697,12 +59435,12 @@ class Serializer : public SerializerBase { const auto value_sub = value.sub; Ark_Int32 value_sub_type = INTEROP_RUNTIME_UNDEFINED; value_sub_type = value_sub.selector; - if (((value_sub_type == 0))) { + if (value_sub_type == 0) { valueSerializer.writeInt8(0); const auto value_sub_0 = value_sub.value0; valueSerializer.writeString(value_sub_0); } - else if (((value_sub_type == 1))) { + else if (value_sub_type == 1) { valueSerializer.writeInt8(1); const auto value_sub_1 = value_sub.value1; valueSerializer.writeResource(value_sub_1); @@ -57714,6 +59452,16 @@ class Serializer : public SerializerBase { const auto value__SystemBarStyleStub = value._SystemBarStyleStub; valueSerializer.writeString(value__SystemBarStyleStub); } + void writeRouteMapConfig(Ark_RouteMapConfig value) + { + Serializer& valueSerializer = *this; + const auto value_name = value.name; + valueSerializer.writeString(value_name); + const auto value_pageSourceFile = value.pageSourceFile; + valueSerializer.writeString(value_pageSourceFile); + const auto value_data = value.data; + valueSerializer.writeCustomObject("Object", value_data); + } void writeMenuItemOptions(Ark_MenuItemOptions value) { Serializer& valueSerializer = *this; @@ -57725,12 +59473,12 @@ class Serializer : public SerializerBase { const auto value_startIcon_value = value_startIcon.value; Ark_Int32 value_startIcon_value_type = INTEROP_RUNTIME_UNDEFINED; value_startIcon_value_type = value_startIcon_value.selector; - if (((value_startIcon_value_type == 0))) { + if (value_startIcon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_startIcon_value_0 = value_startIcon_value.value0; valueSerializer.writeString(value_startIcon_value_0); } - else if (((value_startIcon_value_type == 1))) { + else if (value_startIcon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_startIcon_value_1 = value_startIcon_value.value1; valueSerializer.writeResource(value_startIcon_value_1); @@ -57752,12 +59500,12 @@ class Serializer : public SerializerBase { const auto value_content_value = value_content.value; Ark_Int32 value_content_value_type = INTEROP_RUNTIME_UNDEFINED; value_content_value_type = value_content_value.selector; - if (((value_content_value_type == 0))) { + if (value_content_value_type == 0) { valueSerializer.writeInt8(0); const auto value_content_value_0 = value_content_value.value0; valueSerializer.writeString(value_content_value_0); } - else if (((value_content_value_type == 1))) { + else if (value_content_value_type == 1) { valueSerializer.writeInt8(1); const auto value_content_value_1 = value_content_value.value1; valueSerializer.writeResource(value_content_value_1); @@ -57771,12 +59519,12 @@ class Serializer : public SerializerBase { const auto value_endIcon_value = value_endIcon.value; Ark_Int32 value_endIcon_value_type = INTEROP_RUNTIME_UNDEFINED; value_endIcon_value_type = value_endIcon_value.selector; - if (((value_endIcon_value_type == 0))) { + if (value_endIcon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_endIcon_value_0 = value_endIcon_value.value0; valueSerializer.writeString(value_endIcon_value_0); } - else if (((value_endIcon_value_type == 1))) { + else if (value_endIcon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_endIcon_value_1 = value_endIcon_value.value1; valueSerializer.writeResource(value_endIcon_value_1); @@ -57798,12 +59546,12 @@ class Serializer : public SerializerBase { const auto value_labelInfo_value = value_labelInfo.value; Ark_Int32 value_labelInfo_value_type = INTEROP_RUNTIME_UNDEFINED; value_labelInfo_value_type = value_labelInfo_value.selector; - if (((value_labelInfo_value_type == 0))) { + if (value_labelInfo_value_type == 0) { valueSerializer.writeInt8(0); const auto value_labelInfo_value_0 = value_labelInfo_value.value0; valueSerializer.writeString(value_labelInfo_value_0); } - else if (((value_labelInfo_value_type == 1))) { + else if (value_labelInfo_value_type == 1) { valueSerializer.writeInt8(1); const auto value_labelInfo_value_1 = value_labelInfo_value.value1; valueSerializer.writeResource(value_labelInfo_value_1); @@ -57839,22 +59587,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -57913,22 +59661,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -57951,6 +59699,31 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_endMargin_value); } } + void writeListAttribute(Ark_ListAttribute value) + { + } + void writeVisibleListContentInfo(Ark_VisibleListContentInfo value) + { + Serializer& valueSerializer = *this; + const auto value_index = value.index; + valueSerializer.writeNumber(value_index); + const auto value_itemGroupArea = value.itemGroupArea; + Ark_Int32 value_itemGroupArea_type = INTEROP_RUNTIME_UNDEFINED; + value_itemGroupArea_type = runtimeType(value_itemGroupArea); + valueSerializer.writeInt8(value_itemGroupArea_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_itemGroupArea_type)) { + const auto value_itemGroupArea_value = value_itemGroupArea.value; + valueSerializer.writeInt32(static_cast(value_itemGroupArea_value)); + } + const auto value_itemIndexInGroup = value.itemIndexInGroup; + Ark_Int32 value_itemIndexInGroup_type = INTEROP_RUNTIME_UNDEFINED; + value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup); + valueSerializer.writeInt8(value_itemIndexInGroup_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_itemIndexInGroup_type)) { + const auto value_itemIndexInGroup_value = value_itemIndexInGroup.value; + valueSerializer.writeNumber(value_itemIndexInGroup_value); + } + } void writeCloseSwipeActionOptions(Ark_CloseSwipeActionOptions value) { Serializer& valueSerializer = *this; @@ -58000,6 +59773,19 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_reference_value)); } } + void writeGridAttribute(Ark_GridAttribute value) + { + } + void writePanGestureOptions(Ark_PanGestureOptions value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeEventTargetInfo(Ark_EventTargetInfo value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeWindowStatusType(Ark_WindowStatusType value) { Serializer& valueSerializer = *this; @@ -58218,22 +60004,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -58295,12 +60081,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -58358,17 +60144,17 @@ class Serializer : public SerializerBase { const auto value_curve_value = value_curve.value; Ark_Int32 value_curve_value_type = INTEROP_RUNTIME_UNDEFINED; value_curve_value_type = value_curve_value.selector; - if (((value_curve_value_type == 0))) { + if (value_curve_value_type == 0) { valueSerializer.writeInt8(0); const auto value_curve_value_0 = value_curve_value.value0; valueSerializer.writeInt32(static_cast(value_curve_value_0)); } - else if (((value_curve_value_type == 1))) { + else if (value_curve_value_type == 1) { valueSerializer.writeInt8(1); const auto value_curve_value_1 = value_curve_value.value1; valueSerializer.writeString(value_curve_value_1); } - else if (((value_curve_value_type == 2))) { + else if (value_curve_value_type == 2) { valueSerializer.writeInt8(2); const auto value_curve_value_2 = value_curve_value.value2; valueSerializer.writeICurve(value_curve_value_2); @@ -58425,6 +60211,9 @@ class Serializer : public SerializerBase { valueSerializer.writeExpectedFrameRateRange(value_expectedFrameRateRange_value); } } + void writeComponent3DAttribute(Ark_Component3DAttribute value) + { + } void writeUIGestureEvent(Ark_UIGestureEvent value) { } @@ -58464,6 +60253,36 @@ class Serializer : public SerializerBase { const auto value__RectShapeStub = value._RectShapeStub; valueSerializer.writeString(value__RectShapeStub); } + void writeCaretOffset(Ark_CaretOffset value) + { + Serializer& valueSerializer = *this; + const auto value_index = value.index; + valueSerializer.writeNumber(value_index); + const auto value_x = value.x; + valueSerializer.writeNumber(value_x); + const auto value_y = value.y; + valueSerializer.writeNumber(value_y); + } + void writeDirectionalEdgesT(Ark_DirectionalEdgesT value) + { + Serializer& valueSerializer = *this; + const auto value_start = value.start; + valueSerializer.writeNumber(value_start); + const auto value_end = value.end; + valueSerializer.writeNumber(value_end); + const auto value_top = value.top; + valueSerializer.writeNumber(value_top); + const auto value_bottom = value.bottom; + valueSerializer.writeNumber(value_bottom); + } + void writeMeasureResult(Ark_MeasureResult value) + { + Serializer& valueSerializer = *this; + const auto value_width = value.width; + valueSerializer.writeNumber(value_width); + const auto value_height = value.height; + valueSerializer.writeNumber(value_height); + } void writeConstraintSizeOptions(Ark_ConstraintSizeOptions value) { Serializer& valueSerializer = *this; @@ -58523,22 +60342,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -58592,12 +60411,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeInt32(static_cast(value_height_value_0)); } - else if (((value_height_value_type == 1)) || ((value_height_value_type == 1)) || ((value_height_value_type == 1))) { + else if ((value_height_value_type == 1) || (value_height_value_type == 1) || (value_height_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeLength(value_height_value_1); @@ -58619,22 +60438,22 @@ class Serializer : public SerializerBase { const auto value_maskColor_value = value_maskColor.value; Ark_Int32 value_maskColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_maskColor_value_type = value_maskColor_value.selector; - if (((value_maskColor_value_type == 0))) { + if (value_maskColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_maskColor_value_0 = value_maskColor_value.value0; valueSerializer.writeInt32(static_cast(value_maskColor_value_0)); } - else if (((value_maskColor_value_type == 1))) { + else if (value_maskColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_maskColor_value_1 = value_maskColor_value.value1; valueSerializer.writeNumber(value_maskColor_value_1); } - else if (((value_maskColor_value_type == 2))) { + else if (value_maskColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_maskColor_value_2 = value_maskColor_value.value2; valueSerializer.writeString(value_maskColor_value_2); } - else if (((value_maskColor_value_type == 3))) { + else if (value_maskColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_maskColor_value_3 = value_maskColor_value.value3; valueSerializer.writeResource(value_maskColor_value_3); @@ -58649,12 +60468,12 @@ class Serializer : public SerializerBase { const auto value_detents_value_0 = value_detents_value.value0; Ark_Int32 value_detents_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_detents_value_0_type = value_detents_value_0.selector; - if (((value_detents_value_0_type == 0))) { + if (value_detents_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_detents_value_0_0 = value_detents_value_0.value0; valueSerializer.writeInt32(static_cast(value_detents_value_0_0)); } - else if (((value_detents_value_0_type == 1)) || ((value_detents_value_0_type == 1)) || ((value_detents_value_0_type == 1))) { + else if ((value_detents_value_0_type == 1) || (value_detents_value_0_type == 1) || (value_detents_value_0_type == 1)) { valueSerializer.writeInt8(1); const auto value_detents_value_0_1 = value_detents_value_0.value1; valueSerializer.writeLength(value_detents_value_0_1); @@ -58667,12 +60486,12 @@ class Serializer : public SerializerBase { const auto value_detents_value_1_value = value_detents_value_1.value; Ark_Int32 value_detents_value_1_value_type = INTEROP_RUNTIME_UNDEFINED; value_detents_value_1_value_type = value_detents_value_1_value.selector; - if (((value_detents_value_1_value_type == 0))) { + if (value_detents_value_1_value_type == 0) { valueSerializer.writeInt8(0); const auto value_detents_value_1_value_0 = value_detents_value_1_value.value0; valueSerializer.writeInt32(static_cast(value_detents_value_1_value_0)); } - else if (((value_detents_value_1_value_type == 1)) || ((value_detents_value_1_value_type == 1)) || ((value_detents_value_1_value_type == 1))) { + else if ((value_detents_value_1_value_type == 1) || (value_detents_value_1_value_type == 1) || (value_detents_value_1_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_detents_value_1_value_1 = value_detents_value_1_value.value1; valueSerializer.writeLength(value_detents_value_1_value_1); @@ -58686,12 +60505,12 @@ class Serializer : public SerializerBase { const auto value_detents_value_2_value = value_detents_value_2.value; Ark_Int32 value_detents_value_2_value_type = INTEROP_RUNTIME_UNDEFINED; value_detents_value_2_value_type = value_detents_value_2_value.selector; - if (((value_detents_value_2_value_type == 0))) { + if (value_detents_value_2_value_type == 0) { valueSerializer.writeInt8(0); const auto value_detents_value_2_value_0 = value_detents_value_2_value.value0; valueSerializer.writeInt32(static_cast(value_detents_value_2_value_0)); } - else if (((value_detents_value_2_value_type == 1)) || ((value_detents_value_2_value_type == 1)) || ((value_detents_value_2_value_type == 1))) { + else if ((value_detents_value_2_value_type == 1) || (value_detents_value_2_value_type == 1) || (value_detents_value_2_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_detents_value_2_value_1 = value_detents_value_2_value.value1; valueSerializer.writeLength(value_detents_value_2_value_1); @@ -58714,12 +60533,12 @@ class Serializer : public SerializerBase { const auto value_showClose_value = value_showClose.value; Ark_Int32 value_showClose_value_type = INTEROP_RUNTIME_UNDEFINED; value_showClose_value_type = value_showClose_value.selector; - if (((value_showClose_value_type == 0))) { + if (value_showClose_value_type == 0) { valueSerializer.writeInt8(0); const auto value_showClose_value_0 = value_showClose_value.value0; valueSerializer.writeBoolean(value_showClose_value_0); } - else if (((value_showClose_value_type == 1))) { + else if (value_showClose_value_type == 1) { valueSerializer.writeInt8(1); const auto value_showClose_value_1 = value_showClose_value.value1; valueSerializer.writeResource(value_showClose_value_1); @@ -58741,12 +60560,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeSheetTitleOptions(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeCallbackResource(value_title_value_1.resource); @@ -58808,12 +60627,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -58849,7 +60668,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -58863,33 +60682,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -58900,22 +60719,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -58929,22 +60748,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -58958,22 +60777,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -58987,29 +60806,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -59023,12 +60842,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -59073,12 +60892,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -59168,22 +60987,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -59299,12 +61118,12 @@ class Serializer : public SerializerBase { const auto value_preview_value = value_preview.value; Ark_Int32 value_preview_value_type = INTEROP_RUNTIME_UNDEFINED; value_preview_value_type = value_preview_value.selector; - if (((value_preview_value_type == 0))) { + if (value_preview_value_type == 0) { valueSerializer.writeInt8(0); const auto value_preview_value_0 = value_preview_value.value0; valueSerializer.writeInt32(static_cast(value_preview_value_0)); } - else if (((value_preview_value_type == 1))) { + else if (value_preview_value_type == 1) { valueSerializer.writeInt8(1); const auto value_preview_value_1 = value_preview_value.value1; valueSerializer.writeCallbackResource(value_preview_value_1.resource); @@ -59320,12 +61139,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0))) { + if ((value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLength(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -59361,7 +61180,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); } } - else if (((value_borderRadius_value_type == 2))) { + else if (value_borderRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderRadius_value_2 = value_borderRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_borderRadius_value_2); @@ -59462,22 +61281,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -59551,12 +61370,12 @@ class Serializer : public SerializerBase { const auto value_preview_value = value_preview.value; Ark_Int32 value_preview_value_type = INTEROP_RUNTIME_UNDEFINED; value_preview_value_type = value_preview_value.selector; - if (((value_preview_value_type == 0))) { + if (value_preview_value_type == 0) { valueSerializer.writeInt8(0); const auto value_preview_value_0 = value_preview_value.value0; valueSerializer.writeInt32(static_cast(value_preview_value_0)); } - else if (((value_preview_value_type == 1))) { + else if (value_preview_value_type == 1) { valueSerializer.writeInt8(1); const auto value_preview_value_1 = value_preview_value.value1; valueSerializer.writeCallbackResource(value_preview_value_1.resource); @@ -59572,12 +61391,12 @@ class Serializer : public SerializerBase { const auto value_borderRadius_value = value_borderRadius.value; Ark_Int32 value_borderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderRadius_value_type = value_borderRadius_value.selector; - if (((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0)) || ((value_borderRadius_value_type == 0))) { + if ((value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0) || (value_borderRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderRadius_value_0 = value_borderRadius_value.value0; valueSerializer.writeLength(value_borderRadius_value_0); } - else if (((value_borderRadius_value_type == 1))) { + else if (value_borderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderRadius_value_1 = value_borderRadius_value.value1; const auto value_borderRadius_value_1_topLeft = value_borderRadius_value_1.topLeft; @@ -59613,7 +61432,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderRadius_value_1_bottomRight_value); } } - else if (((value_borderRadius_value_type == 2))) { + else if (value_borderRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderRadius_value_2 = value_borderRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_borderRadius_value_2); @@ -59714,22 +61533,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -59767,12 +61586,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeString(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeResource(value_title_value_1); @@ -59810,22 +61629,22 @@ class Serializer : public SerializerBase { const auto value_maskColor_value = value_maskColor.value; Ark_Int32 value_maskColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_maskColor_value_type = value_maskColor_value.selector; - if (((value_maskColor_value_type == 0))) { + if (value_maskColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_maskColor_value_0 = value_maskColor_value.value0; valueSerializer.writeInt32(static_cast(value_maskColor_value_0)); } - else if (((value_maskColor_value_type == 1))) { + else if (value_maskColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_maskColor_value_1 = value_maskColor_value.value1; valueSerializer.writeString(value_maskColor_value_1); } - else if (((value_maskColor_value_type == 2))) { + else if (value_maskColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_maskColor_value_2 = value_maskColor_value.value2; valueSerializer.writeResource(value_maskColor_value_2); } - else if (((value_maskColor_value_type == 3))) { + else if (value_maskColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_maskColor_value_3 = value_maskColor_value.value3; valueSerializer.writeNumber(value_maskColor_value_3); @@ -59839,22 +61658,22 @@ class Serializer : public SerializerBase { const auto value_popupColor_value = value_popupColor.value; Ark_Int32 value_popupColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_popupColor_value_type = value_popupColor_value.selector; - if (((value_popupColor_value_type == 0))) { + if (value_popupColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_popupColor_value_0 = value_popupColor_value.value0; valueSerializer.writeInt32(static_cast(value_popupColor_value_0)); } - else if (((value_popupColor_value_type == 1))) { + else if (value_popupColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_popupColor_value_1 = value_popupColor_value.value1; valueSerializer.writeString(value_popupColor_value_1); } - else if (((value_popupColor_value_type == 2))) { + else if (value_popupColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_popupColor_value_2 = value_popupColor_value.value2; valueSerializer.writeResource(value_popupColor_value_2); } - else if (((value_popupColor_value_type == 3))) { + else if (value_popupColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_popupColor_value_3 = value_popupColor_value.value3; valueSerializer.writeNumber(value_popupColor_value_3); @@ -59910,33 +61729,33 @@ class Serializer : public SerializerBase { const auto value_mask_value = value_mask.value; Ark_Int32 value_mask_value_type = INTEROP_RUNTIME_UNDEFINED; value_mask_value_type = value_mask_value.selector; - if (((value_mask_value_type == 0))) { + if (value_mask_value_type == 0) { valueSerializer.writeInt8(0); const auto value_mask_value_0 = value_mask_value.value0; valueSerializer.writeBoolean(value_mask_value_0); } - else if (((value_mask_value_type == 1))) { + else if (value_mask_value_type == 1) { valueSerializer.writeInt8(1); const auto value_mask_value_1 = value_mask_value.value1; const auto value_mask_value_1_color = value_mask_value_1.color; Ark_Int32 value_mask_value_1_color_type = INTEROP_RUNTIME_UNDEFINED; value_mask_value_1_color_type = value_mask_value_1_color.selector; - if (((value_mask_value_1_color_type == 0))) { + if (value_mask_value_1_color_type == 0) { valueSerializer.writeInt8(0); const auto value_mask_value_1_color_0 = value_mask_value_1_color.value0; valueSerializer.writeInt32(static_cast(value_mask_value_1_color_0)); } - else if (((value_mask_value_1_color_type == 1))) { + else if (value_mask_value_1_color_type == 1) { valueSerializer.writeInt8(1); const auto value_mask_value_1_color_1 = value_mask_value_1_color.value1; valueSerializer.writeNumber(value_mask_value_1_color_1); } - else if (((value_mask_value_1_color_type == 2))) { + else if (value_mask_value_1_color_type == 2) { valueSerializer.writeInt8(2); const auto value_mask_value_1_color_2 = value_mask_value_1_color.value2; valueSerializer.writeString(value_mask_value_1_color_2); } - else if (((value_mask_value_1_color_type == 3))) { + else if (value_mask_value_1_color_type == 3) { valueSerializer.writeInt8(3); const auto value_mask_value_1_color_3 = value_mask_value_1_color.value3; valueSerializer.writeResource(value_mask_value_1_color_3); @@ -60007,12 +61826,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -60050,12 +61869,12 @@ class Serializer : public SerializerBase { const auto value_onWillDismiss_value = value_onWillDismiss.value; Ark_Int32 value_onWillDismiss_value_type = INTEROP_RUNTIME_UNDEFINED; value_onWillDismiss_value_type = value_onWillDismiss_value.selector; - if (((value_onWillDismiss_value_type == 0))) { + if (value_onWillDismiss_value_type == 0) { valueSerializer.writeInt8(0); const auto value_onWillDismiss_value_0 = value_onWillDismiss_value.value0; valueSerializer.writeBoolean(value_onWillDismiss_value_0); } - else if (((value_onWillDismiss_value_type == 1))) { + else if (value_onWillDismiss_value_type == 1) { valueSerializer.writeInt8(1); const auto value_onWillDismiss_value_1 = value_onWillDismiss_value.value1; valueSerializer.writeCallbackResource(value_onWillDismiss_value_1.resource); @@ -60161,33 +61980,33 @@ class Serializer : public SerializerBase { const auto value_mask_value = value_mask.value; Ark_Int32 value_mask_value_type = INTEROP_RUNTIME_UNDEFINED; value_mask_value_type = value_mask_value.selector; - if (((value_mask_value_type == 0))) { + if (value_mask_value_type == 0) { valueSerializer.writeInt8(0); const auto value_mask_value_0 = value_mask_value.value0; valueSerializer.writeBoolean(value_mask_value_0); } - else if (((value_mask_value_type == 1))) { + else if (value_mask_value_type == 1) { valueSerializer.writeInt8(1); const auto value_mask_value_1 = value_mask_value.value1; const auto value_mask_value_1_color = value_mask_value_1.color; Ark_Int32 value_mask_value_1_color_type = INTEROP_RUNTIME_UNDEFINED; value_mask_value_1_color_type = value_mask_value_1_color.selector; - if (((value_mask_value_1_color_type == 0))) { + if (value_mask_value_1_color_type == 0) { valueSerializer.writeInt8(0); const auto value_mask_value_1_color_0 = value_mask_value_1_color.value0; valueSerializer.writeInt32(static_cast(value_mask_value_1_color_0)); } - else if (((value_mask_value_1_color_type == 1))) { + else if (value_mask_value_1_color_type == 1) { valueSerializer.writeInt8(1); const auto value_mask_value_1_color_1 = value_mask_value_1_color.value1; valueSerializer.writeNumber(value_mask_value_1_color_1); } - else if (((value_mask_value_1_color_type == 2))) { + else if (value_mask_value_1_color_type == 2) { valueSerializer.writeInt8(2); const auto value_mask_value_1_color_2 = value_mask_value_1_color.value2; valueSerializer.writeString(value_mask_value_1_color_2); } - else if (((value_mask_value_1_color_type == 3))) { + else if (value_mask_value_1_color_type == 3) { valueSerializer.writeInt8(3); const auto value_mask_value_1_color_3 = value_mask_value_1_color.value3; valueSerializer.writeResource(value_mask_value_1_color_3); @@ -60234,22 +62053,22 @@ class Serializer : public SerializerBase { const auto value_popupColor_value = value_popupColor.value; Ark_Int32 value_popupColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_popupColor_value_type = value_popupColor_value.selector; - if (((value_popupColor_value_type == 0))) { + if (value_popupColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_popupColor_value_0 = value_popupColor_value.value0; valueSerializer.writeInt32(static_cast(value_popupColor_value_0)); } - else if (((value_popupColor_value_type == 1))) { + else if (value_popupColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_popupColor_value_1 = value_popupColor_value.value1; valueSerializer.writeString(value_popupColor_value_1); } - else if (((value_popupColor_value_type == 2))) { + else if (value_popupColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_popupColor_value_2 = value_popupColor_value.value2; valueSerializer.writeResource(value_popupColor_value_2); } - else if (((value_popupColor_value_type == 3))) { + else if (value_popupColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_popupColor_value_3 = value_popupColor_value.value3; valueSerializer.writeNumber(value_popupColor_value_3); @@ -60311,12 +62130,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -60346,12 +62165,12 @@ class Serializer : public SerializerBase { const auto value_onWillDismiss_value = value_onWillDismiss.value; Ark_Int32 value_onWillDismiss_value_type = INTEROP_RUNTIME_UNDEFINED; value_onWillDismiss_value_type = value_onWillDismiss_value.selector; - if (((value_onWillDismiss_value_type == 0))) { + if (value_onWillDismiss_value_type == 0) { valueSerializer.writeInt8(0); const auto value_onWillDismiss_value_0 = value_onWillDismiss_value.value0; valueSerializer.writeBoolean(value_onWillDismiss_value_0); } - else if (((value_onWillDismiss_value_type == 1))) { + else if (value_onWillDismiss_value_type == 1) { valueSerializer.writeInt8(1); const auto value_onWillDismiss_value_1 = value_onWillDismiss_value.value1; valueSerializer.writeCallbackResource(value_onWillDismiss_value_1.resource); @@ -60453,12 +62272,12 @@ class Serializer : public SerializerBase { const auto value_mode_value = value_mode.value; Ark_Int32 value_mode_value_type = INTEROP_RUNTIME_UNDEFINED; value_mode_value_type = value_mode_value.selector; - if (((value_mode_value_type == 0))) { + if (value_mode_value_type == 0) { valueSerializer.writeInt8(0); const auto value_mode_value_0 = value_mode_value.value0; valueSerializer.writeInt32(static_cast(value_mode_value_0)); } - else if (((value_mode_value_type == 1))) { + else if (value_mode_value_type == 1) { valueSerializer.writeInt8(1); const auto value_mode_value_1 = value_mode_value.value1; valueSerializer.writeInt32(value_mode_value_1.length); @@ -60484,12 +62303,12 @@ class Serializer : public SerializerBase { const auto value_numberBadge_value = value_numberBadge.value; Ark_Int32 value_numberBadge_value_type = INTEROP_RUNTIME_UNDEFINED; value_numberBadge_value_type = value_numberBadge_value.selector; - if (((value_numberBadge_value_type == 0))) { + if (value_numberBadge_value_type == 0) { valueSerializer.writeInt8(0); const auto value_numberBadge_value_0 = value_numberBadge_value.value0; valueSerializer.writeBoolean(value_numberBadge_value_0); } - else if (((value_numberBadge_value_type == 1))) { + else if (value_numberBadge_value_type == 1) { valueSerializer.writeInt8(1); const auto value_numberBadge_value_1 = value_numberBadge_value.value1; valueSerializer.writeNumber(value_numberBadge_value_1); @@ -60515,17 +62334,17 @@ class Serializer : public SerializerBase { const auto value_curve_value = value_curve.value; Ark_Int32 value_curve_value_type = INTEROP_RUNTIME_UNDEFINED; value_curve_value_type = value_curve_value.selector; - if (((value_curve_value_type == 0))) { + if (value_curve_value_type == 0) { valueSerializer.writeInt8(0); const auto value_curve_value_0 = value_curve_value.value0; valueSerializer.writeInt32(static_cast(value_curve_value_0)); } - else if (((value_curve_value_type == 1))) { + else if (value_curve_value_type == 1) { valueSerializer.writeInt8(1); const auto value_curve_value_1 = value_curve_value.value1; valueSerializer.writeString(value_curve_value_1); } - else if (((value_curve_value_type == 2))) { + else if (value_curve_value_type == 2) { valueSerializer.writeInt8(2); const auto value_curve_value_2 = value_curve_value.value2; valueSerializer.writeICurve(value_curve_value_2); @@ -60808,18 +62627,6 @@ class Serializer : public SerializerBase { const auto value__DrawingLatticeStub = value._DrawingLatticeStub; valueSerializer.writeString(value__DrawingLatticeStub); } - void writeRectResult(Ark_RectResult value) - { - Serializer& valueSerializer = *this; - const auto value_x = value.x; - valueSerializer.writeNumber(value_x); - const auto value_y = value.y; - valueSerializer.writeNumber(value_y); - const auto value_width = value.width; - valueSerializer.writeNumber(value_width); - const auto value_height = value.height; - valueSerializer.writeNumber(value_height); - } void writeDrawModifier(Ark_DrawModifier value) { Serializer& valueSerializer = *this; @@ -60831,11 +62638,41 @@ class Serializer : public SerializerBase { const auto value__IntentionCodeStub = value._IntentionCodeStub; valueSerializer.writeString(value__IntentionCodeStub); } + void writeSummary(Ark_Summary value) + { + Serializer& valueSerializer = *this; + const auto value__SummaryStub = value._SummaryStub; + valueSerializer.writeString(value__SummaryStub); + } void writeUnifiedData(Ark_UnifiedData value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTouchObject(Ark_TouchObject value) + { + Serializer& valueSerializer = *this; + const auto value_type = value.type; + valueSerializer.writeInt32(static_cast(value_type)); + const auto value_id = value.id; + valueSerializer.writeNumber(value_id); + const auto value_displayX = value.displayX; + valueSerializer.writeNumber(value_displayX); + const auto value_displayY = value.displayY; + valueSerializer.writeNumber(value_displayY); + const auto value_windowX = value.windowX; + valueSerializer.writeNumber(value_windowX); + const auto value_windowY = value.windowY; + valueSerializer.writeNumber(value_windowY); + const auto value_screenX = value.screenX; + valueSerializer.writeNumber(value_screenX); + const auto value_screenY = value.screenY; + valueSerializer.writeNumber(value_screenY); + const auto value_x = value.x; + valueSerializer.writeNumber(value_x); + const auto value_y = value.y; + valueSerializer.writeNumber(value_y); + } void writeColumnSplitDividerStyle(Ark_ColumnSplitDividerStyle value) { Serializer& valueSerializer = *this; @@ -60875,22 +62712,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -60907,11 +62744,51 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeOffscreenCanvasRenderingContext2D(Ark_OffscreenCanvasRenderingContext2D value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } + void writeRenderingContextSettings(Ark_RenderingContextSettings value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeImageBitmap(Ark_ImageBitmap value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTextMetrics(Ark_TextMetrics value) + { + Serializer& valueSerializer = *this; + const auto value_actualBoundingBoxAscent = value.actualBoundingBoxAscent; + valueSerializer.writeNumber(value_actualBoundingBoxAscent); + const auto value_actualBoundingBoxDescent = value.actualBoundingBoxDescent; + valueSerializer.writeNumber(value_actualBoundingBoxDescent); + const auto value_actualBoundingBoxLeft = value.actualBoundingBoxLeft; + valueSerializer.writeNumber(value_actualBoundingBoxLeft); + const auto value_actualBoundingBoxRight = value.actualBoundingBoxRight; + valueSerializer.writeNumber(value_actualBoundingBoxRight); + const auto value_alphabeticBaseline = value.alphabeticBaseline; + valueSerializer.writeNumber(value_alphabeticBaseline); + const auto value_emHeightAscent = value.emHeightAscent; + valueSerializer.writeNumber(value_emHeightAscent); + const auto value_emHeightDescent = value.emHeightDescent; + valueSerializer.writeNumber(value_emHeightDescent); + const auto value_fontBoundingBoxAscent = value.fontBoundingBoxAscent; + valueSerializer.writeNumber(value_fontBoundingBoxAscent); + const auto value_fontBoundingBoxDescent = value.fontBoundingBoxDescent; + valueSerializer.writeNumber(value_fontBoundingBoxDescent); + const auto value_hangingBaseline = value.hangingBaseline; + valueSerializer.writeNumber(value_hangingBaseline); + const auto value_ideographicBaseline = value.ideographicBaseline; + valueSerializer.writeNumber(value_ideographicBaseline); + const auto value_width = value.width; + valueSerializer.writeNumber(value_width); + const auto value_height = value.height; + valueSerializer.writeNumber(value_height); + } void writeImageData(Ark_ImageData value) { Serializer& valueSerializer = *this; @@ -60933,12 +62810,12 @@ class Serializer : public SerializerBase { const auto value_hintRadius_value = value_hintRadius.value; Ark_Int32 value_hintRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_hintRadius_value_type = value_hintRadius_value.selector; - if (((value_hintRadius_value_type == 0))) { + if (value_hintRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_hintRadius_value_0 = value_hintRadius_value.value0; valueSerializer.writeNumber(value_hintRadius_value_0); } - else if (((value_hintRadius_value_type == 1))) { + else if (value_hintRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_hintRadius_value_1 = value_hintRadius_value.value1; valueSerializer.writeResource(value_hintRadius_value_1); @@ -60990,22 +62867,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -61083,12 +62960,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -61111,6 +62988,9 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_hoverModeArea_value)); } } + void writeCalendarPickerAttribute(Ark_CalendarPickerAttribute value) + { + } void writeCalendarController(Ark_CalendarController value) { Serializer& valueSerializer = *this; @@ -61141,22 +63021,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -61170,12 +63050,12 @@ class Serializer : public SerializerBase { const auto value_fontSize_value = value_fontSize.value; Ark_Int32 value_fontSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontSize_value_type = value_fontSize_value.selector; - if (((value_fontSize_value_type == 0))) { + if (value_fontSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontSize_value_0 = value_fontSize_value.value0; valueSerializer.writeNumber(value_fontSize_value_0); } - else if (((value_fontSize_value_type == 1))) { + else if (value_fontSize_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontSize_value_1 = value_fontSize_value.value1; valueSerializer.writeString(value_fontSize_value_1); @@ -61189,12 +63069,12 @@ class Serializer : public SerializerBase { const auto value_badgeSize_value = value_badgeSize.value; Ark_Int32 value_badgeSize_value_type = INTEROP_RUNTIME_UNDEFINED; value_badgeSize_value_type = value_badgeSize_value.selector; - if (((value_badgeSize_value_type == 0))) { + if (value_badgeSize_value_type == 0) { valueSerializer.writeInt8(0); const auto value_badgeSize_value_0 = value_badgeSize_value.value0; valueSerializer.writeNumber(value_badgeSize_value_0); } - else if (((value_badgeSize_value_type == 1))) { + else if (value_badgeSize_value_type == 1) { valueSerializer.writeInt8(1); const auto value_badgeSize_value_1 = value_badgeSize_value.value1; valueSerializer.writeString(value_badgeSize_value_1); @@ -61208,22 +63088,22 @@ class Serializer : public SerializerBase { const auto value_badgeColor_value = value_badgeColor.value; Ark_Int32 value_badgeColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_badgeColor_value_type = value_badgeColor_value.selector; - if (((value_badgeColor_value_type == 0))) { + if (value_badgeColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_badgeColor_value_0 = value_badgeColor_value.value0; valueSerializer.writeInt32(static_cast(value_badgeColor_value_0)); } - else if (((value_badgeColor_value_type == 1))) { + else if (value_badgeColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_badgeColor_value_1 = value_badgeColor_value.value1; valueSerializer.writeNumber(value_badgeColor_value_1); } - else if (((value_badgeColor_value_type == 2))) { + else if (value_badgeColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_badgeColor_value_2 = value_badgeColor_value.value2; valueSerializer.writeString(value_badgeColor_value_2); } - else if (((value_badgeColor_value_type == 3))) { + else if (value_badgeColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_badgeColor_value_3 = value_badgeColor_value.value3; valueSerializer.writeResource(value_badgeColor_value_3); @@ -61237,22 +63117,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0))) { + if (value_borderColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0)); } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; valueSerializer.writeNumber(value_borderColor_value_1); } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeString(value_borderColor_value_2); } - else if (((value_borderColor_value_type == 3))) { + else if (value_borderColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_3 = value_borderColor_value.value3; valueSerializer.writeResource(value_borderColor_value_3); @@ -61274,23 +63154,26 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeNumber(value_fontWeight_value_0); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeInt32(static_cast(value_fontWeight_value_1)); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); } } } + void writeAlphabetIndexerAttribute(Ark_AlphabetIndexerAttribute value) + { + } void writeAlertDialogParamWithOptions(Ark_AlertDialogParamWithOptions value) { Serializer& valueSerializer = *this; @@ -61302,12 +63185,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeString(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeResource(value_title_value_1); @@ -61321,12 +63204,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -61335,12 +63218,12 @@ class Serializer : public SerializerBase { const auto value_message = value.message; Ark_Int32 value_message_type = INTEROP_RUNTIME_UNDEFINED; value_message_type = value_message.selector; - if (((value_message_type == 0))) { + if (value_message_type == 0) { valueSerializer.writeInt8(0); const auto value_message_0 = value_message.value0; valueSerializer.writeString(value_message_0); } - else if (((value_message_type == 1))) { + else if (value_message_type == 1) { valueSerializer.writeInt8(1); const auto value_message_1 = value_message.value1; valueSerializer.writeResource(value_message_1); @@ -61422,22 +63305,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -61477,12 +63360,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -61518,7 +63401,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_cornerRadius_value_1_bottomRight_value); } } - else if (((value_cornerRadius_value_type == 2))) { + else if (value_cornerRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_cornerRadius_value_2 = value_cornerRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_cornerRadius_value_2); @@ -61548,12 +63431,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -61589,7 +63472,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -61603,33 +63486,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -61640,22 +63523,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -61669,22 +63552,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -61698,22 +63581,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -61727,29 +63610,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -61763,12 +63646,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -61813,12 +63696,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -61874,12 +63757,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeString(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeResource(value_title_value_1); @@ -61893,12 +63776,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -61907,12 +63790,12 @@ class Serializer : public SerializerBase { const auto value_message = value.message; Ark_Int32 value_message_type = INTEROP_RUNTIME_UNDEFINED; value_message_type = value_message.selector; - if (((value_message_type == 0))) { + if (value_message_type == 0) { valueSerializer.writeInt8(0); const auto value_message_0 = value_message.value0; valueSerializer.writeString(value_message_0); } - else if (((value_message_type == 1))) { + else if (value_message_type == 1) { valueSerializer.writeInt8(1); const auto value_message_1 = value_message.value1; valueSerializer.writeResource(value_message_1); @@ -61994,22 +63877,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -62049,12 +63932,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -62090,7 +63973,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_cornerRadius_value_1_bottomRight_value); } } - else if (((value_cornerRadius_value_type == 2))) { + else if (value_cornerRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_cornerRadius_value_2 = value_cornerRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_cornerRadius_value_2); @@ -62120,12 +64003,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -62161,7 +64044,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -62175,33 +64058,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -62212,22 +64095,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -62241,22 +64124,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -62270,22 +64153,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -62299,29 +64182,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -62335,12 +64218,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -62385,12 +64268,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -62436,12 +64319,12 @@ class Serializer : public SerializerBase { const auto value_title_value = value_title.value; Ark_Int32 value_title_value_type = INTEROP_RUNTIME_UNDEFINED; value_title_value_type = value_title_value.selector; - if (((value_title_value_type == 0))) { + if (value_title_value_type == 0) { valueSerializer.writeInt8(0); const auto value_title_value_0 = value_title_value.value0; valueSerializer.writeString(value_title_value_0); } - else if (((value_title_value_type == 1))) { + else if (value_title_value_type == 1) { valueSerializer.writeInt8(1); const auto value_title_value_1 = value_title_value.value1; valueSerializer.writeResource(value_title_value_1); @@ -62455,12 +64338,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -62469,12 +64352,12 @@ class Serializer : public SerializerBase { const auto value_message = value.message; Ark_Int32 value_message_type = INTEROP_RUNTIME_UNDEFINED; value_message_type = value_message.selector; - if (((value_message_type == 0))) { + if (value_message_type == 0) { valueSerializer.writeInt8(0); const auto value_message_0 = value_message.value0; valueSerializer.writeString(value_message_0); } - else if (((value_message_type == 1))) { + else if (value_message_type == 1) { valueSerializer.writeInt8(1); const auto value_message_1 = value_message.value1; valueSerializer.writeResource(value_message_1); @@ -62556,22 +64439,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -62611,12 +64494,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -62652,7 +64535,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_cornerRadius_value_1_bottomRight_value); } } - else if (((value_cornerRadius_value_type == 2))) { + else if (value_cornerRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_cornerRadius_value_2 = value_cornerRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_cornerRadius_value_2); @@ -62682,12 +64565,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -62723,7 +64606,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -62737,33 +64620,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -62774,22 +64657,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -62803,22 +64686,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -62832,22 +64715,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -62861,29 +64744,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -62897,12 +64780,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -62947,12 +64830,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -62997,12 +64880,12 @@ class Serializer : public SerializerBase { const auto value_title = value.title; Ark_Int32 value_title_type = INTEROP_RUNTIME_UNDEFINED; value_title_type = value_title.selector; - if (((value_title_type == 0))) { + if (value_title_type == 0) { valueSerializer.writeInt8(0); const auto value_title_0 = value_title.value0; valueSerializer.writeString(value_title_0); } - else if (((value_title_type == 1))) { + else if (value_title_type == 1) { valueSerializer.writeInt8(1); const auto value_title_1 = value_title.value1; valueSerializer.writeResource(value_title_1); @@ -63015,12 +64898,12 @@ class Serializer : public SerializerBase { const auto value_subtitle_value = value_subtitle.value; Ark_Int32 value_subtitle_value_type = INTEROP_RUNTIME_UNDEFINED; value_subtitle_value_type = value_subtitle_value.selector; - if (((value_subtitle_value_type == 0))) { + if (value_subtitle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_subtitle_value_0 = value_subtitle_value.value0; valueSerializer.writeString(value_subtitle_value_0); } - else if (((value_subtitle_value_type == 1))) { + else if (value_subtitle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_subtitle_value_1 = value_subtitle_value.value1; valueSerializer.writeResource(value_subtitle_value_1); @@ -63029,12 +64912,12 @@ class Serializer : public SerializerBase { const auto value_message = value.message; Ark_Int32 value_message_type = INTEROP_RUNTIME_UNDEFINED; value_message_type = value_message.selector; - if (((value_message_type == 0))) { + if (value_message_type == 0) { valueSerializer.writeInt8(0); const auto value_message_0 = value_message.value0; valueSerializer.writeString(value_message_0); } - else if (((value_message_type == 1))) { + else if (value_message_type == 1) { valueSerializer.writeInt8(1); const auto value_message_1 = value_message.value1; valueSerializer.writeResource(value_message_1); @@ -63119,22 +65002,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -63174,12 +65057,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -63215,7 +65098,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_cornerRadius_value_1_bottomRight_value); } } - else if (((value_cornerRadius_value_type == 2))) { + else if (value_cornerRadius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_cornerRadius_value_2 = value_cornerRadius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_cornerRadius_value_2); @@ -63245,12 +65128,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -63286,7 +65169,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_borderWidth_value_1_left_value); } } - else if (((value_borderWidth_value_type == 2))) { + else if (value_borderWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderWidth_value_2 = value_borderWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_borderWidth_value_2); @@ -63300,33 +65183,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -63337,22 +65220,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -63366,22 +65249,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -63395,22 +65278,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -63424,29 +65307,29 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); } } } - else if (((value_borderColor_value_type == 2))) { + else if (value_borderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_2 = value_borderColor_value.value2; valueSerializer.writeLocalizedEdgeColors(value_borderColor_value_2); @@ -63460,12 +65343,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -63510,12 +65393,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -63579,17 +65462,17 @@ class Serializer : public SerializerBase { const auto value_curve = value.curve; Ark_Int32 value_curve_type = INTEROP_RUNTIME_UNDEFINED; value_curve_type = value_curve.selector; - if (((value_curve_type == 0))) { + if (value_curve_type == 0) { valueSerializer.writeInt8(0); const auto value_curve_0 = value_curve.value0; valueSerializer.writeInt32(static_cast(value_curve_0)); } - else if (((value_curve_type == 1))) { + else if (value_curve_type == 1) { valueSerializer.writeInt8(1); const auto value_curve_1 = value_curve.value1; valueSerializer.writeString(value_curve_1); } - else if (((value_curve_type == 2))) { + else if (value_curve_type == 2) { valueSerializer.writeInt8(2); const auto value_curve_2 = value_curve.value2; valueSerializer.writeICurve(value_curve_2); @@ -63692,11 +65575,6 @@ class Serializer : public SerializerBase { valueSerializer.writeImageAttachmentLayoutStyle(value_layoutStyle_value); } } - void writeMutableStyledString(Ark_MutableStyledString value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeUrlStyle(Ark_UrlStyle value) { Serializer& valueSerializer = *this; @@ -63758,12 +65636,12 @@ class Serializer : public SerializerBase { const auto value_leadingMargin_value = value_leadingMargin.value; Ark_Int32 value_leadingMargin_value_type = INTEROP_RUNTIME_UNDEFINED; value_leadingMargin_value_type = value_leadingMargin_value.selector; - if (((value_leadingMargin_value_type == 0))) { + if (value_leadingMargin_value_type == 0) { valueSerializer.writeInt8(0); const auto value_leadingMargin_value_0 = value_leadingMargin_value.value0; valueSerializer.writeLengthMetrics(value_leadingMargin_value_0); } - else if (((value_leadingMargin_value_type == 1))) { + else if (value_leadingMargin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_leadingMargin_value_1 = value_leadingMargin_value.value1; valueSerializer.writeLeadingMarginPlaceholder(value_leadingMargin_value_1); @@ -63840,22 +65718,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -63869,12 +65747,12 @@ class Serializer : public SerializerBase { const auto value_fontFamily_value = value_fontFamily.value; Ark_Int32 value_fontFamily_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontFamily_value_type = value_fontFamily_value.selector; - if (((value_fontFamily_value_type == 0))) { + if (value_fontFamily_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontFamily_value_0 = value_fontFamily_value.value0; valueSerializer.writeString(value_fontFamily_value_0); } - else if (((value_fontFamily_value_type == 1))) { + else if (value_fontFamily_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontFamily_value_1 = value_fontFamily_value.value1; valueSerializer.writeResource(value_fontFamily_value_1); @@ -63896,17 +65774,17 @@ class Serializer : public SerializerBase { const auto value_fontWeight_value = value_fontWeight.value; Ark_Int32 value_fontWeight_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontWeight_value_type = value_fontWeight_value.selector; - if (((value_fontWeight_value_type == 0))) { + if (value_fontWeight_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontWeight_value_0 = value_fontWeight_value.value0; valueSerializer.writeNumber(value_fontWeight_value_0); } - else if (((value_fontWeight_value_type == 1))) { + else if (value_fontWeight_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontWeight_value_1 = value_fontWeight_value.value1; valueSerializer.writeInt32(static_cast(value_fontWeight_value_1)); } - else if (((value_fontWeight_value_type == 2))) { + else if (value_fontWeight_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontWeight_value_2 = value_fontWeight_value.value2; valueSerializer.writeString(value_fontWeight_value_2); @@ -64169,12 +66047,12 @@ class Serializer : public SerializerBase { const auto value_content = value.content; Ark_Int32 value_content_type = INTEROP_RUNTIME_UNDEFINED; value_content_type = value_content.selector; - if (((value_content_type == 0))) { + if (value_content_type == 0) { valueSerializer.writeInt8(0); const auto value_content_0 = value_content.value0; valueSerializer.writeString(value_content_0); } - else if (((value_content_type == 1))) { + else if (value_content_type == 1) { valueSerializer.writeInt8(1); const auto value_content_1 = value_content.value1; valueSerializer.writeResource(value_content_1); @@ -64187,12 +66065,12 @@ class Serializer : public SerializerBase { const auto value_startIcon_value = value_startIcon.value; Ark_Int32 value_startIcon_value_type = INTEROP_RUNTIME_UNDEFINED; value_startIcon_value_type = value_startIcon_value.selector; - if (((value_startIcon_value_type == 0))) { + if (value_startIcon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_startIcon_value_0 = value_startIcon_value.value0; valueSerializer.writeString(value_startIcon_value_0); } - else if (((value_startIcon_value_type == 1))) { + else if (value_startIcon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_startIcon_value_1 = value_startIcon_value.value1; valueSerializer.writeResource(value_startIcon_value_1); @@ -64783,12 +66661,12 @@ class Serializer : public SerializerBase { const auto value_controller = value.controller; Ark_Int32 value_controller_type = INTEROP_RUNTIME_UNDEFINED; value_controller_type = value_controller.selector; - if (((value_controller_type == 0))) { + if (value_controller_type == 0) { valueSerializer.writeInt8(0); const auto value_controller_0 = value_controller.value0; valueSerializer.writeWebController(value_controller_0); } - else if (((value_controller_type == 1))) { + else if (value_controller_type == 1) { valueSerializer.writeInt8(1); const auto value_controller_1 = value_controller.value1; valueSerializer.writeWebviewController(value_controller_1); @@ -64820,12 +66698,12 @@ class Serializer : public SerializerBase { const auto value_src = value.src; Ark_Int32 value_src_type = INTEROP_RUNTIME_UNDEFINED; value_src_type = value_src.selector; - if (((value_src_type == 0))) { + if (value_src_type == 0) { valueSerializer.writeInt8(0); const auto value_src_0 = value_src.value0; valueSerializer.writeString(value_src_0); } - else if (((value_src_type == 1))) { + else if (value_src_type == 1) { valueSerializer.writeInt8(1); const auto value_src_1 = value_src.value1; valueSerializer.writeResource(value_src_1); @@ -64833,12 +66711,12 @@ class Serializer : public SerializerBase { const auto value_controller = value.controller; Ark_Int32 value_controller_type = INTEROP_RUNTIME_UNDEFINED; value_controller_type = value_controller.selector; - if (((value_controller_type == 0))) { + if (value_controller_type == 0) { valueSerializer.writeInt8(0); const auto value_controller_0 = value_controller.value0; valueSerializer.writeWebController(value_controller_0); } - else if (((value_controller_type == 1))) { + else if (value_controller_type == 1) { valueSerializer.writeInt8(1); const auto value_controller_1 = value_controller.value1; valueSerializer.writeWebviewController(value_controller_1); @@ -64868,11 +66746,6 @@ class Serializer : public SerializerBase { valueSerializer.writeString(value_sharedRenderProcessToken_value); } } - void writeWebCookie(Ark_WebCookie value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeHeader(Ark_Header value) { Serializer& valueSerializer = *this; @@ -64910,12 +66783,12 @@ class Serializer : public SerializerBase { const auto value_src_value = value_src.value; Ark_Int32 value_src_value_type = INTEROP_RUNTIME_UNDEFINED; value_src_value_type = value_src_value.selector; - if (((value_src_value_type == 0))) { + if (value_src_value_type == 0) { valueSerializer.writeInt8(0); const auto value_src_value_0 = value_src_value.value0; valueSerializer.writeString(value_src_value_0); } - else if (((value_src_value_type == 1))) { + else if (value_src_value_type == 1) { valueSerializer.writeInt8(1); const auto value_src_value_1 = value_src_value.value1; valueSerializer.writeResource(value_src_value_1); @@ -64929,17 +66802,17 @@ class Serializer : public SerializerBase { const auto value_currentProgressRate_value = value_currentProgressRate.value; Ark_Int32 value_currentProgressRate_value_type = INTEROP_RUNTIME_UNDEFINED; value_currentProgressRate_value_type = value_currentProgressRate_value.selector; - if (((value_currentProgressRate_value_type == 0))) { + if (value_currentProgressRate_value_type == 0) { valueSerializer.writeInt8(0); const auto value_currentProgressRate_value_0 = value_currentProgressRate_value.value0; valueSerializer.writeNumber(value_currentProgressRate_value_0); } - else if (((value_currentProgressRate_value_type == 1))) { + else if (value_currentProgressRate_value_type == 1) { valueSerializer.writeInt8(1); const auto value_currentProgressRate_value_1 = value_currentProgressRate_value.value1; valueSerializer.writeString(value_currentProgressRate_value_1); } - else if (((value_currentProgressRate_value_type == 2))) { + else if (value_currentProgressRate_value_type == 2) { valueSerializer.writeInt8(2); const auto value_currentProgressRate_value_2 = value_currentProgressRate_value.value2; valueSerializer.writeInt32(static_cast(value_currentProgressRate_value_2)); @@ -64953,17 +66826,17 @@ class Serializer : public SerializerBase { const auto value_previewUri_value = value_previewUri.value; Ark_Int32 value_previewUri_value_type = INTEROP_RUNTIME_UNDEFINED; value_previewUri_value_type = value_previewUri_value.selector; - if (((value_previewUri_value_type == 0))) { + if (value_previewUri_value_type == 0) { valueSerializer.writeInt8(0); const auto value_previewUri_value_0 = value_previewUri_value.value0; valueSerializer.writeString(value_previewUri_value_0); } - else if (((value_previewUri_value_type == 1))) { + else if (value_previewUri_value_type == 1) { valueSerializer.writeInt8(1); const auto value_previewUri_value_1 = value_previewUri_value.value1; valueSerializer.writePixelMap(value_previewUri_value_1); } - else if (((value_previewUri_value_type == 2))) { + else if (value_previewUri_value_type == 2) { valueSerializer.writeInt8(2); const auto value_previewUri_value_2 = value_previewUri_value.value2; valueSerializer.writeResource(value_previewUri_value_2); @@ -64997,12 +66870,12 @@ class Serializer : public SerializerBase { const auto value_pointRadius_value = value_pointRadius.value; Ark_Int32 value_pointRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_pointRadius_value_type = value_pointRadius_value.selector; - if (((value_pointRadius_value_type == 0))) { + if (value_pointRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_pointRadius_value_0 = value_pointRadius_value.value0; valueSerializer.writeNumber(value_pointRadius_value_0); } - else if (((value_pointRadius_value_type == 1))) { + else if (value_pointRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_pointRadius_value_1 = value_pointRadius_value.value1; valueSerializer.writeResource(value_pointRadius_value_1); @@ -65016,22 +66889,22 @@ class Serializer : public SerializerBase { const auto value_unselectedColor_value = value_unselectedColor.value; Ark_Int32 value_unselectedColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_unselectedColor_value_type = value_unselectedColor_value.selector; - if (((value_unselectedColor_value_type == 0))) { + if (value_unselectedColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_unselectedColor_value_0 = value_unselectedColor_value.value0; valueSerializer.writeInt32(static_cast(value_unselectedColor_value_0)); } - else if (((value_unselectedColor_value_type == 1))) { + else if (value_unselectedColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_unselectedColor_value_1 = value_unselectedColor_value.value1; valueSerializer.writeNumber(value_unselectedColor_value_1); } - else if (((value_unselectedColor_value_type == 2))) { + else if (value_unselectedColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_unselectedColor_value_2 = value_unselectedColor_value.value2; valueSerializer.writeString(value_unselectedColor_value_2); } - else if (((value_unselectedColor_value_type == 3))) { + else if (value_unselectedColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_unselectedColor_value_3 = value_unselectedColor_value.value3; valueSerializer.writeResource(value_unselectedColor_value_3); @@ -65045,22 +66918,22 @@ class Serializer : public SerializerBase { const auto value_pointColor_value = value_pointColor.value; Ark_Int32 value_pointColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_pointColor_value_type = value_pointColor_value.selector; - if (((value_pointColor_value_type == 0))) { + if (value_pointColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_pointColor_value_0 = value_pointColor_value.value0; valueSerializer.writeInt32(static_cast(value_pointColor_value_0)); } - else if (((value_pointColor_value_type == 1))) { + else if (value_pointColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_pointColor_value_1 = value_pointColor_value.value1; valueSerializer.writeNumber(value_pointColor_value_1); } - else if (((value_pointColor_value_type == 2))) { + else if (value_pointColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_pointColor_value_2 = value_pointColor_value.value2; valueSerializer.writeString(value_pointColor_value_2); } - else if (((value_pointColor_value_type == 3))) { + else if (value_pointColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_pointColor_value_3 = value_pointColor_value.value3; valueSerializer.writeResource(value_pointColor_value_3); @@ -65074,12 +66947,12 @@ class Serializer : public SerializerBase { const auto value_trackBorderRadius_value = value_trackBorderRadius.value; Ark_Int32 value_trackBorderRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_trackBorderRadius_value_type = value_trackBorderRadius_value.selector; - if (((value_trackBorderRadius_value_type == 0))) { + if (value_trackBorderRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_trackBorderRadius_value_0 = value_trackBorderRadius_value.value0; valueSerializer.writeNumber(value_trackBorderRadius_value_0); } - else if (((value_trackBorderRadius_value_type == 1))) { + else if (value_trackBorderRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_trackBorderRadius_value_1 = value_trackBorderRadius_value.value1; valueSerializer.writeResource(value_trackBorderRadius_value_1); @@ -65169,12 +67042,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeInt32(value_value_1.length); @@ -65186,12 +67059,12 @@ class Serializer : public SerializerBase { const auto value_index = value.index; Ark_Int32 value_index_type = INTEROP_RUNTIME_UNDEFINED; value_index_type = value_index.selector; - if (((value_index_type == 0))) { + if (value_index_type == 0) { valueSerializer.writeInt8(0); const auto value_index_0 = value_index.value0; valueSerializer.writeNumber(value_index_0); } - else if (((value_index_type == 1))) { + else if (value_index_type == 1) { valueSerializer.writeInt8(1); const auto value_index_1 = value_index.value1; valueSerializer.writeInt32(value_index_1.length); @@ -65212,12 +67085,12 @@ class Serializer : public SerializerBase { const auto value_text = value.text; Ark_Int32 value_text_type = INTEROP_RUNTIME_UNDEFINED; value_text_type = value_text.selector; - if (((value_text_type == 0))) { + if (value_text_type == 0) { valueSerializer.writeInt8(0); const auto value_text_0 = value_text.value0; valueSerializer.writeString(value_text_0); } - else if (((value_text_type == 1))) { + else if (value_text_type == 1) { valueSerializer.writeInt8(1); const auto value_text_1 = value_text.value1; valueSerializer.writeResource(value_text_1); @@ -65241,12 +67114,12 @@ class Serializer : public SerializerBase { const auto value_icon = value.icon; Ark_Int32 value_icon_type = INTEROP_RUNTIME_UNDEFINED; value_icon_type = value_icon.selector; - if (((value_icon_type == 0))) { + if (value_icon_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_0 = value_icon.value0; valueSerializer.writeString(value_icon_0); } - else if (((value_icon_type == 1))) { + else if (value_icon_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_1 = value_icon.value1; valueSerializer.writeResource(value_icon_1); @@ -65259,12 +67132,12 @@ class Serializer : public SerializerBase { const auto value_text_value = value_text.value; Ark_Int32 value_text_value_type = INTEROP_RUNTIME_UNDEFINED; value_text_value_type = value_text_value.selector; - if (((value_text_value_type == 0))) { + if (value_text_value_type == 0) { valueSerializer.writeInt8(0); const auto value_text_value_0 = value_text_value.value0; valueSerializer.writeString(value_text_value_0); } - else if (((value_text_value_type == 1))) { + else if (value_text_value_type == 1) { valueSerializer.writeInt8(1); const auto value_text_value_1 = value_text_value.value1; valueSerializer.writeResource(value_text_value_1); @@ -65277,7 +67150,7 @@ class Serializer : public SerializerBase { const auto value_range = value.range; Ark_Int32 value_range_type = INTEROP_RUNTIME_UNDEFINED; value_range_type = value_range.selector; - if (((value_range_type == 0))) { + if (value_range_type == 0) { valueSerializer.writeInt8(0); const auto value_range_0 = value_range.value0; valueSerializer.writeInt32(value_range_0.length); @@ -65286,7 +67159,7 @@ class Serializer : public SerializerBase { valueSerializer.writeString(value_range_0_element); } } - else if (((value_range_type == 1))) { + else if (value_range_type == 1) { valueSerializer.writeInt8(1); const auto value_range_1 = value_range.value1; valueSerializer.writeInt32(value_range_1.length); @@ -65299,12 +67172,12 @@ class Serializer : public SerializerBase { } } } - else if (((value_range_type == 2))) { + else if (value_range_type == 2) { valueSerializer.writeInt8(2); const auto value_range_2 = value_range.value2; valueSerializer.writeResource(value_range_2); } - else if (((value_range_type == 3))) { + else if (value_range_type == 3) { valueSerializer.writeInt8(3); const auto value_range_3 = value_range.value3; valueSerializer.writeInt32(value_range_3.length); @@ -65313,7 +67186,7 @@ class Serializer : public SerializerBase { valueSerializer.writeTextPickerRangeContent(value_range_3_element); } } - else if (((value_range_type == 4))) { + else if (value_range_type == 4) { valueSerializer.writeInt8(4); const auto value_range_4 = value_range.value4; valueSerializer.writeInt32(value_range_4.length); @@ -65330,12 +67203,12 @@ class Serializer : public SerializerBase { const auto value_value_value = value_value.value; Ark_Int32 value_value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_value_type = value_value_value.selector; - if (((value_value_value_type == 0))) { + if (value_value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_value_0 = value_value_value.value0; valueSerializer.writeString(value_value_value_0); } - else if (((value_value_value_type == 1))) { + else if (value_value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_value_1 = value_value_value.value1; valueSerializer.writeInt32(value_value_value_1.length); @@ -65353,12 +67226,12 @@ class Serializer : public SerializerBase { const auto value_selected_value = value_selected.value; Ark_Int32 value_selected_value_type = INTEROP_RUNTIME_UNDEFINED; value_selected_value_type = value_selected_value.selector; - if (((value_selected_value_type == 0))) { + if (value_selected_value_type == 0) { valueSerializer.writeInt8(0); const auto value_selected_value_0 = value_selected_value.value0; valueSerializer.writeNumber(value_selected_value_0); } - else if (((value_selected_value_type == 1))) { + else if (value_selected_value_type == 1) { valueSerializer.writeInt8(1); const auto value_selected_value_1 = value_selected_value.value1; valueSerializer.writeInt32(value_selected_value_1.length); @@ -65380,12 +67253,12 @@ class Serializer : public SerializerBase { const auto value_onIconSrc_value = value_onIconSrc.value; Ark_Int32 value_onIconSrc_value_type = INTEROP_RUNTIME_UNDEFINED; value_onIconSrc_value_type = value_onIconSrc_value.selector; - if (((value_onIconSrc_value_type == 0))) { + if (value_onIconSrc_value_type == 0) { valueSerializer.writeInt8(0); const auto value_onIconSrc_value_0 = value_onIconSrc_value.value0; valueSerializer.writeString(value_onIconSrc_value_0); } - else if (((value_onIconSrc_value_type == 1))) { + else if (value_onIconSrc_value_type == 1) { valueSerializer.writeInt8(1); const auto value_onIconSrc_value_1 = value_onIconSrc_value.value1; valueSerializer.writeResource(value_onIconSrc_value_1); @@ -65399,12 +67272,12 @@ class Serializer : public SerializerBase { const auto value_offIconSrc_value = value_offIconSrc.value; Ark_Int32 value_offIconSrc_value_type = INTEROP_RUNTIME_UNDEFINED; value_offIconSrc_value_type = value_offIconSrc_value.selector; - if (((value_offIconSrc_value_type == 0))) { + if (value_offIconSrc_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offIconSrc_value_0 = value_offIconSrc_value.value0; valueSerializer.writeString(value_offIconSrc_value_0); } - else if (((value_offIconSrc_value_type == 1))) { + else if (value_offIconSrc_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offIconSrc_value_1 = value_offIconSrc_value.value1; valueSerializer.writeResource(value_offIconSrc_value_1); @@ -65422,12 +67295,12 @@ class Serializer : public SerializerBase { const auto value_placeholder_value = value_placeholder.value; Ark_Int32 value_placeholder_value_type = INTEROP_RUNTIME_UNDEFINED; value_placeholder_value_type = value_placeholder_value.selector; - if (((value_placeholder_value_type == 0))) { + if (value_placeholder_value_type == 0) { valueSerializer.writeInt8(0); const auto value_placeholder_value_0 = value_placeholder_value.value0; valueSerializer.writeString(value_placeholder_value_0); } - else if (((value_placeholder_value_type == 1))) { + else if (value_placeholder_value_type == 1) { valueSerializer.writeInt8(1); const auto value_placeholder_value_1 = value_placeholder_value.value1; valueSerializer.writeResource(value_placeholder_value_1); @@ -65441,12 +67314,12 @@ class Serializer : public SerializerBase { const auto value_text_value = value_text.value; Ark_Int32 value_text_value_type = INTEROP_RUNTIME_UNDEFINED; value_text_value_type = value_text_value.selector; - if (((value_text_value_type == 0))) { + if (value_text_value_type == 0) { valueSerializer.writeInt8(0); const auto value_text_value_0 = value_text_value.value0; valueSerializer.writeString(value_text_value_0); } - else if (((value_text_value_type == 1))) { + else if (value_text_value_type == 1) { valueSerializer.writeInt8(1); const auto value_text_value_1 = value_text_value.value1; valueSerializer.writeResource(value_text_value_1); @@ -65461,10 +67334,11 @@ class Serializer : public SerializerBase { valueSerializer.writeTextInputController(value_controller_value); } } - void writeLayoutManager(Ark_LayoutManager value) + void writeTextBox(Ark_TextBox value) { Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); + const auto value__TextBoxStub = value._TextBoxStub; + valueSerializer.writeString(value__TextBoxStub); } void writeStyledStringController(Ark_StyledStringController value) { @@ -65512,12 +67386,12 @@ class Serializer : public SerializerBase { const auto value_placeholder_value = value_placeholder.value; Ark_Int32 value_placeholder_value_type = INTEROP_RUNTIME_UNDEFINED; value_placeholder_value_type = value_placeholder_value.selector; - if (((value_placeholder_value_type == 0))) { + if (value_placeholder_value_type == 0) { valueSerializer.writeInt8(0); const auto value_placeholder_value_0 = value_placeholder_value.value0; valueSerializer.writeString(value_placeholder_value_0); } - else if (((value_placeholder_value_type == 1))) { + else if (value_placeholder_value_type == 1) { valueSerializer.writeInt8(1); const auto value_placeholder_value_1 = value_placeholder_value.value1; valueSerializer.writeResource(value_placeholder_value_1); @@ -65531,12 +67405,12 @@ class Serializer : public SerializerBase { const auto value_text_value = value_text.value; Ark_Int32 value_text_value_type = INTEROP_RUNTIME_UNDEFINED; value_text_value_type = value_text_value.selector; - if (((value_text_value_type == 0))) { + if (value_text_value_type == 0) { valueSerializer.writeInt8(0); const auto value_text_value_0 = value_text_value.value0; valueSerializer.writeString(value_text_value_0); } - else if (((value_text_value_type == 1))) { + else if (value_text_value_type == 1) { valueSerializer.writeInt8(1); const auto value_text_value_1 = value_text_value.value1; valueSerializer.writeResource(value_text_value_1); @@ -65766,12 +67640,12 @@ class Serializer : public SerializerBase { const auto value_image_value = value_image.value; Ark_Int32 value_image_value_type = INTEROP_RUNTIME_UNDEFINED; value_image_value_type = value_image_value.selector; - if (((value_image_value_type == 0))) { + if (value_image_value_type == 0) { valueSerializer.writeInt8(0); const auto value_image_value_0 = value_image_value.value0; valueSerializer.writeString(value_image_value_0); } - else if (((value_image_value_type == 1))) { + else if (value_image_value_type == 1) { valueSerializer.writeInt8(1); const auto value_image_value_1 = value_image_value.value1; valueSerializer.writeResource(value_image_value_1); @@ -65857,12 +67731,12 @@ class Serializer : public SerializerBase { const auto value_x_value = value_x.value; Ark_Int32 value_x_value_type = INTEROP_RUNTIME_UNDEFINED; value_x_value_type = value_x_value.selector; - if (((value_x_value_type == 0))) { + if (value_x_value_type == 0) { valueSerializer.writeInt8(0); const auto value_x_value_0 = value_x_value.value0; valueSerializer.writeNumber(value_x_value_0); } - else if (((value_x_value_type == 1))) { + else if (value_x_value_type == 1) { valueSerializer.writeInt8(1); const auto value_x_value_1 = value_x_value.value1; valueSerializer.writeString(value_x_value_1); @@ -65876,12 +67750,12 @@ class Serializer : public SerializerBase { const auto value_y_value = value_y.value; Ark_Int32 value_y_value_type = INTEROP_RUNTIME_UNDEFINED; value_y_value_type = value_y_value.selector; - if (((value_y_value_type == 0))) { + if (value_y_value_type == 0) { valueSerializer.writeInt8(0); const auto value_y_value_0 = value_y_value.value0; valueSerializer.writeNumber(value_y_value_0); } - else if (((value_y_value_type == 1))) { + else if (value_y_value_type == 1) { valueSerializer.writeInt8(1); const auto value_y_value_1 = value_y_value.value1; valueSerializer.writeString(value_y_value_1); @@ -65895,12 +67769,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -65914,12 +67788,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -65932,12 +67806,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -65950,12 +67824,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -66001,22 +67875,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -66031,14 +67905,6 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_style_value)); } } - void writePreviewText(Ark_PreviewText value) - { - Serializer& valueSerializer = *this; - const auto value_offset = value.offset; - valueSerializer.writeNumber(value_offset); - const auto value_value = value.value; - valueSerializer.writeString(value_value); - } void writeCaretStyle(Ark_CaretStyle value) { Serializer& valueSerializer = *this; @@ -66058,22 +67924,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -66099,12 +67965,12 @@ class Serializer : public SerializerBase { const auto value_placeholder_value = value_placeholder.value; Ark_Int32 value_placeholder_value_type = INTEROP_RUNTIME_UNDEFINED; value_placeholder_value_type = value_placeholder_value.selector; - if (((value_placeholder_value_type == 0))) { + if (value_placeholder_value_type == 0) { valueSerializer.writeInt8(0); const auto value_placeholder_value_0 = value_placeholder_value.value0; valueSerializer.writeString(value_placeholder_value_0); } - else if (((value_placeholder_value_type == 1))) { + else if (value_placeholder_value_type == 1) { valueSerializer.writeInt8(1); const auto value_placeholder_value_1 = value_placeholder_value.value1; valueSerializer.writeResource(value_placeholder_value_1); @@ -66182,12 +68048,12 @@ class Serializer : public SerializerBase { const auto value_snapPagination_value = value_snapPagination.value; Ark_Int32 value_snapPagination_value_type = INTEROP_RUNTIME_UNDEFINED; value_snapPagination_value_type = value_snapPagination_value.selector; - if (((value_snapPagination_value_type == 0)) || ((value_snapPagination_value_type == 0)) || ((value_snapPagination_value_type == 0))) { + if ((value_snapPagination_value_type == 0) || (value_snapPagination_value_type == 0) || (value_snapPagination_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_snapPagination_value_0 = value_snapPagination_value.value0; valueSerializer.writeLength(value_snapPagination_value_0); } - else if (((value_snapPagination_value_type == 1))) { + else if (value_snapPagination_value_type == 1) { valueSerializer.writeInt8(1); const auto value_snapPagination_value_1 = value_snapPagination_value.value1; valueSerializer.writeInt32(value_snapPagination_value_1.length); @@ -66259,12 +68125,12 @@ class Serializer : public SerializerBase { const auto value_space_value = value_space.value; Ark_Int32 value_space_value_type = INTEROP_RUNTIME_UNDEFINED; value_space_value_type = value_space_value.selector; - if (((value_space_value_type == 0))) { + if (value_space_value_type == 0) { valueSerializer.writeInt8(0); const auto value_space_value_0 = value_space_value.value0; valueSerializer.writeString(value_space_value_0); } - else if (((value_space_value_type == 1))) { + else if (value_space_value_type == 1) { valueSerializer.writeInt8(1); const auto value_space_value_1 = value_space_value.value1; valueSerializer.writeNumber(value_space_value_1); @@ -66375,22 +68241,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -66434,12 +68300,12 @@ class Serializer : public SerializerBase { const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value_richEditorDeleteSpans_element = value_richEditorDeleteSpans.array[i]; Ark_Int32 value_richEditorDeleteSpans_element_type = INTEROP_RUNTIME_UNDEFINED; value_richEditorDeleteSpans_element_type = value_richEditorDeleteSpans_element.selector; - if (((value_richEditorDeleteSpans_element_type == 0))) { + if (value_richEditorDeleteSpans_element_type == 0) { valueSerializer.writeInt8(0); const auto value_richEditorDeleteSpans_element_0 = value_richEditorDeleteSpans_element.value0; valueSerializer.writeRichEditorTextSpanResult(value_richEditorDeleteSpans_element_0); } - else if (((value_richEditorDeleteSpans_element_type == 1))) { + else if (value_richEditorDeleteSpans_element_type == 1) { valueSerializer.writeInt8(1); const auto value_richEditorDeleteSpans_element_1 = value_richEditorDeleteSpans_element.value1; valueSerializer.writeRichEditorImageSpanResult(value_richEditorDeleteSpans_element_1); @@ -66462,32 +68328,6 @@ class Serializer : public SerializerBase { valueSerializer.writeString(value_previewText_value); } } - void writeRichEditorSelection(Ark_RichEditorSelection value) - { - Serializer& valueSerializer = *this; - const auto value_selection = value.selection; - const auto value_selection_0 = value_selection.value0; - valueSerializer.writeNumber(value_selection_0); - const auto value_selection_1 = value_selection.value1; - valueSerializer.writeNumber(value_selection_1); - const auto value_spans = value.spans; - valueSerializer.writeInt32(value_spans.length); - for (int i = 0; i < value_spans.length; i++) { - const Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value_spans_element = value_spans.array[i]; - Ark_Int32 value_spans_element_type = INTEROP_RUNTIME_UNDEFINED; - value_spans_element_type = value_spans_element.selector; - if (((value_spans_element_type == 0))) { - valueSerializer.writeInt8(0); - const auto value_spans_element_0 = value_spans_element.value0; - valueSerializer.writeRichEditorTextSpanResult(value_spans_element_0); - } - else if (((value_spans_element_type == 1))) { - valueSerializer.writeInt8(1); - const auto value_spans_element_1 = value_spans_element.value1; - valueSerializer.writeRichEditorImageSpanResult(value_spans_element_1); - } - } - } void writeStyledStringChangeValue(Ark_StyledStringChangeValue value) { Serializer& valueSerializer = *this; @@ -66504,6 +68344,17 @@ class Serializer : public SerializerBase { valueSerializer.writeStyledString(value_previewText_value); } } + void writeRichEditorParagraphResult(Ark_RichEditorParagraphResult value) + { + Serializer& valueSerializer = *this; + const auto value_style = value.style; + valueSerializer.writeRichEditorParagraphStyle(value_style); + const auto value_range = value.range; + const auto value_range_0 = value_range.value0; + valueSerializer.writeNumber(value_range_0); + const auto value_range_1 = value_range.value1; + valueSerializer.writeNumber(value_range_1); + } void writeRichEditorBaseController(Ark_RichEditorBaseController value) { Serializer& valueSerializer = *this; @@ -66560,12 +68411,12 @@ class Serializer : public SerializerBase { const auto value_offset_value = value_offset.value; Ark_Int32 value_offset_value_type = INTEROP_RUNTIME_UNDEFINED; value_offset_value_type = value_offset_value.selector; - if (((value_offset_value_type == 0))) { + if (value_offset_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offset_value_0 = value_offset_value.value0; valueSerializer.writeNumber(value_offset_value_0); } - else if (((value_offset_value_type == 1))) { + else if (value_offset_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offset_value_1 = value_offset_value.value1; valueSerializer.writeString(value_offset_value_1); @@ -66579,12 +68430,12 @@ class Serializer : public SerializerBase { const auto value_friction_value = value_friction.value; Ark_Int32 value_friction_value_type = INTEROP_RUNTIME_UNDEFINED; value_friction_value_type = value_friction_value.selector; - if (((value_friction_value_type == 0))) { + if (value_friction_value_type == 0) { valueSerializer.writeInt8(0); const auto value_friction_value_0 = value_friction_value.value0; valueSerializer.writeNumber(value_friction_value_0); } - else if (((value_friction_value_type == 1))) { + else if (value_friction_value_type == 1) { valueSerializer.writeInt8(1); const auto value_friction_value_1 = value_friction_value.value1; valueSerializer.writeString(value_friction_value_1); @@ -66598,12 +68449,12 @@ class Serializer : public SerializerBase { const auto value_promptText_value = value_promptText.value; Ark_Int32 value_promptText_value_type = INTEROP_RUNTIME_UNDEFINED; value_promptText_value_type = value_promptText_value.selector; - if (((value_promptText_value_type == 0))) { + if (value_promptText_value_type == 0) { valueSerializer.writeInt8(0); const auto value_promptText_value_0 = value_promptText_value.value0; valueSerializer.writeString(value_promptText_value_0); } - else if (((value_promptText_value_type == 1))) { + else if (value_promptText_value_type == 1) { valueSerializer.writeInt8(1); const auto value_promptText_value_1 = value_promptText_value.value1; valueSerializer.writeResource(value_promptText_value_1); @@ -66669,22 +68520,22 @@ class Serializer : public SerializerBase { const auto value_checkedBackgroundColor_value = value_checkedBackgroundColor.value; Ark_Int32 value_checkedBackgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_checkedBackgroundColor_value_type = value_checkedBackgroundColor_value.selector; - if (((value_checkedBackgroundColor_value_type == 0))) { + if (value_checkedBackgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_checkedBackgroundColor_value_0 = value_checkedBackgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_checkedBackgroundColor_value_0)); } - else if (((value_checkedBackgroundColor_value_type == 1))) { + else if (value_checkedBackgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_checkedBackgroundColor_value_1 = value_checkedBackgroundColor_value.value1; valueSerializer.writeNumber(value_checkedBackgroundColor_value_1); } - else if (((value_checkedBackgroundColor_value_type == 2))) { + else if (value_checkedBackgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_checkedBackgroundColor_value_2 = value_checkedBackgroundColor_value.value2; valueSerializer.writeString(value_checkedBackgroundColor_value_2); } - else if (((value_checkedBackgroundColor_value_type == 3))) { + else if (value_checkedBackgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_checkedBackgroundColor_value_3 = value_checkedBackgroundColor_value.value3; valueSerializer.writeResource(value_checkedBackgroundColor_value_3); @@ -66698,22 +68549,22 @@ class Serializer : public SerializerBase { const auto value_uncheckedBorderColor_value = value_uncheckedBorderColor.value; Ark_Int32 value_uncheckedBorderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_uncheckedBorderColor_value_type = value_uncheckedBorderColor_value.selector; - if (((value_uncheckedBorderColor_value_type == 0))) { + if (value_uncheckedBorderColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_uncheckedBorderColor_value_0 = value_uncheckedBorderColor_value.value0; valueSerializer.writeInt32(static_cast(value_uncheckedBorderColor_value_0)); } - else if (((value_uncheckedBorderColor_value_type == 1))) { + else if (value_uncheckedBorderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_uncheckedBorderColor_value_1 = value_uncheckedBorderColor_value.value1; valueSerializer.writeNumber(value_uncheckedBorderColor_value_1); } - else if (((value_uncheckedBorderColor_value_type == 2))) { + else if (value_uncheckedBorderColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_uncheckedBorderColor_value_2 = value_uncheckedBorderColor_value.value2; valueSerializer.writeString(value_uncheckedBorderColor_value_2); } - else if (((value_uncheckedBorderColor_value_type == 3))) { + else if (value_uncheckedBorderColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_uncheckedBorderColor_value_3 = value_uncheckedBorderColor_value.value3; valueSerializer.writeResource(value_uncheckedBorderColor_value_3); @@ -66727,22 +68578,22 @@ class Serializer : public SerializerBase { const auto value_indicatorColor_value = value_indicatorColor.value; Ark_Int32 value_indicatorColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_indicatorColor_value_type = value_indicatorColor_value.selector; - if (((value_indicatorColor_value_type == 0))) { + if (value_indicatorColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_indicatorColor_value_0 = value_indicatorColor_value.value0; valueSerializer.writeInt32(static_cast(value_indicatorColor_value_0)); } - else if (((value_indicatorColor_value_type == 1))) { + else if (value_indicatorColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_indicatorColor_value_1 = value_indicatorColor_value.value1; valueSerializer.writeNumber(value_indicatorColor_value_1); } - else if (((value_indicatorColor_value_type == 2))) { + else if (value_indicatorColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_indicatorColor_value_2 = value_indicatorColor_value.value2; valueSerializer.writeString(value_indicatorColor_value_2); } - else if (((value_indicatorColor_value_type == 3))) { + else if (value_indicatorColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_indicatorColor_value_3 = value_indicatorColor_value.value3; valueSerializer.writeResource(value_indicatorColor_value_3); @@ -66816,12 +68667,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -66835,12 +68686,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -66866,12 +68717,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -66885,12 +68736,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -66929,12 +68780,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -66948,12 +68799,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -67024,12 +68875,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -67042,12 +68893,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -67087,12 +68938,12 @@ class Serializer : public SerializerBase { const auto value_activeIcon_value = value_activeIcon.value; Ark_Int32 value_activeIcon_value_type = INTEROP_RUNTIME_UNDEFINED; value_activeIcon_value_type = value_activeIcon_value.selector; - if (((value_activeIcon_value_type == 0))) { + if (value_activeIcon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_activeIcon_value_0 = value_activeIcon_value.value0; valueSerializer.writeString(value_activeIcon_value_0); } - else if (((value_activeIcon_value_type == 1))) { + else if (value_activeIcon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_activeIcon_value_1 = value_activeIcon_value.value1; valueSerializer.writeResource(value_activeIcon_value_1); @@ -67113,12 +68964,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -67131,12 +68982,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -67188,23 +69039,23 @@ class Serializer : public SerializerBase { const auto value_header_value = value_header.value; Ark_Int32 value_header_value_type = INTEROP_RUNTIME_UNDEFINED; value_header_value_type = value_header_value.selector; - if (((value_header_value_type == 0)) || ((value_header_value_type == 0))) { + if ((value_header_value_type == 0) || (value_header_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_header_value_0 = value_header_value.value0; Ark_Int32 value_header_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_header_value_0_type = value_header_value_0.selector; - if (((value_header_value_0_type == 0))) { + if (value_header_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_header_value_0_0 = value_header_value_0.value0; valueSerializer.writeString(value_header_value_0_0); } - else if (((value_header_value_0_type == 1))) { + else if (value_header_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_header_value_0_1 = value_header_value_0.value1; valueSerializer.writeResource(value_header_value_0_1); } } - else if (((value_header_value_type == 1))) { + else if (value_header_value_type == 1) { valueSerializer.writeInt8(1); const auto value_header_value_1 = value_header_value.value1; valueSerializer.writeCallbackResource(value_header_value_1.resource); @@ -67220,23 +69071,23 @@ class Serializer : public SerializerBase { const auto value_footer_value = value_footer.value; Ark_Int32 value_footer_value_type = INTEROP_RUNTIME_UNDEFINED; value_footer_value_type = value_footer_value.selector; - if (((value_footer_value_type == 0)) || ((value_footer_value_type == 0))) { + if ((value_footer_value_type == 0) || (value_footer_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_footer_value_0 = value_footer_value.value0; Ark_Int32 value_footer_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_footer_value_0_type = value_footer_value_0.selector; - if (((value_footer_value_0_type == 0))) { + if (value_footer_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_footer_value_0_0 = value_footer_value_0.value0; valueSerializer.writeString(value_footer_value_0_0); } - else if (((value_footer_value_0_type == 1))) { + else if (value_footer_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_footer_value_0_1 = value_footer_value_0.value1; valueSerializer.writeResource(value_footer_value_0_1); } } - else if (((value_footer_value_type == 1))) { + else if (value_footer_value_type == 1) { valueSerializer.writeInt8(1); const auto value_footer_value_1 = value_footer_value.value1; valueSerializer.writeCallbackResource(value_footer_value_1.resource); @@ -67352,12 +69203,12 @@ class Serializer : public SerializerBase { const auto value_space_value = value_space.value; Ark_Int32 value_space_value_type = INTEROP_RUNTIME_UNDEFINED; value_space_value_type = value_space_value.selector; - if (((value_space_value_type == 0))) { + if (value_space_value_type == 0) { valueSerializer.writeInt8(0); const auto value_space_value_0 = value_space_value.value0; valueSerializer.writeNumber(value_space_value_0); } - else if (((value_space_value_type == 1))) { + else if (value_space_value_type == 1) { valueSerializer.writeInt8(1); const auto value_space_value_1 = value_space_value.value1; valueSerializer.writeString(value_space_value_1); @@ -67383,14 +69234,14 @@ class Serializer : public SerializerBase { const auto value_start_value = value_start.value; Ark_Int32 value_start_value_type = INTEROP_RUNTIME_UNDEFINED; value_start_value_type = value_start_value.selector; - if (((value_start_value_type == 0))) { + if (value_start_value_type == 0) { valueSerializer.writeInt8(0); const auto value_start_value_0 = value_start_value.value0; valueSerializer.writeCallbackResource(value_start_value_0.resource); valueSerializer.writePointer(reinterpret_cast(value_start_value_0.call)); valueSerializer.writePointer(reinterpret_cast(value_start_value_0.callSync)); } - else if (((value_start_value_type == 1))) { + else if (value_start_value_type == 1) { valueSerializer.writeInt8(1); const auto value_start_value_1 = value_start_value.value1; valueSerializer.writeSwipeActionItem(value_start_value_1); @@ -67404,14 +69255,14 @@ class Serializer : public SerializerBase { const auto value_end_value = value_end.value; Ark_Int32 value_end_value_type = INTEROP_RUNTIME_UNDEFINED; value_end_value_type = value_end_value.selector; - if (((value_end_value_type == 0))) { + if (value_end_value_type == 0) { valueSerializer.writeInt8(0); const auto value_end_value_0 = value_end_value.value0; valueSerializer.writeCallbackResource(value_end_value_0.resource); valueSerializer.writePointer(reinterpret_cast(value_end_value_0.call)); valueSerializer.writePointer(reinterpret_cast(value_end_value_0.callSync)); } - else if (((value_end_value_type == 1))) { + else if (value_end_value_type == 1) { valueSerializer.writeInt8(1); const auto value_end_value_1 = value_end_value.value1; valueSerializer.writeSwipeActionItem(value_end_value_1); @@ -67448,28 +69299,6 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_style_value)); } } - void writeVisibleListContentInfo(Ark_VisibleListContentInfo value) - { - Serializer& valueSerializer = *this; - const auto value_index = value.index; - valueSerializer.writeNumber(value_index); - const auto value_itemGroupArea = value.itemGroupArea; - Ark_Int32 value_itemGroupArea_type = INTEROP_RUNTIME_UNDEFINED; - value_itemGroupArea_type = runtimeType(value_itemGroupArea); - valueSerializer.writeInt8(value_itemGroupArea_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_itemGroupArea_type)) { - const auto value_itemGroupArea_value = value_itemGroupArea.value; - valueSerializer.writeInt32(static_cast(value_itemGroupArea_value)); - } - const auto value_itemIndexInGroup = value.itemIndexInGroup; - Ark_Int32 value_itemIndexInGroup_type = INTEROP_RUNTIME_UNDEFINED; - value_itemIndexInGroup_type = runtimeType(value_itemIndexInGroup); - valueSerializer.writeInt8(value_itemIndexInGroup_type); - if ((INTEROP_RUNTIME_UNDEFINED) != (value_itemIndexInGroup_type)) { - const auto value_itemIndexInGroup_value = value_itemIndexInGroup.value; - valueSerializer.writeNumber(value_itemIndexInGroup_value); - } - } void writeChainAnimationOptions(Ark_ChainAnimationOptions value) { Serializer& valueSerializer = *this; @@ -67537,12 +69366,12 @@ class Serializer : public SerializerBase { const auto value_space_value = value_space.value; Ark_Int32 value_space_value_type = INTEROP_RUNTIME_UNDEFINED; value_space_value_type = value_space_value.selector; - if (((value_space_value_type == 0))) { + if (value_space_value_type == 0) { valueSerializer.writeInt8(0); const auto value_space_value_0 = value_space_value.value0; valueSerializer.writeNumber(value_space_value_0); } - else if (((value_space_value_type == 1))) { + else if (value_space_value_type == 1) { valueSerializer.writeInt8(1); const auto value_space_value_1 = value_space_value.value1; valueSerializer.writeString(value_space_value_1); @@ -67573,12 +69402,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -67592,12 +69421,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -67632,17 +69461,17 @@ class Serializer : public SerializerBase { const auto value_src = value.src; Ark_Int32 value_src_type = INTEROP_RUNTIME_UNDEFINED; value_src_type = value_src.selector; - if (((value_src_type == 0))) { + if (value_src_type == 0) { valueSerializer.writeInt8(0); const auto value_src_0 = value_src.value0; valueSerializer.writeString(value_src_0); } - else if (((value_src_type == 1))) { + else if (value_src_type == 1) { valueSerializer.writeInt8(1); const auto value_src_1 = value_src.value1; valueSerializer.writeResource(value_src_1); } - else if (((value_src_type == 2))) { + else if (value_src_type == 2) { valueSerializer.writeInt8(2); const auto value_src_2 = value_src.value2; valueSerializer.writePixelMap(value_src_2); @@ -67655,12 +69484,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeNumber(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeString(value_width_value_1); @@ -67674,12 +69503,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeNumber(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeString(value_height_value_1); @@ -67693,12 +69522,12 @@ class Serializer : public SerializerBase { const auto value_top_value = value_top.value; Ark_Int32 value_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_top_value_type = value_top_value.selector; - if (((value_top_value_type == 0))) { + if (value_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_top_value_0 = value_top_value.value0; valueSerializer.writeNumber(value_top_value_0); } - else if (((value_top_value_type == 1))) { + else if (value_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_top_value_1 = value_top_value.value1; valueSerializer.writeString(value_top_value_1); @@ -67712,12 +69541,12 @@ class Serializer : public SerializerBase { const auto value_left_value = value_left.value; Ark_Int32 value_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_left_value_type = value_left_value.selector; - if (((value_left_value_type == 0))) { + if (value_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_left_value_0 = value_left_value.value0; valueSerializer.writeNumber(value_left_value_0); } - else if (((value_left_value_type == 1))) { + else if (value_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_left_value_1 = value_left_value.value1; valueSerializer.writeString(value_left_value_1); @@ -67767,12 +69596,12 @@ class Serializer : public SerializerBase { const auto value_gutter_value = value_gutter.value; Ark_Int32 value_gutter_value_type = INTEROP_RUNTIME_UNDEFINED; value_gutter_value_type = value_gutter_value.selector; - if (((value_gutter_value_type == 0)) || ((value_gutter_value_type == 0)) || ((value_gutter_value_type == 0))) { + if ((value_gutter_value_type == 0) || (value_gutter_value_type == 0) || (value_gutter_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_gutter_value_0 = value_gutter_value.value0; valueSerializer.writeLength(value_gutter_value_0); } - else if (((value_gutter_value_type == 1))) { + else if (value_gutter_value_type == 1) { valueSerializer.writeInt8(1); const auto value_gutter_value_1 = value_gutter_value.value1; valueSerializer.writeGutterOption(value_gutter_value_1); @@ -67786,12 +69615,12 @@ class Serializer : public SerializerBase { const auto value_columns_value = value_columns.value; Ark_Int32 value_columns_value_type = INTEROP_RUNTIME_UNDEFINED; value_columns_value_type = value_columns_value.selector; - if (((value_columns_value_type == 0))) { + if (value_columns_value_type == 0) { valueSerializer.writeInt8(0); const auto value_columns_value_0 = value_columns_value.value0; valueSerializer.writeNumber(value_columns_value_0); } - else if (((value_columns_value_type == 1))) { + else if (value_columns_value_type == 1) { valueSerializer.writeInt8(1); const auto value_columns_value_1 = value_columns_value.value1; valueSerializer.writeGridRowColumnOption(value_columns_value_1); @@ -67825,12 +69654,12 @@ class Serializer : public SerializerBase { const auto value_columns_value = value_columns.value; Ark_Int32 value_columns_value_type = INTEROP_RUNTIME_UNDEFINED; value_columns_value_type = value_columns_value.selector; - if (((value_columns_value_type == 0))) { + if (value_columns_value_type == 0) { valueSerializer.writeInt8(0); const auto value_columns_value_0 = value_columns_value.value0; valueSerializer.writeNumber(value_columns_value_0); } - else if (((value_columns_value_type == 1))) { + else if (value_columns_value_type == 1) { valueSerializer.writeInt8(1); const auto value_columns_value_1 = value_columns_value.value1; valueSerializer.writeString(value_columns_value_1); @@ -67852,12 +69681,12 @@ class Serializer : public SerializerBase { const auto value_gutter_value = value_gutter.value; Ark_Int32 value_gutter_value_type = INTEROP_RUNTIME_UNDEFINED; value_gutter_value_type = value_gutter_value.selector; - if (((value_gutter_value_type == 0))) { + if (value_gutter_value_type == 0) { valueSerializer.writeInt8(0); const auto value_gutter_value_0 = value_gutter_value.value0; valueSerializer.writeNumber(value_gutter_value_0); } - else if (((value_gutter_value_type == 1))) { + else if (value_gutter_value_type == 1) { valueSerializer.writeInt8(1); const auto value_gutter_value_1 = value_gutter_value.value1; valueSerializer.writeString(value_gutter_value_1); @@ -67871,12 +69700,12 @@ class Serializer : public SerializerBase { const auto value_margin_value = value_margin.value; Ark_Int32 value_margin_value_type = INTEROP_RUNTIME_UNDEFINED; value_margin_value_type = value_margin_value.selector; - if (((value_margin_value_type == 0))) { + if (value_margin_value_type == 0) { valueSerializer.writeInt8(0); const auto value_margin_value_0 = value_margin_value.value0; valueSerializer.writeNumber(value_margin_value_0); } - else if (((value_margin_value_type == 1))) { + else if (value_margin_value_type == 1) { valueSerializer.writeInt8(1); const auto value_margin_value_1 = value_margin_value.value1; valueSerializer.writeString(value_margin_value_1); @@ -67894,12 +69723,12 @@ class Serializer : public SerializerBase { const auto value_span_value = value_span.value; Ark_Int32 value_span_value_type = INTEROP_RUNTIME_UNDEFINED; value_span_value_type = value_span_value.selector; - if (((value_span_value_type == 0))) { + if (value_span_value_type == 0) { valueSerializer.writeInt8(0); const auto value_span_value_0 = value_span_value.value0; valueSerializer.writeNumber(value_span_value_0); } - else if (((value_span_value_type == 1))) { + else if (value_span_value_type == 1) { valueSerializer.writeInt8(1); const auto value_span_value_1 = value_span_value.value1; valueSerializer.writeGridColColumnOption(value_span_value_1); @@ -67913,12 +69742,12 @@ class Serializer : public SerializerBase { const auto value_offset_value = value_offset.value; Ark_Int32 value_offset_value_type = INTEROP_RUNTIME_UNDEFINED; value_offset_value_type = value_offset_value.selector; - if (((value_offset_value_type == 0))) { + if (value_offset_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offset_value_0 = value_offset_value.value0; valueSerializer.writeNumber(value_offset_value_0); } - else if (((value_offset_value_type == 1))) { + else if (value_offset_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offset_value_1 = value_offset_value.value1; valueSerializer.writeGridColColumnOption(value_offset_value_1); @@ -67932,12 +69761,12 @@ class Serializer : public SerializerBase { const auto value_order_value = value_order.value; Ark_Int32 value_order_value_type = INTEROP_RUNTIME_UNDEFINED; value_order_value_type = value_order_value.selector; - if (((value_order_value_type == 0))) { + if (value_order_value_type == 0) { valueSerializer.writeInt8(0); const auto value_order_value_0 = value_order_value.value0; valueSerializer.writeNumber(value_order_value_0); } - else if (((value_order_value_type == 1))) { + else if (value_order_value_type == 1) { valueSerializer.writeInt8(1); const auto value_order_value_1 = value_order_value.value1; valueSerializer.writeGridColColumnOption(value_order_value_1); @@ -68018,21 +69847,11 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeEventTargetInfo(Ark_EventTargetInfo value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeScrollableTargetInfo(Ark_ScrollableTargetInfo value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writePanGestureOptions(Ark_PanGestureOptions value) - { - Serializer& valueSerializer = *this; - valueSerializer.writePointer(value); - } void writeGestureEvent(Ark_GestureEvent value) { Serializer& valueSerializer = *this; @@ -68079,12 +69898,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -68110,12 +69929,12 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; valueSerializer.writeNumber(value_radius_value_0); } - else if (((value_radius_value_type == 1))) { + else if (value_radius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeResource(value_radius_value_1); @@ -68129,12 +69948,12 @@ class Serializer : public SerializerBase { const auto value_offsetX_value = value_offsetX.value; Ark_Int32 value_offsetX_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetX_value_type = value_offsetX_value.selector; - if (((value_offsetX_value_type == 0))) { + if (value_offsetX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetX_value_0 = value_offsetX_value.value0; valueSerializer.writeNumber(value_offsetX_value_0); } - else if (((value_offsetX_value_type == 1))) { + else if (value_offsetX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetX_value_1 = value_offsetX_value.value1; valueSerializer.writeResource(value_offsetX_value_1); @@ -68148,12 +69967,12 @@ class Serializer : public SerializerBase { const auto value_offsetY_value = value_offsetY.value; Ark_Int32 value_offsetY_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetY_value_type = value_offsetY_value.selector; - if (((value_offsetY_value_type == 0))) { + if (value_offsetY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetY_value_0 = value_offsetY_value.value0; valueSerializer.writeNumber(value_offsetY_value_0); } - else if (((value_offsetY_value_type == 1))) { + else if (value_offsetY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetY_value_1 = value_offsetY_value.value1; valueSerializer.writeResource(value_offsetY_value_1); @@ -68242,12 +70061,12 @@ class Serializer : public SerializerBase { const auto value_id = value.id; Ark_Int32 value_id_type = INTEROP_RUNTIME_UNDEFINED; value_id_type = value_id.selector; - if (((value_id_type == 0))) { + if (value_id_type == 0) { valueSerializer.writeInt8(0); const auto value_id_0 = value_id.value0; valueSerializer.writeNumber(value_id_0); } - else if (((value_id_type == 1))) { + else if (value_id_type == 1) { valueSerializer.writeInt8(1); const auto value_id_1 = value_id.value1; valueSerializer.writeString(value_id_1); @@ -68412,12 +70231,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -68431,12 +70250,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -68515,12 +70334,12 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; valueSerializer.writeNumber(value_radius_value_0); } - else if (((value_radius_value_type == 1))) { + else if (value_radius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeResource(value_radius_value_1); @@ -68534,12 +70353,12 @@ class Serializer : public SerializerBase { const auto value_offsetX_value = value_offsetX.value; Ark_Int32 value_offsetX_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetX_value_type = value_offsetX_value.selector; - if (((value_offsetX_value_type == 0))) { + if (value_offsetX_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetX_value_0 = value_offsetX_value.value0; valueSerializer.writeNumber(value_offsetX_value_0); } - else if (((value_offsetX_value_type == 1))) { + else if (value_offsetX_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetX_value_1 = value_offsetX_value.value1; valueSerializer.writeResource(value_offsetX_value_1); @@ -68553,12 +70372,12 @@ class Serializer : public SerializerBase { const auto value_offsetY_value = value_offsetY.value; Ark_Int32 value_offsetY_value_type = INTEROP_RUNTIME_UNDEFINED; value_offsetY_value_type = value_offsetY_value.selector; - if (((value_offsetY_value_type == 0))) { + if (value_offsetY_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offsetY_value_0 = value_offsetY_value.value0; valueSerializer.writeNumber(value_offsetY_value_0); } - else if (((value_offsetY_value_type == 1))) { + else if (value_offsetY_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offsetY_value_1 = value_offsetY_value.value1; valueSerializer.writeResource(value_offsetY_value_1); @@ -68575,33 +70394,33 @@ class Serializer : public SerializerBase { const Ark_Union_ResourceColor_LinearGradient value_colors_value_element = value_colors_value.array[i]; Ark_Int32 value_colors_value_element_type = INTEROP_RUNTIME_UNDEFINED; value_colors_value_element_type = value_colors_value_element.selector; - if (((value_colors_value_element_type == 0)) || ((value_colors_value_element_type == 0)) || ((value_colors_value_element_type == 0)) || ((value_colors_value_element_type == 0))) { + if ((value_colors_value_element_type == 0) || (value_colors_value_element_type == 0) || (value_colors_value_element_type == 0) || (value_colors_value_element_type == 0)) { valueSerializer.writeInt8(0); const auto value_colors_value_element_0 = value_colors_value_element.value0; Ark_Int32 value_colors_value_element_0_type = INTEROP_RUNTIME_UNDEFINED; value_colors_value_element_0_type = value_colors_value_element_0.selector; - if (((value_colors_value_element_0_type == 0))) { + if (value_colors_value_element_0_type == 0) { valueSerializer.writeInt8(0); const auto value_colors_value_element_0_0 = value_colors_value_element_0.value0; valueSerializer.writeInt32(static_cast(value_colors_value_element_0_0)); } - else if (((value_colors_value_element_0_type == 1))) { + else if (value_colors_value_element_0_type == 1) { valueSerializer.writeInt8(1); const auto value_colors_value_element_0_1 = value_colors_value_element_0.value1; valueSerializer.writeNumber(value_colors_value_element_0_1); } - else if (((value_colors_value_element_0_type == 2))) { + else if (value_colors_value_element_0_type == 2) { valueSerializer.writeInt8(2); const auto value_colors_value_element_0_2 = value_colors_value_element_0.value2; valueSerializer.writeString(value_colors_value_element_0_2); } - else if (((value_colors_value_element_0_type == 3))) { + else if (value_colors_value_element_0_type == 3) { valueSerializer.writeInt8(3); const auto value_colors_value_element_0_3 = value_colors_value_element_0.value3; valueSerializer.writeResource(value_colors_value_element_0_3); } } - else if (((value_colors_value_element_type == 1))) { + else if (value_colors_value_element_type == 1) { valueSerializer.writeInt8(1); const auto value_colors_value_element_1 = value_colors_value_element.value1; valueSerializer.writeLinearGradient(value_colors_value_element_1); @@ -68641,22 +70460,22 @@ class Serializer : public SerializerBase { const auto value_color = value.color; Ark_Int32 value_color_type = INTEROP_RUNTIME_UNDEFINED; value_color_type = value_color.selector; - if (((value_color_type == 0))) { + if (value_color_type == 0) { valueSerializer.writeInt8(0); const auto value_color_0 = value_color.value0; valueSerializer.writeInt32(static_cast(value_color_0)); } - else if (((value_color_type == 1))) { + else if (value_color_type == 1) { valueSerializer.writeInt8(1); const auto value_color_1 = value_color.value1; valueSerializer.writeNumber(value_color_1); } - else if (((value_color_type == 2))) { + else if (value_color_type == 2) { valueSerializer.writeInt8(2); const auto value_color_2 = value_color.value2; valueSerializer.writeString(value_color_2); } - else if (((value_color_type == 3))) { + else if (value_color_type == 3) { valueSerializer.writeInt8(3); const auto value_color_3 = value_color.value3; valueSerializer.writeResource(value_color_3); @@ -68730,22 +70549,22 @@ class Serializer : public SerializerBase { const auto value_maskColor_value = value_maskColor.value; Ark_Int32 value_maskColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_maskColor_value_type = value_maskColor_value.selector; - if (((value_maskColor_value_type == 0))) { + if (value_maskColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_maskColor_value_0 = value_maskColor_value.value0; valueSerializer.writeInt32(static_cast(value_maskColor_value_0)); } - else if (((value_maskColor_value_type == 1))) { + else if (value_maskColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_maskColor_value_1 = value_maskColor_value.value1; valueSerializer.writeNumber(value_maskColor_value_1); } - else if (((value_maskColor_value_type == 2))) { + else if (value_maskColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_maskColor_value_2 = value_maskColor_value.value2; valueSerializer.writeString(value_maskColor_value_2); } - else if (((value_maskColor_value_type == 3))) { + else if (value_maskColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_maskColor_value_3 = value_maskColor_value.value3; valueSerializer.writeResource(value_maskColor_value_3); @@ -68791,22 +70610,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -68820,12 +70639,12 @@ class Serializer : public SerializerBase { const auto value_cornerRadius_value = value_cornerRadius.value; Ark_Int32 value_cornerRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_cornerRadius_value_type = value_cornerRadius_value.selector; - if (((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0)) || ((value_cornerRadius_value_type == 0))) { + if ((value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0) || (value_cornerRadius_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_cornerRadius_value_0 = value_cornerRadius_value.value0; valueSerializer.writeLength(value_cornerRadius_value_0); } - else if (((value_cornerRadius_value_type == 1))) { + else if (value_cornerRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_cornerRadius_value_1 = value_cornerRadius_value.value1; const auto value_cornerRadius_value_1_topLeft = value_cornerRadius_value_1.topLeft; @@ -68904,12 +70723,12 @@ class Serializer : public SerializerBase { const auto value_borderWidth_value = value_borderWidth.value; Ark_Int32 value_borderWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderWidth_value_type = value_borderWidth_value.selector; - if (((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0)) || ((value_borderWidth_value_type == 0))) { + if ((value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0) || (value_borderWidth_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderWidth_value_0 = value_borderWidth_value.value0; valueSerializer.writeLength(value_borderWidth_value_0); } - else if (((value_borderWidth_value_type == 1))) { + else if (value_borderWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderWidth_value_1 = value_borderWidth_value.value1; const auto value_borderWidth_value_1_top = value_borderWidth_value_1.top; @@ -68954,33 +70773,33 @@ class Serializer : public SerializerBase { const auto value_borderColor_value = value_borderColor.value; Ark_Int32 value_borderColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_type = value_borderColor_value.selector; - if (((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0)) || ((value_borderColor_value_type == 0))) { + if ((value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0) || (value_borderColor_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0 = value_borderColor_value.value0; Ark_Int32 value_borderColor_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_0_type = value_borderColor_value_0.selector; - if (((value_borderColor_value_0_type == 0))) { + if (value_borderColor_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_0_0 = value_borderColor_value_0.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_0_0)); } - else if (((value_borderColor_value_0_type == 1))) { + else if (value_borderColor_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_0_1 = value_borderColor_value_0.value1; valueSerializer.writeNumber(value_borderColor_value_0_1); } - else if (((value_borderColor_value_0_type == 2))) { + else if (value_borderColor_value_0_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_0_2 = value_borderColor_value_0.value2; valueSerializer.writeString(value_borderColor_value_0_2); } - else if (((value_borderColor_value_0_type == 3))) { + else if (value_borderColor_value_0_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_0_3 = value_borderColor_value_0.value3; valueSerializer.writeResource(value_borderColor_value_0_3); } } - else if (((value_borderColor_value_type == 1))) { + else if (value_borderColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1 = value_borderColor_value.value1; const auto value_borderColor_value_1_top = value_borderColor_value_1.top; @@ -68991,22 +70810,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_top_value = value_borderColor_value_1_top.value; Ark_Int32 value_borderColor_value_1_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_top_value_type = value_borderColor_value_1_top_value.selector; - if (((value_borderColor_value_1_top_value_type == 0))) { + if (value_borderColor_value_1_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_top_value_0 = value_borderColor_value_1_top_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_top_value_0)); } - else if (((value_borderColor_value_1_top_value_type == 1))) { + else if (value_borderColor_value_1_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_top_value_1 = value_borderColor_value_1_top_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_top_value_1); } - else if (((value_borderColor_value_1_top_value_type == 2))) { + else if (value_borderColor_value_1_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_top_value_2 = value_borderColor_value_1_top_value.value2; valueSerializer.writeString(value_borderColor_value_1_top_value_2); } - else if (((value_borderColor_value_1_top_value_type == 3))) { + else if (value_borderColor_value_1_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_top_value_3 = value_borderColor_value_1_top_value.value3; valueSerializer.writeResource(value_borderColor_value_1_top_value_3); @@ -69020,22 +70839,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_right_value = value_borderColor_value_1_right.value; Ark_Int32 value_borderColor_value_1_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_right_value_type = value_borderColor_value_1_right_value.selector; - if (((value_borderColor_value_1_right_value_type == 0))) { + if (value_borderColor_value_1_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_right_value_0 = value_borderColor_value_1_right_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_right_value_0)); } - else if (((value_borderColor_value_1_right_value_type == 1))) { + else if (value_borderColor_value_1_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_right_value_1 = value_borderColor_value_1_right_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_right_value_1); } - else if (((value_borderColor_value_1_right_value_type == 2))) { + else if (value_borderColor_value_1_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_right_value_2 = value_borderColor_value_1_right_value.value2; valueSerializer.writeString(value_borderColor_value_1_right_value_2); } - else if (((value_borderColor_value_1_right_value_type == 3))) { + else if (value_borderColor_value_1_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_right_value_3 = value_borderColor_value_1_right_value.value3; valueSerializer.writeResource(value_borderColor_value_1_right_value_3); @@ -69049,22 +70868,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_bottom_value = value_borderColor_value_1_bottom.value; Ark_Int32 value_borderColor_value_1_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_bottom_value_type = value_borderColor_value_1_bottom_value.selector; - if (((value_borderColor_value_1_bottom_value_type == 0))) { + if (value_borderColor_value_1_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_bottom_value_0 = value_borderColor_value_1_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_bottom_value_0)); } - else if (((value_borderColor_value_1_bottom_value_type == 1))) { + else if (value_borderColor_value_1_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_bottom_value_1 = value_borderColor_value_1_bottom_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_bottom_value_1); } - else if (((value_borderColor_value_1_bottom_value_type == 2))) { + else if (value_borderColor_value_1_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_bottom_value_2 = value_borderColor_value_1_bottom_value.value2; valueSerializer.writeString(value_borderColor_value_1_bottom_value_2); } - else if (((value_borderColor_value_1_bottom_value_type == 3))) { + else if (value_borderColor_value_1_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_bottom_value_3 = value_borderColor_value_1_bottom_value.value3; valueSerializer.writeResource(value_borderColor_value_1_bottom_value_3); @@ -69078,22 +70897,22 @@ class Serializer : public SerializerBase { const auto value_borderColor_value_1_left_value = value_borderColor_value_1_left.value; Ark_Int32 value_borderColor_value_1_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderColor_value_1_left_value_type = value_borderColor_value_1_left_value.selector; - if (((value_borderColor_value_1_left_value_type == 0))) { + if (value_borderColor_value_1_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderColor_value_1_left_value_0 = value_borderColor_value_1_left_value.value0; valueSerializer.writeInt32(static_cast(value_borderColor_value_1_left_value_0)); } - else if (((value_borderColor_value_1_left_value_type == 1))) { + else if (value_borderColor_value_1_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderColor_value_1_left_value_1 = value_borderColor_value_1_left_value.value1; valueSerializer.writeNumber(value_borderColor_value_1_left_value_1); } - else if (((value_borderColor_value_1_left_value_type == 2))) { + else if (value_borderColor_value_1_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_borderColor_value_1_left_value_2 = value_borderColor_value_1_left_value.value2; valueSerializer.writeString(value_borderColor_value_1_left_value_2); } - else if (((value_borderColor_value_1_left_value_type == 3))) { + else if (value_borderColor_value_1_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_borderColor_value_1_left_value_3 = value_borderColor_value_1_left_value.value3; valueSerializer.writeResource(value_borderColor_value_1_left_value_3); @@ -69109,12 +70928,12 @@ class Serializer : public SerializerBase { const auto value_borderStyle_value = value_borderStyle.value; Ark_Int32 value_borderStyle_value_type = INTEROP_RUNTIME_UNDEFINED; value_borderStyle_value_type = value_borderStyle_value.selector; - if (((value_borderStyle_value_type == 0))) { + if (value_borderStyle_value_type == 0) { valueSerializer.writeInt8(0); const auto value_borderStyle_value_0 = value_borderStyle_value.value0; valueSerializer.writeInt32(static_cast(value_borderStyle_value_0)); } - else if (((value_borderStyle_value_type == 1))) { + else if (value_borderStyle_value_type == 1) { valueSerializer.writeInt8(1); const auto value_borderStyle_value_1 = value_borderStyle_value.value1; const auto value_borderStyle_value_1_top = value_borderStyle_value_1.top; @@ -69159,12 +70978,12 @@ class Serializer : public SerializerBase { const auto value_shadow_value = value_shadow.value; Ark_Int32 value_shadow_value_type = INTEROP_RUNTIME_UNDEFINED; value_shadow_value_type = value_shadow_value.selector; - if (((value_shadow_value_type == 0))) { + if (value_shadow_value_type == 0) { valueSerializer.writeInt8(0); const auto value_shadow_value_0 = value_shadow_value.value0; valueSerializer.writeShadowOptions(value_shadow_value_0); } - else if (((value_shadow_value_type == 1))) { + else if (value_shadow_value_type == 1) { valueSerializer.writeInt8(1); const auto value_shadow_value_1 = value_shadow_value.value1; valueSerializer.writeInt32(static_cast(value_shadow_value_1)); @@ -69224,23 +71043,23 @@ class Serializer : public SerializerBase { const auto value_scene_value = value_scene.value; Ark_Int32 value_scene_value_type = INTEROP_RUNTIME_UNDEFINED; value_scene_value_type = value_scene_value.selector; - if (((value_scene_value_type == 0)) || ((value_scene_value_type == 0))) { + if ((value_scene_value_type == 0) || (value_scene_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_scene_value_0 = value_scene_value.value0; Ark_Int32 value_scene_value_0_type = INTEROP_RUNTIME_UNDEFINED; value_scene_value_0_type = value_scene_value_0.selector; - if (((value_scene_value_0_type == 0))) { + if (value_scene_value_0_type == 0) { valueSerializer.writeInt8(0); const auto value_scene_value_0_0 = value_scene_value_0.value0; valueSerializer.writeString(value_scene_value_0_0); } - else if (((value_scene_value_0_type == 1))) { + else if (value_scene_value_0_type == 1) { valueSerializer.writeInt8(1); const auto value_scene_value_0_1 = value_scene_value_0.value1; valueSerializer.writeResource(value_scene_value_0_1); } } - else if (((value_scene_value_type == 1))) { + else if (value_scene_value_type == 1) { valueSerializer.writeInt8(1); const auto value_scene_value_1 = value_scene_value.value1; valueSerializer.writeScene(value_scene_value_1); @@ -69265,14 +71084,6 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeOffsetResult(Ark_OffsetResult value) - { - Serializer& valueSerializer = *this; - const auto value_xOffset = value.xOffset; - valueSerializer.writeNumber(value_xOffset); - const auto value_yOffset = value.yOffset; - valueSerializer.writeNumber(value_yOffset); - } void writeTextContentControllerBase(Ark_TextContentControllerBase value) { Serializer& valueSerializer = *this; @@ -69330,12 +71141,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -69348,12 +71159,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -69726,7 +71537,7 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; const auto value_width_value_0_top = value_width_value_0.top; @@ -69762,7 +71573,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_width_value_0_left_value); } } - else if (((value_width_value_type == 1)) || ((value_width_value_type == 1)) || ((value_width_value_type == 1))) { + else if ((value_width_value_type == 1) || (value_width_value_type == 1) || (value_width_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeLength(value_width_value_1); @@ -69776,7 +71587,7 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; const auto value_color_value_0_top = value_color_value_0.top; @@ -69787,22 +71598,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_top_value = value_color_value_0_top.value; Ark_Int32 value_color_value_0_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_top_value_type = value_color_value_0_top_value.selector; - if (((value_color_value_0_top_value_type == 0))) { + if (value_color_value_0_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_top_value_0 = value_color_value_0_top_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_top_value_0)); } - else if (((value_color_value_0_top_value_type == 1))) { + else if (value_color_value_0_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_top_value_1 = value_color_value_0_top_value.value1; valueSerializer.writeNumber(value_color_value_0_top_value_1); } - else if (((value_color_value_0_top_value_type == 2))) { + else if (value_color_value_0_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_top_value_2 = value_color_value_0_top_value.value2; valueSerializer.writeString(value_color_value_0_top_value_2); } - else if (((value_color_value_0_top_value_type == 3))) { + else if (value_color_value_0_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_top_value_3 = value_color_value_0_top_value.value3; valueSerializer.writeResource(value_color_value_0_top_value_3); @@ -69816,22 +71627,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_right_value = value_color_value_0_right.value; Ark_Int32 value_color_value_0_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_right_value_type = value_color_value_0_right_value.selector; - if (((value_color_value_0_right_value_type == 0))) { + if (value_color_value_0_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_right_value_0 = value_color_value_0_right_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_right_value_0)); } - else if (((value_color_value_0_right_value_type == 1))) { + else if (value_color_value_0_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_right_value_1 = value_color_value_0_right_value.value1; valueSerializer.writeNumber(value_color_value_0_right_value_1); } - else if (((value_color_value_0_right_value_type == 2))) { + else if (value_color_value_0_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_right_value_2 = value_color_value_0_right_value.value2; valueSerializer.writeString(value_color_value_0_right_value_2); } - else if (((value_color_value_0_right_value_type == 3))) { + else if (value_color_value_0_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_right_value_3 = value_color_value_0_right_value.value3; valueSerializer.writeResource(value_color_value_0_right_value_3); @@ -69845,22 +71656,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_bottom_value = value_color_value_0_bottom.value; Ark_Int32 value_color_value_0_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_bottom_value_type = value_color_value_0_bottom_value.selector; - if (((value_color_value_0_bottom_value_type == 0))) { + if (value_color_value_0_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_bottom_value_0)); } - else if (((value_color_value_0_bottom_value_type == 1))) { + else if (value_color_value_0_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value.value1; valueSerializer.writeNumber(value_color_value_0_bottom_value_1); } - else if (((value_color_value_0_bottom_value_type == 2))) { + else if (value_color_value_0_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value.value2; valueSerializer.writeString(value_color_value_0_bottom_value_2); } - else if (((value_color_value_0_bottom_value_type == 3))) { + else if (value_color_value_0_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value.value3; valueSerializer.writeResource(value_color_value_0_bottom_value_3); @@ -69874,55 +71685,55 @@ class Serializer : public SerializerBase { const auto value_color_value_0_left_value = value_color_value_0_left.value; Ark_Int32 value_color_value_0_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_left_value_type = value_color_value_0_left_value.selector; - if (((value_color_value_0_left_value_type == 0))) { + if (value_color_value_0_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_left_value_0 = value_color_value_0_left_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_left_value_0)); } - else if (((value_color_value_0_left_value_type == 1))) { + else if (value_color_value_0_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_left_value_1 = value_color_value_0_left_value.value1; valueSerializer.writeNumber(value_color_value_0_left_value_1); } - else if (((value_color_value_0_left_value_type == 2))) { + else if (value_color_value_0_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_left_value_2 = value_color_value_0_left_value.value2; valueSerializer.writeString(value_color_value_0_left_value_2); } - else if (((value_color_value_0_left_value_type == 3))) { + else if (value_color_value_0_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_left_value_3 = value_color_value_0_left_value.value3; valueSerializer.writeResource(value_color_value_0_left_value_3); } } } - else if (((value_color_value_type == 1)) || ((value_color_value_type == 1)) || ((value_color_value_type == 1)) || ((value_color_value_type == 1))) { + else if ((value_color_value_type == 1) || (value_color_value_type == 1) || (value_color_value_type == 1) || (value_color_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; Ark_Int32 value_color_value_1_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_1_type = value_color_value_1.selector; - if (((value_color_value_1_type == 0))) { + if (value_color_value_1_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_1_0 = value_color_value_1.value0; valueSerializer.writeInt32(static_cast(value_color_value_1_0)); } - else if (((value_color_value_1_type == 1))) { + else if (value_color_value_1_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1_1 = value_color_value_1.value1; valueSerializer.writeNumber(value_color_value_1_1); } - else if (((value_color_value_1_type == 2))) { + else if (value_color_value_1_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_1_2 = value_color_value_1.value2; valueSerializer.writeString(value_color_value_1_2); } - else if (((value_color_value_1_type == 3))) { + else if (value_color_value_1_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_1_3 = value_color_value_1.value3; valueSerializer.writeResource(value_color_value_1_3); } } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeLocalizedEdgeColors(value_color_value_2); @@ -69936,7 +71747,7 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; const auto value_radius_value_0_topLeft = value_radius_value_0.topLeft; @@ -69972,7 +71783,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_radius_value_0_bottomRight_value); } } - else if (((value_radius_value_type == 1)) || ((value_radius_value_type == 1)) || ((value_radius_value_type == 1))) { + else if ((value_radius_value_type == 1) || (value_radius_value_type == 1) || (value_radius_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeLength(value_radius_value_1); @@ -69986,7 +71797,7 @@ class Serializer : public SerializerBase { const auto value_style_value = value_style.value; Ark_Int32 value_style_value_type = INTEROP_RUNTIME_UNDEFINED; value_style_value_type = value_style_value.selector; - if (((value_style_value_type == 0))) { + if (value_style_value_type == 0) { valueSerializer.writeInt8(0); const auto value_style_value_0 = value_style_value.value0; const auto value_style_value_0_top = value_style_value_0.top; @@ -70022,7 +71833,7 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_style_value_0_left_value)); } } - else if (((value_style_value_type == 1))) { + else if (value_style_value_type == 1) { valueSerializer.writeInt8(1); const auto value_style_value_1 = value_style_value.value1; valueSerializer.writeInt32(static_cast(value_style_value_1)); @@ -70040,12 +71851,12 @@ class Serializer : public SerializerBase { const auto value_slice_value = value_slice.value; Ark_Int32 value_slice_value_type = INTEROP_RUNTIME_UNDEFINED; value_slice_value_type = value_slice_value.selector; - if (((value_slice_value_type == 0)) || ((value_slice_value_type == 0)) || ((value_slice_value_type == 0))) { + if ((value_slice_value_type == 0) || (value_slice_value_type == 0) || (value_slice_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_slice_value_0 = value_slice_value.value0; valueSerializer.writeLength(value_slice_value_0); } - else if (((value_slice_value_type == 1))) { + else if (value_slice_value_type == 1) { valueSerializer.writeInt8(1); const auto value_slice_value_1 = value_slice_value.value1; const auto value_slice_value_1_top = value_slice_value_1.top; @@ -70081,7 +71892,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_slice_value_1_left_value); } } - else if (((value_slice_value_type == 2))) { + else if (value_slice_value_type == 2) { valueSerializer.writeInt8(2); const auto value_slice_value_2 = value_slice_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_slice_value_2); @@ -70103,17 +71914,17 @@ class Serializer : public SerializerBase { const auto value_source_value = value_source.value; Ark_Int32 value_source_value_type = INTEROP_RUNTIME_UNDEFINED; value_source_value_type = value_source_value.selector; - if (((value_source_value_type == 0))) { + if (value_source_value_type == 0) { valueSerializer.writeInt8(0); const auto value_source_value_0 = value_source_value.value0; valueSerializer.writeString(value_source_value_0); } - else if (((value_source_value_type == 1))) { + else if (value_source_value_type == 1) { valueSerializer.writeInt8(1); const auto value_source_value_1 = value_source_value.value1; valueSerializer.writeResource(value_source_value_1); } - else if (((value_source_value_type == 2))) { + else if (value_source_value_type == 2) { valueSerializer.writeInt8(2); const auto value_source_value_2 = value_source_value.value2; valueSerializer.writeLinearGradient_common(value_source_value_2); @@ -70127,12 +71938,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0)) || ((value_width_value_type == 0)) || ((value_width_value_type == 0))) { + if ((value_width_value_type == 0) || (value_width_value_type == 0) || (value_width_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeLength(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; const auto value_width_value_1_top = value_width_value_1.top; @@ -70168,7 +71979,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_width_value_1_left_value); } } - else if (((value_width_value_type == 2))) { + else if (value_width_value_type == 2) { valueSerializer.writeInt8(2); const auto value_width_value_2 = value_width_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_width_value_2); @@ -70182,12 +71993,12 @@ class Serializer : public SerializerBase { const auto value_outset_value = value_outset.value; Ark_Int32 value_outset_value_type = INTEROP_RUNTIME_UNDEFINED; value_outset_value_type = value_outset_value.selector; - if (((value_outset_value_type == 0)) || ((value_outset_value_type == 0)) || ((value_outset_value_type == 0))) { + if ((value_outset_value_type == 0) || (value_outset_value_type == 0) || (value_outset_value_type == 0)) { valueSerializer.writeInt8(0); const auto value_outset_value_0 = value_outset_value.value0; valueSerializer.writeLength(value_outset_value_0); } - else if (((value_outset_value_type == 1))) { + else if (value_outset_value_type == 1) { valueSerializer.writeInt8(1); const auto value_outset_value_1 = value_outset_value.value1; const auto value_outset_value_1_top = value_outset_value_1.top; @@ -70223,7 +72034,7 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_outset_value_1_left_value); } } - else if (((value_outset_value_type == 2))) { + else if (value_outset_value_type == 2) { valueSerializer.writeInt8(2); const auto value_outset_value_2 = value_outset_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_outset_value_2); @@ -70249,7 +72060,7 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; const auto value_width_value_0_top = value_width_value_0.top; @@ -70285,12 +72096,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_width_value_0_left_value); } } - else if (((value_width_value_type == 1)) || ((value_width_value_type == 1)) || ((value_width_value_type == 1))) { + else if ((value_width_value_type == 1) || (value_width_value_type == 1) || (value_width_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeLength(value_width_value_1); } - else if (((value_width_value_type == 2))) { + else if (value_width_value_type == 2) { valueSerializer.writeInt8(2); const auto value_width_value_2 = value_width_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_width_value_2); @@ -70304,7 +72115,7 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; const auto value_color_value_0_top = value_color_value_0.top; @@ -70315,22 +72126,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_top_value = value_color_value_0_top.value; Ark_Int32 value_color_value_0_top_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_top_value_type = value_color_value_0_top_value.selector; - if (((value_color_value_0_top_value_type == 0))) { + if (value_color_value_0_top_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_top_value_0 = value_color_value_0_top_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_top_value_0)); } - else if (((value_color_value_0_top_value_type == 1))) { + else if (value_color_value_0_top_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_top_value_1 = value_color_value_0_top_value.value1; valueSerializer.writeNumber(value_color_value_0_top_value_1); } - else if (((value_color_value_0_top_value_type == 2))) { + else if (value_color_value_0_top_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_top_value_2 = value_color_value_0_top_value.value2; valueSerializer.writeString(value_color_value_0_top_value_2); } - else if (((value_color_value_0_top_value_type == 3))) { + else if (value_color_value_0_top_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_top_value_3 = value_color_value_0_top_value.value3; valueSerializer.writeResource(value_color_value_0_top_value_3); @@ -70344,22 +72155,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_right_value = value_color_value_0_right.value; Ark_Int32 value_color_value_0_right_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_right_value_type = value_color_value_0_right_value.selector; - if (((value_color_value_0_right_value_type == 0))) { + if (value_color_value_0_right_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_right_value_0 = value_color_value_0_right_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_right_value_0)); } - else if (((value_color_value_0_right_value_type == 1))) { + else if (value_color_value_0_right_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_right_value_1 = value_color_value_0_right_value.value1; valueSerializer.writeNumber(value_color_value_0_right_value_1); } - else if (((value_color_value_0_right_value_type == 2))) { + else if (value_color_value_0_right_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_right_value_2 = value_color_value_0_right_value.value2; valueSerializer.writeString(value_color_value_0_right_value_2); } - else if (((value_color_value_0_right_value_type == 3))) { + else if (value_color_value_0_right_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_right_value_3 = value_color_value_0_right_value.value3; valueSerializer.writeResource(value_color_value_0_right_value_3); @@ -70373,22 +72184,22 @@ class Serializer : public SerializerBase { const auto value_color_value_0_bottom_value = value_color_value_0_bottom.value; Ark_Int32 value_color_value_0_bottom_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_bottom_value_type = value_color_value_0_bottom_value.selector; - if (((value_color_value_0_bottom_value_type == 0))) { + if (value_color_value_0_bottom_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_bottom_value_0 = value_color_value_0_bottom_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_bottom_value_0)); } - else if (((value_color_value_0_bottom_value_type == 1))) { + else if (value_color_value_0_bottom_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_bottom_value_1 = value_color_value_0_bottom_value.value1; valueSerializer.writeNumber(value_color_value_0_bottom_value_1); } - else if (((value_color_value_0_bottom_value_type == 2))) { + else if (value_color_value_0_bottom_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_bottom_value_2 = value_color_value_0_bottom_value.value2; valueSerializer.writeString(value_color_value_0_bottom_value_2); } - else if (((value_color_value_0_bottom_value_type == 3))) { + else if (value_color_value_0_bottom_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_bottom_value_3 = value_color_value_0_bottom_value.value3; valueSerializer.writeResource(value_color_value_0_bottom_value_3); @@ -70402,55 +72213,55 @@ class Serializer : public SerializerBase { const auto value_color_value_0_left_value = value_color_value_0_left.value; Ark_Int32 value_color_value_0_left_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_0_left_value_type = value_color_value_0_left_value.selector; - if (((value_color_value_0_left_value_type == 0))) { + if (value_color_value_0_left_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0_left_value_0 = value_color_value_0_left_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0_left_value_0)); } - else if (((value_color_value_0_left_value_type == 1))) { + else if (value_color_value_0_left_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_0_left_value_1 = value_color_value_0_left_value.value1; valueSerializer.writeNumber(value_color_value_0_left_value_1); } - else if (((value_color_value_0_left_value_type == 2))) { + else if (value_color_value_0_left_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_0_left_value_2 = value_color_value_0_left_value.value2; valueSerializer.writeString(value_color_value_0_left_value_2); } - else if (((value_color_value_0_left_value_type == 3))) { + else if (value_color_value_0_left_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_0_left_value_3 = value_color_value_0_left_value.value3; valueSerializer.writeResource(value_color_value_0_left_value_3); } } } - else if (((value_color_value_type == 1)) || ((value_color_value_type == 1)) || ((value_color_value_type == 1)) || ((value_color_value_type == 1))) { + else if ((value_color_value_type == 1) || (value_color_value_type == 1) || (value_color_value_type == 1) || (value_color_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; Ark_Int32 value_color_value_1_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_1_type = value_color_value_1.selector; - if (((value_color_value_1_type == 0))) { + if (value_color_value_1_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_1_0 = value_color_value_1.value0; valueSerializer.writeInt32(static_cast(value_color_value_1_0)); } - else if (((value_color_value_1_type == 1))) { + else if (value_color_value_1_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1_1 = value_color_value_1.value1; valueSerializer.writeNumber(value_color_value_1_1); } - else if (((value_color_value_1_type == 2))) { + else if (value_color_value_1_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_1_2 = value_color_value_1.value2; valueSerializer.writeString(value_color_value_1_2); } - else if (((value_color_value_1_type == 3))) { + else if (value_color_value_1_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_1_3 = value_color_value_1.value3; valueSerializer.writeResource(value_color_value_1_3); } } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeLocalizedEdgeColors(value_color_value_2); @@ -70464,7 +72275,7 @@ class Serializer : public SerializerBase { const auto value_radius_value = value_radius.value; Ark_Int32 value_radius_value_type = INTEROP_RUNTIME_UNDEFINED; value_radius_value_type = value_radius_value.selector; - if (((value_radius_value_type == 0))) { + if (value_radius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_radius_value_0 = value_radius_value.value0; const auto value_radius_value_0_topLeft = value_radius_value_0.topLeft; @@ -70500,12 +72311,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_radius_value_0_bottomRight_value); } } - else if (((value_radius_value_type == 1)) || ((value_radius_value_type == 1)) || ((value_radius_value_type == 1))) { + else if ((value_radius_value_type == 1) || (value_radius_value_type == 1) || (value_radius_value_type == 1)) { valueSerializer.writeInt8(1); const auto value_radius_value_1 = value_radius_value.value1; valueSerializer.writeLength(value_radius_value_1); } - else if (((value_radius_value_type == 2))) { + else if (value_radius_value_type == 2) { valueSerializer.writeInt8(2); const auto value_radius_value_2 = value_radius_value.value2; valueSerializer.writeLocalizedBorderRadiuses(value_radius_value_2); @@ -70519,7 +72330,7 @@ class Serializer : public SerializerBase { const auto value_style_value = value_style.value; Ark_Int32 value_style_value_type = INTEROP_RUNTIME_UNDEFINED; value_style_value_type = value_style_value.selector; - if (((value_style_value_type == 0))) { + if (value_style_value_type == 0) { valueSerializer.writeInt8(0); const auto value_style_value_0 = value_style_value.value0; const auto value_style_value_0_top = value_style_value_0.top; @@ -70555,7 +72366,7 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_style_value_0_left_value)); } } - else if (((value_style_value_type == 1))) { + else if (value_style_value_type == 1) { valueSerializer.writeInt8(1); const auto value_style_value_1 = value_style_value.value1; valueSerializer.writeInt32(static_cast(value_style_value_1)); @@ -70569,7 +72380,7 @@ class Serializer : public SerializerBase { const auto value_dashGap_value = value_dashGap.value; Ark_Int32 value_dashGap_value_type = INTEROP_RUNTIME_UNDEFINED; value_dashGap_value_type = value_dashGap_value.selector; - if (((value_dashGap_value_type == 0))) { + if (value_dashGap_value_type == 0) { valueSerializer.writeInt8(0); const auto value_dashGap_value_0 = value_dashGap_value.value0; const auto value_dashGap_value_0_top = value_dashGap_value_0.top; @@ -70605,12 +72416,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_dashGap_value_0_left_value); } } - else if (((value_dashGap_value_type == 1))) { + else if (value_dashGap_value_type == 1) { valueSerializer.writeInt8(1); const auto value_dashGap_value_1 = value_dashGap_value.value1; valueSerializer.writeLengthMetrics(value_dashGap_value_1); } - else if (((value_dashGap_value_type == 2))) { + else if (value_dashGap_value_type == 2) { valueSerializer.writeInt8(2); const auto value_dashGap_value_2 = value_dashGap_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_dashGap_value_2); @@ -70624,7 +72435,7 @@ class Serializer : public SerializerBase { const auto value_dashWidth_value = value_dashWidth.value; Ark_Int32 value_dashWidth_value_type = INTEROP_RUNTIME_UNDEFINED; value_dashWidth_value_type = value_dashWidth_value.selector; - if (((value_dashWidth_value_type == 0))) { + if (value_dashWidth_value_type == 0) { valueSerializer.writeInt8(0); const auto value_dashWidth_value_0 = value_dashWidth_value.value0; const auto value_dashWidth_value_0_top = value_dashWidth_value_0.top; @@ -70660,12 +72471,12 @@ class Serializer : public SerializerBase { valueSerializer.writeLength(value_dashWidth_value_0_left_value); } } - else if (((value_dashWidth_value_type == 1))) { + else if (value_dashWidth_value_type == 1) { valueSerializer.writeInt8(1); const auto value_dashWidth_value_1 = value_dashWidth_value.value1; valueSerializer.writeLengthMetrics(value_dashWidth_value_1); } - else if (((value_dashWidth_value_type == 2))) { + else if (value_dashWidth_value_type == 2) { valueSerializer.writeInt8(2); const auto value_dashWidth_value_2 = value_dashWidth_value.value2; valueSerializer.writeLocalizedEdgeWidths(value_dashWidth_value_2); @@ -70770,22 +72581,22 @@ class Serializer : public SerializerBase { const auto value_color_value = value_color.value; Ark_Int32 value_color_value_type = INTEROP_RUNTIME_UNDEFINED; value_color_value_type = value_color_value.selector; - if (((value_color_value_type == 0))) { + if (value_color_value_type == 0) { valueSerializer.writeInt8(0); const auto value_color_value_0 = value_color_value.value0; valueSerializer.writeInt32(static_cast(value_color_value_0)); } - else if (((value_color_value_type == 1))) { + else if (value_color_value_type == 1) { valueSerializer.writeInt8(1); const auto value_color_value_1 = value_color_value.value1; valueSerializer.writeNumber(value_color_value_1); } - else if (((value_color_value_type == 2))) { + else if (value_color_value_type == 2) { valueSerializer.writeInt8(2); const auto value_color_value_2 = value_color_value.value2; valueSerializer.writeString(value_color_value_2); } - else if (((value_color_value_type == 3))) { + else if (value_color_value_type == 3) { valueSerializer.writeInt8(3); const auto value_color_value_3 = value_color_value.value3; valueSerializer.writeResource(value_color_value_3); @@ -70823,22 +72634,22 @@ class Serializer : public SerializerBase { const auto value_inactiveColor_value = value_inactiveColor.value; Ark_Int32 value_inactiveColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_inactiveColor_value_type = value_inactiveColor_value.selector; - if (((value_inactiveColor_value_type == 0))) { + if (value_inactiveColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_inactiveColor_value_0 = value_inactiveColor_value.value0; valueSerializer.writeInt32(static_cast(value_inactiveColor_value_0)); } - else if (((value_inactiveColor_value_type == 1))) { + else if (value_inactiveColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_inactiveColor_value_1 = value_inactiveColor_value.value1; valueSerializer.writeNumber(value_inactiveColor_value_1); } - else if (((value_inactiveColor_value_type == 2))) { + else if (value_inactiveColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_inactiveColor_value_2 = value_inactiveColor_value.value2; valueSerializer.writeString(value_inactiveColor_value_2); } - else if (((value_inactiveColor_value_type == 3))) { + else if (value_inactiveColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_inactiveColor_value_3 = value_inactiveColor_value.value3; valueSerializer.writeResource(value_inactiveColor_value_3); @@ -70950,29 +72761,17 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeTouchObject(Ark_TouchObject value) + void writeHistoricalPoint(Ark_HistoricalPoint value) { Serializer& valueSerializer = *this; - const auto value_type = value.type; - valueSerializer.writeInt32(static_cast(value_type)); - const auto value_id = value.id; - valueSerializer.writeNumber(value_id); - const auto value_displayX = value.displayX; - valueSerializer.writeNumber(value_displayX); - const auto value_displayY = value.displayY; - valueSerializer.writeNumber(value_displayY); - const auto value_windowX = value.windowX; - valueSerializer.writeNumber(value_windowX); - const auto value_windowY = value.windowY; - valueSerializer.writeNumber(value_windowY); - const auto value_screenX = value.screenX; - valueSerializer.writeNumber(value_screenX); - const auto value_screenY = value.screenY; - valueSerializer.writeNumber(value_screenY); - const auto value_x = value.x; - valueSerializer.writeNumber(value_x); - const auto value_y = value.y; - valueSerializer.writeNumber(value_y); + const auto value_touchObject = value.touchObject; + valueSerializer.writeTouchObject(value_touchObject); + const auto value_size = value.size; + valueSerializer.writeNumber(value_size); + const auto value_force = value.force; + valueSerializer.writeNumber(value_force); + const auto value_timestamp = value.timestamp; + valueSerializer.writeNumber(value_timestamp); } void writeAccessibilityHoverEvent(Ark_AccessibilityHoverEvent value) { @@ -71033,12 +72832,12 @@ class Serializer : public SerializerBase { const auto value_space_value = value_space.value; Ark_Int32 value_space_value_type = INTEROP_RUNTIME_UNDEFINED; value_space_value_type = value_space_value.selector; - if (((value_space_value_type == 0))) { + if (value_space_value_type == 0) { valueSerializer.writeInt8(0); const auto value_space_value_0 = value_space_value.value0; valueSerializer.writeString(value_space_value_0); } - else if (((value_space_value_type == 1))) { + else if (value_space_value_type == 1) { valueSerializer.writeInt8(1); const auto value_space_value_1 = value_space_value.value1; valueSerializer.writeNumber(value_space_value_1); @@ -71056,12 +72855,12 @@ class Serializer : public SerializerBase { const auto value_width_value = value_width.value; Ark_Int32 value_width_value_type = INTEROP_RUNTIME_UNDEFINED; value_width_value_type = value_width_value.selector; - if (((value_width_value_type == 0))) { + if (value_width_value_type == 0) { valueSerializer.writeInt8(0); const auto value_width_value_0 = value_width_value.value0; valueSerializer.writeString(value_width_value_0); } - else if (((value_width_value_type == 1))) { + else if (value_width_value_type == 1) { valueSerializer.writeInt8(1); const auto value_width_value_1 = value_width_value.value1; valueSerializer.writeNumber(value_width_value_1); @@ -71075,12 +72874,12 @@ class Serializer : public SerializerBase { const auto value_height_value = value_height.value; Ark_Int32 value_height_value_type = INTEROP_RUNTIME_UNDEFINED; value_height_value_type = value_height_value.selector; - if (((value_height_value_type == 0))) { + if (value_height_value_type == 0) { valueSerializer.writeInt8(0); const auto value_height_value_0 = value_height_value.value0; valueSerializer.writeString(value_height_value_0); } - else if (((value_height_value_type == 1))) { + else if (value_height_value_type == 1) { valueSerializer.writeInt8(1); const auto value_height_value_1 = value_height_value.value1; valueSerializer.writeNumber(value_height_value_1); @@ -71122,22 +72921,22 @@ class Serializer : public SerializerBase { const auto value_strokeColor_value = value_strokeColor.value; Ark_Int32 value_strokeColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_strokeColor_value_type = value_strokeColor_value.selector; - if (((value_strokeColor_value_type == 0))) { + if (value_strokeColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_strokeColor_value_0 = value_strokeColor_value.value0; valueSerializer.writeInt32(static_cast(value_strokeColor_value_0)); } - else if (((value_strokeColor_value_type == 1))) { + else if (value_strokeColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_strokeColor_value_1 = value_strokeColor_value.value1; valueSerializer.writeNumber(value_strokeColor_value_1); } - else if (((value_strokeColor_value_type == 2))) { + else if (value_strokeColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_strokeColor_value_2 = value_strokeColor_value.value2; valueSerializer.writeString(value_strokeColor_value_2); } - else if (((value_strokeColor_value_type == 3))) { + else if (value_strokeColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_strokeColor_value_3 = value_strokeColor_value.value3; valueSerializer.writeResource(value_strokeColor_value_3); @@ -71190,12 +72989,12 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_indicatorBuilder_value.callSync)); } } - void writeCanvasRenderer(Ark_CanvasRenderer value) + void writeOffscreenCanvas(Ark_OffscreenCanvas value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } - void writeRenderingContextSettings(Ark_RenderingContextSettings value) + void writeCanvasRenderer(Ark_CanvasRenderer value) { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); @@ -71227,12 +73026,12 @@ class Serializer : public SerializerBase { const auto value_hintRadius_value = value_hintRadius.value; Ark_Int32 value_hintRadius_value_type = INTEROP_RUNTIME_UNDEFINED; value_hintRadius_value_type = value_hintRadius_value.selector; - if (((value_hintRadius_value_type == 0))) { + if (value_hintRadius_value_type == 0) { valueSerializer.writeInt8(0); const auto value_hintRadius_value_0 = value_hintRadius_value.value0; valueSerializer.writeNumber(value_hintRadius_value_0); } - else if (((value_hintRadius_value_type == 1))) { + else if (value_hintRadius_value_type == 1) { valueSerializer.writeInt8(1); const auto value_hintRadius_value_1 = value_hintRadius_value.value1; valueSerializer.writeResource(value_hintRadius_value_1); @@ -71282,22 +73081,22 @@ class Serializer : public SerializerBase { const auto value_workDayMarkColor_value = value_workDayMarkColor.value; Ark_Int32 value_workDayMarkColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_workDayMarkColor_value_type = value_workDayMarkColor_value.selector; - if (((value_workDayMarkColor_value_type == 0))) { + if (value_workDayMarkColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_workDayMarkColor_value_0 = value_workDayMarkColor_value.value0; valueSerializer.writeInt32(static_cast(value_workDayMarkColor_value_0)); } - else if (((value_workDayMarkColor_value_type == 1))) { + else if (value_workDayMarkColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_workDayMarkColor_value_1 = value_workDayMarkColor_value.value1; valueSerializer.writeNumber(value_workDayMarkColor_value_1); } - else if (((value_workDayMarkColor_value_type == 2))) { + else if (value_workDayMarkColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_workDayMarkColor_value_2 = value_workDayMarkColor_value.value2; valueSerializer.writeString(value_workDayMarkColor_value_2); } - else if (((value_workDayMarkColor_value_type == 3))) { + else if (value_workDayMarkColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_workDayMarkColor_value_3 = value_workDayMarkColor_value.value3; valueSerializer.writeResource(value_workDayMarkColor_value_3); @@ -71311,22 +73110,22 @@ class Serializer : public SerializerBase { const auto value_offDayMarkColor_value = value_offDayMarkColor.value; Ark_Int32 value_offDayMarkColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_offDayMarkColor_value_type = value_offDayMarkColor_value.selector; - if (((value_offDayMarkColor_value_type == 0))) { + if (value_offDayMarkColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_offDayMarkColor_value_0 = value_offDayMarkColor_value.value0; valueSerializer.writeInt32(static_cast(value_offDayMarkColor_value_0)); } - else if (((value_offDayMarkColor_value_type == 1))) { + else if (value_offDayMarkColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_offDayMarkColor_value_1 = value_offDayMarkColor_value.value1; valueSerializer.writeNumber(value_offDayMarkColor_value_1); } - else if (((value_offDayMarkColor_value_type == 2))) { + else if (value_offDayMarkColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_offDayMarkColor_value_2 = value_offDayMarkColor_value.value2; valueSerializer.writeString(value_offDayMarkColor_value_2); } - else if (((value_offDayMarkColor_value_type == 3))) { + else if (value_offDayMarkColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_offDayMarkColor_value_3 = value_offDayMarkColor_value.value3; valueSerializer.writeResource(value_offDayMarkColor_value_3); @@ -71384,22 +73183,22 @@ class Serializer : public SerializerBase { const auto value_weekColor_value = value_weekColor.value; Ark_Int32 value_weekColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_weekColor_value_type = value_weekColor_value.selector; - if (((value_weekColor_value_type == 0))) { + if (value_weekColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_weekColor_value_0 = value_weekColor_value.value0; valueSerializer.writeInt32(static_cast(value_weekColor_value_0)); } - else if (((value_weekColor_value_type == 1))) { + else if (value_weekColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_weekColor_value_1 = value_weekColor_value.value1; valueSerializer.writeNumber(value_weekColor_value_1); } - else if (((value_weekColor_value_type == 2))) { + else if (value_weekColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_weekColor_value_2 = value_weekColor_value.value2; valueSerializer.writeString(value_weekColor_value_2); } - else if (((value_weekColor_value_type == 3))) { + else if (value_weekColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_weekColor_value_3 = value_weekColor_value.value3; valueSerializer.writeResource(value_weekColor_value_3); @@ -71413,22 +73212,22 @@ class Serializer : public SerializerBase { const auto value_weekendDayColor_value = value_weekendDayColor.value; Ark_Int32 value_weekendDayColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_weekendDayColor_value_type = value_weekendDayColor_value.selector; - if (((value_weekendDayColor_value_type == 0))) { + if (value_weekendDayColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_weekendDayColor_value_0 = value_weekendDayColor_value.value0; valueSerializer.writeInt32(static_cast(value_weekendDayColor_value_0)); } - else if (((value_weekendDayColor_value_type == 1))) { + else if (value_weekendDayColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_weekendDayColor_value_1 = value_weekendDayColor_value.value1; valueSerializer.writeNumber(value_weekendDayColor_value_1); } - else if (((value_weekendDayColor_value_type == 2))) { + else if (value_weekendDayColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_weekendDayColor_value_2 = value_weekendDayColor_value.value2; valueSerializer.writeString(value_weekendDayColor_value_2); } - else if (((value_weekendDayColor_value_type == 3))) { + else if (value_weekendDayColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_weekendDayColor_value_3 = value_weekendDayColor_value.value3; valueSerializer.writeResource(value_weekendDayColor_value_3); @@ -71442,22 +73241,22 @@ class Serializer : public SerializerBase { const auto value_weekendLunarColor_value = value_weekendLunarColor.value; Ark_Int32 value_weekendLunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_weekendLunarColor_value_type = value_weekendLunarColor_value.selector; - if (((value_weekendLunarColor_value_type == 0))) { + if (value_weekendLunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_weekendLunarColor_value_0 = value_weekendLunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_weekendLunarColor_value_0)); } - else if (((value_weekendLunarColor_value_type == 1))) { + else if (value_weekendLunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_weekendLunarColor_value_1 = value_weekendLunarColor_value.value1; valueSerializer.writeNumber(value_weekendLunarColor_value_1); } - else if (((value_weekendLunarColor_value_type == 2))) { + else if (value_weekendLunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_weekendLunarColor_value_2 = value_weekendLunarColor_value.value2; valueSerializer.writeString(value_weekendLunarColor_value_2); } - else if (((value_weekendLunarColor_value_type == 3))) { + else if (value_weekendLunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_weekendLunarColor_value_3 = value_weekendLunarColor_value.value3; valueSerializer.writeResource(value_weekendLunarColor_value_3); @@ -71507,22 +73306,22 @@ class Serializer : public SerializerBase { const auto value_focusedDayColor_value = value_focusedDayColor.value; Ark_Int32 value_focusedDayColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_focusedDayColor_value_type = value_focusedDayColor_value.selector; - if (((value_focusedDayColor_value_type == 0))) { + if (value_focusedDayColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_focusedDayColor_value_0 = value_focusedDayColor_value.value0; valueSerializer.writeInt32(static_cast(value_focusedDayColor_value_0)); } - else if (((value_focusedDayColor_value_type == 1))) { + else if (value_focusedDayColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_focusedDayColor_value_1 = value_focusedDayColor_value.value1; valueSerializer.writeNumber(value_focusedDayColor_value_1); } - else if (((value_focusedDayColor_value_type == 2))) { + else if (value_focusedDayColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_focusedDayColor_value_2 = value_focusedDayColor_value.value2; valueSerializer.writeString(value_focusedDayColor_value_2); } - else if (((value_focusedDayColor_value_type == 3))) { + else if (value_focusedDayColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_focusedDayColor_value_3 = value_focusedDayColor_value.value3; valueSerializer.writeResource(value_focusedDayColor_value_3); @@ -71536,22 +73335,22 @@ class Serializer : public SerializerBase { const auto value_focusedLunarColor_value = value_focusedLunarColor.value; Ark_Int32 value_focusedLunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_focusedLunarColor_value_type = value_focusedLunarColor_value.selector; - if (((value_focusedLunarColor_value_type == 0))) { + if (value_focusedLunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_focusedLunarColor_value_0 = value_focusedLunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_focusedLunarColor_value_0)); } - else if (((value_focusedLunarColor_value_type == 1))) { + else if (value_focusedLunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_focusedLunarColor_value_1 = value_focusedLunarColor_value.value1; valueSerializer.writeNumber(value_focusedLunarColor_value_1); } - else if (((value_focusedLunarColor_value_type == 2))) { + else if (value_focusedLunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_focusedLunarColor_value_2 = value_focusedLunarColor_value.value2; valueSerializer.writeString(value_focusedLunarColor_value_2); } - else if (((value_focusedLunarColor_value_type == 3))) { + else if (value_focusedLunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_focusedLunarColor_value_3 = value_focusedLunarColor_value.value3; valueSerializer.writeResource(value_focusedLunarColor_value_3); @@ -71565,22 +73364,22 @@ class Serializer : public SerializerBase { const auto value_focusedAreaBackgroundColor_value = value_focusedAreaBackgroundColor.value; Ark_Int32 value_focusedAreaBackgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_focusedAreaBackgroundColor_value_type = value_focusedAreaBackgroundColor_value.selector; - if (((value_focusedAreaBackgroundColor_value_type == 0))) { + if (value_focusedAreaBackgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_focusedAreaBackgroundColor_value_0 = value_focusedAreaBackgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_focusedAreaBackgroundColor_value_0)); } - else if (((value_focusedAreaBackgroundColor_value_type == 1))) { + else if (value_focusedAreaBackgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_focusedAreaBackgroundColor_value_1 = value_focusedAreaBackgroundColor_value.value1; valueSerializer.writeNumber(value_focusedAreaBackgroundColor_value_1); } - else if (((value_focusedAreaBackgroundColor_value_type == 2))) { + else if (value_focusedAreaBackgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_focusedAreaBackgroundColor_value_2 = value_focusedAreaBackgroundColor_value.value2; valueSerializer.writeString(value_focusedAreaBackgroundColor_value_2); } - else if (((value_focusedAreaBackgroundColor_value_type == 3))) { + else if (value_focusedAreaBackgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_focusedAreaBackgroundColor_value_3 = value_focusedAreaBackgroundColor_value.value3; valueSerializer.writeResource(value_focusedAreaBackgroundColor_value_3); @@ -71606,22 +73405,22 @@ class Serializer : public SerializerBase { const auto value_nonCurrentMonthDayColor_value = value_nonCurrentMonthDayColor.value; Ark_Int32 value_nonCurrentMonthDayColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_nonCurrentMonthDayColor_value_type = value_nonCurrentMonthDayColor_value.selector; - if (((value_nonCurrentMonthDayColor_value_type == 0))) { + if (value_nonCurrentMonthDayColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_nonCurrentMonthDayColor_value_0 = value_nonCurrentMonthDayColor_value.value0; valueSerializer.writeInt32(static_cast(value_nonCurrentMonthDayColor_value_0)); } - else if (((value_nonCurrentMonthDayColor_value_type == 1))) { + else if (value_nonCurrentMonthDayColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_nonCurrentMonthDayColor_value_1 = value_nonCurrentMonthDayColor_value.value1; valueSerializer.writeNumber(value_nonCurrentMonthDayColor_value_1); } - else if (((value_nonCurrentMonthDayColor_value_type == 2))) { + else if (value_nonCurrentMonthDayColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_nonCurrentMonthDayColor_value_2 = value_nonCurrentMonthDayColor_value.value2; valueSerializer.writeString(value_nonCurrentMonthDayColor_value_2); } - else if (((value_nonCurrentMonthDayColor_value_type == 3))) { + else if (value_nonCurrentMonthDayColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_nonCurrentMonthDayColor_value_3 = value_nonCurrentMonthDayColor_value.value3; valueSerializer.writeResource(value_nonCurrentMonthDayColor_value_3); @@ -71635,22 +73434,22 @@ class Serializer : public SerializerBase { const auto value_nonCurrentMonthLunarColor_value = value_nonCurrentMonthLunarColor.value; Ark_Int32 value_nonCurrentMonthLunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_nonCurrentMonthLunarColor_value_type = value_nonCurrentMonthLunarColor_value.selector; - if (((value_nonCurrentMonthLunarColor_value_type == 0))) { + if (value_nonCurrentMonthLunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_nonCurrentMonthLunarColor_value_0 = value_nonCurrentMonthLunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_nonCurrentMonthLunarColor_value_0)); } - else if (((value_nonCurrentMonthLunarColor_value_type == 1))) { + else if (value_nonCurrentMonthLunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_nonCurrentMonthLunarColor_value_1 = value_nonCurrentMonthLunarColor_value.value1; valueSerializer.writeNumber(value_nonCurrentMonthLunarColor_value_1); } - else if (((value_nonCurrentMonthLunarColor_value_type == 2))) { + else if (value_nonCurrentMonthLunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_nonCurrentMonthLunarColor_value_2 = value_nonCurrentMonthLunarColor_value.value2; valueSerializer.writeString(value_nonCurrentMonthLunarColor_value_2); } - else if (((value_nonCurrentMonthLunarColor_value_type == 3))) { + else if (value_nonCurrentMonthLunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_nonCurrentMonthLunarColor_value_3 = value_nonCurrentMonthLunarColor_value.value3; valueSerializer.writeResource(value_nonCurrentMonthLunarColor_value_3); @@ -71664,22 +73463,22 @@ class Serializer : public SerializerBase { const auto value_nonCurrentMonthWorkDayMarkColor_value = value_nonCurrentMonthWorkDayMarkColor.value; Ark_Int32 value_nonCurrentMonthWorkDayMarkColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_nonCurrentMonthWorkDayMarkColor_value_type = value_nonCurrentMonthWorkDayMarkColor_value.selector; - if (((value_nonCurrentMonthWorkDayMarkColor_value_type == 0))) { + if (value_nonCurrentMonthWorkDayMarkColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_nonCurrentMonthWorkDayMarkColor_value_0 = value_nonCurrentMonthWorkDayMarkColor_value.value0; valueSerializer.writeInt32(static_cast(value_nonCurrentMonthWorkDayMarkColor_value_0)); } - else if (((value_nonCurrentMonthWorkDayMarkColor_value_type == 1))) { + else if (value_nonCurrentMonthWorkDayMarkColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_nonCurrentMonthWorkDayMarkColor_value_1 = value_nonCurrentMonthWorkDayMarkColor_value.value1; valueSerializer.writeNumber(value_nonCurrentMonthWorkDayMarkColor_value_1); } - else if (((value_nonCurrentMonthWorkDayMarkColor_value_type == 2))) { + else if (value_nonCurrentMonthWorkDayMarkColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_nonCurrentMonthWorkDayMarkColor_value_2 = value_nonCurrentMonthWorkDayMarkColor_value.value2; valueSerializer.writeString(value_nonCurrentMonthWorkDayMarkColor_value_2); } - else if (((value_nonCurrentMonthWorkDayMarkColor_value_type == 3))) { + else if (value_nonCurrentMonthWorkDayMarkColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_nonCurrentMonthWorkDayMarkColor_value_3 = value_nonCurrentMonthWorkDayMarkColor_value.value3; valueSerializer.writeResource(value_nonCurrentMonthWorkDayMarkColor_value_3); @@ -71693,22 +73492,22 @@ class Serializer : public SerializerBase { const auto value_nonCurrentMonthOffDayMarkColor_value = value_nonCurrentMonthOffDayMarkColor.value; Ark_Int32 value_nonCurrentMonthOffDayMarkColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_nonCurrentMonthOffDayMarkColor_value_type = value_nonCurrentMonthOffDayMarkColor_value.selector; - if (((value_nonCurrentMonthOffDayMarkColor_value_type == 0))) { + if (value_nonCurrentMonthOffDayMarkColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_nonCurrentMonthOffDayMarkColor_value_0 = value_nonCurrentMonthOffDayMarkColor_value.value0; valueSerializer.writeInt32(static_cast(value_nonCurrentMonthOffDayMarkColor_value_0)); } - else if (((value_nonCurrentMonthOffDayMarkColor_value_type == 1))) { + else if (value_nonCurrentMonthOffDayMarkColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_nonCurrentMonthOffDayMarkColor_value_1 = value_nonCurrentMonthOffDayMarkColor_value.value1; valueSerializer.writeNumber(value_nonCurrentMonthOffDayMarkColor_value_1); } - else if (((value_nonCurrentMonthOffDayMarkColor_value_type == 2))) { + else if (value_nonCurrentMonthOffDayMarkColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_nonCurrentMonthOffDayMarkColor_value_2 = value_nonCurrentMonthOffDayMarkColor_value.value2; valueSerializer.writeString(value_nonCurrentMonthOffDayMarkColor_value_2); } - else if (((value_nonCurrentMonthOffDayMarkColor_value_type == 3))) { + else if (value_nonCurrentMonthOffDayMarkColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_nonCurrentMonthOffDayMarkColor_value_3 = value_nonCurrentMonthOffDayMarkColor_value.value3; valueSerializer.writeResource(value_nonCurrentMonthOffDayMarkColor_value_3); @@ -71726,22 +73525,22 @@ class Serializer : public SerializerBase { const auto value_dayColor_value = value_dayColor.value; Ark_Int32 value_dayColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_dayColor_value_type = value_dayColor_value.selector; - if (((value_dayColor_value_type == 0))) { + if (value_dayColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_dayColor_value_0 = value_dayColor_value.value0; valueSerializer.writeInt32(static_cast(value_dayColor_value_0)); } - else if (((value_dayColor_value_type == 1))) { + else if (value_dayColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_dayColor_value_1 = value_dayColor_value.value1; valueSerializer.writeNumber(value_dayColor_value_1); } - else if (((value_dayColor_value_type == 2))) { + else if (value_dayColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_dayColor_value_2 = value_dayColor_value.value2; valueSerializer.writeString(value_dayColor_value_2); } - else if (((value_dayColor_value_type == 3))) { + else if (value_dayColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_dayColor_value_3 = value_dayColor_value.value3; valueSerializer.writeResource(value_dayColor_value_3); @@ -71755,22 +73554,22 @@ class Serializer : public SerializerBase { const auto value_lunarColor_value = value_lunarColor.value; Ark_Int32 value_lunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_lunarColor_value_type = value_lunarColor_value.selector; - if (((value_lunarColor_value_type == 0))) { + if (value_lunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_lunarColor_value_0 = value_lunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_lunarColor_value_0)); } - else if (((value_lunarColor_value_type == 1))) { + else if (value_lunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_lunarColor_value_1 = value_lunarColor_value.value1; valueSerializer.writeNumber(value_lunarColor_value_1); } - else if (((value_lunarColor_value_type == 2))) { + else if (value_lunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_lunarColor_value_2 = value_lunarColor_value.value2; valueSerializer.writeString(value_lunarColor_value_2); } - else if (((value_lunarColor_value_type == 3))) { + else if (value_lunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_lunarColor_value_3 = value_lunarColor_value.value3; valueSerializer.writeResource(value_lunarColor_value_3); @@ -71784,22 +73583,22 @@ class Serializer : public SerializerBase { const auto value_markLunarColor_value = value_markLunarColor.value; Ark_Int32 value_markLunarColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_markLunarColor_value_type = value_markLunarColor_value.selector; - if (((value_markLunarColor_value_type == 0))) { + if (value_markLunarColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_markLunarColor_value_0 = value_markLunarColor_value.value0; valueSerializer.writeInt32(static_cast(value_markLunarColor_value_0)); } - else if (((value_markLunarColor_value_type == 1))) { + else if (value_markLunarColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_markLunarColor_value_1 = value_markLunarColor_value.value1; valueSerializer.writeNumber(value_markLunarColor_value_1); } - else if (((value_markLunarColor_value_type == 2))) { + else if (value_markLunarColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_markLunarColor_value_2 = value_markLunarColor_value.value2; valueSerializer.writeString(value_markLunarColor_value_2); } - else if (((value_markLunarColor_value_type == 3))) { + else if (value_markLunarColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_markLunarColor_value_3 = value_markLunarColor_value.value3; valueSerializer.writeResource(value_markLunarColor_value_3); @@ -72047,12 +73846,12 @@ class Serializer : public SerializerBase { const auto value_position_value = value_position.value; Ark_Int32 value_position_value_type = INTEROP_RUNTIME_UNDEFINED; value_position_value_type = value_position_value.selector; - if (((value_position_value_type == 0))) { + if (value_position_value_type == 0) { valueSerializer.writeInt8(0); const auto value_position_value_0 = value_position_value.value0; valueSerializer.writeInt32(static_cast(value_position_value_0)); } - else if (((value_position_value_type == 1))) { + else if (value_position_value_type == 1) { valueSerializer.writeInt8(1); const auto value_position_value_1 = value_position_value.value1; valueSerializer.writePosition(value_position_value_1); @@ -72074,12 +73873,12 @@ class Serializer : public SerializerBase { const auto value_position_value = value_position.value; Ark_Int32 value_position_value_type = INTEROP_RUNTIME_UNDEFINED; value_position_value_type = value_position_value.selector; - if (((value_position_value_type == 0))) { + if (value_position_value_type == 0) { valueSerializer.writeInt8(0); const auto value_position_value_0 = value_position_value.value0; valueSerializer.writeInt32(static_cast(value_position_value_0)); } - else if (((value_position_value_type == 1))) { + else if (value_position_value_type == 1) { valueSerializer.writeInt8(1); const auto value_position_value_1 = value_position_value.value1; valueSerializer.writePosition(value_position_value_1); @@ -72160,12 +73959,12 @@ class Serializer : public SerializerBase { const auto value_value = value.value; Ark_Int32 value_value_type = INTEROP_RUNTIME_UNDEFINED; value_value_type = value_value.selector; - if (((value_value_type == 0))) { + if (value_value_type == 0) { valueSerializer.writeInt8(0); const auto value_value_0 = value_value.value0; valueSerializer.writeString(value_value_0); } - else if (((value_value_type == 1))) { + else if (value_value_type == 1) { valueSerializer.writeInt8(1); const auto value_value_1 = value_value.value1; valueSerializer.writeResource(value_value_1); @@ -72178,22 +73977,22 @@ class Serializer : public SerializerBase { const auto value_fontColor_value = value_fontColor.value; Ark_Int32 value_fontColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_fontColor_value_type = value_fontColor_value.selector; - if (((value_fontColor_value_type == 0))) { + if (value_fontColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_fontColor_value_0 = value_fontColor_value.value0; valueSerializer.writeInt32(static_cast(value_fontColor_value_0)); } - else if (((value_fontColor_value_type == 1))) { + else if (value_fontColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_fontColor_value_1 = value_fontColor_value.value1; valueSerializer.writeNumber(value_fontColor_value_1); } - else if (((value_fontColor_value_type == 2))) { + else if (value_fontColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_fontColor_value_2 = value_fontColor_value.value2; valueSerializer.writeString(value_fontColor_value_2); } - else if (((value_fontColor_value_type == 3))) { + else if (value_fontColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_fontColor_value_3 = value_fontColor_value.value3; valueSerializer.writeResource(value_fontColor_value_3); @@ -72207,22 +74006,22 @@ class Serializer : public SerializerBase { const auto value_backgroundColor_value = value_backgroundColor.value; Ark_Int32 value_backgroundColor_value_type = INTEROP_RUNTIME_UNDEFINED; value_backgroundColor_value_type = value_backgroundColor_value.selector; - if (((value_backgroundColor_value_type == 0))) { + if (value_backgroundColor_value_type == 0) { valueSerializer.writeInt8(0); const auto value_backgroundColor_value_0 = value_backgroundColor_value.value0; valueSerializer.writeInt32(static_cast(value_backgroundColor_value_0)); } - else if (((value_backgroundColor_value_type == 1))) { + else if (value_backgroundColor_value_type == 1) { valueSerializer.writeInt8(1); const auto value_backgroundColor_value_1 = value_backgroundColor_value.value1; valueSerializer.writeNumber(value_backgroundColor_value_1); } - else if (((value_backgroundColor_value_type == 2))) { + else if (value_backgroundColor_value_type == 2) { valueSerializer.writeInt8(2); const auto value_backgroundColor_value_2 = value_backgroundColor_value.value2; valueSerializer.writeString(value_backgroundColor_value_2); } - else if (((value_backgroundColor_value_type == 3))) { + else if (value_backgroundColor_value_type == 3) { valueSerializer.writeInt8(3); const auto value_backgroundColor_value_3 = value_backgroundColor_value.value3; valueSerializer.writeResource(value_backgroundColor_value_3); @@ -72262,12 +74061,12 @@ class Serializer : public SerializerBase { const auto value_title = value.title; Ark_Int32 value_title_type = INTEROP_RUNTIME_UNDEFINED; value_title_type = value_title.selector; - if (((value_title_type == 0))) { + if (value_title_type == 0) { valueSerializer.writeInt8(0); const auto value_title_0 = value_title.value0; valueSerializer.writeString(value_title_0); } - else if (((value_title_type == 1))) { + else if (value_title_type == 1) { valueSerializer.writeInt8(1); const auto value_title_1 = value_title.value1; valueSerializer.writeResource(value_title_1); @@ -72280,12 +74079,12 @@ class Serializer : public SerializerBase { const auto value_icon_value = value_icon.value; Ark_Int32 value_icon_value_type = INTEROP_RUNTIME_UNDEFINED; value_icon_value_type = value_icon_value.selector; - if (((value_icon_value_type == 0))) { + if (value_icon_value_type == 0) { valueSerializer.writeInt8(0); const auto value_icon_value_0 = value_icon_value.value0; valueSerializer.writeString(value_icon_value_0); } - else if (((value_icon_value_type == 1))) { + else if (value_icon_value_type == 1) { valueSerializer.writeInt8(1); const auto value_icon_value_1 = value_icon_value.value1; valueSerializer.writeResource(value_icon_value_1); @@ -72329,6 +74128,11 @@ class Serializer : public SerializerBase { const auto value_headerValue = value.headerValue; valueSerializer.writeString(value_headerValue); } + void writeSystemOps(Ark_SystemOps value) + { + Serializer& valueSerializer = *this; + valueSerializer.writePointer(value); + } void writeLazyForEachOps(Ark_LazyForEachOps value) { Serializer& valueSerializer = *this; @@ -73768,6 +75572,13 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_Affinity readAffinity() + { + Ark_Affinity value = {}; + Deserializer& valueDeserializer = *this; + value._AffinityStub = static_cast(valueDeserializer.readString()); + return value; + } Ark_TabBarIconStyle readTabBarIconStyle() { Ark_TabBarIconStyle value = {}; @@ -76004,6 +77815,21 @@ class Deserializer : public DeserializerBase { value._DrawContextStub = static_cast(valueDeserializer.readString()); return value; } + Ark_CustomSpanMetrics readCustomSpanMetrics() + { + Ark_CustomSpanMetrics value = {}; + Deserializer& valueDeserializer = *this; + value.width = static_cast(valueDeserializer.readNumber()); + const auto height_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Number height_buf = {}; + height_buf.tag = height_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (height_buf_runtimeType)) + { + height_buf.value = static_cast(valueDeserializer.readNumber()); + } + value.height = height_buf; + return value; + } Ark_CustomSpanMeasureInfo readCustomSpanMeasureInfo() { Ark_CustomSpanMeasureInfo value = {}; @@ -76124,6 +77950,11 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_WaterFlowAttribute readWaterFlowAttribute() + { + Ark_WaterFlowAttribute value = {}; + return value; + } Ark_WaterFlowSections readWaterFlowSections() { Deserializer& valueDeserializer = *this; @@ -76451,6 +78282,16 @@ class Deserializer : public DeserializerBase { value.lock = lock_buf; return value; } + Ark_WindowSceneAttribute readWindowSceneAttribute() + { + Ark_WindowSceneAttribute value = {}; + return value; + } + Ark_WebAttribute readWebAttribute() + { + Ark_WebAttribute value = {}; + return value; + } Ark_SelectionMenuOptionsExt readSelectionMenuOptionsExt() { Ark_SelectionMenuOptionsExt value = {}; @@ -76742,6 +78583,12 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_WebCookie readWebCookie() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_ScreenCaptureConfig readScreenCaptureConfig() { Ark_ScreenCaptureConfig value = {}; @@ -77413,6 +79260,11 @@ class Deserializer : public DeserializerBase { value.endMargin = endMargin_buf; return value; } + Ark_TextInputAttribute readTextInputAttribute() + { + Ark_TextInputAttribute value = {}; + return value; + } Ark_InputCounterOptions readInputCounterOptions() { Ark_InputCounterOptions value = {}; @@ -77661,18 +79513,63 @@ class Deserializer : public DeserializerBase { value.id = static_cast(valueDeserializer.readTextMenuItemId()); return value; } + Ark_LineMetrics readLineMetrics() + { + Ark_LineMetrics value = {}; + Deserializer& valueDeserializer = *this; + value._LineMetricsStub = static_cast(valueDeserializer.readString()); + return value; + } + Ark_PositionWithAffinity readPositionWithAffinity() + { + Ark_PositionWithAffinity value = {}; + Deserializer& valueDeserializer = *this; + value.position = static_cast(valueDeserializer.readNumber()); + value.affinity = valueDeserializer.readAffinity(); + return value; + } + Ark_MutableStyledString readMutableStyledString() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_PreviewText readPreviewText() + { + Ark_PreviewText value = {}; + Deserializer& valueDeserializer = *this; + value.offset = static_cast(valueDeserializer.readNumber()); + value.value = static_cast(valueDeserializer.readString()); + return value; + } + Ark_LayoutManager readLayoutManager() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_TextClockController readTextClockController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TextAreaAttribute readTextAreaAttribute() + { + Ark_TextAreaAttribute value = {}; + return value; + } Ark_TextAreaController readTextAreaController() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TextAttribute readTextAttribute() + { + Ark_TextAttribute value = {}; + return value; + } Ark_SelectionMenuOptions readSelectionMenuOptions() { Ark_SelectionMenuOptions value = {}; @@ -78085,6 +79982,11 @@ class Deserializer : public DeserializerBase { value.text = text_buf; return value; } + Ark_TabsAttribute readTabsAttribute() + { + Ark_TabsAttribute value = {}; + return value; + } Ark_BackgroundBlurStyleOptions readBackgroundBlurStyleOptions() { Ark_BackgroundBlurStyleOptions value = {}; @@ -78204,6 +80106,11 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_SymbolGlyphAttribute readSymbolGlyphAttribute() + { + Ark_SymbolGlyphAttribute value = {}; + return value; + } Ark_SymbolEffect readSymbolEffect() { Ark_SymbolEffect value = {}; @@ -78501,6 +80408,11 @@ class Deserializer : public DeserializerBase { value._maxDisplayCount = _maxDisplayCount_buf; return value; } + Ark_SwiperAttribute readSwiperAttribute() + { + Ark_SwiperAttribute value = {}; + return value; + } Ark_SwiperAutoFill readSwiperAutoFill() { Ark_SwiperAutoFill value = {}; @@ -78620,6 +80532,21 @@ class Deserializer : public DeserializerBase { value.arrowColor = arrowColor_buf; return value; } + Ark_SliderAttribute readSliderAttribute() + { + Ark_SliderAttribute value = {}; + return value; + } + Ark_ShapeAttribute readShapeAttribute() + { + Ark_ShapeAttribute value = {}; + return value; + } + Ark_SelectAttribute readSelectAttribute() + { + Ark_SelectAttribute value = {}; + return value; + } Ark_LocalizedEdges readLocalizedEdges() { Ark_LocalizedEdges value = {}; @@ -78696,6 +80623,11 @@ class Deserializer : public DeserializerBase { value.right = right_buf; return value; } + Ark_SearchAttribute readSearchAttribute() + { + Ark_SearchAttribute value = {}; + return value; + } Ark_SearchButtonOptions readSearchButtonOptions() { Ark_SearchButtonOptions value = {}; @@ -78798,6 +80730,11 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_ScrollAttribute readScrollAttribute() + { + Ark_ScrollAttribute value = {}; + return value; + } Ark_EdgeEffectOptions readEdgeEffectOptions() { Ark_EdgeEffectOptions value = {}; @@ -78805,6 +80742,16 @@ class Deserializer : public DeserializerBase { value.alwaysEnabled = valueDeserializer.readBoolean(); return value; } + Ark_RectResult readRectResult() + { + Ark_RectResult value = {}; + Deserializer& valueDeserializer = *this; + value.x = static_cast(valueDeserializer.readNumber()); + value.y = static_cast(valueDeserializer.readNumber()); + value.width = static_cast(valueDeserializer.readNumber()); + value.height = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ScrollToIndexOptions readScrollToIndexOptions() { Ark_ScrollToIndexOptions value = {}; @@ -78819,6 +80766,14 @@ class Deserializer : public DeserializerBase { value.extraOffset = extraOffset_buf; return value; } + Ark_OffsetResult readOffsetResult() + { + Ark_OffsetResult value = {}; + Deserializer& valueDeserializer = *this; + value.xOffset = static_cast(valueDeserializer.readNumber()); + value.yOffset = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ScrollPageOptions readScrollPageOptions() { Ark_ScrollPageOptions value = {}; @@ -78918,6 +80873,11 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_RichEditorAttribute readRichEditorAttribute() + { + Ark_RichEditorAttribute value = {}; + return value; + } Ark_PlaceholderStyle readPlaceholderStyle() { Ark_PlaceholderStyle value = {}; @@ -79093,6 +81053,38 @@ class Deserializer : public DeserializerBase { value.end = end_buf; return value; } + Ark_RichEditorSelection readRichEditorSelection() + { + Ark_RichEditorSelection value = {}; + Deserializer& valueDeserializer = *this; + Ark_Tuple_Number_Number selection_buf = {}; + selection_buf.value0 = static_cast(valueDeserializer.readNumber()); + selection_buf.value1 = static_cast(valueDeserializer.readNumber()); + value.selection = selection_buf; + const Ark_Int32 spans_buf_length = valueDeserializer.readInt32(); + Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans_buf = {}; + valueDeserializer.resizeArray::type, + std::decay::type>(&spans_buf, spans_buf_length); + for (int spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { + const Ark_Int8 spans_buf_buf_selector = valueDeserializer.readInt8(); + Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans_buf_buf = {}; + spans_buf_buf.selector = spans_buf_buf_selector; + if (spans_buf_buf_selector == 0) { + spans_buf_buf.selector = 0; + spans_buf_buf.value0 = valueDeserializer.readRichEditorTextSpanResult(); + } + else if (spans_buf_buf_selector == 1) { + spans_buf_buf.selector = 1; + spans_buf_buf.value1 = valueDeserializer.readRichEditorImageSpanResult(); + } + else { + INTEROP_FATAL("One of the branches for spans_buf_buf has to be chosen through deserialisation."); + } + spans_buf.array[spans_buf_i] = static_cast(spans_buf_buf); + } + value.spans = spans_buf; + return value; + } Ark_RichEditorParagraphStyleOptions readRichEditorParagraphStyleOptions() { Ark_RichEditorParagraphStyleOptions value = {}; @@ -79889,6 +81881,11 @@ class Deserializer : public DeserializerBase { value.animated = animated_buf; return value; } + Ark_NavDestinationAttribute readNavDestinationAttribute() + { + Ark_NavDestinationAttribute value = {}; + return value; + } Ark_NavigationToolbarOptions readNavigationToolbarOptions() { Ark_NavigationToolbarOptions value = {}; @@ -80098,6 +82095,15 @@ class Deserializer : public DeserializerBase { value._SystemBarStyleStub = static_cast(valueDeserializer.readString()); return value; } + Ark_RouteMapConfig readRouteMapConfig() + { + Ark_RouteMapConfig value = {}; + Deserializer& valueDeserializer = *this; + value.name = static_cast(valueDeserializer.readString()); + value.pageSourceFile = static_cast(valueDeserializer.readString()); + value.data = static_cast(valueDeserializer.readCustomObject("Object")); + return value; + } Ark_MenuItemOptions readMenuItemOptions() { Ark_MenuItemOptions value = {}; @@ -80357,6 +82363,34 @@ class Deserializer : public DeserializerBase { value.endMargin = endMargin_buf; return value; } + Ark_ListAttribute readListAttribute() + { + Ark_ListAttribute value = {}; + return value; + } + Ark_VisibleListContentInfo readVisibleListContentInfo() + { + Ark_VisibleListContentInfo value = {}; + Deserializer& valueDeserializer = *this; + value.index = static_cast(valueDeserializer.readNumber()); + const auto itemGroupArea_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ListItemGroupArea itemGroupArea_buf = {}; + itemGroupArea_buf.tag = itemGroupArea_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (itemGroupArea_buf_runtimeType)) + { + itemGroupArea_buf.value = static_cast(valueDeserializer.readInt32()); + } + value.itemGroupArea = itemGroupArea_buf; + const auto itemIndexInGroup_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_Number itemIndexInGroup_buf = {}; + itemIndexInGroup_buf.tag = itemIndexInGroup_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) + { + itemIndexInGroup_buf.value = static_cast(valueDeserializer.readNumber()); + } + value.itemIndexInGroup = itemIndexInGroup_buf; + return value; + } Ark_CloseSwipeActionOptions readCloseSwipeActionOptions() { Ark_CloseSwipeActionOptions value = {}; @@ -80413,6 +82447,23 @@ class Deserializer : public DeserializerBase { value.reference = reference_buf; return value; } + Ark_GridAttribute readGridAttribute() + { + Ark_GridAttribute value = {}; + return value; + } + Ark_PanGestureOptions readPanGestureOptions() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_EventTargetInfo readEventTargetInfo() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_WindowStatusType readWindowStatusType() { Ark_WindowStatusType value = {}; @@ -80831,6 +82882,11 @@ class Deserializer : public DeserializerBase { value.expectedFrameRateRange = expectedFrameRateRange_buf; return value; } + Ark_Component3DAttribute readComponent3DAttribute() + { + Ark_Component3DAttribute value = {}; + return value; + } Ark_UIGestureEvent readUIGestureEvent() { Ark_UIGestureEvent value = {}; @@ -80879,6 +82935,33 @@ class Deserializer : public DeserializerBase { value._RectShapeStub = static_cast(valueDeserializer.readString()); return value; } + Ark_CaretOffset readCaretOffset() + { + Ark_CaretOffset value = {}; + Deserializer& valueDeserializer = *this; + value.index = static_cast(valueDeserializer.readNumber()); + value.x = static_cast(valueDeserializer.readNumber()); + value.y = static_cast(valueDeserializer.readNumber()); + return value; + } + Ark_DirectionalEdgesT readDirectionalEdgesT() + { + Ark_DirectionalEdgesT value = {}; + Deserializer& valueDeserializer = *this; + value.start = static_cast(valueDeserializer.readNumber()); + value.end = static_cast(valueDeserializer.readNumber()); + value.top = static_cast(valueDeserializer.readNumber()); + value.bottom = static_cast(valueDeserializer.readNumber()); + return value; + } + Ark_MeasureResult readMeasureResult() + { + Ark_MeasureResult value = {}; + Deserializer& valueDeserializer = *this; + value.width = static_cast(valueDeserializer.readNumber()); + value.height = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ConstraintSizeOptions readConstraintSizeOptions() { Ark_ConstraintSizeOptions value = {}; @@ -83297,16 +85380,6 @@ class Deserializer : public DeserializerBase { value._DrawingLatticeStub = static_cast(valueDeserializer.readString()); return value; } - Ark_RectResult readRectResult() - { - Ark_RectResult value = {}; - Deserializer& valueDeserializer = *this; - value.x = static_cast(valueDeserializer.readNumber()); - value.y = static_cast(valueDeserializer.readNumber()); - value.width = static_cast(valueDeserializer.readNumber()); - value.height = static_cast(valueDeserializer.readNumber()); - return value; - } Ark_DrawModifier readDrawModifier() { Deserializer& valueDeserializer = *this; @@ -83320,12 +85393,35 @@ class Deserializer : public DeserializerBase { value._IntentionCodeStub = static_cast(valueDeserializer.readString()); return value; } + Ark_Summary readSummary() + { + Ark_Summary value = {}; + Deserializer& valueDeserializer = *this; + value._SummaryStub = static_cast(valueDeserializer.readString()); + return value; + } Ark_UnifiedData readUnifiedData() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TouchObject readTouchObject() + { + Ark_TouchObject value = {}; + Deserializer& valueDeserializer = *this; + value.type = static_cast(valueDeserializer.readInt32()); + value.id = static_cast(valueDeserializer.readNumber()); + value.displayX = static_cast(valueDeserializer.readNumber()); + value.displayY = static_cast(valueDeserializer.readNumber()); + value.windowX = static_cast(valueDeserializer.readNumber()); + value.windowY = static_cast(valueDeserializer.readNumber()); + value.screenX = static_cast(valueDeserializer.readNumber()); + value.screenY = static_cast(valueDeserializer.readNumber()); + value.x = static_cast(valueDeserializer.readNumber()); + value.y = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ColumnSplitDividerStyle readColumnSplitDividerStyle() { Ark_ColumnSplitDividerStyle value = {}; @@ -83400,12 +85496,43 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_OffscreenCanvasRenderingContext2D readOffscreenCanvasRenderingContext2D() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } + Ark_RenderingContextSettings readRenderingContextSettings() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_ImageBitmap readImageBitmap() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TextMetrics readTextMetrics() + { + Ark_TextMetrics value = {}; + Deserializer& valueDeserializer = *this; + value.actualBoundingBoxAscent = static_cast(valueDeserializer.readNumber()); + value.actualBoundingBoxDescent = static_cast(valueDeserializer.readNumber()); + value.actualBoundingBoxLeft = static_cast(valueDeserializer.readNumber()); + value.actualBoundingBoxRight = static_cast(valueDeserializer.readNumber()); + value.alphabeticBaseline = static_cast(valueDeserializer.readNumber()); + value.emHeightAscent = static_cast(valueDeserializer.readNumber()); + value.emHeightDescent = static_cast(valueDeserializer.readNumber()); + value.fontBoundingBoxAscent = static_cast(valueDeserializer.readNumber()); + value.fontBoundingBoxDescent = static_cast(valueDeserializer.readNumber()); + value.hangingBaseline = static_cast(valueDeserializer.readNumber()); + value.ideographicBaseline = static_cast(valueDeserializer.readNumber()); + value.width = static_cast(valueDeserializer.readNumber()); + value.height = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ImageData readImageData() { Deserializer& valueDeserializer = *this; @@ -83602,6 +85729,11 @@ class Deserializer : public DeserializerBase { value.hoverModeArea = hoverModeArea_buf; return value; } + Ark_CalendarPickerAttribute readCalendarPickerAttribute() + { + Ark_CalendarPickerAttribute value = {}; + return value; + } Ark_CalendarController readCalendarController() { Deserializer& valueDeserializer = *this; @@ -83798,6 +85930,11 @@ class Deserializer : public DeserializerBase { value.fontWeight = fontWeight_buf; return value; } + Ark_AlphabetIndexerAttribute readAlphabetIndexerAttribute() + { + Ark_AlphabetIndexerAttribute value = {}; + return value; + } Ark_AlertDialogParamWithOptions readAlertDialogParamWithOptions() { Ark_AlertDialogParamWithOptions value = {}; @@ -86333,12 +88470,6 @@ class Deserializer : public DeserializerBase { value.layoutStyle = layoutStyle_buf; return value; } - Ark_MutableStyledString readMutableStyledString() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_UrlStyle readUrlStyle() { Deserializer& valueDeserializer = *this; @@ -87574,12 +89705,6 @@ class Deserializer : public DeserializerBase { value.sharedRenderProcessToken = sharedRenderProcessToken_buf; return value; } - Ark_WebCookie readWebCookie() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_Header readHeader() { Ark_Header value = {}; @@ -88266,11 +90391,12 @@ class Deserializer : public DeserializerBase { value.controller = controller_buf; return value; } - Ark_LayoutManager readLayoutManager() + Ark_TextBox readTextBox() { + Ark_TextBox value = {}; Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); + value._TextBoxStub = static_cast(valueDeserializer.readString()); + return value; } Ark_StyledStringController readStyledStringController() { @@ -88895,14 +91021,6 @@ class Deserializer : public DeserializerBase { value.style = style_buf; return value; } - Ark_PreviewText readPreviewText() - { - Ark_PreviewText value = {}; - Deserializer& valueDeserializer = *this; - value.offset = static_cast(valueDeserializer.readNumber()); - value.value = static_cast(valueDeserializer.readString()); - return value; - } Ark_CaretStyle readCaretStyle() { Ark_CaretStyle value = {}; @@ -89372,38 +91490,6 @@ class Deserializer : public DeserializerBase { value.previewText = previewText_buf; return value; } - Ark_RichEditorSelection readRichEditorSelection() - { - Ark_RichEditorSelection value = {}; - Deserializer& valueDeserializer = *this; - Ark_Tuple_Number_Number selection_buf = {}; - selection_buf.value0 = static_cast(valueDeserializer.readNumber()); - selection_buf.value1 = static_cast(valueDeserializer.readNumber()); - value.selection = selection_buf; - const Ark_Int32 spans_buf_length = valueDeserializer.readInt32(); - Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans_buf = {}; - valueDeserializer.resizeArray::type, - std::decay::type>(&spans_buf, spans_buf_length); - for (int spans_buf_i = 0; spans_buf_i < spans_buf_length; spans_buf_i++) { - const Ark_Int8 spans_buf_buf_selector = valueDeserializer.readInt8(); - Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans_buf_buf = {}; - spans_buf_buf.selector = spans_buf_buf_selector; - if (spans_buf_buf_selector == 0) { - spans_buf_buf.selector = 0; - spans_buf_buf.value0 = valueDeserializer.readRichEditorTextSpanResult(); - } - else if (spans_buf_buf_selector == 1) { - spans_buf_buf.selector = 1; - spans_buf_buf.value1 = valueDeserializer.readRichEditorImageSpanResult(); - } - else { - INTEROP_FATAL("One of the branches for spans_buf_buf has to be chosen through deserialisation."); - } - spans_buf.array[spans_buf_i] = static_cast(spans_buf_buf); - } - value.spans = spans_buf; - return value; - } Ark_StyledStringChangeValue readStyledStringChangeValue() { Ark_StyledStringChangeValue value = {}; @@ -89420,6 +91506,17 @@ class Deserializer : public DeserializerBase { value.previewText = previewText_buf; return value; } + Ark_RichEditorParagraphResult readRichEditorParagraphResult() + { + Ark_RichEditorParagraphResult value = {}; + Deserializer& valueDeserializer = *this; + value.style = valueDeserializer.readRichEditorParagraphStyle(); + Ark_Tuple_Number_Number range_buf = {}; + range_buf.value0 = static_cast(valueDeserializer.readNumber()); + range_buf.value1 = static_cast(valueDeserializer.readNumber()); + value.range = range_buf; + return value; + } Ark_RichEditorBaseController readRichEditorBaseController() { Deserializer& valueDeserializer = *this; @@ -90442,29 +92539,6 @@ class Deserializer : public DeserializerBase { value.style = style_buf; return value; } - Ark_VisibleListContentInfo readVisibleListContentInfo() - { - Ark_VisibleListContentInfo value = {}; - Deserializer& valueDeserializer = *this; - value.index = static_cast(valueDeserializer.readNumber()); - const auto itemGroupArea_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_ListItemGroupArea itemGroupArea_buf = {}; - itemGroupArea_buf.tag = itemGroupArea_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (itemGroupArea_buf_runtimeType)) - { - itemGroupArea_buf.value = static_cast(valueDeserializer.readInt32()); - } - value.itemGroupArea = itemGroupArea_buf; - const auto itemIndexInGroup_buf_runtimeType = static_cast(valueDeserializer.readInt8()); - Opt_Number itemIndexInGroup_buf = {}; - itemIndexInGroup_buf.tag = itemIndexInGroup_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (itemIndexInGroup_buf_runtimeType)) - { - itemIndexInGroup_buf.value = static_cast(valueDeserializer.readNumber()); - } - value.itemIndexInGroup = itemIndexInGroup_buf; - return value; - } Ark_ChainAnimationOptions readChainAnimationOptions() { Ark_ChainAnimationOptions value = {}; @@ -91068,24 +93142,12 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } - Ark_EventTargetInfo readEventTargetInfo() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_ScrollableTargetInfo readScrollableTargetInfo() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } - Ark_PanGestureOptions readPanGestureOptions() - { - Deserializer& valueDeserializer = *this; - Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); - } Ark_GestureEvent readGestureEvent() { Deserializer& valueDeserializer = *this; @@ -92425,14 +94487,6 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } - Ark_OffsetResult readOffsetResult() - { - Ark_OffsetResult value = {}; - Deserializer& valueDeserializer = *this; - value.xOffset = static_cast(valueDeserializer.readNumber()); - value.yOffset = static_cast(valueDeserializer.readNumber()); - return value; - } Ark_TextContentControllerBase readTextContentControllerBase() { Deserializer& valueDeserializer = *this; @@ -94204,20 +96258,14 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } - Ark_TouchObject readTouchObject() + Ark_HistoricalPoint readHistoricalPoint() { - Ark_TouchObject value = {}; + Ark_HistoricalPoint value = {}; Deserializer& valueDeserializer = *this; - value.type = static_cast(valueDeserializer.readInt32()); - value.id = static_cast(valueDeserializer.readNumber()); - value.displayX = static_cast(valueDeserializer.readNumber()); - value.displayY = static_cast(valueDeserializer.readNumber()); - value.windowX = static_cast(valueDeserializer.readNumber()); - value.windowY = static_cast(valueDeserializer.readNumber()); - value.screenX = static_cast(valueDeserializer.readNumber()); - value.screenY = static_cast(valueDeserializer.readNumber()); - value.x = static_cast(valueDeserializer.readNumber()); - value.y = static_cast(valueDeserializer.readNumber()); + value.touchObject = valueDeserializer.readTouchObject(); + value.size = static_cast(valueDeserializer.readNumber()); + value.force = static_cast(valueDeserializer.readNumber()); + value.timestamp = static_cast(valueDeserializer.readNumber()); return value; } Ark_AccessibilityHoverEvent readAccessibilityHoverEvent() @@ -94463,17 +96511,17 @@ class Deserializer : public DeserializerBase { value.indicatorBuilder = indicatorBuilder_buf; return value; } - Ark_CanvasRenderer readCanvasRenderer() + Ark_OffscreenCanvas readOffscreenCanvas() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); + return static_cast(ptr); } - Ark_RenderingContextSettings readRenderingContextSettings() + Ark_CanvasRenderer readCanvasRenderer() { Deserializer& valueDeserializer = *this; Ark_NativePointer ptr = valueDeserializer.readPointer(); - return static_cast(ptr); + return static_cast(ptr); } Ark_LengthMetricsUnit readLengthMetricsUnit() { @@ -95650,6 +97698,12 @@ class Deserializer : public DeserializerBase { value.headerValue = static_cast(valueDeserializer.readString()); return value; } + Ark_SystemOps readSystemOps() + { + Deserializer& valueDeserializer = *this; + Ark_NativePointer ptr = valueDeserializer.readPointer(); + return static_cast(ptr); + } Ark_LazyForEachOps readLazyForEachOps() { Deserializer& valueDeserializer = *this; diff --git a/arkoala/framework/native/src/generated/all_events.cc b/arkoala/framework/native/src/generated/all_events.cc index 8d2200ac5ab49229879a5be3bb269ed503ab1fa9..f5dbfe49eedaeac278a6f542ba5cd9ae60ebc4fc 100644 --- a/arkoala/framework/native/src/generated/all_events.cc +++ b/arkoala/framework/native/src/generated/all_events.cc @@ -2509,12 +2509,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { _eventBufferSerializer.writeInt8(0); const auto selected_0 = selected.value0; _eventBufferSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { _eventBufferSerializer.writeInt8(1); const auto selected_1 = selected.value1; _eventBufferSerializer.writeResource(selected_1); @@ -2530,12 +2530,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeResource(value_1); @@ -3033,12 +3033,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeResource(value_1); @@ -3240,12 +3240,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeResource(value_1); @@ -3284,12 +3284,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeInt32(value_1.length); @@ -3300,12 +3300,12 @@ namespace Generated { } Ark_Int32 index_type = INTEROP_RUNTIME_UNDEFINED; index_type = index.selector; - if (((index_type == 0))) { + if (index_type == 0) { _eventBufferSerializer.writeInt8(0); const auto index_0 = index.value0; _eventBufferSerializer.writeNumber(index_0); } - else if (((index_type == 1))) { + else if (index_type == 1) { _eventBufferSerializer.writeInt8(1); const auto index_1 = index.value1; _eventBufferSerializer.writeInt32(index_1.length); @@ -3325,12 +3325,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { _eventBufferSerializer.writeInt8(0); const auto selected_0 = selected.value0; _eventBufferSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { _eventBufferSerializer.writeInt8(1); const auto selected_1 = selected.value1; _eventBufferSerializer.writeInt32(selected_1.length); @@ -3350,12 +3350,12 @@ namespace Generated { _eventBufferSerializer.writeInt32(nodeId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { _eventBufferSerializer.writeInt8(0); const auto value_0 = value.value0; _eventBufferSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { _eventBufferSerializer.writeInt8(1); const auto value_1 = value.value1; _eventBufferSerializer.writeInt32(value_1.length); @@ -3689,12 +3689,12 @@ namespace Generated { const auto event_value_data = event_value.data; Ark_Int32 event_value_data_type = INTEROP_RUNTIME_UNDEFINED; event_value_data_type = event_value_data.selector; - if (((event_value_data_type == 0))) { + if (event_value_data_type == 0) { _eventBufferSerializer.writeInt8(0); const auto event_value_data_0 = event_value_data.value0; _eventBufferSerializer.writeString(event_value_data_0); } - else if (((event_value_data_type == 1))) { + else if (event_value_data_type == 1) { _eventBufferSerializer.writeInt8(1); const auto event_value_data_1 = event_value_data.value1; _eventBufferSerializer.writeWebResourceRequest(event_value_data_1); diff --git a/arkoala/framework/native/src/generated/arkoala_api_generated.h b/arkoala/framework/native/src/generated/arkoala_api_generated.h index 2d0a02d7671dd7c5bf9c3fa8a50eca135a851ff0..e085de495b4c06ed7f20f51156108aa7a68dca7b 100644 --- a/arkoala/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala/framework/native/src/generated/arkoala_api_generated.h @@ -26,11 +26,7 @@ #include -#define INTEROP_FATAL(msg, ...) \ - do { \ - fprintf(stderr, msg "\n", ##__VA_ARGS__); \ - abort(); \ - } while(0) +#define INTEROP_FATAL(msg, ...) do { fprintf(stderr, msg "\n", ##__VA_ARGS__); abort(); } while (0) typedef enum InteropTag { @@ -160,7 +156,7 @@ typedef struct InteropBuffer { // The only include allowed in this file! Do not add anything else ever. #include -#define GENERATED_ARKUI_FULL_API_VERSION 118 +#define GENERATED_ARKUI_FULL_API_VERSION 120 #define GENERATED_ARKUI_NODE_API_VERSION GENERATED_ARKUI_FULL_API_VERSION #define GENERATED_ARKUI_BASIC_NODE_API_VERSION 1 @@ -465,6 +461,8 @@ typedef struct Opt_Type_TextPickerOptions_range Opt_Type_TextPickerOptions_range typedef struct TextMenuItemIdPeer TextMenuItemIdPeer; typedef struct TextMenuItemIdPeer* Ark_TextMenuItemId; typedef struct Opt_TextMenuItemId Opt_TextMenuItemId; +typedef struct Ark_Affinity Ark_Affinity; +typedef struct Opt_Affinity Opt_Affinity; typedef struct MenuOnAppearCallback MenuOnAppearCallback; typedef struct Opt_MenuOnAppearCallback Opt_MenuOnAppearCallback; typedef struct Ark_TabBarIconStyle Ark_TabBarIconStyle; @@ -509,6 +507,8 @@ typedef struct OnDidChangeCallback OnDidChangeCallback; typedef struct Opt_OnDidChangeCallback Opt_OnDidChangeCallback; typedef struct Callback_StyledStringChangeValue_Boolean Callback_StyledStringChangeValue_Boolean; typedef struct Opt_Callback_StyledStringChangeValue_Boolean Opt_Callback_StyledStringChangeValue_Boolean; +typedef struct Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; +typedef struct Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; typedef struct Ark_RichEditorImageSpanStyle Ark_RichEditorImageSpanStyle; typedef struct Opt_RichEditorImageSpanStyle Opt_RichEditorImageSpanStyle; typedef struct Ark_RichEditorTextStyle Ark_RichEditorTextStyle; @@ -695,6 +695,8 @@ typedef struct Ark_CustomSpanDrawInfo Ark_CustomSpanDrawInfo; typedef struct Opt_CustomSpanDrawInfo Opt_CustomSpanDrawInfo; typedef struct Ark_DrawContext Ark_DrawContext; typedef struct Opt_DrawContext Opt_DrawContext; +typedef struct Ark_CustomSpanMetrics Ark_CustomSpanMetrics; +typedef struct Opt_CustomSpanMetrics Opt_CustomSpanMetrics; typedef struct Ark_CustomSpanMeasureInfo Ark_CustomSpanMeasureInfo; typedef struct Opt_CustomSpanMeasureInfo Opt_CustomSpanMeasureInfo; typedef struct Ark_SpanStyle Ark_SpanStyle; @@ -715,6 +717,8 @@ typedef struct Map_String_ComponentContent Map_String_ComponentContent; typedef struct Opt_Map_String_ComponentContent Opt_Map_String_ComponentContent; typedef struct Callback_UIExtensionProxy_Void Callback_UIExtensionProxy_Void; typedef struct Opt_Callback_UIExtensionProxy_Void Opt_Callback_UIExtensionProxy_Void; +typedef struct Ark_WaterFlowAttribute Ark_WaterFlowAttribute; +typedef struct Opt_WaterFlowAttribute Opt_WaterFlowAttribute; typedef struct WaterFlowSectionsPeer WaterFlowSectionsPeer; typedef struct WaterFlowSectionsPeer* Ark_WaterFlowSections; typedef struct Opt_WaterFlowSections Opt_WaterFlowSections; @@ -742,6 +746,10 @@ typedef struct Ark_SurfaceRotationOptions Ark_SurfaceRotationOptions; typedef struct Opt_SurfaceRotationOptions Opt_SurfaceRotationOptions; typedef struct Ark_Literal_Number_surfaceHeight_surfaceWidth Ark_Literal_Number_surfaceHeight_surfaceWidth; typedef struct Opt_Literal_Number_surfaceHeight_surfaceWidth Opt_Literal_Number_surfaceHeight_surfaceWidth; +typedef struct Ark_WindowSceneAttribute Ark_WindowSceneAttribute; +typedef struct Opt_WindowSceneAttribute Opt_WindowSceneAttribute; +typedef struct Ark_WebAttribute Ark_WebAttribute; +typedef struct Opt_WebAttribute Opt_WebAttribute; typedef struct Ark_SelectionMenuOptionsExt Ark_SelectionMenuOptionsExt; typedef struct Opt_SelectionMenuOptionsExt Opt_SelectionMenuOptionsExt; typedef struct WebKeyboardControllerPeer WebKeyboardControllerPeer; @@ -818,6 +826,9 @@ typedef struct JsGeolocationPeer* Ark_JsGeolocation; typedef struct Opt_JsGeolocation Opt_JsGeolocation; typedef struct Ark_Union_WebController_WebviewController Ark_Union_WebController_WebviewController; typedef struct Opt_Union_WebController_WebviewController Opt_Union_WebController_WebviewController; +typedef struct WebCookiePeer WebCookiePeer; +typedef struct WebCookiePeer* Ark_WebCookie; +typedef struct Opt_WebCookie Opt_WebCookie; typedef struct Ark_Literal_Object_object__String_name_Array_String_methodList Ark_Literal_Object_object__String_name_Array_String_methodList; typedef struct Opt_Literal_Object_object__String_name_Array_String_methodList Opt_Literal_Object_object__String_name_Array_String_methodList; typedef struct Ark_Literal_Union_String_Resource_url_Array_Header_headers Ark_Literal_Union_String_Resource_url_Array_Header_headers; @@ -848,6 +859,8 @@ typedef struct Ark_DividerOptions Ark_DividerOptions; typedef struct Opt_DividerOptions Opt_DividerOptions; typedef struct Callback_ResourceStr_Void Callback_ResourceStr_Void; typedef struct Opt_Callback_ResourceStr_Void Opt_Callback_ResourceStr_Void; +typedef struct Ark_TextInputAttribute Ark_TextInputAttribute; +typedef struct Opt_TextInputAttribute Opt_TextInputAttribute; typedef struct Ark_InputCounterOptions Ark_InputCounterOptions; typedef struct Opt_InputCounterOptions Opt_InputCounterOptions; typedef struct Ark_KeyboardOptions Ark_KeyboardOptions; @@ -863,12 +876,28 @@ typedef struct Ark_TextRange Ark_TextRange; typedef struct Opt_TextRange Opt_TextRange; typedef struct Ark_TextMenuItem Ark_TextMenuItem; typedef struct Opt_TextMenuItem Opt_TextMenuItem; +typedef struct Ark_LineMetrics Ark_LineMetrics; +typedef struct Opt_LineMetrics Opt_LineMetrics; +typedef struct Ark_PositionWithAffinity Ark_PositionWithAffinity; +typedef struct Opt_PositionWithAffinity Opt_PositionWithAffinity; +typedef struct MutableStyledStringPeer MutableStyledStringPeer; +typedef struct MutableStyledStringPeer* Ark_MutableStyledString; +typedef struct Opt_MutableStyledString Opt_MutableStyledString; +typedef struct Ark_PreviewText Ark_PreviewText; +typedef struct Opt_PreviewText Opt_PreviewText; +typedef struct LayoutManagerPeer LayoutManagerPeer; +typedef struct LayoutManagerPeer* Ark_LayoutManager; +typedef struct Opt_LayoutManager Opt_LayoutManager; typedef struct TextClockControllerPeer TextClockControllerPeer; typedef struct TextClockControllerPeer* Ark_TextClockController; typedef struct Opt_TextClockController Opt_TextClockController; +typedef struct Ark_TextAreaAttribute Ark_TextAreaAttribute; +typedef struct Opt_TextAreaAttribute Opt_TextAreaAttribute; typedef struct TextAreaControllerPeer TextAreaControllerPeer; typedef struct TextAreaControllerPeer* Ark_TextAreaController; typedef struct Opt_TextAreaController Opt_TextAreaController; +typedef struct Ark_TextAttribute Ark_TextAttribute; +typedef struct Opt_TextAttribute Opt_TextAttribute; typedef struct Ark_SelectionMenuOptions Ark_SelectionMenuOptions; typedef struct Opt_SelectionMenuOptions Opt_SelectionMenuOptions; typedef struct Ark_FontSettingOptions Ark_FontSettingOptions; @@ -882,6 +911,8 @@ typedef struct Ark_SubTabBarStyle Ark_SubTabBarStyle; typedef struct Opt_SubTabBarStyle Opt_SubTabBarStyle; typedef struct Ark_TabBarOptions Ark_TabBarOptions; typedef struct Opt_TabBarOptions Opt_TabBarOptions; +typedef struct Ark_TabsAttribute Ark_TabsAttribute; +typedef struct Opt_TabsAttribute Opt_TabsAttribute; typedef struct Ark_BackgroundBlurStyleOptions Ark_BackgroundBlurStyleOptions; typedef struct Opt_BackgroundBlurStyleOptions Opt_BackgroundBlurStyleOptions; typedef struct Ark_ScrollableBarModeOptions Ark_ScrollableBarModeOptions; @@ -891,24 +922,36 @@ typedef struct Opt_TabContentAnimatedTransition Opt_TabContentAnimatedTransition typedef struct TabsControllerPeer TabsControllerPeer; typedef struct TabsControllerPeer* Ark_TabsController; typedef struct Opt_TabsController Opt_TabsController; +typedef struct Ark_SymbolGlyphAttribute Ark_SymbolGlyphAttribute; +typedef struct Opt_SymbolGlyphAttribute Opt_SymbolGlyphAttribute; typedef struct Ark_SymbolEffect Ark_SymbolEffect; typedef struct Opt_SymbolEffect Opt_SymbolEffect; typedef struct Ark_DigitIndicator Ark_DigitIndicator; typedef struct Opt_DigitIndicator Opt_DigitIndicator; typedef struct Ark_DotIndicator Ark_DotIndicator; typedef struct Opt_DotIndicator Opt_DotIndicator; +typedef struct Ark_SwiperAttribute Ark_SwiperAttribute; +typedef struct Opt_SwiperAttribute Opt_SwiperAttribute; typedef struct Ark_SwiperAutoFill Ark_SwiperAutoFill; typedef struct Opt_SwiperAutoFill Opt_SwiperAutoFill; typedef struct Ark_ArrowStyle Ark_ArrowStyle; typedef struct Opt_ArrowStyle Opt_ArrowStyle; typedef struct Callback_SwiperContentTransitionProxy_Void Callback_SwiperContentTransitionProxy_Void; typedef struct Opt_Callback_SwiperContentTransitionProxy_Void Opt_Callback_SwiperContentTransitionProxy_Void; +typedef struct Ark_SliderAttribute Ark_SliderAttribute; +typedef struct Opt_SliderAttribute Opt_SliderAttribute; +typedef struct Ark_ShapeAttribute Ark_ShapeAttribute; +typedef struct Opt_ShapeAttribute Opt_ShapeAttribute; typedef struct Callback_Union_Number_Resource_Void Callback_Union_Number_Resource_Void; typedef struct Opt_Callback_Union_Number_Resource_Void Opt_Callback_Union_Number_Resource_Void; +typedef struct Ark_SelectAttribute Ark_SelectAttribute; +typedef struct Opt_SelectAttribute Opt_SelectAttribute; typedef struct Ark_LocalizedEdges Ark_LocalizedEdges; typedef struct Opt_LocalizedEdges Opt_LocalizedEdges; typedef struct Ark_Edges Ark_Edges; typedef struct Opt_Edges Opt_Edges; +typedef struct Ark_SearchAttribute Ark_SearchAttribute; +typedef struct Opt_SearchAttribute Opt_SearchAttribute; typedef struct Ark_SearchButtonOptions Ark_SearchButtonOptions; typedef struct Opt_SearchButtonOptions Opt_SearchButtonOptions; typedef struct Ark_CancelButtonSymbolOptions Ark_CancelButtonSymbolOptions; @@ -918,14 +961,20 @@ typedef struct Opt_CancelButtonOptions Opt_CancelButtonOptions; typedef struct SearchControllerPeer SearchControllerPeer; typedef struct SearchControllerPeer* Ark_SearchController; typedef struct Opt_SearchController Opt_SearchController; +typedef struct Ark_ScrollAttribute Ark_ScrollAttribute; +typedef struct Opt_ScrollAttribute Opt_ScrollAttribute; typedef struct Ark_EdgeEffectOptions Ark_EdgeEffectOptions; typedef struct Opt_EdgeEffectOptions Opt_EdgeEffectOptions; typedef struct Ark_Union_Dimension_Array_Dimension Ark_Union_Dimension_Array_Dimension; typedef struct Opt_Union_Dimension_Array_Dimension Opt_Union_Dimension_Array_Dimension; typedef struct ScrollOnWillScrollCallback ScrollOnWillScrollCallback; typedef struct Opt_ScrollOnWillScrollCallback Opt_ScrollOnWillScrollCallback; +typedef struct Ark_RectResult Ark_RectResult; +typedef struct Opt_RectResult Opt_RectResult; typedef struct Ark_ScrollToIndexOptions Ark_ScrollToIndexOptions; typedef struct Opt_ScrollToIndexOptions Opt_ScrollToIndexOptions; +typedef struct Ark_OffsetResult Ark_OffsetResult; +typedef struct Opt_OffsetResult Opt_OffsetResult; typedef struct Ark_Literal_Boolean_next_Axis_direction Ark_Literal_Boolean_next_Axis_direction; typedef struct Opt_Literal_Boolean_next_Axis_direction Opt_Literal_Boolean_next_Axis_direction; typedef struct Ark_ScrollPageOptions Ark_ScrollPageOptions; @@ -942,6 +991,8 @@ typedef struct Opt_RichEditorStyledStringController Opt_RichEditorStyledStringCo typedef struct RichEditorControllerPeer RichEditorControllerPeer; typedef struct RichEditorControllerPeer* Ark_RichEditorController; typedef struct Opt_RichEditorController Opt_RichEditorController; +typedef struct Ark_RichEditorAttribute Ark_RichEditorAttribute; +typedef struct Opt_RichEditorAttribute Opt_RichEditorAttribute; typedef struct Ark_PlaceholderStyle Ark_PlaceholderStyle; typedef struct Opt_PlaceholderStyle Opt_PlaceholderStyle; typedef struct Array_RichEditorTextSpanResult Array_RichEditorTextSpanResult; @@ -954,12 +1005,12 @@ typedef struct Ark_RichEditorImageSpanResult Ark_RichEditorImageSpanResult; typedef struct Opt_RichEditorImageSpanResult Opt_RichEditorImageSpanResult; typedef struct Ark_RichEditorTextSpanResult Ark_RichEditorTextSpanResult; typedef struct Opt_RichEditorTextSpanResult Opt_RichEditorTextSpanResult; -typedef struct Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; -typedef struct Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; typedef struct Ark_StyledStringChangedListener Ark_StyledStringChangedListener; typedef struct Opt_StyledStringChangedListener Opt_StyledStringChangedListener; typedef struct Ark_RichEditorRange Ark_RichEditorRange; typedef struct Opt_RichEditorRange Opt_RichEditorRange; +typedef struct Ark_RichEditorSelection Ark_RichEditorSelection; +typedef struct Opt_RichEditorSelection Opt_RichEditorSelection; typedef struct Ark_RichEditorParagraphStyleOptions Ark_RichEditorParagraphStyleOptions; typedef struct Opt_RichEditorParagraphStyleOptions Opt_RichEditorParagraphStyleOptions; typedef struct Ark_RichEditorUpdateSymbolSpanStyleOptions Ark_RichEditorUpdateSymbolSpanStyleOptions; @@ -1005,6 +1056,8 @@ typedef struct Ark_NavigationInterception Ark_NavigationInterception; typedef struct Opt_NavigationInterception Opt_NavigationInterception; typedef struct Ark_NavigationOptions Ark_NavigationOptions; typedef struct Opt_NavigationOptions Opt_NavigationOptions; +typedef struct Ark_NavDestinationAttribute Ark_NavDestinationAttribute; +typedef struct Opt_NavDestinationAttribute Opt_NavDestinationAttribute; typedef struct Ark_NavigationToolbarOptions Ark_NavigationToolbarOptions; typedef struct Opt_NavigationToolbarOptions Opt_NavigationToolbarOptions; typedef struct Array_ToolbarItem Array_ToolbarItem; @@ -1019,6 +1072,8 @@ typedef struct Ark_SystemBarStyle Ark_SystemBarStyle; typedef struct Opt_SystemBarStyle Opt_SystemBarStyle; typedef struct Array_NavigationMenuItem Array_NavigationMenuItem; typedef struct Opt_Array_NavigationMenuItem Opt_Array_NavigationMenuItem; +typedef struct Ark_RouteMapConfig Ark_RouteMapConfig; +typedef struct Opt_RouteMapConfig Opt_RouteMapConfig; typedef struct Ark_Union_ResourceStr_CustomBuilder Ark_Union_ResourceStr_CustomBuilder; typedef struct Opt_Union_ResourceStr_CustomBuilder Opt_Union_ResourceStr_CustomBuilder; typedef struct Ark_MenuItemOptions Ark_MenuItemOptions; @@ -1036,8 +1091,12 @@ typedef struct Ark_ListDividerOptions Ark_ListDividerOptions; typedef struct Opt_ListDividerOptions Opt_ListDividerOptions; typedef struct Ark_Union_CustomBuilder_SwipeActionItem Ark_Union_CustomBuilder_SwipeActionItem; typedef struct Opt_Union_CustomBuilder_SwipeActionItem Opt_Union_CustomBuilder_SwipeActionItem; +typedef struct Ark_ListAttribute Ark_ListAttribute; +typedef struct Opt_ListAttribute Opt_ListAttribute; typedef struct Ark_LengthConstrain Ark_LengthConstrain; typedef struct Opt_LengthConstrain Opt_LengthConstrain; +typedef struct Ark_VisibleListContentInfo Ark_VisibleListContentInfo; +typedef struct Opt_VisibleListContentInfo Opt_VisibleListContentInfo; typedef struct Ark_CloseSwipeActionOptions Ark_CloseSwipeActionOptions; typedef struct Opt_CloseSwipeActionOptions Opt_CloseSwipeActionOptions; typedef struct Ark_DrawingColorFilter Ark_DrawingColorFilter; @@ -1055,10 +1114,18 @@ typedef struct Ark_Union_Length_GutterOption Ark_Union_Length_GutterOption; typedef struct Opt_Union_Length_GutterOption Opt_Union_Length_GutterOption; typedef struct Ark_Union_Number_GridColColumnOption Ark_Union_Number_GridColColumnOption; typedef struct Opt_Union_Number_GridColColumnOption Opt_Union_Number_GridColColumnOption; +typedef struct Ark_GridAttribute Ark_GridAttribute; +typedef struct Opt_GridAttribute Opt_GridAttribute; typedef struct Callback_Number_Tuple_Number_Number_Number_Number Callback_Number_Tuple_Number_Number_Number_Number; typedef struct Opt_Callback_Number_Tuple_Number_Number_Number_Number Opt_Callback_Number_Tuple_Number_Number_Number_Number; typedef struct Callback_Number_Tuple_Number_Number Callback_Number_Tuple_Number_Number; typedef struct Opt_Callback_Number_Tuple_Number_Number Opt_Callback_Number_Tuple_Number_Number; +typedef struct PanGestureOptionsPeer PanGestureOptionsPeer; +typedef struct PanGestureOptionsPeer* Ark_PanGestureOptions; +typedef struct Opt_PanGestureOptions Opt_PanGestureOptions; +typedef struct EventTargetInfoPeer EventTargetInfoPeer; +typedef struct EventTargetInfoPeer* Ark_EventTargetInfo; +typedef struct Opt_EventTargetInfo Opt_EventTargetInfo; typedef struct Array_FingerInfo Array_FingerInfo; typedef struct Opt_Array_FingerInfo Opt_Array_FingerInfo; typedef struct Ark_Union_ResourceColor_LinearGradient Ark_Union_ResourceColor_LinearGradient; @@ -1079,6 +1146,8 @@ typedef struct Ark_Union_Dimension_EdgeWidths Ark_Union_Dimension_EdgeWidths; typedef struct Opt_Union_Dimension_EdgeWidths Opt_Union_Dimension_EdgeWidths; typedef struct Ark_AnimateParam Ark_AnimateParam; typedef struct Opt_AnimateParam Opt_AnimateParam; +typedef struct Ark_Component3DAttribute Ark_Component3DAttribute; +typedef struct Opt_Component3DAttribute Opt_Component3DAttribute; typedef struct Ark_Union_ResourceStr_Scene Ark_Union_ResourceStr_Scene; typedef struct Opt_Union_ResourceStr_Scene Opt_Union_ResourceStr_Scene; typedef struct Ark_UIGestureEvent Ark_UIGestureEvent; @@ -1103,6 +1172,12 @@ typedef struct Ark_FadingEdgeOptions Ark_FadingEdgeOptions; typedef struct Opt_FadingEdgeOptions Opt_FadingEdgeOptions; typedef struct Ark_RectShape Ark_RectShape; typedef struct Opt_RectShape Opt_RectShape; +typedef struct Ark_CaretOffset Ark_CaretOffset; +typedef struct Opt_CaretOffset Opt_CaretOffset; +typedef struct Ark_DirectionalEdgesT Ark_DirectionalEdgesT; +typedef struct Opt_DirectionalEdgesT Opt_DirectionalEdgesT; +typedef struct Ark_MeasureResult Ark_MeasureResult; +typedef struct Opt_MeasureResult Opt_MeasureResult; typedef struct Ark_ConstraintSizeOptions Ark_ConstraintSizeOptions; typedef struct Opt_ConstraintSizeOptions Opt_ConstraintSizeOptions; typedef struct GestureRecognizerJudgeBeginCallback GestureRecognizerJudgeBeginCallback; @@ -1202,8 +1277,6 @@ typedef struct Ark_Union_EdgeWidths_Length_LocalizedEdgeWidths Ark_Union_EdgeWid typedef struct Opt_Union_EdgeWidths_Length_LocalizedEdgeWidths Opt_Union_EdgeWidths_Length_LocalizedEdgeWidths; typedef struct Ark_DrawingLattice Ark_DrawingLattice; typedef struct Opt_DrawingLattice Opt_DrawingLattice; -typedef struct Ark_RectResult Ark_RectResult; -typedef struct Opt_RectResult Opt_RectResult; typedef struct Array_Rectangle Array_Rectangle; typedef struct Opt_Array_Rectangle Opt_Array_Rectangle; typedef struct DrawModifierPeer DrawModifierPeer; @@ -1211,9 +1284,13 @@ typedef struct DrawModifierPeer* Ark_DrawModifier; typedef struct Opt_DrawModifier Opt_DrawModifier; typedef struct Ark_IntentionCode Ark_IntentionCode; typedef struct Opt_IntentionCode Opt_IntentionCode; +typedef struct Ark_Summary Ark_Summary; +typedef struct Opt_Summary Opt_Summary; typedef struct UnifiedDataPeer UnifiedDataPeer; typedef struct UnifiedDataPeer* Ark_UnifiedData; typedef struct Opt_UnifiedData Opt_UnifiedData; +typedef struct Ark_TouchObject Ark_TouchObject; +typedef struct Opt_TouchObject Opt_TouchObject; typedef struct Ark_Literal_TransitionEffect_appear_disappear Ark_Literal_TransitionEffect_appear_disappear; typedef struct Opt_Literal_TransitionEffect_appear_disappear Opt_Literal_TransitionEffect_appear_disappear; typedef struct Ark_ColumnSplitDividerStyle Ark_ColumnSplitDividerStyle; @@ -1226,9 +1303,17 @@ typedef struct Opt_DrawingRenderingContext Opt_DrawingRenderingContext; typedef struct CanvasRenderingContext2DPeer CanvasRenderingContext2DPeer; typedef struct CanvasRenderingContext2DPeer* Ark_CanvasRenderingContext2D; typedef struct Opt_CanvasRenderingContext2D Opt_CanvasRenderingContext2D; +typedef struct OffscreenCanvasRenderingContext2DPeer OffscreenCanvasRenderingContext2DPeer; +typedef struct OffscreenCanvasRenderingContext2DPeer* Ark_OffscreenCanvasRenderingContext2D; +typedef struct Opt_OffscreenCanvasRenderingContext2D Opt_OffscreenCanvasRenderingContext2D; +typedef struct RenderingContextSettingsPeer RenderingContextSettingsPeer; +typedef struct RenderingContextSettingsPeer* Ark_RenderingContextSettings; +typedef struct Opt_RenderingContextSettings Opt_RenderingContextSettings; typedef struct ImageBitmapPeer ImageBitmapPeer; typedef struct ImageBitmapPeer* Ark_ImageBitmap; typedef struct Opt_ImageBitmap Opt_ImageBitmap; +typedef struct Ark_TextMetrics Ark_TextMetrics; +typedef struct Opt_TextMetrics Opt_TextMetrics; typedef struct ImageDataPeer ImageDataPeer; typedef struct ImageDataPeer* Ark_ImageData; typedef struct Opt_ImageData Opt_ImageData; @@ -1237,6 +1322,8 @@ typedef struct Path2DPeer* Ark_Path2D; typedef struct Opt_Path2D Opt_Path2D; typedef struct Ark_CalendarDialogOptions Ark_CalendarDialogOptions; typedef struct Opt_CalendarDialogOptions Opt_CalendarDialogOptions; +typedef struct Ark_CalendarPickerAttribute Ark_CalendarPickerAttribute; +typedef struct Opt_CalendarPickerAttribute Opt_CalendarPickerAttribute; typedef struct CalendarControllerPeer CalendarControllerPeer; typedef struct CalendarControllerPeer* Ark_CalendarController; typedef struct Opt_CalendarController Opt_CalendarController; @@ -1248,6 +1335,8 @@ typedef struct Ark_BadgeStyle Ark_BadgeStyle; typedef struct Opt_BadgeStyle Opt_BadgeStyle; typedef struct Ark_Union_BadgePosition_Position Ark_Union_BadgePosition_Position; typedef struct Opt_Union_BadgePosition_Position Opt_Union_BadgePosition_Position; +typedef struct Ark_AlphabetIndexerAttribute Ark_AlphabetIndexerAttribute; +typedef struct Opt_AlphabetIndexerAttribute Opt_AlphabetIndexerAttribute; typedef struct Ark_AlertDialogParamWithOptions Ark_AlertDialogParamWithOptions; typedef struct Opt_AlertDialogParamWithOptions Opt_AlertDialogParamWithOptions; typedef struct Ark_AlertDialogParamWithButtons Ark_AlertDialogParamWithButtons; @@ -1341,17 +1430,14 @@ typedef struct Callback_Array_String_Void Callback_Array_String_Void; typedef struct Opt_Callback_Array_String_Void Opt_Callback_Array_String_Void; typedef struct ButtonTriggerClickCallback ButtonTriggerClickCallback; typedef struct Opt_ButtonTriggerClickCallback Opt_ButtonTriggerClickCallback; -typedef struct GlobalScope_inspectorPeer GlobalScope_inspectorPeer; -typedef struct GlobalScope_inspectorPeer* Ark_GlobalScope_inspector; -typedef struct Opt_GlobalScope_inspector Opt_GlobalScope_inspector; +typedef struct GlobalScope_Profiler_inspectorPeer GlobalScope_Profiler_inspectorPeer; +typedef struct GlobalScope_Profiler_inspectorPeer* Ark_GlobalScope_Profiler_inspector; +typedef struct Opt_GlobalScope_Profiler_inspector Opt_GlobalScope_Profiler_inspector; typedef struct LinearIndicatorControllerPeer LinearIndicatorControllerPeer; typedef struct LinearIndicatorControllerPeer* Ark_LinearIndicatorController; typedef struct Opt_LinearIndicatorController Opt_LinearIndicatorController; typedef struct Ark_ImageAttachmentInterface Ark_ImageAttachmentInterface; typedef struct Opt_ImageAttachmentInterface Opt_ImageAttachmentInterface; -typedef struct MutableStyledStringPeer MutableStyledStringPeer; -typedef struct MutableStyledStringPeer* Ark_MutableStyledString; -typedef struct Opt_MutableStyledString Opt_MutableStyledString; typedef struct UrlStylePeer UrlStylePeer; typedef struct UrlStylePeer* Ark_UrlStyle; typedef struct Opt_UrlStyle Opt_UrlStyle; @@ -1394,6 +1480,8 @@ typedef struct Array_StyleOptions Array_StyleOptions; typedef struct Opt_Array_StyleOptions Opt_Array_StyleOptions; typedef struct Ark_Union_String_ImageAttachment_CustomSpan Ark_Union_String_ImageAttachment_CustomSpan; typedef struct Opt_Union_String_ImageAttachment_CustomSpan Opt_Union_String_ImageAttachment_CustomSpan; +typedef struct Array_SpanStyle Array_SpanStyle; +typedef struct Opt_Array_SpanStyle Opt_Array_SpanStyle; typedef struct Ark_Literal_Number_code_Want_want Ark_Literal_Number_code_Want_want; typedef struct Opt_Literal_Number_code_Want_want Opt_Literal_Number_code_Want_want; typedef struct Callback_Literal_Number_code_Want_want_Void Callback_Literal_Number_code_Want_want_Void; @@ -1659,13 +1747,12 @@ typedef struct Ark_JavaScriptProxy Ark_JavaScriptProxy; typedef struct Opt_JavaScriptProxy Opt_JavaScriptProxy; typedef struct Ark_WebOptions Ark_WebOptions; typedef struct Opt_WebOptions Opt_WebOptions; -typedef struct WebCookiePeer WebCookiePeer; -typedef struct WebCookiePeer* Ark_WebCookie; -typedef struct Opt_WebCookie Opt_WebCookie; -typedef struct Ark_Header Ark_Header; -typedef struct Opt_Header Opt_Header; typedef struct Ark_Union_String_Number_Resource_Buffer Ark_Union_String_Number_Resource_Buffer; typedef struct Opt_Union_String_Number_Resource_Buffer Opt_Union_String_Number_Resource_Buffer; +typedef struct Ark_Union_String_Number_Buffer_Resource Ark_Union_String_Number_Buffer_Resource; +typedef struct Opt_Union_String_Number_Buffer_Resource Opt_Union_String_Number_Buffer_Resource; +typedef struct Ark_Header Ark_Header; +typedef struct Opt_Header Opt_Header; typedef struct Ark_PlaybackInfo Ark_PlaybackInfo; typedef struct Opt_PlaybackInfo Opt_PlaybackInfo; typedef struct Callback_PlaybackInfo_Void Callback_PlaybackInfo_Void; @@ -1720,9 +1807,10 @@ typedef struct Ark_TextInputOptions Ark_TextInputOptions; typedef struct Opt_TextInputOptions Opt_TextInputOptions; typedef struct Array_TextMenuItem Array_TextMenuItem; typedef struct Opt_Array_TextMenuItem Opt_Array_TextMenuItem; -typedef struct LayoutManagerPeer LayoutManagerPeer; -typedef struct LayoutManagerPeer* Ark_LayoutManager; -typedef struct Opt_LayoutManager Opt_LayoutManager; +typedef struct Ark_TextBox Ark_TextBox; +typedef struct Opt_TextBox Opt_TextBox; +typedef struct Array_TextBox Array_TextBox; +typedef struct Opt_Array_TextBox Opt_Array_TextBox; typedef struct StyledStringControllerPeer StyledStringControllerPeer; typedef struct StyledStringControllerPeer* Ark_StyledStringController; typedef struct Opt_StyledStringController Opt_StyledStringController; @@ -1860,8 +1948,6 @@ typedef struct OnContentScrollCallback OnContentScrollCallback; typedef struct Opt_OnContentScrollCallback Opt_OnContentScrollCallback; typedef struct OnTextSelectionChangeCallback OnTextSelectionChangeCallback; typedef struct Opt_OnTextSelectionChangeCallback Opt_OnTextSelectionChangeCallback; -typedef struct Ark_PreviewText Ark_PreviewText; -typedef struct Opt_PreviewText Opt_PreviewText; typedef struct EditableTextOnChangeCallback EditableTextOnChangeCallback; typedef struct Opt_EditableTextOnChangeCallback Opt_EditableTextOnChangeCallback; typedef struct SearchSubmitCallback SearchSubmitCallback; @@ -1944,12 +2030,22 @@ typedef struct Callback_RichEditorInsertValue_Boolean Callback_RichEditorInsertV typedef struct Opt_Callback_RichEditorInsertValue_Boolean Opt_Callback_RichEditorInsertValue_Boolean; typedef struct Callback_RichEditorRange_Void Callback_RichEditorRange_Void; typedef struct Opt_Callback_RichEditorRange_Void Opt_Callback_RichEditorRange_Void; -typedef struct Ark_RichEditorSelection Ark_RichEditorSelection; -typedef struct Opt_RichEditorSelection Opt_RichEditorSelection; typedef struct Callback_RichEditorSelection_Void Callback_RichEditorSelection_Void; typedef struct Opt_Callback_RichEditorSelection_Void Opt_Callback_RichEditorSelection_Void; typedef struct Ark_StyledStringChangeValue Ark_StyledStringChangeValue; typedef struct Opt_StyledStringChangeValue Opt_StyledStringChangeValue; +typedef struct Ark_RichEditorSpan Ark_RichEditorSpan; +typedef struct Opt_RichEditorSpan Opt_RichEditorSpan; +typedef struct Array_RichEditorSpan Array_RichEditorSpan; +typedef struct Opt_Array_RichEditorSpan Opt_Array_RichEditorSpan; +typedef struct Ark_RichEditorParagraphResult Ark_RichEditorParagraphResult; +typedef struct Opt_RichEditorParagraphResult Opt_RichEditorParagraphResult; +typedef struct Array_RichEditorParagraphResult Array_RichEditorParagraphResult; +typedef struct Opt_Array_RichEditorParagraphResult Opt_Array_RichEditorParagraphResult; +typedef struct Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; typedef struct Ark_Type_RichEditorController_updateSpanStyle_value Ark_Type_RichEditorController_updateSpanStyle_value; typedef struct Opt_Type_RichEditorController_updateSpanStyle_value Opt_Type_RichEditorController_updateSpanStyle_value; typedef struct Ark_Union_PixelMap_ResourceStr Ark_Union_PixelMap_ResourceStr; @@ -2025,6 +2121,8 @@ typedef struct NavigationTransitionProxyPeer* Ark_NavigationTransitionProxy; typedef struct Opt_NavigationTransitionProxy Opt_NavigationTransitionProxy; typedef struct Ark_Union_NavDestinationContext_NavBar Ark_Union_NavDestinationContext_NavBar; typedef struct Opt_Union_NavDestinationContext_NavBar Opt_Union_NavDestinationContext_NavBar; +typedef struct Array_CustomObject Array_CustomObject; +typedef struct Opt_Array_CustomObject Opt_Array_CustomObject; typedef struct Ark_RouteInfo Ark_RouteInfo; typedef struct Opt_RouteInfo Opt_RouteInfo; typedef struct Array_LayoutSafeAreaEdge Array_LayoutSafeAreaEdge; @@ -2077,8 +2175,6 @@ typedef struct Callback_Number_Number_Boolean Callback_Number_Number_Boolean; typedef struct Opt_Callback_Number_Number_Boolean Opt_Callback_Number_Number_Boolean; typedef struct Callback_Number_Boolean Callback_Number_Boolean; typedef struct Opt_Callback_Number_Boolean Opt_Callback_Number_Boolean; -typedef struct Ark_VisibleListContentInfo Ark_VisibleListContentInfo; -typedef struct Opt_VisibleListContentInfo Opt_VisibleListContentInfo; typedef struct OnScrollVisibleContentChangeCallback OnScrollVisibleContentChangeCallback; typedef struct Opt_OnScrollVisibleContentChangeCallback Opt_OnScrollVisibleContentChangeCallback; typedef struct Callback_Number_Number_Number_Void Callback_Number_Number_Number_Void; @@ -2157,17 +2253,11 @@ typedef struct Opt_GridLayoutOptions Opt_GridLayoutOptions; typedef struct PanRecognizerPeer PanRecognizerPeer; typedef struct PanRecognizerPeer* Ark_PanRecognizer; typedef struct Opt_PanRecognizer Opt_PanRecognizer; -typedef struct EventTargetInfoPeer EventTargetInfoPeer; -typedef struct EventTargetInfoPeer* Ark_EventTargetInfo; -typedef struct Opt_EventTargetInfo Opt_EventTargetInfo; typedef struct ScrollableTargetInfoPeer ScrollableTargetInfoPeer; typedef struct ScrollableTargetInfoPeer* Ark_ScrollableTargetInfo; typedef struct Opt_ScrollableTargetInfo Opt_ScrollableTargetInfo; typedef struct Ark_Literal_Number_distance_fingers_PanDirection_direction Ark_Literal_Number_distance_fingers_PanDirection_direction; typedef struct Opt_Literal_Number_distance_fingers_PanDirection_direction Opt_Literal_Number_distance_fingers_PanDirection_direction; -typedef struct PanGestureOptionsPeer PanGestureOptionsPeer; -typedef struct PanGestureOptionsPeer* Ark_PanGestureOptions; -typedef struct Opt_PanGestureOptions Opt_PanGestureOptions; typedef struct GestureEventPeer GestureEventPeer; typedef struct GestureEventPeer* Ark_GestureEvent; typedef struct Opt_GestureEvent Opt_GestureEvent; @@ -2256,11 +2346,6 @@ typedef struct ContextMenuPeer* Ark_ContextMenu; typedef struct Opt_ContextMenu Opt_ContextMenu; typedef struct Ark_SceneOptions Ark_SceneOptions; typedef struct Opt_SceneOptions Opt_SceneOptions; -typedef struct Array_CustomObject Array_CustomObject; -typedef struct Opt_Array_CustomObject Opt_Array_CustomObject; -typedef struct GlobalScope_commonPeer GlobalScope_commonPeer; -typedef struct GlobalScope_commonPeer* Ark_GlobalScope_common; -typedef struct Opt_GlobalScope_common Opt_GlobalScope_common; typedef struct UICommonEventPeer UICommonEventPeer; typedef struct UICommonEventPeer* Ark_UICommonEvent; typedef struct Opt_UICommonEvent Opt_UICommonEvent; @@ -2274,8 +2359,6 @@ typedef struct Ark_Union_ContentClipMode_RectShape Ark_Union_ContentClipMode_Rec typedef struct Opt_Union_ContentClipMode_RectShape Opt_Union_ContentClipMode_RectShape; typedef struct ScrollOnScrollCallback ScrollOnScrollCallback; typedef struct Opt_ScrollOnScrollCallback Opt_ScrollOnScrollCallback; -typedef struct Ark_OffsetResult Ark_OffsetResult; -typedef struct Opt_OffsetResult Opt_OffsetResult; typedef struct Callback_Number_Number_Void Callback_Number_Number_Void; typedef struct Opt_Callback_Number_Number_Void Opt_Callback_Number_Number_Void; typedef struct TextContentControllerBasePeer TextContentControllerBasePeer; @@ -2455,8 +2538,10 @@ typedef struct Opt_DragEvent Opt_DragEvent; typedef struct PixelMapMockPeer PixelMapMockPeer; typedef struct PixelMapMockPeer* Ark_PixelMapMock; typedef struct Opt_PixelMapMock Opt_PixelMapMock; -typedef struct Ark_TouchObject Ark_TouchObject; -typedef struct Opt_TouchObject Opt_TouchObject; +typedef struct Ark_HistoricalPoint Ark_HistoricalPoint; +typedef struct Opt_HistoricalPoint Opt_HistoricalPoint; +typedef struct Array_HistoricalPoint Array_HistoricalPoint; +typedef struct Opt_Array_HistoricalPoint Opt_Array_HistoricalPoint; typedef struct AccessibilityHoverEventPeer AccessibilityHoverEventPeer; typedef struct AccessibilityHoverEventPeer* Ark_AccessibilityHoverEvent; typedef struct Opt_AccessibilityHoverEvent Opt_AccessibilityHoverEvent; @@ -2469,6 +2554,12 @@ typedef struct Opt_HoverEvent Opt_HoverEvent; typedef struct BaseEventPeer BaseEventPeer; typedef struct BaseEventPeer* Ark_BaseEvent; typedef struct Opt_BaseEvent Opt_BaseEvent; +typedef struct GlobalScope_cursorControl_commonPeer GlobalScope_cursorControl_commonPeer; +typedef struct GlobalScope_cursorControl_commonPeer* Ark_GlobalScope_cursorControl_common; +typedef struct Opt_GlobalScope_cursorControl_common Opt_GlobalScope_cursorControl_common; +typedef struct GlobalScope_focusControl_commonPeer GlobalScope_focusControl_commonPeer; +typedef struct GlobalScope_focusControl_commonPeer* Ark_GlobalScope_focusControl_common; +typedef struct Opt_GlobalScope_focusControl_common Opt_GlobalScope_focusControl_common; typedef struct Ark_TransitionEffects Ark_TransitionEffects; typedef struct Opt_TransitionEffects Opt_TransitionEffects; typedef struct Ark_PointLightStyle Ark_PointLightStyle; @@ -2491,14 +2582,14 @@ typedef struct Ark_CheckboxOptions Ark_CheckboxOptions; typedef struct Opt_CheckboxOptions Opt_CheckboxOptions; typedef struct Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext; typedef struct Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext; +typedef struct OffscreenCanvasPeer OffscreenCanvasPeer; +typedef struct OffscreenCanvasPeer* Ark_OffscreenCanvas; +typedef struct Opt_OffscreenCanvas Opt_OffscreenCanvas; typedef struct Ark_Union_ImageBitmap_PixelMap Ark_Union_ImageBitmap_PixelMap; typedef struct Opt_Union_ImageBitmap_PixelMap Opt_Union_ImageBitmap_PixelMap; typedef struct CanvasRendererPeer CanvasRendererPeer; typedef struct CanvasRendererPeer* Ark_CanvasRenderer; typedef struct Opt_CanvasRenderer Opt_CanvasRenderer; -typedef struct RenderingContextSettingsPeer RenderingContextSettingsPeer; -typedef struct RenderingContextSettingsPeer* Ark_RenderingContextSettings; -typedef struct Opt_RenderingContextSettings Opt_RenderingContextSettings; typedef struct Ark_LengthMetricsUnit Ark_LengthMetricsUnit; typedef struct Opt_LengthMetricsUnit Opt_LengthMetricsUnit; typedef struct CanvasPathPeer CanvasPathPeer; @@ -2589,6 +2680,9 @@ typedef struct Ark_WebHeader Ark_WebHeader; typedef struct Opt_WebHeader Opt_WebHeader; typedef struct Array_WebHeader Array_WebHeader; typedef struct Opt_Array_WebHeader Opt_Array_WebHeader; +typedef struct SystemOpsPeer SystemOpsPeer; +typedef struct SystemOpsPeer* Ark_SystemOps; +typedef struct Opt_SystemOps Opt_SystemOps; typedef struct LazyForEachOpsPeer LazyForEachOpsPeer; typedef struct LazyForEachOpsPeer* Ark_LazyForEachOps; typedef struct Opt_LazyForEachOps Opt_LazyForEachOps; @@ -3171,6 +3265,16 @@ typedef struct Opt_BarStyle { Ark_Tag tag; Ark_BarStyle value; } Opt_BarStyle; +typedef enum Ark_ListItemGroupArea { + ARK_LIST_ITEM_GROUP_AREA_NONE = 0, + ARK_LIST_ITEM_GROUP_AREA_IN_LIST_ITEM_AREA = 1, + ARK_LIST_ITEM_GROUP_AREA_IN_HEADER_AREA = 2, + ARK_LIST_ITEM_GROUP_AREA_IN_FOOTER_AREA = 3, +} Ark_ListItemGroupArea; +typedef struct Opt_ListItemGroupArea { + Ark_Tag tag; + Ark_ListItemGroupArea value; +} Opt_ListItemGroupArea; typedef enum Ark_BreakpointsReference { ARK_BREAKPOINTS_REFERENCE_WINDOW_SIZE = 0, ARK_BREAKPOINTS_REFERENCE_COMPONENT_SIZE = 1, @@ -3443,6 +3547,70 @@ typedef struct Opt_RenderMode { Ark_Tag tag; Ark_RenderMode value; } Opt_RenderMode; +typedef enum Ark_HitTestType { + ARK_HIT_TEST_TYPE_EDIT_TEXT = 0, + ARK_HIT_TEST_TYPE_EMAIL = 1, + ARK_HIT_TEST_TYPE_HTTP_ANCHOR = 2, + ARK_HIT_TEST_TYPE_HTTP_ANCHOR_IMG = 3, + ARK_HIT_TEST_TYPE_IMG = 4, + ARK_HIT_TEST_TYPE_MAP = 5, + ARK_HIT_TEST_TYPE_PHONE = 6, + ARK_HIT_TEST_TYPE_UNKNOWN = 7, +} Ark_HitTestType; +typedef struct Opt_HitTestType { + Ark_Tag tag; + Ark_HitTestType value; +} Opt_HitTestType; +typedef enum Ark_MessageLevel { + ARK_MESSAGE_LEVEL_DEBUG = 0, + ARK_MESSAGE_LEVEL_ERROR = 1, + ARK_MESSAGE_LEVEL_INFO = 2, + ARK_MESSAGE_LEVEL_LOG = 3, + ARK_MESSAGE_LEVEL_WARN = 4, +} Ark_MessageLevel; +typedef struct Opt_MessageLevel { + Ark_Tag tag; + Ark_MessageLevel value; +} Opt_MessageLevel; +typedef enum Ark_ContextMenuInputFieldType { + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_NONE = 0, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_PLAIN_TEXT = 1, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_PASSWORD = 2, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_NUMBER = 3, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_TELEPHONE = 4, + ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_OTHER = 5, +} Ark_ContextMenuInputFieldType; +typedef struct Opt_ContextMenuInputFieldType { + Ark_Tag tag; + Ark_ContextMenuInputFieldType value; +} Opt_ContextMenuInputFieldType; +typedef enum Ark_ContextMenuSourceType { + ARK_CONTEXT_MENU_SOURCE_TYPE_NONE = 0, + ARK_CONTEXT_MENU_SOURCE_TYPE_MOUSE = 1, + ARK_CONTEXT_MENU_SOURCE_TYPE_LONG_PRESS = 2, +} Ark_ContextMenuSourceType; +typedef struct Opt_ContextMenuSourceType { + Ark_Tag tag; + Ark_ContextMenuSourceType value; +} Opt_ContextMenuSourceType; +typedef enum Ark_ContextMenuMediaType { + ARK_CONTEXT_MENU_MEDIA_TYPE_NONE = 0, + ARK_CONTEXT_MENU_MEDIA_TYPE_IMAGE = 1, +} Ark_ContextMenuMediaType; +typedef struct Opt_ContextMenuMediaType { + Ark_Tag tag; + Ark_ContextMenuMediaType value; +} Opt_ContextMenuMediaType; +typedef enum Ark_FileSelectorMode { + ARK_FILE_SELECTOR_MODE_FILE_OPEN_MODE = 0, + ARK_FILE_SELECTOR_MODE_FILE_OPEN_MULTIPLE_MODE = 1, + ARK_FILE_SELECTOR_MODE_FILE_OPEN_FOLDER_MODE = 2, + ARK_FILE_SELECTOR_MODE_FILE_SAVE_MODE = 3, +} Ark_FileSelectorMode; +typedef struct Opt_FileSelectorMode { + Ark_Tag tag; + Ark_FileSelectorMode value; +} Opt_FileSelectorMode; typedef enum Ark_SeekMode { ARK_SEEK_MODE_PREVIOUS_KEYFRAME = 0, ARK_SEEK_MODE_NEXT_KEYFRAME = 1, @@ -3885,16 +4053,6 @@ typedef struct Opt_ListItemStyle { Ark_Tag tag; Ark_ListItemStyle value; } Opt_ListItemStyle; -typedef enum Ark_ListItemGroupArea { - ARK_LIST_ITEM_GROUP_AREA_NONE = 0, - ARK_LIST_ITEM_GROUP_AREA_IN_LIST_ITEM_AREA = 1, - ARK_LIST_ITEM_GROUP_AREA_IN_HEADER_AREA = 2, - ARK_LIST_ITEM_GROUP_AREA_IN_FOOTER_AREA = 3, -} Ark_ListItemGroupArea; -typedef struct Opt_ListItemGroupArea { - Ark_Tag tag; - Ark_ListItemGroupArea value; -} Opt_ListItemGroupArea; typedef enum Ark_ChainEdgeEffect { ARK_CHAIN_EDGE_EFFECT_DEFAULT = 0, ARK_CHAIN_EDGE_EFFECT_STRETCH = 1, @@ -3945,6 +4103,32 @@ typedef struct Opt_GridItemAlignment { Ark_Tag tag; Ark_GridItemAlignment value; } Opt_GridItemAlignment; +typedef enum Ark_GestureRecognizerState { + ARK_GESTURE_RECOGNIZER_STATE_READY = 0, + ARK_GESTURE_RECOGNIZER_STATE_DETECTING = 1, + ARK_GESTURE_RECOGNIZER_STATE_PENDING = 2, + ARK_GESTURE_RECOGNIZER_STATE_BLOCKED = 3, + ARK_GESTURE_RECOGNIZER_STATE_SUCCESSFUL = 4, + ARK_GESTURE_RECOGNIZER_STATE_FAILED = 5, +} Ark_GestureRecognizerState; +typedef struct Opt_GestureRecognizerState { + Ark_Tag tag; + Ark_GestureRecognizerState value; +} Opt_GestureRecognizerState; +typedef enum Ark_GestureControl_GestureType { + ARK_GESTURE_CONTROL_GESTURE_TYPE_TAP_GESTURE = 0, + ARK_GESTURE_CONTROL_GESTURE_TYPE_LONG_PRESS_GESTURE = 1, + ARK_GESTURE_CONTROL_GESTURE_TYPE_PAN_GESTURE = 2, + ARK_GESTURE_CONTROL_GESTURE_TYPE_PINCH_GESTURE = 3, + ARK_GESTURE_CONTROL_GESTURE_TYPE_SWIPE_GESTURE = 4, + ARK_GESTURE_CONTROL_GESTURE_TYPE_ROTATION_GESTURE = 5, + ARK_GESTURE_CONTROL_GESTURE_TYPE_DRAG = 6, + ARK_GESTURE_CONTROL_GESTURE_TYPE_CLICK = 7, +} Ark_GestureControl_GestureType; +typedef struct Opt_GestureControl_GestureType { + Ark_Tag tag; + Ark_GestureControl_GestureType value; +} Opt_GestureControl_GestureType; typedef enum Ark_PanDirection { ARK_PAN_DIRECTION_NONE = 0, ARK_PAN_DIRECTION_HORIZONTAL = 1, @@ -4075,56 +4259,6 @@ typedef struct Opt_ModelType { Ark_Tag tag; Ark_ModelType value; } Opt_ModelType; -typedef enum Ark_PointerStyle { - ARK_POINTER_STYLE_DEFAULT = 0, - ARK_POINTER_STYLE_EAST = 1, - ARK_POINTER_STYLE_WEST = 2, - ARK_POINTER_STYLE_SOUTH = 3, - ARK_POINTER_STYLE_NORTH = 4, - ARK_POINTER_STYLE_WEST_EAST = 5, - ARK_POINTER_STYLE_NORTH_SOUTH = 6, - ARK_POINTER_STYLE_NORTH_EAST = 7, - ARK_POINTER_STYLE_NORTH_WEST = 8, - ARK_POINTER_STYLE_SOUTH_EAST = 9, - ARK_POINTER_STYLE_SOUTH_WEST = 10, - ARK_POINTER_STYLE_NORTH_EAST_SOUTH_WEST = 11, - ARK_POINTER_STYLE_NORTH_WEST_SOUTH_EAST = 12, - ARK_POINTER_STYLE_CROSS = 13, - ARK_POINTER_STYLE_CURSOR_COPY = 14, - ARK_POINTER_STYLE_CURSOR_FORBID = 15, - ARK_POINTER_STYLE_COLOR_SUCKER = 16, - ARK_POINTER_STYLE_HAND_GRABBING = 17, - ARK_POINTER_STYLE_HAND_OPEN = 18, - ARK_POINTER_STYLE_HAND_POINTING = 19, - ARK_POINTER_STYLE_HELP = 20, - ARK_POINTER_STYLE_MOVE = 21, - ARK_POINTER_STYLE_RESIZE_LEFT_RIGHT = 22, - ARK_POINTER_STYLE_RESIZE_UP_DOWN = 23, - ARK_POINTER_STYLE_SCREENSHOT_CHOOSE = 24, - ARK_POINTER_STYLE_SCREENSHOT_CURSOR = 25, - ARK_POINTER_STYLE_TEXT_CURSOR = 26, - ARK_POINTER_STYLE_ZOOM_IN = 27, - ARK_POINTER_STYLE_ZOOM_OUT = 28, - ARK_POINTER_STYLE_MIDDLE_BTN_EAST = 29, - ARK_POINTER_STYLE_MIDDLE_BTN_WEST = 30, - ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH = 31, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH = 32, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_SOUTH = 33, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_EAST = 34, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_WEST = 35, - ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH_EAST = 36, - ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH_WEST = 37, - ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, - ARK_POINTER_STYLE_HORIZONTAL_TEXT_CURSOR = 39, - ARK_POINTER_STYLE_CURSOR_CROSS = 40, - ARK_POINTER_STYLE_CURSOR_CIRCLE = 41, - ARK_POINTER_STYLE_LOADING = 42, - ARK_POINTER_STYLE_RUNNING = 43, -} Ark_PointerStyle; -typedef struct Opt_PointerStyle { - Ark_Tag tag; - Ark_PointerStyle value; -} Opt_PointerStyle; typedef enum Ark_ContentClipMode { ARK_CONTENT_CLIP_MODE_CONTENT_ONLY = 0, ARK_CONTENT_CLIP_MODE_BOUNDARY = 1, @@ -4256,20 +4390,6 @@ typedef struct Opt_ImageRepeat { Ark_Tag tag; Ark_ImageRepeat value; } Opt_ImageRepeat; -typedef enum Ark_GestureControl_GestureType { - ARK_GESTURE_CONTROL_GESTURE_TYPE_TAP_GESTURE = 0, - ARK_GESTURE_CONTROL_GESTURE_TYPE_LONG_PRESS_GESTURE = 1, - ARK_GESTURE_CONTROL_GESTURE_TYPE_PAN_GESTURE = 2, - ARK_GESTURE_CONTROL_GESTURE_TYPE_PINCH_GESTURE = 3, - ARK_GESTURE_CONTROL_GESTURE_TYPE_SWIPE_GESTURE = 4, - ARK_GESTURE_CONTROL_GESTURE_TYPE_ROTATION_GESTURE = 5, - ARK_GESTURE_CONTROL_GESTURE_TYPE_DRAG = 6, - ARK_GESTURE_CONTROL_GESTURE_TYPE_CLICK = 7, -} Ark_GestureControl_GestureType; -typedef struct Opt_GestureControl_GestureType { - Ark_Tag tag; - Ark_GestureControl_GestureType value; -} Opt_GestureControl_GestureType; typedef enum Ark_RepeatMode { ARK_REPEAT_MODE_REPEAT = 0, ARK_REPEAT_MODE_STRETCH = 1, @@ -4375,6 +4495,56 @@ typedef struct Opt_MouseButton { Ark_Tag tag; Ark_MouseButton value; } Opt_MouseButton; +typedef enum Ark_PointerStyle { + ARK_POINTER_STYLE_DEFAULT = 0, + ARK_POINTER_STYLE_EAST = 1, + ARK_POINTER_STYLE_WEST = 2, + ARK_POINTER_STYLE_SOUTH = 3, + ARK_POINTER_STYLE_NORTH = 4, + ARK_POINTER_STYLE_WEST_EAST = 5, + ARK_POINTER_STYLE_NORTH_SOUTH = 6, + ARK_POINTER_STYLE_NORTH_EAST = 7, + ARK_POINTER_STYLE_NORTH_WEST = 8, + ARK_POINTER_STYLE_SOUTH_EAST = 9, + ARK_POINTER_STYLE_SOUTH_WEST = 10, + ARK_POINTER_STYLE_NORTH_EAST_SOUTH_WEST = 11, + ARK_POINTER_STYLE_NORTH_WEST_SOUTH_EAST = 12, + ARK_POINTER_STYLE_CROSS = 13, + ARK_POINTER_STYLE_CURSOR_COPY = 14, + ARK_POINTER_STYLE_CURSOR_FORBID = 15, + ARK_POINTER_STYLE_COLOR_SUCKER = 16, + ARK_POINTER_STYLE_HAND_GRABBING = 17, + ARK_POINTER_STYLE_HAND_OPEN = 18, + ARK_POINTER_STYLE_HAND_POINTING = 19, + ARK_POINTER_STYLE_HELP = 20, + ARK_POINTER_STYLE_MOVE = 21, + ARK_POINTER_STYLE_RESIZE_LEFT_RIGHT = 22, + ARK_POINTER_STYLE_RESIZE_UP_DOWN = 23, + ARK_POINTER_STYLE_SCREENSHOT_CHOOSE = 24, + ARK_POINTER_STYLE_SCREENSHOT_CURSOR = 25, + ARK_POINTER_STYLE_TEXT_CURSOR = 26, + ARK_POINTER_STYLE_ZOOM_IN = 27, + ARK_POINTER_STYLE_ZOOM_OUT = 28, + ARK_POINTER_STYLE_MIDDLE_BTN_EAST = 29, + ARK_POINTER_STYLE_MIDDLE_BTN_WEST = 30, + ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH = 31, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH = 32, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_SOUTH = 33, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_EAST = 34, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_WEST = 35, + ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH_EAST = 36, + ARK_POINTER_STYLE_MIDDLE_BTN_SOUTH_WEST = 37, + ARK_POINTER_STYLE_MIDDLE_BTN_NORTH_SOUTH_WEST_EAST = 38, + ARK_POINTER_STYLE_HORIZONTAL_TEXT_CURSOR = 39, + ARK_POINTER_STYLE_CURSOR_CROSS = 40, + ARK_POINTER_STYLE_CURSOR_CIRCLE = 41, + ARK_POINTER_STYLE_LOADING = 42, + ARK_POINTER_STYLE_RUNNING = 43, +} Ark_PointerStyle; +typedef struct Opt_PointerStyle { + Ark_Tag tag; + Ark_PointerStyle value; +} Opt_PointerStyle; typedef enum Ark_TransitionEdge { ARK_TRANSITION_EDGE_TOP = 0, ARK_TRANSITION_EDGE_BOTTOM = 1, @@ -4499,35 +4669,6 @@ typedef struct Opt_ContextMenuEditStateFlags { Ark_Tag tag; Ark_ContextMenuEditStateFlags value; } Opt_ContextMenuEditStateFlags; -typedef enum Ark_ContextMenuInputFieldType { - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_NONE = 0, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_PLAIN_TEXT = 1, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_PASSWORD = 2, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_NUMBER = 3, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_TELEPHONE = 4, - ARK_CONTEXT_MENU_INPUT_FIELD_TYPE_OTHER = 5, -} Ark_ContextMenuInputFieldType; -typedef struct Opt_ContextMenuInputFieldType { - Ark_Tag tag; - Ark_ContextMenuInputFieldType value; -} Opt_ContextMenuInputFieldType; -typedef enum Ark_ContextMenuMediaType { - ARK_CONTEXT_MENU_MEDIA_TYPE_NONE = 0, - ARK_CONTEXT_MENU_MEDIA_TYPE_IMAGE = 1, -} Ark_ContextMenuMediaType; -typedef struct Opt_ContextMenuMediaType { - Ark_Tag tag; - Ark_ContextMenuMediaType value; -} Opt_ContextMenuMediaType; -typedef enum Ark_ContextMenuSourceType { - ARK_CONTEXT_MENU_SOURCE_TYPE_NONE = 0, - ARK_CONTEXT_MENU_SOURCE_TYPE_MOUSE = 1, - ARK_CONTEXT_MENU_SOURCE_TYPE_LONG_PRESS = 2, -} Ark_ContextMenuSourceType; -typedef struct Opt_ContextMenuSourceType { - Ark_Tag tag; - Ark_ContextMenuSourceType value; -} Opt_ContextMenuSourceType; typedef enum Ark_ProtectedResourceType { ARK_PROTECTED_RESOURCE_TYPE_MIDI_SYSEX, ARK_PROTECTED_RESOURCE_TYPE_VIDEO_CAPTURE, @@ -4546,16 +4687,6 @@ typedef struct Opt_WebLayoutMode { Ark_Tag tag; Ark_WebLayoutMode value; } Opt_WebLayoutMode; -typedef enum Ark_FileSelectorMode { - ARK_FILE_SELECTOR_MODE_FILE_OPEN_MODE = 0, - ARK_FILE_SELECTOR_MODE_FILE_OPEN_MULTIPLE_MODE = 1, - ARK_FILE_SELECTOR_MODE_FILE_OPEN_FOLDER_MODE = 2, - ARK_FILE_SELECTOR_MODE_FILE_SAVE_MODE = 3, -} Ark_FileSelectorMode; -typedef struct Opt_FileSelectorMode { - Ark_Tag tag; - Ark_FileSelectorMode value; -} Opt_FileSelectorMode; typedef enum Ark_ThreatType { ARK_THREAT_TYPE_THREAT_ILLEGAL = 0, ARK_THREAT_TYPE_THREAT_FRAUD = 1, @@ -4593,20 +4724,6 @@ typedef struct Opt_CacheMode { Ark_Tag tag; Ark_CacheMode value; } Opt_CacheMode; -typedef enum Ark_HitTestType { - ARK_HIT_TEST_TYPE_EDIT_TEXT = 0, - ARK_HIT_TEST_TYPE_EMAIL = 1, - ARK_HIT_TEST_TYPE_HTTP_ANCHOR = 2, - ARK_HIT_TEST_TYPE_HTTP_ANCHOR_IMG = 3, - ARK_HIT_TEST_TYPE_IMG = 4, - ARK_HIT_TEST_TYPE_MAP = 5, - ARK_HIT_TEST_TYPE_PHONE = 6, - ARK_HIT_TEST_TYPE_UNKNOWN = 7, -} Ark_HitTestType; -typedef struct Opt_HitTestType { - Ark_Tag tag; - Ark_HitTestType value; -} Opt_HitTestType; typedef enum Ark_MixedMode { ARK_MIXED_MODE_ALL = 0, ARK_MIXED_MODE_COMPATIBLE = 1, @@ -4616,17 +4733,6 @@ typedef struct Opt_MixedMode { Ark_Tag tag; Ark_MixedMode value; } Opt_MixedMode; -typedef enum Ark_MessageLevel { - ARK_MESSAGE_LEVEL_DEBUG = 0, - ARK_MESSAGE_LEVEL_ERROR = 1, - ARK_MESSAGE_LEVEL_INFO = 2, - ARK_MESSAGE_LEVEL_LOG = 3, - ARK_MESSAGE_LEVEL_WARN = 4, -} Ark_MessageLevel; -typedef struct Opt_MessageLevel { - Ark_Tag tag; - Ark_MessageLevel value; -} Opt_MessageLevel; typedef enum Ark_InputType { ARK_INPUT_TYPE_NORMAL = 0, ARK_INPUT_TYPE_NUMBER = 1, @@ -5084,18 +5190,6 @@ typedef struct Opt_GridDirection { Ark_Tag tag; Ark_GridDirection value; } Opt_GridDirection; -typedef enum Ark_GestureRecognizerState { - ARK_GESTURE_RECOGNIZER_STATE_READY = 0, - ARK_GESTURE_RECOGNIZER_STATE_DETECTING = 1, - ARK_GESTURE_RECOGNIZER_STATE_PENDING = 2, - ARK_GESTURE_RECOGNIZER_STATE_BLOCKED = 3, - ARK_GESTURE_RECOGNIZER_STATE_SUCCESSFUL = 4, - ARK_GESTURE_RECOGNIZER_STATE_FAILED = 5, -} Ark_GestureRecognizerState; -typedef struct Opt_GestureRecognizerState { - Ark_Tag tag; - Ark_GestureRecognizerState value; -} Opt_GestureRecognizerState; typedef enum Ark_GesturePriority { ARK_GESTURE_PRIORITY_NORMAL = 0, ARK_GESTURE_PRIORITY_PRIORITY = 1, @@ -5449,6 +5543,10 @@ typedef struct Opt_Length { Ark_Tag tag; Ark_Length value; } Opt_Length; +typedef struct Opt_Boolean { + Ark_Tag tag; + Ark_Boolean value; +} Opt_Boolean; typedef struct Ark_Resource { Ark_String bundleName; Ark_String moduleName; @@ -5496,10 +5594,6 @@ typedef struct Opt_PixelMap { Ark_Tag tag; Ark_PixelMap value; } Opt_PixelMap; -typedef struct Opt_Boolean { - Ark_Tag tag; - Ark_Boolean value; -} Opt_Boolean; typedef struct Ark_Union_Number_Resource { Ark_Int32 selector; union { @@ -6420,6 +6514,13 @@ typedef struct Opt_TextMenuItemId { Ark_Tag tag; Ark_TextMenuItemId value; } Opt_TextMenuItemId; +typedef struct Ark_Affinity { + Ark_String _AffinityStub; +} Ark_Affinity; +typedef struct Opt_Affinity { + Ark_Tag tag; + Ark_Affinity value; +} Opt_Affinity; typedef struct MenuOnAppearCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number start, const Ark_Number end); @@ -6644,6 +6745,14 @@ typedef struct Opt_Callback_StyledStringChangeValue_Boolean { Ark_Tag tag; Callback_StyledStringChangeValue_Boolean value; } Opt_Callback_StyledStringChangeValue_Boolean; +typedef struct Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult { + Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* array; + Ark_Int32 length; +} Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; +typedef struct Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult { + Ark_Tag tag; + Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value; +} Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; typedef struct Ark_RichEditorImageSpanStyle { Opt_Tuple_Dimension_Dimension size; Opt_ImageSpanAlignment verticalAlign; @@ -7482,6 +7591,14 @@ typedef struct Opt_DrawContext { Ark_Tag tag; Ark_DrawContext value; } Opt_DrawContext; +typedef struct Ark_CustomSpanMetrics { + Ark_Number width; + Opt_Number height; +} Ark_CustomSpanMetrics; +typedef struct Opt_CustomSpanMetrics { + Ark_Tag tag; + Ark_CustomSpanMetrics value; +} Opt_CustomSpanMetrics; typedef struct Ark_CustomSpanMeasureInfo { Ark_Number fontSize; } Ark_CustomSpanMeasureInfo; @@ -7555,6 +7672,13 @@ typedef struct Opt_Callback_UIExtensionProxy_Void { Ark_Tag tag; Callback_UIExtensionProxy_Void value; } Opt_Callback_UIExtensionProxy_Void; +typedef struct Ark_WaterFlowAttribute { + void *handle; +} Ark_WaterFlowAttribute; +typedef struct Opt_WaterFlowAttribute { + Ark_Tag tag; + Ark_WaterFlowAttribute value; +} Opt_WaterFlowAttribute; typedef struct Opt_WaterFlowSections { Ark_Tag tag; Ark_WaterFlowSections value; @@ -7649,6 +7773,20 @@ typedef struct Opt_Literal_Number_surfaceHeight_surfaceWidth { Ark_Tag tag; Ark_Literal_Number_surfaceHeight_surfaceWidth value; } Opt_Literal_Number_surfaceHeight_surfaceWidth; +typedef struct Ark_WindowSceneAttribute { + void *handle; +} Ark_WindowSceneAttribute; +typedef struct Opt_WindowSceneAttribute { + Ark_Tag tag; + Ark_WindowSceneAttribute value; +} Opt_WindowSceneAttribute; +typedef struct Ark_WebAttribute { + void *handle; +} Ark_WebAttribute; +typedef struct Opt_WebAttribute { + Ark_Tag tag; + Ark_WebAttribute value; +} Opt_WebAttribute; typedef struct Ark_SelectionMenuOptionsExt { Opt_Callback_Void onAppear; Opt_Callback_Void onDisappear; @@ -7815,6 +7953,10 @@ typedef struct Opt_Union_WebController_WebviewController { Ark_Tag tag; Ark_Union_WebController_WebviewController value; } Opt_Union_WebController_WebviewController; +typedef struct Opt_WebCookie { + Ark_Tag tag; + Ark_WebCookie value; +} Opt_WebCookie; typedef struct Ark_Literal_Object_object__String_name_Array_String_methodList { Ark_CustomObject object_; Ark_String name; @@ -7976,6 +8118,13 @@ typedef struct Opt_Callback_ResourceStr_Void { Ark_Tag tag; Callback_ResourceStr_Void value; } Opt_Callback_ResourceStr_Void; +typedef struct Ark_TextInputAttribute { + void *handle; +} Ark_TextInputAttribute; +typedef struct Opt_TextInputAttribute { + Ark_Tag tag; + Ark_TextInputAttribute value; +} Opt_TextInputAttribute; typedef struct Ark_InputCounterOptions { Opt_Number thresholdPercentage; Opt_Boolean highlightBorder; @@ -8029,14 +8178,59 @@ typedef struct Opt_TextMenuItem { Ark_Tag tag; Ark_TextMenuItem value; } Opt_TextMenuItem; +typedef struct Ark_LineMetrics { + Ark_String _LineMetricsStub; +} Ark_LineMetrics; +typedef struct Opt_LineMetrics { + Ark_Tag tag; + Ark_LineMetrics value; +} Opt_LineMetrics; +typedef struct Ark_PositionWithAffinity { + Ark_Number position; + Ark_Affinity affinity; +} Ark_PositionWithAffinity; +typedef struct Opt_PositionWithAffinity { + Ark_Tag tag; + Ark_PositionWithAffinity value; +} Opt_PositionWithAffinity; +typedef struct Opt_MutableStyledString { + Ark_Tag tag; + Ark_MutableStyledString value; +} Opt_MutableStyledString; +typedef struct Ark_PreviewText { + Ark_Number offset; + Ark_String value; +} Ark_PreviewText; +typedef struct Opt_PreviewText { + Ark_Tag tag; + Ark_PreviewText value; +} Opt_PreviewText; +typedef struct Opt_LayoutManager { + Ark_Tag tag; + Ark_LayoutManager value; +} Opt_LayoutManager; typedef struct Opt_TextClockController { Ark_Tag tag; Ark_TextClockController value; } Opt_TextClockController; +typedef struct Ark_TextAreaAttribute { + void *handle; +} Ark_TextAreaAttribute; +typedef struct Opt_TextAreaAttribute { + Ark_Tag tag; + Ark_TextAreaAttribute value; +} Opt_TextAreaAttribute; typedef struct Opt_TextAreaController { Ark_Tag tag; Ark_TextAreaController value; } Opt_TextAreaController; +typedef struct Ark_TextAttribute { + void *handle; +} Ark_TextAttribute; +typedef struct Opt_TextAttribute { + Ark_Tag tag; + Ark_TextAttribute value; +} Opt_TextAttribute; typedef struct Ark_SelectionMenuOptions { Opt_MenuOnAppearCallback onAppear; Opt_Callback_Void onDisappear; @@ -8093,6 +8287,13 @@ typedef struct Opt_TabBarOptions { Ark_Tag tag; Ark_TabBarOptions value; } Opt_TabBarOptions; +typedef struct Ark_TabsAttribute { + void *handle; +} Ark_TabsAttribute; +typedef struct Opt_TabsAttribute { + Ark_Tag tag; + Ark_TabsAttribute value; +} Opt_TabsAttribute; typedef struct Ark_BackgroundBlurStyleOptions { Opt_ThemeColorMode colorMode; Opt_AdaptiveColor adaptiveColor; @@ -8125,6 +8326,13 @@ typedef struct Opt_TabsController { Ark_Tag tag; Ark_TabsController value; } Opt_TabsController; +typedef struct Ark_SymbolGlyphAttribute { + void *handle; +} Ark_SymbolGlyphAttribute; +typedef struct Opt_SymbolGlyphAttribute { + Ark_Tag tag; + Ark_SymbolGlyphAttribute value; +} Opt_SymbolGlyphAttribute; typedef struct Ark_SymbolEffect { void *handle; } Ark_SymbolEffect; @@ -8168,6 +8376,13 @@ typedef struct Opt_DotIndicator { Ark_Tag tag; Ark_DotIndicator value; } Opt_DotIndicator; +typedef struct Ark_SwiperAttribute { + void *handle; +} Ark_SwiperAttribute; +typedef struct Opt_SwiperAttribute { + Ark_Tag tag; + Ark_SwiperAttribute value; +} Opt_SwiperAttribute; typedef struct Ark_SwiperAutoFill { Ark_VP minSize; } Ark_SwiperAutoFill; @@ -8196,6 +8411,20 @@ typedef struct Opt_Callback_SwiperContentTransitionProxy_Void { Ark_Tag tag; Callback_SwiperContentTransitionProxy_Void value; } Opt_Callback_SwiperContentTransitionProxy_Void; +typedef struct Ark_SliderAttribute { + void *handle; +} Ark_SliderAttribute; +typedef struct Opt_SliderAttribute { + Ark_Tag tag; + Ark_SliderAttribute value; +} Opt_SliderAttribute; +typedef struct Ark_ShapeAttribute { + void *handle; +} Ark_ShapeAttribute; +typedef struct Opt_ShapeAttribute { + Ark_Tag tag; + Ark_ShapeAttribute value; +} Opt_ShapeAttribute; typedef struct Callback_Union_Number_Resource_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Union_Number_Resource selected); @@ -8205,6 +8434,13 @@ typedef struct Opt_Callback_Union_Number_Resource_Void { Ark_Tag tag; Callback_Union_Number_Resource_Void value; } Opt_Callback_Union_Number_Resource_Void; +typedef struct Ark_SelectAttribute { + void *handle; +} Ark_SelectAttribute; +typedef struct Opt_SelectAttribute { + Ark_Tag tag; + Ark_SelectAttribute value; +} Opt_SelectAttribute; typedef struct Ark_LocalizedEdges { Opt_LengthMetrics top; Opt_LengthMetrics start; @@ -8225,6 +8461,13 @@ typedef struct Opt_Edges { Ark_Tag tag; Ark_Edges value; } Opt_Edges; +typedef struct Ark_SearchAttribute { + void *handle; +} Ark_SearchAttribute; +typedef struct Opt_SearchAttribute { + Ark_Tag tag; + Ark_SearchAttribute value; +} Opt_SearchAttribute; typedef struct Ark_SearchButtonOptions { Opt_Length fontSize; Opt_ResourceColor fontColor; @@ -8254,6 +8497,13 @@ typedef struct Opt_SearchController { Ark_Tag tag; Ark_SearchController value; } Opt_SearchController; +typedef struct Ark_ScrollAttribute { + void *handle; +} Ark_ScrollAttribute; +typedef struct Opt_ScrollAttribute { + Ark_Tag tag; + Ark_ScrollAttribute value; +} Opt_ScrollAttribute; typedef struct Ark_EdgeEffectOptions { Ark_Boolean alwaysEnabled; } Ark_EdgeEffectOptions; @@ -8279,8 +8529,18 @@ typedef struct ScrollOnWillScrollCallback { } ScrollOnWillScrollCallback; typedef struct Opt_ScrollOnWillScrollCallback { Ark_Tag tag; - ScrollOnWillScrollCallback value; -} Opt_ScrollOnWillScrollCallback; + ScrollOnWillScrollCallback value; +} Opt_ScrollOnWillScrollCallback; +typedef struct Ark_RectResult { + Ark_Number x; + Ark_Number y; + Ark_Number width; + Ark_Number height; +} Ark_RectResult; +typedef struct Opt_RectResult { + Ark_Tag tag; + Ark_RectResult value; +} Opt_RectResult; typedef struct Ark_ScrollToIndexOptions { Opt_LengthMetrics extraOffset; } Ark_ScrollToIndexOptions; @@ -8288,6 +8548,14 @@ typedef struct Opt_ScrollToIndexOptions { Ark_Tag tag; Ark_ScrollToIndexOptions value; } Opt_ScrollToIndexOptions; +typedef struct Ark_OffsetResult { + Ark_Number xOffset; + Ark_Number yOffset; +} Ark_OffsetResult; +typedef struct Opt_OffsetResult { + Ark_Tag tag; + Ark_OffsetResult value; +} Opt_OffsetResult; typedef struct Ark_Literal_Boolean_next_Axis_direction { Ark_Boolean next; Opt_Axis direction; @@ -8339,6 +8607,13 @@ typedef struct Opt_RichEditorController { Ark_Tag tag; Ark_RichEditorController value; } Opt_RichEditorController; +typedef struct Ark_RichEditorAttribute { + void *handle; +} Ark_RichEditorAttribute; +typedef struct Opt_RichEditorAttribute { + Ark_Tag tag; + Ark_RichEditorAttribute value; +} Opt_RichEditorAttribute; typedef struct Ark_PlaceholderStyle { Opt_Font font; Opt_ResourceColor fontColor; @@ -8396,14 +8671,6 @@ typedef struct Opt_RichEditorTextSpanResult { Ark_Tag tag; Ark_RichEditorTextSpanResult value; } Opt_RichEditorTextSpanResult; -typedef struct Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult { - Ark_Union_RichEditorTextSpanResult_RichEditorImageSpanResult* array; - Ark_Int32 length; -} Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; -typedef struct Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult { - Ark_Tag tag; - Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult value; -} Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; typedef struct Ark_StyledStringChangedListener { Opt_Callback_StyledStringChangeValue_Boolean onWillChange; Opt_OnDidChangeCallback onDidChange; @@ -8420,6 +8687,14 @@ typedef struct Opt_RichEditorRange { Ark_Tag tag; Ark_RichEditorRange value; } Opt_RichEditorRange; +typedef struct Ark_RichEditorSelection { + Ark_Tuple_Number_Number selection; + Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans; +} Ark_RichEditorSelection; +typedef struct Opt_RichEditorSelection { + Ark_Tag tag; + Ark_RichEditorSelection value; +} Opt_RichEditorSelection; typedef struct Ark_RichEditorParagraphStyleOptions { Opt_Number start; Opt_Number end; @@ -8617,6 +8892,13 @@ typedef struct Opt_NavigationOptions { Ark_Tag tag; Ark_NavigationOptions value; } Opt_NavigationOptions; +typedef struct Ark_NavDestinationAttribute { + void *handle; +} Ark_NavDestinationAttribute; +typedef struct Opt_NavDestinationAttribute { + Ark_Tag tag; + Ark_NavDestinationAttribute value; +} Opt_NavDestinationAttribute; typedef struct Ark_NavigationToolbarOptions { Opt_ResourceColor backgroundColor; Opt_BlurStyle backgroundBlurStyle; @@ -8679,6 +8961,15 @@ typedef struct Opt_Array_NavigationMenuItem { Ark_Tag tag; Array_NavigationMenuItem value; } Opt_Array_NavigationMenuItem; +typedef struct Ark_RouteMapConfig { + Ark_String name; + Ark_String pageSourceFile; + Ark_CustomObject data; +} Ark_RouteMapConfig; +typedef struct Opt_RouteMapConfig { + Ark_Tag tag; + Ark_RouteMapConfig value; +} Opt_RouteMapConfig; typedef struct Ark_Union_ResourceStr_CustomBuilder { Ark_Int32 selector; union { @@ -8753,6 +9044,13 @@ typedef struct Opt_Union_CustomBuilder_SwipeActionItem { Ark_Tag tag; Ark_Union_CustomBuilder_SwipeActionItem value; } Opt_Union_CustomBuilder_SwipeActionItem; +typedef struct Ark_ListAttribute { + void *handle; +} Ark_ListAttribute; +typedef struct Opt_ListAttribute { + Ark_Tag tag; + Ark_ListAttribute value; +} Opt_ListAttribute; typedef struct Ark_LengthConstrain { Ark_Length minLength; Ark_Length maxLength; @@ -8761,6 +9059,15 @@ typedef struct Opt_LengthConstrain { Ark_Tag tag; Ark_LengthConstrain value; } Opt_LengthConstrain; +typedef struct Ark_VisibleListContentInfo { + Ark_Number index; + Opt_ListItemGroupArea itemGroupArea; + Opt_Number itemIndexInGroup; +} Ark_VisibleListContentInfo; +typedef struct Opt_VisibleListContentInfo { + Ark_Tag tag; + Ark_VisibleListContentInfo value; +} Opt_VisibleListContentInfo; typedef struct Ark_CloseSwipeActionOptions { Opt_Callback_Void onFinish; } Ark_CloseSwipeActionOptions; @@ -8832,6 +9139,13 @@ typedef struct Opt_Union_Number_GridColColumnOption { Ark_Tag tag; Ark_Union_Number_GridColColumnOption value; } Opt_Union_Number_GridColColumnOption; +typedef struct Ark_GridAttribute { + void *handle; +} Ark_GridAttribute; +typedef struct Opt_GridAttribute { + Ark_Tag tag; + Ark_GridAttribute value; +} Opt_GridAttribute; typedef struct Callback_Number_Tuple_Number_Number_Number_Number { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number index, const Callback_Tuple_Number_Number_Number_Number_Void continuation); @@ -8850,6 +9164,14 @@ typedef struct Opt_Callback_Number_Tuple_Number_Number { Ark_Tag tag; Callback_Number_Tuple_Number_Number value; } Opt_Callback_Number_Tuple_Number_Number; +typedef struct Opt_PanGestureOptions { + Ark_Tag tag; + Ark_PanGestureOptions value; +} Opt_PanGestureOptions; +typedef struct Opt_EventTargetInfo { + Ark_Tag tag; + Ark_EventTargetInfo value; +} Opt_EventTargetInfo; typedef struct Array_FingerInfo { Ark_FingerInfo* array; Ark_Int32 length; @@ -8974,6 +9296,13 @@ typedef struct Opt_AnimateParam { Ark_Tag tag; Ark_AnimateParam value; } Opt_AnimateParam; +typedef struct Ark_Component3DAttribute { + void *handle; +} Ark_Component3DAttribute; +typedef struct Opt_Component3DAttribute { + Ark_Tag tag; + Ark_Component3DAttribute value; +} Opt_Component3DAttribute; typedef struct Ark_Union_ResourceStr_Scene { Ark_Int32 selector; union { @@ -9077,6 +9406,33 @@ typedef struct Opt_RectShape { Ark_Tag tag; Ark_RectShape value; } Opt_RectShape; +typedef struct Ark_CaretOffset { + Ark_Number index; + Ark_Number x; + Ark_Number y; +} Ark_CaretOffset; +typedef struct Opt_CaretOffset { + Ark_Tag tag; + Ark_CaretOffset value; +} Opt_CaretOffset; +typedef struct Ark_DirectionalEdgesT { + Ark_Number start; + Ark_Number end; + Ark_Number top; + Ark_Number bottom; +} Ark_DirectionalEdgesT; +typedef struct Opt_DirectionalEdgesT { + Ark_Tag tag; + Ark_DirectionalEdgesT value; +} Opt_DirectionalEdgesT; +typedef struct Ark_MeasureResult { + Ark_Number width; + Ark_Number height; +} Ark_MeasureResult; +typedef struct Opt_MeasureResult { + Ark_Tag tag; + Ark_MeasureResult value; +} Opt_MeasureResult; typedef struct Ark_ConstraintSizeOptions { Opt_Length minWidth; Opt_Length maxWidth; @@ -9632,16 +9988,6 @@ typedef struct Opt_DrawingLattice { Ark_Tag tag; Ark_DrawingLattice value; } Opt_DrawingLattice; -typedef struct Ark_RectResult { - Ark_Number x; - Ark_Number y; - Ark_Number width; - Ark_Number height; -} Ark_RectResult; -typedef struct Opt_RectResult { - Ark_Tag tag; - Ark_RectResult value; -} Opt_RectResult; typedef struct Array_Rectangle { Ark_Rectangle* array; Ark_Int32 length; @@ -9661,10 +10007,33 @@ typedef struct Opt_IntentionCode { Ark_Tag tag; Ark_IntentionCode value; } Opt_IntentionCode; +typedef struct Ark_Summary { + Ark_String _SummaryStub; +} Ark_Summary; +typedef struct Opt_Summary { + Ark_Tag tag; + Ark_Summary value; +} Opt_Summary; typedef struct Opt_UnifiedData { Ark_Tag tag; Ark_UnifiedData value; } Opt_UnifiedData; +typedef struct Ark_TouchObject { + Ark_TouchType type; + Ark_Number id; + Ark_Number displayX; + Ark_Number displayY; + Ark_Number windowX; + Ark_Number windowY; + Ark_Number screenX; + Ark_Number screenY; + Ark_Number x; + Ark_Number y; +} Ark_TouchObject; +typedef struct Opt_TouchObject { + Ark_Tag tag; + Ark_TouchObject value; +} Opt_TouchObject; typedef struct Ark_Literal_TransitionEffect_appear_disappear { Ark_TransitionEffect appear; Ark_TransitionEffect disappear; @@ -9704,10 +10073,37 @@ typedef struct Opt_CanvasRenderingContext2D { Ark_Tag tag; Ark_CanvasRenderingContext2D value; } Opt_CanvasRenderingContext2D; +typedef struct Opt_OffscreenCanvasRenderingContext2D { + Ark_Tag tag; + Ark_OffscreenCanvasRenderingContext2D value; +} Opt_OffscreenCanvasRenderingContext2D; +typedef struct Opt_RenderingContextSettings { + Ark_Tag tag; + Ark_RenderingContextSettings value; +} Opt_RenderingContextSettings; typedef struct Opt_ImageBitmap { Ark_Tag tag; Ark_ImageBitmap value; } Opt_ImageBitmap; +typedef struct Ark_TextMetrics { + Ark_Number actualBoundingBoxAscent; + Ark_Number actualBoundingBoxDescent; + Ark_Number actualBoundingBoxLeft; + Ark_Number actualBoundingBoxRight; + Ark_Number alphabeticBaseline; + Ark_Number emHeightAscent; + Ark_Number emHeightDescent; + Ark_Number fontBoundingBoxAscent; + Ark_Number fontBoundingBoxDescent; + Ark_Number hangingBaseline; + Ark_Number ideographicBaseline; + Ark_Number width; + Ark_Number height; +} Ark_TextMetrics; +typedef struct Opt_TextMetrics { + Ark_Tag tag; + Ark_TextMetrics value; +} Opt_TextMetrics; typedef struct Opt_ImageData { Ark_Tag tag; Ark_ImageData value; @@ -9738,6 +10134,13 @@ typedef struct Opt_CalendarDialogOptions { Ark_Tag tag; Ark_CalendarDialogOptions value; } Opt_CalendarDialogOptions; +typedef struct Ark_CalendarPickerAttribute { + void *handle; +} Ark_CalendarPickerAttribute; +typedef struct Opt_CalendarPickerAttribute { + Ark_Tag tag; + Ark_CalendarPickerAttribute value; +} Opt_CalendarPickerAttribute; typedef struct Opt_CalendarController { Ark_Tag tag; Ark_CalendarController value; @@ -9784,6 +10187,13 @@ typedef struct Opt_Union_BadgePosition_Position { Ark_Tag tag; Ark_Union_BadgePosition_Position value; } Opt_Union_BadgePosition_Position; +typedef struct Ark_AlphabetIndexerAttribute { + void *handle; +} Ark_AlphabetIndexerAttribute; +typedef struct Opt_AlphabetIndexerAttribute { + Ark_Tag tag; + Ark_AlphabetIndexerAttribute value; +} Opt_AlphabetIndexerAttribute; typedef struct Ark_AlertDialogParamWithOptions { Opt_ResourceStr title; Opt_ResourceStr subtitle; @@ -10284,10 +10694,10 @@ typedef struct Opt_ButtonTriggerClickCallback { Ark_Tag tag; ButtonTriggerClickCallback value; } Opt_ButtonTriggerClickCallback; -typedef struct Opt_GlobalScope_inspector { +typedef struct Opt_GlobalScope_Profiler_inspector { Ark_Tag tag; - Ark_GlobalScope_inspector value; -} Opt_GlobalScope_inspector; + Ark_GlobalScope_Profiler_inspector value; +} Opt_GlobalScope_Profiler_inspector; typedef struct Opt_LinearIndicatorController { Ark_Tag tag; Ark_LinearIndicatorController value; @@ -10303,10 +10713,6 @@ typedef struct Opt_ImageAttachmentInterface { Ark_Tag tag; Ark_ImageAttachmentInterface value; } Opt_ImageAttachmentInterface; -typedef struct Opt_MutableStyledString { - Ark_Tag tag; - Ark_MutableStyledString value; -} Opt_MutableStyledString; typedef struct Opt_UrlStyle { Ark_Tag tag; Ark_UrlStyle value; @@ -10408,6 +10814,14 @@ typedef struct Opt_Union_String_ImageAttachment_CustomSpan { Ark_Tag tag; Ark_Union_String_ImageAttachment_CustomSpan value; } Opt_Union_String_ImageAttachment_CustomSpan; +typedef struct Array_SpanStyle { + Ark_SpanStyle* array; + Ark_Int32 length; +} Array_SpanStyle; +typedef struct Opt_Array_SpanStyle { + Ark_Tag tag; + Array_SpanStyle value; +} Opt_Array_SpanStyle; typedef struct Ark_Literal_Number_code_Want_want { Ark_Number code; Opt_Want want; @@ -11557,18 +11971,6 @@ typedef struct Opt_WebOptions { Ark_Tag tag; Ark_WebOptions value; } Opt_WebOptions; -typedef struct Opt_WebCookie { - Ark_Tag tag; - Ark_WebCookie value; -} Opt_WebCookie; -typedef struct Ark_Header { - Ark_String headerKey; - Ark_String headerValue; -} Ark_Header; -typedef struct Opt_Header { - Ark_Tag tag; - Ark_Header value; -} Opt_Header; typedef struct Ark_Union_String_Number_Resource_Buffer { Ark_Int32 selector; union { @@ -11582,6 +11984,27 @@ typedef struct Opt_Union_String_Number_Resource_Buffer { Ark_Tag tag; Ark_Union_String_Number_Resource_Buffer value; } Opt_Union_String_Number_Resource_Buffer; +typedef struct Ark_Union_String_Number_Buffer_Resource { + Ark_Int32 selector; + union { + Ark_String value0; + Ark_Number value1; + Ark_Buffer value2; + Ark_Resource value3; + }; +} Ark_Union_String_Number_Buffer_Resource; +typedef struct Opt_Union_String_Number_Buffer_Resource { + Ark_Tag tag; + Ark_Union_String_Number_Buffer_Resource value; +} Opt_Union_String_Number_Buffer_Resource; +typedef struct Ark_Header { + Ark_String headerKey; + Ark_String headerValue; +} Ark_Header; +typedef struct Opt_Header { + Ark_Tag tag; + Ark_Header value; +} Opt_Header; typedef struct Ark_PlaybackInfo { Ark_Number time; } Ark_PlaybackInfo; @@ -11800,10 +12223,21 @@ typedef struct Opt_Array_TextMenuItem { Ark_Tag tag; Array_TextMenuItem value; } Opt_Array_TextMenuItem; -typedef struct Opt_LayoutManager { +typedef struct Ark_TextBox { + Ark_String _TextBoxStub; +} Ark_TextBox; +typedef struct Opt_TextBox { + Ark_Tag tag; + Ark_TextBox value; +} Opt_TextBox; +typedef struct Array_TextBox { + Ark_TextBox* array; + Ark_Int32 length; +} Array_TextBox; +typedef struct Opt_Array_TextBox { Ark_Tag tag; - Ark_LayoutManager value; -} Opt_LayoutManager; + Array_TextBox value; +} Opt_Array_TextBox; typedef struct Opt_StyledStringController { Ark_Tag tag; Ark_StyledStringController value; @@ -12312,14 +12746,6 @@ typedef struct Opt_OnTextSelectionChangeCallback { Ark_Tag tag; OnTextSelectionChangeCallback value; } Opt_OnTextSelectionChangeCallback; -typedef struct Ark_PreviewText { - Ark_Number offset; - Ark_String value; -} Ark_PreviewText; -typedef struct Opt_PreviewText { - Ark_Tag tag; - Ark_PreviewText value; -} Opt_PreviewText; typedef struct EditableTextOnChangeCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_String value, const Opt_PreviewText previewText); @@ -12668,14 +13094,6 @@ typedef struct Opt_Callback_RichEditorRange_Void { Ark_Tag tag; Callback_RichEditorRange_Void value; } Opt_Callback_RichEditorRange_Void; -typedef struct Ark_RichEditorSelection { - Ark_Tuple_Number_Number selection; - Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult spans; -} Ark_RichEditorSelection; -typedef struct Opt_RichEditorSelection { - Ark_Tag tag; - Ark_RichEditorSelection value; -} Opt_RichEditorSelection; typedef struct Callback_RichEditorSelection_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_RichEditorSelection parameter); @@ -12694,6 +13112,60 @@ typedef struct Opt_StyledStringChangeValue { Ark_Tag tag; Ark_StyledStringChangeValue value; } Opt_StyledStringChangeValue; +typedef struct Ark_RichEditorSpan { + Ark_Int32 selector; + union { + Ark_RichEditorImageSpanResult value0; + Ark_RichEditorTextSpanResult value1; + }; +} Ark_RichEditorSpan; +typedef struct Opt_RichEditorSpan { + Ark_Tag tag; + Ark_RichEditorSpan value; +} Opt_RichEditorSpan; +typedef struct Array_RichEditorSpan { + Ark_RichEditorSpan* array; + Ark_Int32 length; +} Array_RichEditorSpan; +typedef struct Opt_Array_RichEditorSpan { + Ark_Tag tag; + Array_RichEditorSpan value; +} Opt_Array_RichEditorSpan; +typedef struct Ark_RichEditorParagraphResult { + Ark_RichEditorParagraphStyle style; + Ark_Tuple_Number_Number range; +} Ark_RichEditorParagraphResult; +typedef struct Opt_RichEditorParagraphResult { + Ark_Tag tag; + Ark_RichEditorParagraphResult value; +} Opt_RichEditorParagraphResult; +typedef struct Array_RichEditorParagraphResult { + Ark_RichEditorParagraphResult* array; + Ark_Int32 length; +} Array_RichEditorParagraphResult; +typedef struct Opt_Array_RichEditorParagraphResult { + Ark_Tag tag; + Array_RichEditorParagraphResult value; +} Opt_Array_RichEditorParagraphResult; +typedef struct Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult { + Ark_Int32 selector; + union { + Ark_RichEditorImageSpanResult value0; + Ark_RichEditorTextSpanResult value1; + }; +} Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult { + Ark_Tag tag; + Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult value; +} Opt_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult { + Ark_Union_RichEditorImageSpanResult_RichEditorTextSpanResult* array; + Ark_Int32 length; +} Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; +typedef struct Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult { + Ark_Tag tag; + Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult value; +} Opt_Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult; typedef struct Ark_Type_RichEditorController_updateSpanStyle_value { Ark_Int32 selector; union { @@ -13010,6 +13482,14 @@ typedef struct Opt_Union_NavDestinationContext_NavBar { Ark_Tag tag; Ark_Union_NavDestinationContext_NavBar value; } Opt_Union_NavDestinationContext_NavBar; +typedef struct Array_CustomObject { + Ark_CustomObject* array; + Ark_Int32 length; +} Array_CustomObject; +typedef struct Opt_Array_CustomObject { + Ark_Tag tag; + Array_CustomObject value; +} Opt_Array_CustomObject; typedef struct Ark_RouteInfo { Ark_String name; Opt_CustomObject param; @@ -13274,15 +13754,6 @@ typedef struct Opt_Callback_Number_Boolean { Ark_Tag tag; Callback_Number_Boolean value; } Opt_Callback_Number_Boolean; -typedef struct Ark_VisibleListContentInfo { - Ark_Number index; - Opt_ListItemGroupArea itemGroupArea; - Opt_Number itemIndexInGroup; -} Ark_VisibleListContentInfo; -typedef struct Opt_VisibleListContentInfo { - Ark_Tag tag; - Ark_VisibleListContentInfo value; -} Opt_VisibleListContentInfo; typedef struct OnScrollVisibleContentChangeCallback { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_VisibleListContentInfo start, const Ark_VisibleListContentInfo end); @@ -13642,10 +14113,6 @@ typedef struct Opt_PanRecognizer { Ark_Tag tag; Ark_PanRecognizer value; } Opt_PanRecognizer; -typedef struct Opt_EventTargetInfo { - Ark_Tag tag; - Ark_EventTargetInfo value; -} Opt_EventTargetInfo; typedef struct Opt_ScrollableTargetInfo { Ark_Tag tag; Ark_ScrollableTargetInfo value; @@ -13659,10 +14126,6 @@ typedef struct Opt_Literal_Number_distance_fingers_PanDirection_direction { Ark_Tag tag; Ark_Literal_Number_distance_fingers_PanDirection_direction value; } Opt_Literal_Number_distance_fingers_PanDirection_direction; -typedef struct Opt_PanGestureOptions { - Ark_Tag tag; - Ark_PanGestureOptions value; -} Opt_PanGestureOptions; typedef struct Opt_GestureEvent { Ark_Tag tag; Ark_GestureEvent value; @@ -13992,18 +14455,6 @@ typedef struct Opt_SceneOptions { Ark_Tag tag; Ark_SceneOptions value; } Opt_SceneOptions; -typedef struct Array_CustomObject { - Ark_CustomObject* array; - Ark_Int32 length; -} Array_CustomObject; -typedef struct Opt_Array_CustomObject { - Ark_Tag tag; - Array_CustomObject value; -} Opt_Array_CustomObject; -typedef struct Opt_GlobalScope_common { - Ark_Tag tag; - Ark_GlobalScope_common value; -} Opt_GlobalScope_common; typedef struct Opt_UICommonEvent { Ark_Tag tag; Ark_UICommonEvent value; @@ -14036,14 +14487,6 @@ typedef struct Opt_ScrollOnScrollCallback { Ark_Tag tag; ScrollOnScrollCallback value; } Opt_ScrollOnScrollCallback; -typedef struct Ark_OffsetResult { - Ark_Number xOffset; - Ark_Number yOffset; -} Ark_OffsetResult; -typedef struct Opt_OffsetResult { - Ark_Tag tag; - Ark_OffsetResult value; -} Opt_OffsetResult; typedef struct Callback_Number_Number_Void { Ark_CallbackResource resource; void (*call)(const Ark_Int32 resourceId, const Ark_Number first, const Ark_Number last); @@ -14827,22 +15270,24 @@ typedef struct Opt_PixelMapMock { Ark_Tag tag; Ark_PixelMapMock value; } Opt_PixelMapMock; -typedef struct Ark_TouchObject { - Ark_TouchType type; - Ark_Number id; - Ark_Number displayX; - Ark_Number displayY; - Ark_Number windowX; - Ark_Number windowY; - Ark_Number screenX; - Ark_Number screenY; - Ark_Number x; - Ark_Number y; -} Ark_TouchObject; -typedef struct Opt_TouchObject { +typedef struct Ark_HistoricalPoint { + Ark_TouchObject touchObject; + Ark_Number size; + Ark_Number force; + Ark_Number timestamp; +} Ark_HistoricalPoint; +typedef struct Opt_HistoricalPoint { + Ark_Tag tag; + Ark_HistoricalPoint value; +} Opt_HistoricalPoint; +typedef struct Array_HistoricalPoint { + Ark_HistoricalPoint* array; + Ark_Int32 length; +} Array_HistoricalPoint; +typedef struct Opt_Array_HistoricalPoint { Ark_Tag tag; - Ark_TouchObject value; -} Opt_TouchObject; + Array_HistoricalPoint value; +} Opt_Array_HistoricalPoint; typedef struct Opt_AccessibilityHoverEvent { Ark_Tag tag; Ark_AccessibilityHoverEvent value; @@ -14859,6 +15304,14 @@ typedef struct Opt_BaseEvent { Ark_Tag tag; Ark_BaseEvent value; } Opt_BaseEvent; +typedef struct Opt_GlobalScope_cursorControl_common { + Ark_Tag tag; + Ark_GlobalScope_cursorControl_common value; +} Opt_GlobalScope_cursorControl_common; +typedef struct Opt_GlobalScope_focusControl_common { + Ark_Tag tag; + Ark_GlobalScope_focusControl_common value; +} Opt_GlobalScope_focusControl_common; typedef struct Ark_TransitionEffects { Ark_Undefined identity; Ark_Number opacity; @@ -14959,6 +15412,10 @@ typedef struct Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext { Ark_Tag tag; Ark_Union_CanvasRenderingContext2D_DrawingRenderingContext value; } Opt_Union_CanvasRenderingContext2D_DrawingRenderingContext; +typedef struct Opt_OffscreenCanvas { + Ark_Tag tag; + Ark_OffscreenCanvas value; +} Opt_OffscreenCanvas; typedef struct Ark_Union_ImageBitmap_PixelMap { Ark_Int32 selector; union { @@ -14974,10 +15431,6 @@ typedef struct Opt_CanvasRenderer { Ark_Tag tag; Ark_CanvasRenderer value; } Opt_CanvasRenderer; -typedef struct Opt_RenderingContextSettings { - Ark_Tag tag; - Ark_RenderingContextSettings value; -} Opt_RenderingContextSettings; typedef struct Ark_LengthMetricsUnit { Ark_String _LengthMetricsUnitStub; } Ark_LengthMetricsUnit; @@ -15313,6 +15766,10 @@ typedef struct Opt_Array_WebHeader { Ark_Tag tag; Array_WebHeader value; } Opt_Array_WebHeader; +typedef struct Opt_SystemOps { + Ark_Tag tag; + Ark_SystemOps value; +} Opt_SystemOps; typedef struct Opt_LazyForEachOps { Ark_Tag tag; Ark_LazyForEachOps value; @@ -18837,7 +19294,7 @@ typedef struct GENERATED_ArkUILinearIndicatorModifier { // Accessors typedef struct GENERATED_ArkUIAnimationExtenderAccessor { - void (*destroyPeer)(AnimationExtenderPeer* peer); + void (*destroyPeer)(Ark_AnimationExtender peer); Ark_AnimationExtender (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*SetClipRect)(Ark_NativePointer node, @@ -18854,16 +19311,16 @@ typedef struct GENERATED_ArkUIAnimationExtenderAccessor { } GENERATED_ArkUIAnimationExtenderAccessor; typedef struct GENERATED_ArkUIUnifiedDataAccessor { - void (*destroyPeer)(UnifiedDataPeer* peer); + void (*destroyPeer)(Ark_UnifiedData peer); Ark_UnifiedData (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*hasType)(UnifiedDataPeer* peer, + Ark_Boolean (*hasType)(Ark_UnifiedData peer, const Ark_String* UnifiedData_type); - void (*getTypes)(UnifiedDataPeer* peer); + Array_String (*getTypes)(Ark_UnifiedData peer); } GENERATED_ArkUIUnifiedDataAccessor; typedef struct GENERATED_ArkUILazyForEachOpsAccessor { - void (*destroyPeer)(LazyForEachOpsPeer* peer); + void (*destroyPeer)(Ark_LazyForEachOps peer); Ark_LazyForEachOps (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_NativePointer (*NeedMoreElements)(Ark_NativePointer node, @@ -18877,11 +19334,19 @@ typedef struct GENERATED_ArkUILazyForEachOpsAccessor { void (*Prepare)(Ark_NativePointer node); } GENERATED_ArkUILazyForEachOpsAccessor; +typedef struct GENERATED_ArkUISystemOpsAccessor { + void (*destroyPeer)(Ark_SystemOps peer); + Ark_SystemOps (*ctor)(); + Ark_NativePointer (*getFinalizer)(); + Ark_NativePointer (*StartFrame)(); + void (*EndFrame)(Ark_NativePointer root); +} GENERATED_ArkUISystemOpsAccessor; + typedef struct GENERATED_ArkUIDrawingCanvasAccessor { - void (*destroyPeer)(DrawingCanvasPeer* peer); + void (*destroyPeer)(Ark_DrawingCanvas peer); Ark_DrawingCanvas (*ctor)(Ark_PixelMap pixelmap); Ark_NativePointer (*getFinalizer)(); - void (*drawRect)(DrawingCanvasPeer* peer, + void (*drawRect)(Ark_DrawingCanvas peer, const Ark_Number* left, const Ark_Number* top, const Ark_Number* right, @@ -18889,31 +19354,31 @@ typedef struct GENERATED_ArkUIDrawingCanvasAccessor { } GENERATED_ArkUIDrawingCanvasAccessor; typedef struct GENERATED_ArkUILengthMetricsAccessor { - void (*destroyPeer)(LengthMetricsPeer* peer); + void (*destroyPeer)(Ark_LengthMetrics peer); Ark_LengthMetrics (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_LengthMetrics (*px)(const Ark_Number* value); Ark_LengthMetrics (*resource)(const Ark_Resource* value); - Ark_NativePointer (*getUnit)(LengthMetricsPeer* peer); - void (*setUnit)(LengthMetricsPeer* peer, + Ark_LengthUnit (*getUnit)(Ark_LengthMetrics peer); + void (*setUnit)(Ark_LengthMetrics peer, Ark_LengthUnit unit); - Ark_Int32 (*getValue)(LengthMetricsPeer* peer); - void (*setValue)(LengthMetricsPeer* peer, + Ark_Int32 (*getValue)(Ark_LengthMetrics peer); + void (*setValue)(Ark_LengthMetrics peer, const Ark_Number* value); } GENERATED_ArkUILengthMetricsAccessor; typedef struct GENERATED_ArkUIWebviewControllerAccessor { - void (*destroyPeer)(WebviewControllerPeer* peer); + void (*destroyPeer)(Ark_WebviewController peer); Ark_WebviewController (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*initializeWebEngine)(); - void (*loadUrl)(WebviewControllerPeer* peer, + void (*loadUrl)(Ark_WebviewController peer, const Ark_Union_String_Resource* url, const Opt_Array_WebHeader* headers); } GENERATED_ArkUIWebviewControllerAccessor; typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_componentSnapshotAccessor { - void (*destroyPeer)(GlobalScope_ohos_arkui_componentSnapshotPeer* peer); + void (*destroyPeer)(Ark_GlobalScope_ohos_arkui_componentSnapshot peer); Ark_GlobalScope_ohos_arkui_componentSnapshot (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*get)(const Ark_String* id, @@ -18922,7 +19387,7 @@ typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_componentSnapshotAccessor { } GENERATED_ArkUIGlobalScope_ohos_arkui_componentSnapshotAccessor; typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_performanceMonitorAccessor { - void (*destroyPeer)(GlobalScope_ohos_arkui_performanceMonitorPeer* peer); + void (*destroyPeer)(Ark_GlobalScope_ohos_arkui_performanceMonitor peer); Ark_GlobalScope_ohos_arkui_performanceMonitor (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*begin)(const Ark_String* scene, @@ -18935,48 +19400,44 @@ typedef struct GENERATED_ArkUIGlobalScope_ohos_arkui_performanceMonitorAccessor } GENERATED_ArkUIGlobalScope_ohos_arkui_performanceMonitorAccessor; typedef struct GENERATED_ArkUIFrameNodeAccessor { - void (*destroyPeer)(FrameNodePeer* peer); + void (*destroyPeer)(Ark_FrameNode peer); Ark_FrameNode (*ctor)(const Ark_UIContext* uiContext); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*isModifiable)(FrameNodePeer* peer); - void (*appendChild)(FrameNodePeer* peer, + Ark_Boolean (*isModifiable)(Ark_FrameNode peer); + void (*appendChild)(Ark_FrameNode peer, Ark_FrameNode node); - void (*insertChildAfter)(FrameNodePeer* peer, + void (*insertChildAfter)(Ark_FrameNode peer, Ark_FrameNode child, Ark_FrameNode sibling); - void (*removeChild)(FrameNodePeer* peer, + void (*removeChild)(Ark_FrameNode peer, Ark_FrameNode node); - void (*clearChildren)(FrameNodePeer* peer); - Ark_FrameNode (*getChild)(FrameNodePeer* peer, + void (*clearChildren)(Ark_FrameNode peer); + Ark_FrameNode (*getChild)(Ark_FrameNode peer, const Ark_Number* index); - Ark_FrameNode (*getFirstChild)(FrameNodePeer* peer); - Ark_FrameNode (*getNextSibling)(FrameNodePeer* peer); - Ark_FrameNode (*getPreviousSibling)(FrameNodePeer* peer); - Ark_FrameNode (*getParent)(FrameNodePeer* peer); - Ark_Int32 (*getChildrenCount)(FrameNodePeer* peer); - void (*dispose)(FrameNodePeer* peer); - Ark_Int32 (*getOpacity)(FrameNodePeer* peer); - Ark_NativePointer (*getPositionToWindowWithTransform)(FrameNodePeer* peer); + Ark_FrameNode (*getFirstChild)(Ark_FrameNode peer); + Ark_FrameNode (*getNextSibling)(Ark_FrameNode peer); + Ark_FrameNode (*getPreviousSibling)(Ark_FrameNode peer); + Ark_FrameNode (*getParent)(Ark_FrameNode peer); + Ark_Int32 (*getChildrenCount)(Ark_FrameNode peer); + void (*dispose)(Ark_FrameNode peer); + Ark_Int32 (*getOpacity)(Ark_FrameNode peer); + Ark_Position (*getPositionToWindowWithTransform)(Ark_FrameNode peer); } GENERATED_ArkUIFrameNodeAccessor; typedef struct GENERATED_ArkUIPixelMapAccessor { - void (*destroyPeer)(PixelMapPeer* peer); + void (*destroyPeer)(Ark_PixelMap peer); Ark_PixelMap (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*readPixelsToBufferSync)(PixelMapPeer* peer, + void (*readPixelsToBufferSync)(Ark_PixelMap peer, const Ark_Buffer* dst); - void (*writeBufferToPixels)(PixelMapPeer* peer, + void (*writeBufferToPixels)(Ark_PixelMap peer, const Ark_Buffer* src); - Ark_Int32 (*getIsEditable)(PixelMapPeer* peer); - void (*setIsEditable)(PixelMapPeer* peer, - Ark_Int32 isEditable); - Ark_Int32 (*getIsStrideAlignment)(PixelMapPeer* peer); - void (*setIsStrideAlignment)(PixelMapPeer* peer, - Ark_Int32 isStrideAlignment); + Ark_Boolean (*getIsEditable)(Ark_PixelMap peer); + Ark_Boolean (*getIsStrideAlignment)(Ark_PixelMap peer); } GENERATED_ArkUIPixelMapAccessor; typedef struct GENERATED_ArkUINavExtenderAccessor { - void (*destroyPeer)(NavExtenderPeer* peer); + void (*destroyPeer)(Ark_NavExtender peer); Ark_NavExtender (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*setUpdateStackCallback)(Ark_NavPathStack peer, @@ -18984,7 +19445,7 @@ typedef struct GENERATED_ArkUINavExtenderAccessor { } GENERATED_ArkUINavExtenderAccessor; typedef struct GENERATED_ArkUIEventEmulatorAccessor { - void (*destroyPeer)(EventEmulatorPeer* peer); + void (*destroyPeer)(Ark_EventEmulator peer); Ark_EventEmulator (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*emitClickEvent)(Ark_NativePointer node, @@ -18994,21 +19455,21 @@ typedef struct GENERATED_ArkUIEventEmulatorAccessor { } GENERATED_ArkUIEventEmulatorAccessor; typedef struct GENERATED_ArkUIActionSheetAccessor { - void (*destroyPeer)(ActionSheetPeer* peer); + void (*destroyPeer)(Ark_ActionSheet peer); Ark_ActionSheet (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Ark_ActionSheetOptions* value); } GENERATED_ArkUIActionSheetAccessor; typedef struct GENERATED_ArkUIAlertDialogAccessor { - void (*destroyPeer)(AlertDialogPeer* peer); + void (*destroyPeer)(Ark_AlertDialog peer); Ark_AlertDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Ark_Type_AlertDialog_show_value* value); } GENERATED_ArkUIAlertDialogAccessor; typedef struct GENERATED_ArkUISpringPropAccessor { - void (*destroyPeer)(SpringPropPeer* peer); + void (*destroyPeer)(Ark_SpringProp peer); Ark_SpringProp (*ctor)(const Ark_Number* mass, const Ark_Number* stiffness, const Ark_Number* damping); @@ -19016,7 +19477,7 @@ typedef struct GENERATED_ArkUISpringPropAccessor { } GENERATED_ArkUISpringPropAccessor; typedef struct GENERATED_ArkUISpringMotionAccessor { - void (*destroyPeer)(SpringMotionPeer* peer); + void (*destroyPeer)(Ark_SpringMotion peer); Ark_SpringMotion (*ctor)(const Ark_Number* start, const Ark_Number* end, const Ark_Number* velocity, @@ -19025,7 +19486,7 @@ typedef struct GENERATED_ArkUISpringMotionAccessor { } GENERATED_ArkUISpringMotionAccessor; typedef struct GENERATED_ArkUIFrictionMotionAccessor { - void (*destroyPeer)(FrictionMotionPeer* peer); + void (*destroyPeer)(Ark_FrictionMotion peer); Ark_FrictionMotion (*ctor)(const Ark_Number* friction, const Ark_Number* position, const Ark_Number* velocity); @@ -19033,7 +19494,7 @@ typedef struct GENERATED_ArkUIFrictionMotionAccessor { } GENERATED_ArkUIFrictionMotionAccessor; typedef struct GENERATED_ArkUIScrollMotionAccessor { - void (*destroyPeer)(ScrollMotionPeer* peer); + void (*destroyPeer)(Ark_ScrollMotion peer); Ark_ScrollMotion (*ctor)(const Ark_Number* position, const Ark_Number* velocity, const Ark_Number* min, @@ -19043,56 +19504,56 @@ typedef struct GENERATED_ArkUIScrollMotionAccessor { } GENERATED_ArkUIScrollMotionAccessor; typedef struct GENERATED_ArkUICalendarControllerAccessor { - void (*destroyPeer)(CalendarControllerPeer* peer); + void (*destroyPeer)(Ark_CalendarController peer); Ark_CalendarController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*backToToday)(CalendarControllerPeer* peer); - void (*goTo)(CalendarControllerPeer* peer, + void (*backToToday)(Ark_CalendarController peer); + void (*goTo)(Ark_CalendarController peer, const Ark_Literal_Number_day_month_year* value); } GENERATED_ArkUICalendarControllerAccessor; typedef struct GENERATED_ArkUICalendarPickerDialogAccessor { - void (*destroyPeer)(CalendarPickerDialogPeer* peer); + void (*destroyPeer)(Ark_CalendarPickerDialog peer); Ark_CalendarPickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_CalendarDialogOptions* options); } GENERATED_ArkUICalendarPickerDialogAccessor; typedef struct GENERATED_ArkUICanvasGradientAccessor { - void (*destroyPeer)(CanvasGradientPeer* peer); + void (*destroyPeer)(Ark_CanvasGradient peer); Ark_CanvasGradient (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*addColorStop)(CanvasGradientPeer* peer, + void (*addColorStop)(Ark_CanvasGradient peer, const Ark_Number* offset, const Ark_String* color); } GENERATED_ArkUICanvasGradientAccessor; typedef struct GENERATED_ArkUICanvasPathAccessor { - void (*destroyPeer)(CanvasPathPeer* peer); + void (*destroyPeer)(Ark_CanvasPath peer); Ark_CanvasPath (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*arc)(CanvasPathPeer* peer, + void (*arc)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radius, const Ark_Number* startAngle, const Ark_Number* endAngle, const Opt_Boolean* counterclockwise); - void (*arcTo)(CanvasPathPeer* peer, + void (*arcTo)(Ark_CanvasPath peer, const Ark_Number* x1, const Ark_Number* y1, const Ark_Number* x2, const Ark_Number* y2, const Ark_Number* radius); - void (*bezierCurveTo)(CanvasPathPeer* peer, + void (*bezierCurveTo)(Ark_CanvasPath peer, const Ark_Number* cp1x, const Ark_Number* cp1y, const Ark_Number* cp2x, const Ark_Number* cp2y, const Ark_Number* x, const Ark_Number* y); - void (*closePath)(CanvasPathPeer* peer); - void (*ellipse)(CanvasPathPeer* peer, + void (*closePath)(Ark_CanvasPath peer); + void (*ellipse)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radiusX, @@ -19101,18 +19562,18 @@ typedef struct GENERATED_ArkUICanvasPathAccessor { const Ark_Number* startAngle, const Ark_Number* endAngle, const Opt_Boolean* counterclockwise); - void (*lineTo)(CanvasPathPeer* peer, + void (*lineTo)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y); - void (*moveTo)(CanvasPathPeer* peer, + void (*moveTo)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y); - void (*quadraticCurveTo)(CanvasPathPeer* peer, + void (*quadraticCurveTo)(Ark_CanvasPath peer, const Ark_Number* cpx, const Ark_Number* cpy, const Ark_Number* x, const Ark_Number* y); - void (*rect)(CanvasPathPeer* peer, + void (*rect)(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -19120,65 +19581,65 @@ typedef struct GENERATED_ArkUICanvasPathAccessor { } GENERATED_ArkUICanvasPathAccessor; typedef struct GENERATED_ArkUIPath2DAccessor { - void (*destroyPeer)(Path2DPeer* peer); + void (*destroyPeer)(Ark_Path2D peer); Ark_Path2D (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*addPath)(Path2DPeer* peer, + void (*addPath)(Ark_Path2D peer, Ark_Path2D path, const Opt_Matrix2D* transform); } GENERATED_ArkUIPath2DAccessor; typedef struct GENERATED_ArkUICanvasPatternAccessor { - void (*destroyPeer)(CanvasPatternPeer* peer); + void (*destroyPeer)(Ark_CanvasPattern peer); Ark_CanvasPattern (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setTransform)(CanvasPatternPeer* peer, + void (*setTransform)(Ark_CanvasPattern peer, const Opt_Matrix2D* transform); } GENERATED_ArkUICanvasPatternAccessor; typedef struct GENERATED_ArkUIImageBitmapAccessor { - void (*destroyPeer)(ImageBitmapPeer* peer); + void (*destroyPeer)(Ark_ImageBitmap peer); Ark_ImageBitmap (*ctor)(const Ark_String* src); Ark_NativePointer (*getFinalizer)(); - void (*close)(ImageBitmapPeer* peer); - Ark_Int32 (*getHeight)(ImageBitmapPeer* peer); - Ark_Int32 (*getWidth)(ImageBitmapPeer* peer); + void (*close)(Ark_ImageBitmap peer); + Ark_Int32 (*getHeight)(Ark_ImageBitmap peer); + Ark_Int32 (*getWidth)(Ark_ImageBitmap peer); } GENERATED_ArkUIImageBitmapAccessor; typedef struct GENERATED_ArkUIImageDataAccessor { - void (*destroyPeer)(ImageDataPeer* peer); + void (*destroyPeer)(Ark_ImageData peer); Ark_ImageData (*ctor)(const Ark_Number* width, const Ark_Number* height, const Opt_Buffer* data); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getHeight)(ImageDataPeer* peer); - Ark_Int32 (*getWidth)(ImageDataPeer* peer); + Ark_Int32 (*getHeight)(Ark_ImageData peer); + Ark_Int32 (*getWidth)(Ark_ImageData peer); } GENERATED_ArkUIImageDataAccessor; typedef struct GENERATED_ArkUIRenderingContextSettingsAccessor { - void (*destroyPeer)(RenderingContextSettingsPeer* peer); + void (*destroyPeer)(Ark_RenderingContextSettings peer); Ark_RenderingContextSettings (*ctor)(const Opt_Boolean* antialias); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getAntialias)(RenderingContextSettingsPeer* peer); - void (*setAntialias)(RenderingContextSettingsPeer* peer, + Ark_Boolean (*getAntialias)(Ark_RenderingContextSettings peer); + void (*setAntialias)(Ark_RenderingContextSettings peer, Ark_Boolean antialias); } GENERATED_ArkUIRenderingContextSettingsAccessor; typedef struct GENERATED_ArkUICanvasRendererAccessor { - void (*destroyPeer)(CanvasRendererPeer* peer); + void (*destroyPeer)(Ark_CanvasRenderer peer); Ark_CanvasRenderer (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*drawImage0)(CanvasRendererPeer* peer, + void (*drawImage0)(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy); - void (*drawImage1)(CanvasRendererPeer* peer, + void (*drawImage1)(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy, const Ark_Number* dw, const Ark_Number* dh); - void (*drawImage2)(CanvasRendererPeer* peer, + void (*drawImage2)(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* sx, const Ark_Number* sy, @@ -19188,59 +19649,59 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { const Ark_Number* dy, const Ark_Number* dw, const Ark_Number* dh); - void (*beginPath)(CanvasRendererPeer* peer); - void (*clip0)(CanvasRendererPeer* peer, + void (*beginPath)(Ark_CanvasRenderer peer); + void (*clip0)(Ark_CanvasRenderer peer, const Opt_String* fillRule); - void (*clip1)(CanvasRendererPeer* peer, + void (*clip1)(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule); - void (*fill0)(CanvasRendererPeer* peer, + void (*fill0)(Ark_CanvasRenderer peer, const Opt_String* fillRule); - void (*fill1)(CanvasRendererPeer* peer, + void (*fill1)(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule); - void (*stroke0)(CanvasRendererPeer* peer); - void (*stroke1)(CanvasRendererPeer* peer, + void (*stroke0)(Ark_CanvasRenderer peer); + void (*stroke1)(Ark_CanvasRenderer peer, Ark_Path2D path); - Ark_CanvasGradient (*createLinearGradient)(CanvasRendererPeer* peer, + Ark_CanvasGradient (*createLinearGradient)(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* x1, const Ark_Number* y1); - Ark_CanvasPattern (*createPattern)(CanvasRendererPeer* peer, + Opt_CanvasPattern (*createPattern)(Ark_CanvasRenderer peer, Ark_ImageBitmap image, const Opt_String* repetition); - Ark_CanvasGradient (*createRadialGradient)(CanvasRendererPeer* peer, + Ark_CanvasGradient (*createRadialGradient)(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* r0, const Ark_Number* x1, const Ark_Number* y1, const Ark_Number* r1); - Ark_CanvasGradient (*createConicGradient)(CanvasRendererPeer* peer, + Ark_CanvasGradient (*createConicGradient)(Ark_CanvasRenderer peer, const Ark_Number* startAngle, const Ark_Number* x, const Ark_Number* y); - Ark_ImageData (*createImageData0)(CanvasRendererPeer* peer, + Ark_ImageData (*createImageData0)(Ark_CanvasRenderer peer, const Ark_Number* sw, const Ark_Number* sh); - Ark_ImageData (*createImageData1)(CanvasRendererPeer* peer, + Ark_ImageData (*createImageData1)(Ark_CanvasRenderer peer, Ark_ImageData imagedata); - Ark_ImageData (*getImageData)(CanvasRendererPeer* peer, + Ark_ImageData (*getImageData)(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, const Ark_Number* sh); - Ark_PixelMap (*getPixelMap)(CanvasRendererPeer* peer, + Ark_PixelMap (*getPixelMap)(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, const Ark_Number* sh); - void (*putImageData0)(CanvasRendererPeer* peer, + void (*putImageData0)(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy); - void (*putImageData1)(CanvasRendererPeer* peer, + void (*putImageData1)(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy, @@ -19248,184 +19709,212 @@ typedef struct GENERATED_ArkUICanvasRendererAccessor { const Ark_Union_Number_String* dirtyY, const Ark_Union_Number_String* dirtyWidth, const Ark_Union_Number_String* dirtyHeight); - void (*getLineDash)(CanvasRendererPeer* peer); - void (*setLineDash)(CanvasRendererPeer* peer, + Array_Number (*getLineDash)(Ark_CanvasRenderer peer); + void (*setLineDash)(Ark_CanvasRenderer peer, const Array_Number* segments); - void (*clearRect)(CanvasRendererPeer* peer, + void (*clearRect)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h); - void (*fillRect)(CanvasRendererPeer* peer, + void (*fillRect)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h); - void (*strokeRect)(CanvasRendererPeer* peer, + void (*strokeRect)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h); - void (*restore)(CanvasRendererPeer* peer); - void (*save)(CanvasRendererPeer* peer); - void (*fillText)(CanvasRendererPeer* peer, + void (*restore)(Ark_CanvasRenderer peer); + void (*save)(Ark_CanvasRenderer peer); + void (*fillText)(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, const Opt_Number* maxWidth); - Ark_NativePointer (*measureText)(CanvasRendererPeer* peer, - const Ark_String* text); - void (*strokeText)(CanvasRendererPeer* peer, + Ark_TextMetrics (*measureText)(Ark_CanvasRenderer peer, + const Ark_String* text); + void (*strokeText)(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, const Opt_Number* maxWidth); - Ark_Matrix2D (*getTransform)(CanvasRendererPeer* peer); - void (*resetTransform)(CanvasRendererPeer* peer); - void (*rotate)(CanvasRendererPeer* peer, + Ark_Matrix2D (*getTransform)(Ark_CanvasRenderer peer); + void (*resetTransform)(Ark_CanvasRenderer peer); + void (*rotate)(Ark_CanvasRenderer peer, const Ark_Number* angle); - void (*scale)(CanvasRendererPeer* peer, + void (*scale)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y); - void (*setTransform0)(CanvasRendererPeer* peer, + void (*setTransform0)(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, const Ark_Number* d, const Ark_Number* e, const Ark_Number* f); - void (*setTransform1)(CanvasRendererPeer* peer, + void (*setTransform1)(Ark_CanvasRenderer peer, const Opt_Matrix2D* transform); - void (*transform)(CanvasRendererPeer* peer, + void (*transform)(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, const Ark_Number* d, const Ark_Number* e, const Ark_Number* f); - void (*translate)(CanvasRendererPeer* peer, + void (*translate)(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y); - void (*setPixelMap)(CanvasRendererPeer* peer, + void (*setPixelMap)(Ark_CanvasRenderer peer, const Opt_PixelMap* value); - void (*transferFromImageBitmap)(CanvasRendererPeer* peer, + void (*transferFromImageBitmap)(Ark_CanvasRenderer peer, Ark_ImageBitmap bitmap); - void (*saveLayer)(CanvasRendererPeer* peer); - void (*restoreLayer)(CanvasRendererPeer* peer); - void (*reset)(CanvasRendererPeer* peer); - Ark_Int32 (*getGlobalAlpha)(CanvasRendererPeer* peer); - void (*setGlobalAlpha)(CanvasRendererPeer* peer, + void (*saveLayer)(Ark_CanvasRenderer peer); + void (*restoreLayer)(Ark_CanvasRenderer peer); + void (*reset)(Ark_CanvasRenderer peer); + Ark_Int32 (*getGlobalAlpha)(Ark_CanvasRenderer peer); + void (*setGlobalAlpha)(Ark_CanvasRenderer peer, const Ark_Number* globalAlpha); - void (*getGlobalCompositeOperation)(CanvasRendererPeer* peer); - void (*setGlobalCompositeOperation)(CanvasRendererPeer* peer, + Ark_String (*getGlobalCompositeOperation)(Ark_CanvasRenderer peer); + void (*setGlobalCompositeOperation)(Ark_CanvasRenderer peer, const Ark_String* globalCompositeOperation); - void (*setFillStyle)(CanvasRendererPeer* peer, + void (*setFillStyle)(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* fillStyle); - void (*setStrokeStyle)(CanvasRendererPeer* peer, + void (*setStrokeStyle)(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* strokeStyle); - void (*getFilter)(CanvasRendererPeer* peer); - void (*setFilter)(CanvasRendererPeer* peer, + Ark_String (*getFilter)(Ark_CanvasRenderer peer); + void (*setFilter)(Ark_CanvasRenderer peer, const Ark_String* filter); - Ark_Boolean (*getImageSmoothingEnabled)(CanvasRendererPeer* peer); - void (*setImageSmoothingEnabled)(CanvasRendererPeer* peer, + Ark_Boolean (*getImageSmoothingEnabled)(Ark_CanvasRenderer peer); + void (*setImageSmoothingEnabled)(Ark_CanvasRenderer peer, Ark_Boolean imageSmoothingEnabled); - Ark_NativePointer (*getImageSmoothingQuality)(CanvasRendererPeer* peer); - void (*setImageSmoothingQuality)(CanvasRendererPeer* peer, + Ark_String (*getImageSmoothingQuality)(Ark_CanvasRenderer peer); + void (*setImageSmoothingQuality)(Ark_CanvasRenderer peer, const Ark_String* imageSmoothingQuality); - Ark_NativePointer (*getLineCap)(CanvasRendererPeer* peer); - void (*setLineCap)(CanvasRendererPeer* peer, + Ark_String (*getLineCap)(Ark_CanvasRenderer peer); + void (*setLineCap)(Ark_CanvasRenderer peer, const Ark_String* lineCap); - Ark_Int32 (*getLineDashOffset)(CanvasRendererPeer* peer); - void (*setLineDashOffset)(CanvasRendererPeer* peer, + Ark_Int32 (*getLineDashOffset)(Ark_CanvasRenderer peer); + void (*setLineDashOffset)(Ark_CanvasRenderer peer, const Ark_Number* lineDashOffset); - Ark_NativePointer (*getLineJoin)(CanvasRendererPeer* peer); - void (*setLineJoin)(CanvasRendererPeer* peer, + Ark_String (*getLineJoin)(Ark_CanvasRenderer peer); + void (*setLineJoin)(Ark_CanvasRenderer peer, const Ark_String* lineJoin); - Ark_Int32 (*getLineWidth)(CanvasRendererPeer* peer); - void (*setLineWidth)(CanvasRendererPeer* peer, + Ark_Int32 (*getLineWidth)(Ark_CanvasRenderer peer); + void (*setLineWidth)(Ark_CanvasRenderer peer, const Ark_Number* lineWidth); - Ark_Int32 (*getMiterLimit)(CanvasRendererPeer* peer); - void (*setMiterLimit)(CanvasRendererPeer* peer, + Ark_Int32 (*getMiterLimit)(Ark_CanvasRenderer peer); + void (*setMiterLimit)(Ark_CanvasRenderer peer, const Ark_Number* miterLimit); - Ark_Int32 (*getShadowBlur)(CanvasRendererPeer* peer); - void (*setShadowBlur)(CanvasRendererPeer* peer, + Ark_Int32 (*getShadowBlur)(Ark_CanvasRenderer peer); + void (*setShadowBlur)(Ark_CanvasRenderer peer, const Ark_Number* shadowBlur); - void (*getShadowColor)(CanvasRendererPeer* peer); - void (*setShadowColor)(CanvasRendererPeer* peer, + Ark_String (*getShadowColor)(Ark_CanvasRenderer peer); + void (*setShadowColor)(Ark_CanvasRenderer peer, const Ark_String* shadowColor); - Ark_Int32 (*getShadowOffsetX)(CanvasRendererPeer* peer); - void (*setShadowOffsetX)(CanvasRendererPeer* peer, + Ark_Int32 (*getShadowOffsetX)(Ark_CanvasRenderer peer); + void (*setShadowOffsetX)(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetX); - Ark_Int32 (*getShadowOffsetY)(CanvasRendererPeer* peer); - void (*setShadowOffsetY)(CanvasRendererPeer* peer, + Ark_Int32 (*getShadowOffsetY)(Ark_CanvasRenderer peer); + void (*setShadowOffsetY)(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetY); - Ark_NativePointer (*getDirection)(CanvasRendererPeer* peer); - void (*setDirection)(CanvasRendererPeer* peer, + Ark_String (*getDirection)(Ark_CanvasRenderer peer); + void (*setDirection)(Ark_CanvasRenderer peer, const Ark_String* direction); - void (*getFont)(CanvasRendererPeer* peer); - void (*setFont)(CanvasRendererPeer* peer, + Ark_String (*getFont)(Ark_CanvasRenderer peer); + void (*setFont)(Ark_CanvasRenderer peer, const Ark_String* font); - Ark_NativePointer (*getTextAlign)(CanvasRendererPeer* peer); - void (*setTextAlign)(CanvasRendererPeer* peer, + Ark_String (*getTextAlign)(Ark_CanvasRenderer peer); + void (*setTextAlign)(Ark_CanvasRenderer peer, const Ark_String* textAlign); - Ark_NativePointer (*getTextBaseline)(CanvasRendererPeer* peer); - void (*setTextBaseline)(CanvasRendererPeer* peer, + Ark_String (*getTextBaseline)(Ark_CanvasRenderer peer); + void (*setTextBaseline)(Ark_CanvasRenderer peer, const Ark_String* textBaseline); } GENERATED_ArkUICanvasRendererAccessor; typedef struct GENERATED_ArkUICanvasRenderingContext2DAccessor { - void (*destroyPeer)(CanvasRenderingContext2DPeer* peer); + void (*destroyPeer)(Ark_CanvasRenderingContext2D peer); Ark_CanvasRenderingContext2D (*ctor)(const Opt_RenderingContextSettings* settings); Ark_NativePointer (*getFinalizer)(); - void (*toDataURL)(CanvasRenderingContext2DPeer* peer, - const Opt_String* type, - const Opt_Number* quality); - void (*startImageAnalyzer)(CanvasRenderingContext2DPeer* peer, + Ark_String (*toDataURL)(Ark_CanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality); + void (*startImageAnalyzer)(Ark_CanvasRenderingContext2D peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*stopImageAnalyzer)(CanvasRenderingContext2DPeer* peer); - void (*onOnAttach)(CanvasRenderingContext2DPeer* peer, + void (*stopImageAnalyzer)(Ark_CanvasRenderingContext2D peer); + void (*onOnAttach)(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_); - void (*offOnAttach)(CanvasRenderingContext2DPeer* peer, + void (*offOnAttach)(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_); - void (*onOnDetach)(CanvasRenderingContext2DPeer* peer, + void (*onOnDetach)(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_); - void (*offOnDetach)(CanvasRenderingContext2DPeer* peer, + void (*offOnDetach)(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_); - Ark_Int32 (*getHeight)(CanvasRenderingContext2DPeer* peer); - Ark_Int32 (*getWidth)(CanvasRenderingContext2DPeer* peer); + Ark_Int32 (*getHeight)(Ark_CanvasRenderingContext2D peer); + Ark_Int32 (*getWidth)(Ark_CanvasRenderingContext2D peer); } GENERATED_ArkUICanvasRenderingContext2DAccessor; +typedef struct GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor { + void (*destroyPeer)(Ark_OffscreenCanvasRenderingContext2D peer); + Ark_OffscreenCanvasRenderingContext2D (*ctor)(const Ark_Number* width, + const Ark_Number* height, + const Opt_RenderingContextSettings* settings); + Ark_NativePointer (*getFinalizer)(); + Ark_String (*toDataURL)(Ark_OffscreenCanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality); + Ark_ImageBitmap (*transferToImageBitmap)(Ark_OffscreenCanvasRenderingContext2D peer); +} GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor; + +typedef struct GENERATED_ArkUIOffscreenCanvasAccessor { + void (*destroyPeer)(Ark_OffscreenCanvas peer); + Ark_OffscreenCanvas (*ctor)(const Ark_Number* width, + const Ark_Number* height); + Ark_NativePointer (*getFinalizer)(); + Ark_ImageBitmap (*transferToImageBitmap)(Ark_OffscreenCanvas peer); + Ark_OffscreenCanvasRenderingContext2D (*getContext2d)(Ark_OffscreenCanvas peer, + const Opt_RenderingContextSettings* options); + Ark_Int32 (*getHeight)(Ark_OffscreenCanvas peer); + void (*setHeight)(Ark_OffscreenCanvas peer, + const Ark_Number* height); + Ark_Int32 (*getWidth)(Ark_OffscreenCanvas peer); + void (*setWidth)(Ark_OffscreenCanvas peer, + const Ark_Number* width); +} GENERATED_ArkUIOffscreenCanvasAccessor; + typedef struct GENERATED_ArkUIDrawingRenderingContextAccessor { - void (*destroyPeer)(DrawingRenderingContextPeer* peer); + void (*destroyPeer)(Ark_DrawingRenderingContext peer); Ark_DrawingRenderingContext (*ctor)(const Opt_LengthMetricsUnit* unit); Ark_NativePointer (*getFinalizer)(); - void (*invalidate)(DrawingRenderingContextPeer* peer); + void (*invalidate)(Ark_DrawingRenderingContext peer); } GENERATED_ArkUIDrawingRenderingContextAccessor; typedef struct GENERATED_ArkUIICurveAccessor { - void (*destroyPeer)(ICurvePeer* peer); + void (*destroyPeer)(Ark_ICurve peer); Ark_ICurve (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*interpolate)(ICurvePeer* peer, + Ark_Int32 (*interpolate)(Ark_ICurve peer, const Ark_Number* fraction); } GENERATED_ArkUIICurveAccessor; typedef struct GENERATED_ArkUIDrawModifierAccessor { - void (*destroyPeer)(DrawModifierPeer* peer); + void (*destroyPeer)(Ark_DrawModifier peer); Ark_DrawModifier (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*drawBehind)(DrawModifierPeer* peer, + void (*drawBehind)(Ark_DrawModifier peer, const Ark_DrawContext* drawContext); - void (*drawContent)(DrawModifierPeer* peer, + void (*drawContent)(Ark_DrawModifier peer, const Ark_DrawContext* drawContext); - void (*drawFront)(DrawModifierPeer* peer, + void (*drawFront)(Ark_DrawModifier peer, const Ark_DrawContext* drawContext); - void (*invalidate)(DrawModifierPeer* peer); + void (*invalidate)(Ark_DrawModifier peer); } GENERATED_ArkUIDrawModifierAccessor; typedef struct GENERATED_ArkUITransitionEffectAccessor { - void (*destroyPeer)(TransitionEffectPeer* peer); + void (*destroyPeer)(Ark_TransitionEffect peer); Ark_TransitionEffect (*ctor)(const Ark_String* type, const Ark_TransitionEffects* effect); Ark_NativePointer (*getFinalizer)(); @@ -19436,1727 +19925,1717 @@ typedef struct GENERATED_ArkUITransitionEffectAccessor { Ark_TransitionEffect (*move)(Ark_TransitionEdge edge); Ark_TransitionEffect (*asymmetric)(Ark_TransitionEffect appear, Ark_TransitionEffect disappear); - Ark_TransitionEffect (*animation)(TransitionEffectPeer* peer, + Ark_TransitionEffect (*animation)(Ark_TransitionEffect peer, const Ark_AnimateParam* value); - Ark_TransitionEffect (*combine)(TransitionEffectPeer* peer, + Ark_TransitionEffect (*combine)(Ark_TransitionEffect peer, Ark_TransitionEffect transitionEffect); } GENERATED_ArkUITransitionEffectAccessor; +typedef struct GENERATED_ArkUIGlobalScope_focusControl_commonAccessor { + void (*destroyPeer)(Ark_GlobalScope_focusControl_common peer); + Ark_Boolean (*requestFocus)(const Ark_String* value); +} GENERATED_ArkUIGlobalScope_focusControl_commonAccessor; + +typedef struct GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor { + void (*destroyPeer)(Ark_GlobalScope_cursorControl_common peer); + void (*setCursor)(Ark_PointerStyle value); + void (*restoreDefault)(); +} GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor; + typedef struct GENERATED_ArkUIBaseEventAccessor { - void (*destroyPeer)(BaseEventPeer* peer); + void (*destroyPeer)(Ark_BaseEvent peer); Ark_BaseEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getModifierKeyState)(BaseEventPeer* peer, + Ark_Boolean (*getModifierKeyState)(Ark_BaseEvent peer, const Array_String* keys); - void (*setTarget)(BaseEventPeer* peer, + void (*setTarget)(Ark_BaseEvent peer, const Ark_EventTarget* target); - Ark_Int32 (*getTimestamp)(BaseEventPeer* peer); - void (*setTimestamp)(BaseEventPeer* peer, + Ark_Int32 (*getTimestamp)(Ark_BaseEvent peer); + void (*setTimestamp)(Ark_BaseEvent peer, const Ark_Number* timestamp); - Ark_NativePointer (*getSource)(BaseEventPeer* peer); - void (*setSource)(BaseEventPeer* peer, + Ark_SourceType (*getSource)(Ark_BaseEvent peer); + void (*setSource)(Ark_BaseEvent peer, Ark_SourceType source); - Ark_Int32 (*getAxisHorizontal)(BaseEventPeer* peer); - void (*setAxisHorizontal)(BaseEventPeer* peer, + Ark_Int32 (*getAxisHorizontal)(Ark_BaseEvent peer); + void (*setAxisHorizontal)(Ark_BaseEvent peer, const Ark_Number* axisHorizontal); - Ark_Int32 (*getAxisVertical)(BaseEventPeer* peer); - void (*setAxisVertical)(BaseEventPeer* peer, + Ark_Int32 (*getAxisVertical)(Ark_BaseEvent peer); + void (*setAxisVertical)(Ark_BaseEvent peer, const Ark_Number* axisVertical); - Ark_Int32 (*getPressure)(BaseEventPeer* peer); - void (*setPressure)(BaseEventPeer* peer, + Ark_Int32 (*getPressure)(Ark_BaseEvent peer); + void (*setPressure)(Ark_BaseEvent peer, const Ark_Number* pressure); - Ark_Int32 (*getTiltX)(BaseEventPeer* peer); - void (*setTiltX)(BaseEventPeer* peer, + Ark_Int32 (*getTiltX)(Ark_BaseEvent peer); + void (*setTiltX)(Ark_BaseEvent peer, const Ark_Number* tiltX); - Ark_Int32 (*getTiltY)(BaseEventPeer* peer); - void (*setTiltY)(BaseEventPeer* peer, + Ark_Int32 (*getTiltY)(Ark_BaseEvent peer); + void (*setTiltY)(Ark_BaseEvent peer, const Ark_Number* tiltY); - Ark_NativePointer (*getSourceTool)(BaseEventPeer* peer); - void (*setSourceTool)(BaseEventPeer* peer, + Ark_SourceTool (*getSourceTool)(Ark_BaseEvent peer); + void (*setSourceTool)(Ark_BaseEvent peer, Ark_SourceTool sourceTool); - Ark_Int32 (*getDeviceId)(BaseEventPeer* peer); - void (*setDeviceId)(BaseEventPeer* peer, + Ark_Int32 (*getDeviceId)(Ark_BaseEvent peer); + void (*setDeviceId)(Ark_BaseEvent peer, const Ark_Number* deviceId); } GENERATED_ArkUIBaseEventAccessor; typedef struct GENERATED_ArkUIClickEventAccessor { - void (*destroyPeer)(ClickEventPeer* peer); + void (*destroyPeer)(Ark_ClickEvent peer); Ark_ClickEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getDisplayX)(ClickEventPeer* peer); - void (*setDisplayX)(ClickEventPeer* peer, + Ark_Int32 (*getDisplayX)(Ark_ClickEvent peer); + void (*setDisplayX)(Ark_ClickEvent peer, const Ark_Number* displayX); - Ark_Int32 (*getDisplayY)(ClickEventPeer* peer); - void (*setDisplayY)(ClickEventPeer* peer, + Ark_Int32 (*getDisplayY)(Ark_ClickEvent peer); + void (*setDisplayY)(Ark_ClickEvent peer, const Ark_Number* displayY); - Ark_Int32 (*getWindowX)(ClickEventPeer* peer); - void (*setWindowX)(ClickEventPeer* peer, + Ark_Int32 (*getWindowX)(Ark_ClickEvent peer); + void (*setWindowX)(Ark_ClickEvent peer, const Ark_Number* windowX); - Ark_Int32 (*getWindowY)(ClickEventPeer* peer); - void (*setWindowY)(ClickEventPeer* peer, + Ark_Int32 (*getWindowY)(Ark_ClickEvent peer); + void (*setWindowY)(Ark_ClickEvent peer, const Ark_Number* windowY); - Ark_Int32 (*getScreenX)(ClickEventPeer* peer); - void (*setScreenX)(ClickEventPeer* peer, + Ark_Int32 (*getScreenX)(Ark_ClickEvent peer); + void (*setScreenX)(Ark_ClickEvent peer, const Ark_Number* screenX); - Ark_Int32 (*getScreenY)(ClickEventPeer* peer); - void (*setScreenY)(ClickEventPeer* peer, + Ark_Int32 (*getScreenY)(Ark_ClickEvent peer); + void (*setScreenY)(Ark_ClickEvent peer, const Ark_Number* screenY); - Ark_Int32 (*getX)(ClickEventPeer* peer); - void (*setX)(ClickEventPeer* peer, + Ark_Int32 (*getX)(Ark_ClickEvent peer); + void (*setX)(Ark_ClickEvent peer, const Ark_Number* x); - Ark_Int32 (*getY)(ClickEventPeer* peer); - void (*setY)(ClickEventPeer* peer, + Ark_Int32 (*getY)(Ark_ClickEvent peer); + void (*setY)(Ark_ClickEvent peer, const Ark_Number* y); - Callback_Void (*getPreventDefault)(ClickEventPeer* peer); - void (*setPreventDefault)(ClickEventPeer* peer, + Callback_Void (*getPreventDefault)(Ark_ClickEvent peer); + void (*setPreventDefault)(Ark_ClickEvent peer, const Callback_Void* preventDefault); } GENERATED_ArkUIClickEventAccessor; typedef struct GENERATED_ArkUIHoverEventAccessor { - void (*destroyPeer)(HoverEventPeer* peer); + void (*destroyPeer)(Ark_HoverEvent peer); Ark_HoverEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Callback_Void (*getStopPropagation)(HoverEventPeer* peer); - void (*setStopPropagation)(HoverEventPeer* peer, + Callback_Void (*getStopPropagation)(Ark_HoverEvent peer); + void (*setStopPropagation)(Ark_HoverEvent peer, const Callback_Void* stopPropagation); } GENERATED_ArkUIHoverEventAccessor; typedef struct GENERATED_ArkUIMouseEventAccessor { - void (*destroyPeer)(MouseEventPeer* peer); + void (*destroyPeer)(Ark_MouseEvent peer); Ark_MouseEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getButton)(MouseEventPeer* peer); - void (*setButton)(MouseEventPeer* peer, + Ark_MouseButton (*getButton)(Ark_MouseEvent peer); + void (*setButton)(Ark_MouseEvent peer, Ark_MouseButton button); - Ark_NativePointer (*getAction)(MouseEventPeer* peer); - void (*setAction)(MouseEventPeer* peer, + Ark_MouseAction (*getAction)(Ark_MouseEvent peer); + void (*setAction)(Ark_MouseEvent peer, Ark_MouseAction action); - Ark_Int32 (*getDisplayX)(MouseEventPeer* peer); - void (*setDisplayX)(MouseEventPeer* peer, + Ark_Int32 (*getDisplayX)(Ark_MouseEvent peer); + void (*setDisplayX)(Ark_MouseEvent peer, const Ark_Number* displayX); - Ark_Int32 (*getDisplayY)(MouseEventPeer* peer); - void (*setDisplayY)(MouseEventPeer* peer, + Ark_Int32 (*getDisplayY)(Ark_MouseEvent peer); + void (*setDisplayY)(Ark_MouseEvent peer, const Ark_Number* displayY); - Ark_Int32 (*getWindowX)(MouseEventPeer* peer); - void (*setWindowX)(MouseEventPeer* peer, + Ark_Int32 (*getWindowX)(Ark_MouseEvent peer); + void (*setWindowX)(Ark_MouseEvent peer, const Ark_Number* windowX); - Ark_Int32 (*getWindowY)(MouseEventPeer* peer); - void (*setWindowY)(MouseEventPeer* peer, + Ark_Int32 (*getWindowY)(Ark_MouseEvent peer); + void (*setWindowY)(Ark_MouseEvent peer, const Ark_Number* windowY); - Ark_Int32 (*getScreenX)(MouseEventPeer* peer); - void (*setScreenX)(MouseEventPeer* peer, + Ark_Int32 (*getScreenX)(Ark_MouseEvent peer); + void (*setScreenX)(Ark_MouseEvent peer, const Ark_Number* screenX); - Ark_Int32 (*getScreenY)(MouseEventPeer* peer); - void (*setScreenY)(MouseEventPeer* peer, + Ark_Int32 (*getScreenY)(Ark_MouseEvent peer); + void (*setScreenY)(Ark_MouseEvent peer, const Ark_Number* screenY); - Ark_Int32 (*getX)(MouseEventPeer* peer); - void (*setX)(MouseEventPeer* peer, + Ark_Int32 (*getX)(Ark_MouseEvent peer); + void (*setX)(Ark_MouseEvent peer, const Ark_Number* x); - Ark_Int32 (*getY)(MouseEventPeer* peer); - void (*setY)(MouseEventPeer* peer, + Ark_Int32 (*getY)(Ark_MouseEvent peer); + void (*setY)(Ark_MouseEvent peer, const Ark_Number* y); - Callback_Void (*getStopPropagation)(MouseEventPeer* peer); - void (*setStopPropagation)(MouseEventPeer* peer, + Callback_Void (*getStopPropagation)(Ark_MouseEvent peer); + void (*setStopPropagation)(Ark_MouseEvent peer, const Callback_Void* stopPropagation); } GENERATED_ArkUIMouseEventAccessor; typedef struct GENERATED_ArkUIAccessibilityHoverEventAccessor { - void (*destroyPeer)(AccessibilityHoverEventPeer* peer); + void (*destroyPeer)(Ark_AccessibilityHoverEvent peer); Ark_AccessibilityHoverEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getType)(AccessibilityHoverEventPeer* peer); - void (*setType)(AccessibilityHoverEventPeer* peer, + Ark_AccessibilityHoverType (*getType)(Ark_AccessibilityHoverEvent peer); + void (*setType)(Ark_AccessibilityHoverEvent peer, Ark_AccessibilityHoverType type); - Ark_Int32 (*getX)(AccessibilityHoverEventPeer* peer); - void (*setX)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getX)(Ark_AccessibilityHoverEvent peer); + void (*setX)(Ark_AccessibilityHoverEvent peer, const Ark_Number* x); - Ark_Int32 (*getY)(AccessibilityHoverEventPeer* peer); - void (*setY)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getY)(Ark_AccessibilityHoverEvent peer); + void (*setY)(Ark_AccessibilityHoverEvent peer, const Ark_Number* y); - Ark_Int32 (*getDisplayX)(AccessibilityHoverEventPeer* peer); - void (*setDisplayX)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getDisplayX)(Ark_AccessibilityHoverEvent peer); + void (*setDisplayX)(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayX); - Ark_Int32 (*getDisplayY)(AccessibilityHoverEventPeer* peer); - void (*setDisplayY)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getDisplayY)(Ark_AccessibilityHoverEvent peer); + void (*setDisplayY)(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayY); - Ark_Int32 (*getWindowX)(AccessibilityHoverEventPeer* peer); - void (*setWindowX)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getWindowX)(Ark_AccessibilityHoverEvent peer); + void (*setWindowX)(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowX); - Ark_Int32 (*getWindowY)(AccessibilityHoverEventPeer* peer); - void (*setWindowY)(AccessibilityHoverEventPeer* peer, + Ark_Int32 (*getWindowY)(Ark_AccessibilityHoverEvent peer); + void (*setWindowY)(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowY); } GENERATED_ArkUIAccessibilityHoverEventAccessor; typedef struct GENERATED_ArkUITouchEventAccessor { - void (*destroyPeer)(TouchEventPeer* peer); + void (*destroyPeer)(Ark_TouchEvent peer); Ark_TouchEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getHistoricalPoints)(TouchEventPeer* peer); - Ark_NativePointer (*getType)(TouchEventPeer* peer); - void (*setType)(TouchEventPeer* peer, + Array_HistoricalPoint (*getHistoricalPoints)(Ark_TouchEvent peer); + Ark_TouchType (*getType)(Ark_TouchEvent peer); + void (*setType)(Ark_TouchEvent peer, Ark_TouchType type); - void (*setTouches)(TouchEventPeer* peer, + Array_TouchObject (*getTouches)(Ark_TouchEvent peer); + void (*setTouches)(Ark_TouchEvent peer, const Array_TouchObject* touches); - void (*setChangedTouches)(TouchEventPeer* peer, + Array_TouchObject (*getChangedTouches)(Ark_TouchEvent peer); + void (*setChangedTouches)(Ark_TouchEvent peer, const Array_TouchObject* changedTouches); - Callback_Void (*getStopPropagation)(TouchEventPeer* peer); - void (*setStopPropagation)(TouchEventPeer* peer, + Callback_Void (*getStopPropagation)(Ark_TouchEvent peer); + void (*setStopPropagation)(Ark_TouchEvent peer, const Callback_Void* stopPropagation); - Callback_Void (*getPreventDefault)(TouchEventPeer* peer); - void (*setPreventDefault)(TouchEventPeer* peer, + Callback_Void (*getPreventDefault)(Ark_TouchEvent peer); + void (*setPreventDefault)(Ark_TouchEvent peer, const Callback_Void* preventDefault); } GENERATED_ArkUITouchEventAccessor; typedef struct GENERATED_ArkUIPixelMapMockAccessor { - void (*destroyPeer)(PixelMapMockPeer* peer); + void (*destroyPeer)(Ark_PixelMapMock peer); Ark_PixelMapMock (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*release)(PixelMapMockPeer* peer); + void (*release)(Ark_PixelMapMock peer); } GENERATED_ArkUIPixelMapMockAccessor; typedef struct GENERATED_ArkUIDragEventAccessor { - void (*destroyPeer)(DragEventPeer* peer); + void (*destroyPeer)(Ark_DragEvent peer); Ark_DragEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getDisplayX)(DragEventPeer* peer); - Ark_Int32 (*getDisplayY)(DragEventPeer* peer); - Ark_Int32 (*getWindowX)(DragEventPeer* peer); - Ark_Int32 (*getWindowY)(DragEventPeer* peer); - Ark_Int32 (*getX)(DragEventPeer* peer); - Ark_Int32 (*getY)(DragEventPeer* peer); - void (*setData)(DragEventPeer* peer, + Ark_Int32 (*getDisplayX)(Ark_DragEvent peer); + Ark_Int32 (*getDisplayY)(Ark_DragEvent peer); + Ark_Int32 (*getWindowX)(Ark_DragEvent peer); + Ark_Int32 (*getWindowY)(Ark_DragEvent peer); + Ark_Int32 (*getX)(Ark_DragEvent peer); + Ark_Int32 (*getY)(Ark_DragEvent peer); + void (*setData)(Ark_DragEvent peer, Ark_UnifiedData unifiedData); - Ark_UnifiedData (*getData)(DragEventPeer* peer); - Ark_NativePointer (*getSummary)(DragEventPeer* peer); - void (*setResult)(DragEventPeer* peer, + Ark_UnifiedData (*getData)(Ark_DragEvent peer); + Ark_Summary (*getSummary)(Ark_DragEvent peer); + void (*setResult)(Ark_DragEvent peer, Ark_DragResult dragResult); - Ark_NativePointer (*getResult)(DragEventPeer* peer); - Ark_NativePointer (*getPreviewRect)(DragEventPeer* peer); - Ark_Int32 (*getVelocityX)(DragEventPeer* peer); - Ark_Int32 (*getVelocityY)(DragEventPeer* peer); - Ark_Int32 (*getVelocity)(DragEventPeer* peer); - Ark_Boolean (*getModifierKeyState)(DragEventPeer* peer, + Ark_DragResult (*getResult)(Ark_DragEvent peer); + Ark_Rectangle (*getPreviewRect)(Ark_DragEvent peer); + Ark_Int32 (*getVelocityX)(Ark_DragEvent peer); + Ark_Int32 (*getVelocityY)(Ark_DragEvent peer); + Ark_Int32 (*getVelocity)(Ark_DragEvent peer); + Ark_Boolean (*getModifierKeyState)(Ark_DragEvent peer, const Array_String* keys); - Ark_NativePointer (*getDragBehavior)(DragEventPeer* peer); - void (*setDragBehavior)(DragEventPeer* peer, + Ark_DragBehavior (*getDragBehavior)(Ark_DragEvent peer); + void (*setDragBehavior)(Ark_DragEvent peer, Ark_DragBehavior dragBehavior); - Ark_Boolean (*getUseCustomDropAnimation)(DragEventPeer* peer); - void (*setUseCustomDropAnimation)(DragEventPeer* peer, + Ark_Boolean (*getUseCustomDropAnimation)(Ark_DragEvent peer); + void (*setUseCustomDropAnimation)(Ark_DragEvent peer, Ark_Boolean useCustomDropAnimation); } GENERATED_ArkUIDragEventAccessor; typedef struct GENERATED_ArkUIKeyEventAccessor { - void (*destroyPeer)(KeyEventPeer* peer); + void (*destroyPeer)(Ark_KeyEvent peer); Ark_KeyEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getModifierKeyState)(KeyEventPeer* peer, + Ark_Boolean (*getModifierKeyState)(Ark_KeyEvent peer, const Array_String* keys); - Ark_NativePointer (*getType)(KeyEventPeer* peer); - void (*setType)(KeyEventPeer* peer, + Ark_KeyType (*getType)(Ark_KeyEvent peer); + void (*setType)(Ark_KeyEvent peer, Ark_KeyType type); - Ark_Int32 (*getKeyCode)(KeyEventPeer* peer); - void (*setKeyCode)(KeyEventPeer* peer, + Ark_Int32 (*getKeyCode)(Ark_KeyEvent peer); + void (*setKeyCode)(Ark_KeyEvent peer, const Ark_Number* keyCode); - void (*getKeyText)(KeyEventPeer* peer); - void (*setKeyText)(KeyEventPeer* peer, + Ark_String (*getKeyText)(Ark_KeyEvent peer); + void (*setKeyText)(Ark_KeyEvent peer, const Ark_String* keyText); - Ark_NativePointer (*getKeySource)(KeyEventPeer* peer); - void (*setKeySource)(KeyEventPeer* peer, + Ark_KeySource (*getKeySource)(Ark_KeyEvent peer); + void (*setKeySource)(Ark_KeyEvent peer, Ark_KeySource keySource); - Ark_Int32 (*getDeviceId)(KeyEventPeer* peer); - void (*setDeviceId)(KeyEventPeer* peer, + Ark_Int32 (*getDeviceId)(Ark_KeyEvent peer); + void (*setDeviceId)(Ark_KeyEvent peer, const Ark_Number* deviceId); - Ark_Int32 (*getMetaKey)(KeyEventPeer* peer); - void (*setMetaKey)(KeyEventPeer* peer, + Ark_Int32 (*getMetaKey)(Ark_KeyEvent peer); + void (*setMetaKey)(Ark_KeyEvent peer, const Ark_Number* metaKey); - Ark_Int32 (*getTimestamp)(KeyEventPeer* peer); - void (*setTimestamp)(KeyEventPeer* peer, + Ark_Int32 (*getTimestamp)(Ark_KeyEvent peer); + void (*setTimestamp)(Ark_KeyEvent peer, const Ark_Number* timestamp); - Callback_Void (*getStopPropagation)(KeyEventPeer* peer); - void (*setStopPropagation)(KeyEventPeer* peer, + Callback_Void (*getStopPropagation)(Ark_KeyEvent peer); + void (*setStopPropagation)(Ark_KeyEvent peer, const Callback_Void* stopPropagation); - void (*setIntentionCode)(KeyEventPeer* peer, + void (*setIntentionCode)(Ark_KeyEvent peer, const Ark_IntentionCode* intentionCode); - Ark_Int32 (*getUnicode)(KeyEventPeer* peer); - void (*setUnicode)(KeyEventPeer* peer, + Ark_Int32 (*getUnicode)(Ark_KeyEvent peer); + void (*setUnicode)(Ark_KeyEvent peer, const Ark_Number* unicode); } GENERATED_ArkUIKeyEventAccessor; typedef struct GENERATED_ArkUIProgressMaskAccessor { - void (*destroyPeer)(ProgressMaskPeer* peer); + void (*destroyPeer)(Ark_ProgressMask peer); Ark_ProgressMask (*ctor)(const Ark_Number* value, const Ark_Number* total, const Ark_ResourceColor* color); Ark_NativePointer (*getFinalizer)(); - void (*updateProgress)(ProgressMaskPeer* peer, + void (*updateProgress)(Ark_ProgressMask peer, const Ark_Number* value); - void (*updateColor)(ProgressMaskPeer* peer, + void (*updateColor)(Ark_ProgressMask peer, const Ark_ResourceColor* value); - void (*enableBreathingAnimation)(ProgressMaskPeer* peer, + void (*enableBreathingAnimation)(Ark_ProgressMask peer, Ark_Boolean value); } GENERATED_ArkUIProgressMaskAccessor; typedef struct GENERATED_ArkUIMeasurableAccessor { - void (*destroyPeer)(MeasurablePeer* peer); + void (*destroyPeer)(Ark_Measurable peer); Ark_Measurable (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*measure)(MeasurablePeer* peer, + Ark_MeasureResult (*measure)(Ark_Measurable peer, const Ark_ConstraintSizeOptions* constraint); - Ark_NativePointer (*getMargin)(MeasurablePeer* peer); - Ark_NativePointer (*getPadding)(MeasurablePeer* peer); - Ark_NativePointer (*getBorderWidth)(MeasurablePeer* peer); + Ark_DirectionalEdgesT (*getMargin)(Ark_Measurable peer); + Ark_DirectionalEdgesT (*getPadding)(Ark_Measurable peer); + Ark_DirectionalEdgesT (*getBorderWidth)(Ark_Measurable peer); } GENERATED_ArkUIMeasurableAccessor; typedef struct GENERATED_ArkUIViewAccessor { - void (*destroyPeer)(ViewPeer* peer); + void (*destroyPeer)(Ark_View peer); Ark_View (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*create)(ViewPeer* peer, - const Ark_CustomObject* value); + Ark_CustomObject (*create)(Ark_View peer, + const Ark_CustomObject* value); } GENERATED_ArkUIViewAccessor; typedef struct GENERATED_ArkUITextContentControllerBaseAccessor { - void (*destroyPeer)(TextContentControllerBasePeer* peer); + void (*destroyPeer)(Ark_TextContentControllerBase peer); Ark_TextContentControllerBase (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getCaretOffset)(TextContentControllerBasePeer* peer); - Ark_NativePointer (*getTextContentRect)(TextContentControllerBasePeer* peer); - Ark_Int32 (*getTextContentLineCount)(TextContentControllerBasePeer* peer); + Ark_CaretOffset (*getCaretOffset)(Ark_TextContentControllerBase peer); + Ark_RectResult (*getTextContentRect)(Ark_TextContentControllerBase peer); + Ark_Int32 (*getTextContentLineCount)(Ark_TextContentControllerBase peer); } GENERATED_ArkUITextContentControllerBaseAccessor; typedef struct GENERATED_ArkUIDynamicNodeAccessor { - void (*destroyPeer)(DynamicNodePeer* peer); + void (*destroyPeer)(Ark_DynamicNode peer); Ark_DynamicNode (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*onMove)(DynamicNodePeer* peer, - const Opt_OnMoveHandler* handler); + Ark_CustomObject (*onMove)(Ark_DynamicNode peer, + const Opt_OnMoveHandler* handler); } GENERATED_ArkUIDynamicNodeAccessor; typedef struct GENERATED_ArkUIChildrenMainSizeAccessor { - void (*destroyPeer)(ChildrenMainSizePeer* peer); + void (*destroyPeer)(Ark_ChildrenMainSize peer); Ark_ChildrenMainSize (*ctor)(const Ark_Number* childDefaultSize); Ark_NativePointer (*getFinalizer)(); - void (*splice)(ChildrenMainSizePeer* peer, + void (*splice)(Ark_ChildrenMainSize peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_Number* childrenSize); - void (*update)(ChildrenMainSizePeer* peer, + void (*update)(Ark_ChildrenMainSize peer, const Ark_Number* index, const Ark_Number* childSize); - Ark_Int32 (*getChildDefaultSize)(ChildrenMainSizePeer* peer); - void (*setChildDefaultSize)(ChildrenMainSizePeer* peer, + Ark_Int32 (*getChildDefaultSize)(Ark_ChildrenMainSize peer); + void (*setChildDefaultSize)(Ark_ChildrenMainSize peer, const Ark_Number* childDefaultSize); } GENERATED_ArkUIChildrenMainSizeAccessor; typedef struct GENERATED_ArkUIUICommonEventAccessor { - void (*destroyPeer)(UICommonEventPeer* peer); + void (*destroyPeer)(Ark_UICommonEvent peer); Ark_UICommonEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setOnClick)(UICommonEventPeer* peer, + void (*setOnClick)(Ark_UICommonEvent peer, const Opt_Callback_ClickEvent_Void* callback_); - void (*setOnTouch)(UICommonEventPeer* peer, + void (*setOnTouch)(Ark_UICommonEvent peer, const Opt_Callback_TouchEvent_Void* callback_); - void (*setOnAppear)(UICommonEventPeer* peer, + void (*setOnAppear)(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_); - void (*setOnDisappear)(UICommonEventPeer* peer, + void (*setOnDisappear)(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_); - void (*setOnKeyEvent)(UICommonEventPeer* peer, + void (*setOnKeyEvent)(Ark_UICommonEvent peer, const Opt_Callback_KeyEvent_Void* callback_); - void (*setOnFocus)(UICommonEventPeer* peer, + void (*setOnFocus)(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_); - void (*setOnBlur)(UICommonEventPeer* peer, + void (*setOnBlur)(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_); - void (*setOnHover)(UICommonEventPeer* peer, + void (*setOnHover)(Ark_UICommonEvent peer, const Opt_HoverCallback* callback_); - void (*setOnMouse)(UICommonEventPeer* peer, + void (*setOnMouse)(Ark_UICommonEvent peer, const Opt_Callback_MouseEvent_Void* callback_); - void (*setOnSizeChange)(UICommonEventPeer* peer, + void (*setOnSizeChange)(Ark_UICommonEvent peer, const Opt_SizeChangeCallback* callback_); - void (*setOnVisibleAreaApproximateChange)(UICommonEventPeer* peer, + void (*setOnVisibleAreaApproximateChange)(Ark_UICommonEvent peer, const Ark_VisibleAreaEventOptions* options, const Opt_VisibleAreaChangeCallback* event); } GENERATED_ArkUIUICommonEventAccessor; typedef struct GENERATED_ArkUIGestureModifierAccessor { - void (*destroyPeer)(GestureModifierPeer* peer); + void (*destroyPeer)(Ark_GestureModifier peer); Ark_GestureModifier (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*applyGesture)(GestureModifierPeer* peer, + void (*applyGesture)(Ark_GestureModifier peer, const Ark_UIGestureEvent* event); } GENERATED_ArkUIGestureModifierAccessor; -typedef struct GENERATED_ArkUIGlobalScope_commonAccessor { - void (*destroyPeer)(GlobalScope_commonPeer* peer); - Ark_NativePointer (*getContext)(const Opt_CustomObject* component); - void (*postCardAction)(const Ark_CustomObject* component, - const Ark_CustomObject* action); - Ark_NativePointer (*dollar_r)(const Ark_String* value, - const Array_CustomObject* params); - Ark_NativePointer (*dollar_rawfile)(const Ark_String* value); - void (*animateTo)(const Ark_AnimateParam* value, - const Callback_Void* event); - void (*animateToImmediately)(const Ark_AnimateParam* value, - const Callback_Void* event); - Ark_Int32 (*vp2px)(const Ark_Number* value); - Ark_Int32 (*px2vp)(const Ark_Number* value); - Ark_Int32 (*fp2px)(const Ark_Number* value); - Ark_Int32 (*px2fp)(const Ark_Number* value); - Ark_Int32 (*lpx2px)(const Ark_Number* value); - Ark_Int32 (*px2lpx)(const Ark_Number* value); - Ark_Boolean (*requestFocus)(const Ark_String* value); - void (*setCursor)(Ark_PointerStyle value); - void (*restoreDefault)(); -} GENERATED_ArkUIGlobalScope_commonAccessor; - typedef struct GENERATED_ArkUIContextMenuAccessor { - void (*destroyPeer)(ContextMenuPeer* peer); + void (*destroyPeer)(Ark_ContextMenu peer); Ark_ContextMenu (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*close)(); } GENERATED_ArkUIContextMenuAccessor; typedef struct GENERATED_ArkUICustomDialogControllerAccessor { - void (*destroyPeer)(CustomDialogControllerPeer* peer); + void (*destroyPeer)(Ark_CustomDialogController peer); Ark_CustomDialogController (*ctor)(const Ark_CustomDialogControllerOptions* value); Ark_NativePointer (*getFinalizer)(); - void (*open)(CustomDialogControllerPeer* peer); - void (*close)(CustomDialogControllerPeer* peer); + void (*open)(Ark_CustomDialogController peer); + void (*close)(Ark_CustomDialogController peer); } GENERATED_ArkUICustomDialogControllerAccessor; typedef struct GENERATED_ArkUILinearGradientAccessor { - void (*destroyPeer)(LinearGradientPeer* peer); + void (*destroyPeer)(Ark_LinearGradient peer); Ark_LinearGradient (*ctor)(const Array_ColorStop* colorStops); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUILinearGradientAccessor; typedef struct GENERATED_ArkUIDatePickerDialogAccessor { - void (*destroyPeer)(DatePickerDialogPeer* peer); + void (*destroyPeer)(Ark_DatePickerDialog peer); Ark_DatePickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_DatePickerDialogOptions* options); } GENERATED_ArkUIDatePickerDialogAccessor; typedef struct GENERATED_ArkUIBaseGestureEventAccessor { - void (*destroyPeer)(BaseGestureEventPeer* peer); + void (*destroyPeer)(Ark_BaseGestureEvent peer); Ark_BaseGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setFingerList)(BaseGestureEventPeer* peer, + Array_FingerInfo (*getFingerList)(Ark_BaseGestureEvent peer); + void (*setFingerList)(Ark_BaseGestureEvent peer, const Array_FingerInfo* fingerList); } GENERATED_ArkUIBaseGestureEventAccessor; typedef struct GENERATED_ArkUITapGestureEventAccessor { - void (*destroyPeer)(TapGestureEventPeer* peer); + void (*destroyPeer)(Ark_TapGestureEvent peer); Ark_TapGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUITapGestureEventAccessor; typedef struct GENERATED_ArkUILongPressGestureEventAccessor { - void (*destroyPeer)(LongPressGestureEventPeer* peer); + void (*destroyPeer)(Ark_LongPressGestureEvent peer); Ark_LongPressGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getRepeat)(LongPressGestureEventPeer* peer); - void (*setRepeat)(LongPressGestureEventPeer* peer, + Ark_Boolean (*getRepeat)(Ark_LongPressGestureEvent peer); + void (*setRepeat)(Ark_LongPressGestureEvent peer, Ark_Boolean repeat); } GENERATED_ArkUILongPressGestureEventAccessor; typedef struct GENERATED_ArkUIPanGestureEventAccessor { - void (*destroyPeer)(PanGestureEventPeer* peer); + void (*destroyPeer)(Ark_PanGestureEvent peer); Ark_PanGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getOffsetX)(PanGestureEventPeer* peer); - void (*setOffsetX)(PanGestureEventPeer* peer, + Ark_Int32 (*getOffsetX)(Ark_PanGestureEvent peer); + void (*setOffsetX)(Ark_PanGestureEvent peer, const Ark_Number* offsetX); - Ark_Int32 (*getOffsetY)(PanGestureEventPeer* peer); - void (*setOffsetY)(PanGestureEventPeer* peer, + Ark_Int32 (*getOffsetY)(Ark_PanGestureEvent peer); + void (*setOffsetY)(Ark_PanGestureEvent peer, const Ark_Number* offsetY); - Ark_Int32 (*getVelocityX)(PanGestureEventPeer* peer); - void (*setVelocityX)(PanGestureEventPeer* peer, + Ark_Int32 (*getVelocityX)(Ark_PanGestureEvent peer); + void (*setVelocityX)(Ark_PanGestureEvent peer, const Ark_Number* velocityX); - Ark_Int32 (*getVelocityY)(PanGestureEventPeer* peer); - void (*setVelocityY)(PanGestureEventPeer* peer, + Ark_Int32 (*getVelocityY)(Ark_PanGestureEvent peer); + void (*setVelocityY)(Ark_PanGestureEvent peer, const Ark_Number* velocityY); - Ark_Int32 (*getVelocity)(PanGestureEventPeer* peer); - void (*setVelocity)(PanGestureEventPeer* peer, + Ark_Int32 (*getVelocity)(Ark_PanGestureEvent peer); + void (*setVelocity)(Ark_PanGestureEvent peer, const Ark_Number* velocity); } GENERATED_ArkUIPanGestureEventAccessor; typedef struct GENERATED_ArkUIPinchGestureEventAccessor { - void (*destroyPeer)(PinchGestureEventPeer* peer); + void (*destroyPeer)(Ark_PinchGestureEvent peer); Ark_PinchGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getScale)(PinchGestureEventPeer* peer); - void (*setScale)(PinchGestureEventPeer* peer, + Ark_Int32 (*getScale)(Ark_PinchGestureEvent peer); + void (*setScale)(Ark_PinchGestureEvent peer, const Ark_Number* scale); - Ark_Int32 (*getPinchCenterX)(PinchGestureEventPeer* peer); - void (*setPinchCenterX)(PinchGestureEventPeer* peer, + Ark_Int32 (*getPinchCenterX)(Ark_PinchGestureEvent peer); + void (*setPinchCenterX)(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterX); - Ark_Int32 (*getPinchCenterY)(PinchGestureEventPeer* peer); - void (*setPinchCenterY)(PinchGestureEventPeer* peer, + Ark_Int32 (*getPinchCenterY)(Ark_PinchGestureEvent peer); + void (*setPinchCenterY)(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterY); } GENERATED_ArkUIPinchGestureEventAccessor; typedef struct GENERATED_ArkUIRotationGestureEventAccessor { - void (*destroyPeer)(RotationGestureEventPeer* peer); + void (*destroyPeer)(Ark_RotationGestureEvent peer); Ark_RotationGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getAngle)(RotationGestureEventPeer* peer); - void (*setAngle)(RotationGestureEventPeer* peer, + Ark_Int32 (*getAngle)(Ark_RotationGestureEvent peer); + void (*setAngle)(Ark_RotationGestureEvent peer, const Ark_Number* angle); } GENERATED_ArkUIRotationGestureEventAccessor; typedef struct GENERATED_ArkUISwipeGestureEventAccessor { - void (*destroyPeer)(SwipeGestureEventPeer* peer); + void (*destroyPeer)(Ark_SwipeGestureEvent peer); Ark_SwipeGestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getAngle)(SwipeGestureEventPeer* peer); - void (*setAngle)(SwipeGestureEventPeer* peer, + Ark_Int32 (*getAngle)(Ark_SwipeGestureEvent peer); + void (*setAngle)(Ark_SwipeGestureEvent peer, const Ark_Number* angle); - Ark_Int32 (*getSpeed)(SwipeGestureEventPeer* peer); - void (*setSpeed)(SwipeGestureEventPeer* peer, + Ark_Int32 (*getSpeed)(Ark_SwipeGestureEvent peer); + void (*setSpeed)(Ark_SwipeGestureEvent peer, const Ark_Number* speed); } GENERATED_ArkUISwipeGestureEventAccessor; typedef struct GENERATED_ArkUIGestureEventAccessor { - void (*destroyPeer)(GestureEventPeer* peer); + void (*destroyPeer)(Ark_GestureEvent peer); Ark_GestureEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*getRepeat)(GestureEventPeer* peer); - void (*setRepeat)(GestureEventPeer* peer, + Ark_Boolean (*getRepeat)(Ark_GestureEvent peer); + void (*setRepeat)(Ark_GestureEvent peer, Ark_Boolean repeat); - void (*setFingerList)(GestureEventPeer* peer, + Array_FingerInfo (*getFingerList)(Ark_GestureEvent peer); + void (*setFingerList)(Ark_GestureEvent peer, const Array_FingerInfo* fingerList); - Ark_Int32 (*getOffsetX)(GestureEventPeer* peer); - void (*setOffsetX)(GestureEventPeer* peer, + Ark_Int32 (*getOffsetX)(Ark_GestureEvent peer); + void (*setOffsetX)(Ark_GestureEvent peer, const Ark_Number* offsetX); - Ark_Int32 (*getOffsetY)(GestureEventPeer* peer); - void (*setOffsetY)(GestureEventPeer* peer, + Ark_Int32 (*getOffsetY)(Ark_GestureEvent peer); + void (*setOffsetY)(Ark_GestureEvent peer, const Ark_Number* offsetY); - Ark_Int32 (*getAngle)(GestureEventPeer* peer); - void (*setAngle)(GestureEventPeer* peer, + Ark_Int32 (*getAngle)(Ark_GestureEvent peer); + void (*setAngle)(Ark_GestureEvent peer, const Ark_Number* angle); - Ark_Int32 (*getSpeed)(GestureEventPeer* peer); - void (*setSpeed)(GestureEventPeer* peer, + Ark_Int32 (*getSpeed)(Ark_GestureEvent peer); + void (*setSpeed)(Ark_GestureEvent peer, const Ark_Number* speed); - Ark_Int32 (*getScale)(GestureEventPeer* peer); - void (*setScale)(GestureEventPeer* peer, + Ark_Int32 (*getScale)(Ark_GestureEvent peer); + void (*setScale)(Ark_GestureEvent peer, const Ark_Number* scale); - Ark_Int32 (*getPinchCenterX)(GestureEventPeer* peer); - void (*setPinchCenterX)(GestureEventPeer* peer, + Ark_Int32 (*getPinchCenterX)(Ark_GestureEvent peer); + void (*setPinchCenterX)(Ark_GestureEvent peer, const Ark_Number* pinchCenterX); - Ark_Int32 (*getPinchCenterY)(GestureEventPeer* peer); - void (*setPinchCenterY)(GestureEventPeer* peer, + Ark_Int32 (*getPinchCenterY)(Ark_GestureEvent peer); + void (*setPinchCenterY)(Ark_GestureEvent peer, const Ark_Number* pinchCenterY); - Ark_Int32 (*getVelocityX)(GestureEventPeer* peer); - void (*setVelocityX)(GestureEventPeer* peer, + Ark_Int32 (*getVelocityX)(Ark_GestureEvent peer); + void (*setVelocityX)(Ark_GestureEvent peer, const Ark_Number* velocityX); - Ark_Int32 (*getVelocityY)(GestureEventPeer* peer); - void (*setVelocityY)(GestureEventPeer* peer, + Ark_Int32 (*getVelocityY)(Ark_GestureEvent peer); + void (*setVelocityY)(Ark_GestureEvent peer, const Ark_Number* velocityY); - Ark_Int32 (*getVelocity)(GestureEventPeer* peer); - void (*setVelocity)(GestureEventPeer* peer, + Ark_Int32 (*getVelocity)(Ark_GestureEvent peer); + void (*setVelocity)(Ark_GestureEvent peer, const Ark_Number* velocity); } GENERATED_ArkUIGestureEventAccessor; typedef struct GENERATED_ArkUIPanGestureOptionsAccessor { - void (*destroyPeer)(PanGestureOptionsPeer* peer); + void (*destroyPeer)(Ark_PanGestureOptions peer); Ark_PanGestureOptions (*ctor)(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value); Ark_NativePointer (*getFinalizer)(); - void (*setDirection)(PanGestureOptionsPeer* peer, + void (*setDirection)(Ark_PanGestureOptions peer, Ark_PanDirection value); - void (*setDistance)(PanGestureOptionsPeer* peer, + void (*setDistance)(Ark_PanGestureOptions peer, const Ark_Number* value); - void (*setFingers)(PanGestureOptionsPeer* peer, + void (*setFingers)(Ark_PanGestureOptions peer, const Ark_Number* value); - Ark_NativePointer (*getDirection)(PanGestureOptionsPeer* peer); + Ark_PanDirection (*getDirection)(Ark_PanGestureOptions peer); } GENERATED_ArkUIPanGestureOptionsAccessor; typedef struct GENERATED_ArkUIScrollableTargetInfoAccessor { - void (*destroyPeer)(ScrollableTargetInfoPeer* peer); + void (*destroyPeer)(Ark_ScrollableTargetInfo peer); Ark_ScrollableTargetInfo (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*isBegin)(ScrollableTargetInfoPeer* peer); - Ark_Boolean (*isEnd)(ScrollableTargetInfoPeer* peer); + Ark_Boolean (*isBegin)(Ark_ScrollableTargetInfo peer); + Ark_Boolean (*isEnd)(Ark_ScrollableTargetInfo peer); } GENERATED_ArkUIScrollableTargetInfoAccessor; typedef struct GENERATED_ArkUIEventTargetInfoAccessor { - void (*destroyPeer)(EventTargetInfoPeer* peer); + void (*destroyPeer)(Ark_EventTargetInfo peer); Ark_EventTargetInfo (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getId)(EventTargetInfoPeer* peer); + Ark_String (*getId)(Ark_EventTargetInfo peer); } GENERATED_ArkUIEventTargetInfoAccessor; typedef struct GENERATED_ArkUIGestureRecognizerAccessor { - void (*destroyPeer)(GestureRecognizerPeer* peer); + void (*destroyPeer)(Ark_GestureRecognizer peer); Ark_GestureRecognizer (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getTag)(GestureRecognizerPeer* peer); - Ark_NativePointer (*getType)(GestureRecognizerPeer* peer); - Ark_Boolean (*isBuiltIn)(GestureRecognizerPeer* peer); - void (*setEnabled)(GestureRecognizerPeer* peer, + Ark_String (*getTag)(Ark_GestureRecognizer peer); + Ark_GestureControl_GestureType (*getType)(Ark_GestureRecognizer peer); + Ark_Boolean (*isBuiltIn)(Ark_GestureRecognizer peer); + void (*setEnabled)(Ark_GestureRecognizer peer, Ark_Boolean isEnabled); - Ark_Boolean (*isEnabled)(GestureRecognizerPeer* peer); - Ark_NativePointer (*getState)(GestureRecognizerPeer* peer); - Ark_EventTargetInfo (*getEventTargetInfo)(GestureRecognizerPeer* peer); - Ark_Boolean (*isValid)(GestureRecognizerPeer* peer); + Ark_Boolean (*isEnabled)(Ark_GestureRecognizer peer); + Ark_GestureRecognizerState (*getState)(Ark_GestureRecognizer peer); + Ark_EventTargetInfo (*getEventTargetInfo)(Ark_GestureRecognizer peer); + Ark_Boolean (*isValid)(Ark_GestureRecognizer peer); } GENERATED_ArkUIGestureRecognizerAccessor; typedef struct GENERATED_ArkUIPanRecognizerAccessor { - void (*destroyPeer)(PanRecognizerPeer* peer); + void (*destroyPeer)(Ark_PanRecognizer peer); Ark_PanRecognizer (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_PanGestureOptions (*getPanGestureOptions)(PanRecognizerPeer* peer); + Ark_PanGestureOptions (*getPanGestureOptions)(Ark_PanRecognizer peer); } GENERATED_ArkUIPanRecognizerAccessor; typedef struct GENERATED_ArkUIImageAnalyzerControllerAccessor { - void (*destroyPeer)(ImageAnalyzerControllerPeer* peer); + void (*destroyPeer)(Ark_ImageAnalyzerController peer); Ark_ImageAnalyzerController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getImageAnalyzerSupportTypes)(ImageAnalyzerControllerPeer* peer); + Array_ImageAnalyzerType (*getImageAnalyzerSupportTypes)(Ark_ImageAnalyzerController peer); } GENERATED_ArkUIImageAnalyzerControllerAccessor; typedef struct GENERATED_ArkUIListScrollerAccessor { - void (*destroyPeer)(ListScrollerPeer* peer); + void (*destroyPeer)(Ark_ListScroller peer); Ark_ListScroller (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getItemRectInGroup)(ListScrollerPeer* peer, - const Ark_Number* index, - const Ark_Number* indexInGroup); - void (*scrollToItemInGroup)(ListScrollerPeer* peer, + Ark_RectResult (*getItemRectInGroup)(Ark_ListScroller peer, + const Ark_Number* index, + const Ark_Number* indexInGroup); + void (*scrollToItemInGroup)(Ark_ListScroller peer, const Ark_Number* index, const Ark_Number* indexInGroup, const Opt_Boolean* smooth, const Opt_ScrollAlign* align); - void (*closeAllSwipeActions)(ListScrollerPeer* peer, + void (*closeAllSwipeActions)(Ark_ListScroller peer, const Opt_CloseSwipeActionOptions* options); - Ark_NativePointer (*getVisibleListContentInfo)(ListScrollerPeer* peer, - const Ark_Number* x, - const Ark_Number* y); + Ark_VisibleListContentInfo (*getVisibleListContentInfo)(Ark_ListScroller peer, + const Ark_Number* x, + const Ark_Number* y); } GENERATED_ArkUIListScrollerAccessor; typedef struct GENERATED_ArkUIMatrix2DAccessor { - void (*destroyPeer)(Matrix2DPeer* peer); + void (*destroyPeer)(Ark_Matrix2D peer); Ark_Matrix2D (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Matrix2D (*identity)(Matrix2DPeer* peer); - Ark_Matrix2D (*invert)(Matrix2DPeer* peer); - Ark_Matrix2D (*multiply)(Matrix2DPeer* peer, + Ark_Matrix2D (*identity)(Ark_Matrix2D peer); + Ark_Matrix2D (*invert)(Ark_Matrix2D peer); + Ark_Matrix2D (*multiply)(Ark_Matrix2D peer, const Opt_Matrix2D* other); - Ark_Matrix2D (*rotate0)(Matrix2DPeer* peer, + Ark_Matrix2D (*rotate0)(Ark_Matrix2D peer, const Opt_Number* rx, const Opt_Number* ry); - Ark_Matrix2D (*rotate1)(Matrix2DPeer* peer, + Ark_Matrix2D (*rotate1)(Ark_Matrix2D peer, const Ark_Number* degree, const Opt_Number* rx, const Opt_Number* ry); - Ark_Matrix2D (*translate)(Matrix2DPeer* peer, + Ark_Matrix2D (*translate)(Ark_Matrix2D peer, const Opt_Number* tx, const Opt_Number* ty); - Ark_Matrix2D (*scale)(Matrix2DPeer* peer, + Ark_Matrix2D (*scale)(Ark_Matrix2D peer, const Opt_Number* sx, const Opt_Number* sy); - Ark_Int32 (*getScaleX)(Matrix2DPeer* peer); - void (*setScaleX)(Matrix2DPeer* peer, + Ark_Int32 (*getScaleX)(Ark_Matrix2D peer); + void (*setScaleX)(Ark_Matrix2D peer, const Ark_Number* scaleX); - Ark_Int32 (*getRotateY)(Matrix2DPeer* peer); - void (*setRotateY)(Matrix2DPeer* peer, + Ark_Int32 (*getRotateY)(Ark_Matrix2D peer); + void (*setRotateY)(Ark_Matrix2D peer, const Ark_Number* rotateY); - Ark_Int32 (*getRotateX)(Matrix2DPeer* peer); - void (*setRotateX)(Matrix2DPeer* peer, + Ark_Int32 (*getRotateX)(Ark_Matrix2D peer); + void (*setRotateX)(Ark_Matrix2D peer, const Ark_Number* rotateX); - Ark_Int32 (*getScaleY)(Matrix2DPeer* peer); - void (*setScaleY)(Matrix2DPeer* peer, + Ark_Int32 (*getScaleY)(Ark_Matrix2D peer); + void (*setScaleY)(Ark_Matrix2D peer, const Ark_Number* scaleY); - Ark_Int32 (*getTranslateX)(Matrix2DPeer* peer); - void (*setTranslateX)(Matrix2DPeer* peer, + Ark_Int32 (*getTranslateX)(Ark_Matrix2D peer); + void (*setTranslateX)(Ark_Matrix2D peer, const Ark_Number* translateX); - Ark_Int32 (*getTranslateY)(Matrix2DPeer* peer); - void (*setTranslateY)(Matrix2DPeer* peer, + Ark_Int32 (*getTranslateY)(Ark_Matrix2D peer); + void (*setTranslateY)(Ark_Matrix2D peer, const Ark_Number* translateY); } GENERATED_ArkUIMatrix2DAccessor; typedef struct GENERATED_ArkUINavDestinationContextAccessor { - void (*destroyPeer)(NavDestinationContextPeer* peer); + void (*destroyPeer)(Ark_NavDestinationContext peer); Ark_NavDestinationContext (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getConfigInRouteMap)(NavDestinationContextPeer* peer); - void (*setPathInfo)(NavDestinationContextPeer* peer, + Opt_RouteMapConfig (*getConfigInRouteMap)(Ark_NavDestinationContext peer); + void (*setPathInfo)(Ark_NavDestinationContext peer, Ark_NavPathInfo pathInfo); - void (*setPathStack)(NavDestinationContextPeer* peer, + void (*setPathStack)(Ark_NavDestinationContext peer, Ark_NavPathStack pathStack); - void (*getNavDestinationId)(NavDestinationContextPeer* peer); - void (*setNavDestinationId)(NavDestinationContextPeer* peer, + Ark_String (*getNavDestinationId)(Ark_NavDestinationContext peer); + void (*setNavDestinationId)(Ark_NavDestinationContext peer, const Ark_String* navDestinationId); } GENERATED_ArkUINavDestinationContextAccessor; typedef struct GENERATED_ArkUINavPathInfoAccessor { - void (*destroyPeer)(NavPathInfoPeer* peer); + void (*destroyPeer)(Ark_NavPathInfo peer); Ark_NavPathInfo (*ctor)(const Ark_String* name, const Ark_CustomObject* param, const Opt_Callback_PopInfo_Void* onPop, const Opt_Boolean* isEntry); Ark_NativePointer (*getFinalizer)(); - void (*getName)(NavPathInfoPeer* peer); - void (*setName)(NavPathInfoPeer* peer, + Ark_String (*getName)(Ark_NavPathInfo peer); + void (*setName)(Ark_NavPathInfo peer, const Ark_String* name); - void (*setParam)(NavPathInfoPeer* peer, + void (*setParam)(Ark_NavPathInfo peer, const Ark_CustomObject* param); - Callback_PopInfo_Void (*getOnPop)(NavPathInfoPeer* peer); - void (*setOnPop)(NavPathInfoPeer* peer, + Callback_PopInfo_Void (*getOnPop)(Ark_NavPathInfo peer); + void (*setOnPop)(Ark_NavPathInfo peer, const Callback_PopInfo_Void* onPop); - Ark_Boolean (*getIsEntry)(NavPathInfoPeer* peer); - void (*setIsEntry)(NavPathInfoPeer* peer, + Ark_Boolean (*getIsEntry)(Ark_NavPathInfo peer); + void (*setIsEntry)(Ark_NavPathInfo peer, Ark_Boolean isEntry); } GENERATED_ArkUINavPathInfoAccessor; typedef struct GENERATED_ArkUINavPathStackAccessor { - void (*destroyPeer)(NavPathStackPeer* peer); + void (*destroyPeer)(Ark_NavPathStack peer); Ark_NavPathStack (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*pushPath0)(NavPathStackPeer* peer, + void (*pushPath0)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated); - void (*pushPath1)(NavPathStackPeer* peer, + void (*pushPath1)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options); - void (*pushDestination0)(NavPathStackPeer* peer, + void (*pushDestination0)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*pushDestination1)(NavPathStackPeer* peer, + void (*pushDestination1)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*pushPathByName0)(NavPathStackPeer* peer, + void (*pushPathByName0)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated); - void (*pushPathByName1)(NavPathStackPeer* peer, + void (*pushPathByName1)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, const Opt_Boolean* animated); - void (*pushDestinationByName0)(NavPathStackPeer* peer, + void (*pushDestinationByName0)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*pushDestinationByName1)(NavPathStackPeer* peer, + void (*pushDestinationByName1)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*replacePath0)(NavPathStackPeer* peer, + void (*replacePath0)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated); - void (*replacePath1)(NavPathStackPeer* peer, + void (*replacePath1)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options); - void (*replaceDestination)(NavPathStackPeer* peer, + void (*replaceDestination)(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*replacePathByName)(NavPathStackPeer* peer, + void (*replacePathByName)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated); - Ark_Int32 (*removeByIndexes)(NavPathStackPeer* peer, + Ark_Int32 (*removeByIndexes)(Ark_NavPathStack peer, const Array_Number* indexes); - Ark_Int32 (*removeByName)(NavPathStackPeer* peer, + Ark_Int32 (*removeByName)(Ark_NavPathStack peer, const Ark_String* name); - Ark_Boolean (*removeByNavDestinationId)(NavPathStackPeer* peer, + Ark_Boolean (*removeByNavDestinationId)(Ark_NavPathStack peer, const Ark_String* navDestinationId); - Ark_NavPathInfo (*pop0)(NavPathStackPeer* peer, + Opt_NavPathInfo (*pop0)(Ark_NavPathStack peer, const Opt_Boolean* animated); - Ark_NavPathInfo (*pop1)(NavPathStackPeer* peer, + Opt_NavPathInfo (*pop1)(Ark_NavPathStack peer, const Ark_CustomObject* result, const Opt_Boolean* animated); - Ark_Int32 (*popToName0)(NavPathStackPeer* peer, + Ark_Int32 (*popToName0)(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated); - Ark_Int32 (*popToName1)(NavPathStackPeer* peer, + Ark_Int32 (*popToName1)(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* result, const Opt_Boolean* animated); - void (*popToIndex0)(NavPathStackPeer* peer, + void (*popToIndex0)(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated); - void (*popToIndex1)(NavPathStackPeer* peer, + void (*popToIndex1)(Ark_NavPathStack peer, const Ark_Number* index, const Ark_CustomObject* result, const Opt_Boolean* animated); - Ark_Int32 (*moveToTop)(NavPathStackPeer* peer, + Ark_Int32 (*moveToTop)(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated); - void (*moveIndexToTop)(NavPathStackPeer* peer, + void (*moveIndexToTop)(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated); - void (*clear)(NavPathStackPeer* peer, + void (*clear)(Ark_NavPathStack peer, const Opt_Boolean* animated); - void (*getAllPathName)(NavPathStackPeer* peer); - void (*getParamByIndex)(NavPathStackPeer* peer, - const Ark_Number* index); - void (*getParamByName)(NavPathStackPeer* peer, - const Ark_String* name); - void (*getIndexByName)(NavPathStackPeer* peer, - const Ark_String* name); - Ark_NavPathStack (*getParent)(NavPathStackPeer* peer); - Ark_Int32 (*size)(NavPathStackPeer* peer); - void (*disableAnimation)(NavPathStackPeer* peer, + Array_String (*getAllPathName)(Ark_NavPathStack peer); + Opt_CustomObject (*getParamByIndex)(Ark_NavPathStack peer, + const Ark_Number* index); + Array_CustomObject (*getParamByName)(Ark_NavPathStack peer, + const Ark_String* name); + Array_Number (*getIndexByName)(Ark_NavPathStack peer, + const Ark_String* name); + Opt_NavPathStack (*getParent)(Ark_NavPathStack peer); + Ark_Int32 (*size)(Ark_NavPathStack peer); + void (*disableAnimation)(Ark_NavPathStack peer, Ark_Boolean value); - void (*setInterception)(NavPathStackPeer* peer, + void (*setInterception)(Ark_NavPathStack peer, const Ark_NavigationInterception* interception); } GENERATED_ArkUINavPathStackAccessor; typedef struct GENERATED_ArkUINavigationTransitionProxyAccessor { - void (*destroyPeer)(NavigationTransitionProxyPeer* peer); + void (*destroyPeer)(Ark_NavigationTransitionProxy peer); Ark_NavigationTransitionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*finishTransition)(NavigationTransitionProxyPeer* peer); - void (*cancelTransition)(NavigationTransitionProxyPeer* peer); - void (*updateTransition)(NavigationTransitionProxyPeer* peer, + void (*finishTransition)(Ark_NavigationTransitionProxy peer); + void (*cancelTransition)(Ark_NavigationTransitionProxy peer); + void (*updateTransition)(Ark_NavigationTransitionProxy peer, const Ark_Number* progress); - void (*setFrom)(NavigationTransitionProxyPeer* peer, + void (*setFrom)(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* from); - void (*setTo)(NavigationTransitionProxyPeer* peer, + void (*setTo)(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* to); - Ark_Boolean (*getIsInteractive)(NavigationTransitionProxyPeer* peer); - void (*setIsInteractive)(NavigationTransitionProxyPeer* peer, + Ark_Boolean (*getIsInteractive)(Ark_NavigationTransitionProxy peer); + void (*setIsInteractive)(Ark_NavigationTransitionProxy peer, Ark_Boolean isInteractive); } GENERATED_ArkUINavigationTransitionProxyAccessor; typedef struct GENERATED_ArkUIPatternLockControllerAccessor { - void (*destroyPeer)(PatternLockControllerPeer* peer); + void (*destroyPeer)(Ark_PatternLockController peer); Ark_PatternLockController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*reset)(PatternLockControllerPeer* peer); - void (*setChallengeResult)(PatternLockControllerPeer* peer, + void (*reset)(Ark_PatternLockController peer); + void (*setChallengeResult)(Ark_PatternLockController peer, Ark_PatternLockChallengeResult result); } GENERATED_ArkUIPatternLockControllerAccessor; typedef struct GENERATED_ArkUIRichEditorBaseControllerAccessor { - void (*destroyPeer)(RichEditorBaseControllerPeer* peer); + void (*destroyPeer)(Ark_RichEditorBaseController peer); Ark_RichEditorBaseController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getCaretOffset)(RichEditorBaseControllerPeer* peer); - Ark_Boolean (*setCaretOffset)(RichEditorBaseControllerPeer* peer, + Ark_Int32 (*getCaretOffset)(Ark_RichEditorBaseController peer); + Ark_Boolean (*setCaretOffset)(Ark_RichEditorBaseController peer, const Ark_Number* offset); - void (*closeSelectionMenu)(RichEditorBaseControllerPeer* peer); - Ark_NativePointer (*getTypingStyle)(RichEditorBaseControllerPeer* peer); - void (*setTypingStyle)(RichEditorBaseControllerPeer* peer, + void (*closeSelectionMenu)(Ark_RichEditorBaseController peer); + Ark_RichEditorTextStyle (*getTypingStyle)(Ark_RichEditorBaseController peer); + void (*setTypingStyle)(Ark_RichEditorBaseController peer, const Ark_RichEditorTextStyle* value); - void (*setSelection)(RichEditorBaseControllerPeer* peer, + void (*setSelection)(Ark_RichEditorBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); - Ark_Boolean (*isEditing)(RichEditorBaseControllerPeer* peer); - void (*stopEditing)(RichEditorBaseControllerPeer* peer); - Ark_LayoutManager (*getLayoutManager)(RichEditorBaseControllerPeer* peer); - Ark_NativePointer (*getPreviewText)(RichEditorBaseControllerPeer* peer); + Ark_Boolean (*isEditing)(Ark_RichEditorBaseController peer); + void (*stopEditing)(Ark_RichEditorBaseController peer); + Ark_LayoutManager (*getLayoutManager)(Ark_RichEditorBaseController peer); + Ark_PreviewText (*getPreviewText)(Ark_RichEditorBaseController peer); } GENERATED_ArkUIRichEditorBaseControllerAccessor; typedef struct GENERATED_ArkUIRichEditorControllerAccessor { - void (*destroyPeer)(RichEditorControllerPeer* peer); + void (*destroyPeer)(Ark_RichEditorController peer); Ark_RichEditorController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*addTextSpan)(RichEditorControllerPeer* peer, + Ark_Int32 (*addTextSpan)(Ark_RichEditorController peer, const Ark_String* value, const Opt_RichEditorTextSpanOptions* options); - Ark_Int32 (*addImageSpan)(RichEditorControllerPeer* peer, + Ark_Int32 (*addImageSpan)(Ark_RichEditorController peer, const Ark_Union_PixelMap_ResourceStr* value, const Opt_RichEditorImageSpanOptions* options); - Ark_Int32 (*addBuilderSpan)(RichEditorControllerPeer* peer, + Ark_Int32 (*addBuilderSpan)(Ark_RichEditorController peer, const CustomNodeBuilder* value, const Opt_RichEditorBuilderSpanOptions* options); - Ark_Int32 (*addSymbolSpan)(RichEditorControllerPeer* peer, + Ark_Int32 (*addSymbolSpan)(Ark_RichEditorController peer, const Ark_Resource* value, const Opt_RichEditorSymbolSpanOptions* options); - void (*updateSpanStyle)(RichEditorControllerPeer* peer, + void (*updateSpanStyle)(Ark_RichEditorController peer, const Ark_Type_RichEditorController_updateSpanStyle_value* value); - void (*updateParagraphStyle)(RichEditorControllerPeer* peer, + void (*updateParagraphStyle)(Ark_RichEditorController peer, const Ark_RichEditorParagraphStyleOptions* value); - void (*deleteSpans)(RichEditorControllerPeer* peer, + void (*deleteSpans)(Ark_RichEditorController peer, const Opt_RichEditorRange* value); - void (*getSpans)(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value); - void (*getParagraphs)(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value); - Ark_NativePointer (*getSelection)(RichEditorControllerPeer* peer); - void (*fromStyledString)(RichEditorControllerPeer* peer, - Ark_StyledString value); - Ark_StyledString (*toStyledString)(RichEditorControllerPeer* peer, + Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult (*getSpans)(Ark_RichEditorController peer, + const Opt_RichEditorRange* value); + Array_RichEditorParagraphResult (*getParagraphs)(Ark_RichEditorController peer, + const Opt_RichEditorRange* value); + Ark_RichEditorSelection (*getSelection)(Ark_RichEditorController peer); + Array_RichEditorSpan (*fromStyledString)(Ark_RichEditorController peer, + Ark_StyledString value); + Ark_StyledString (*toStyledString)(Ark_RichEditorController peer, const Ark_RichEditorRange* value); } GENERATED_ArkUIRichEditorControllerAccessor; typedef struct GENERATED_ArkUIRichEditorStyledStringControllerAccessor { - void (*destroyPeer)(RichEditorStyledStringControllerPeer* peer); + void (*destroyPeer)(Ark_RichEditorStyledStringController peer); Ark_RichEditorStyledStringController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setStyledString)(RichEditorStyledStringControllerPeer* peer, + void (*setStyledString)(Ark_RichEditorStyledStringController peer, Ark_StyledString styledString); - Ark_MutableStyledString (*getStyledString)(RichEditorStyledStringControllerPeer* peer); - Ark_NativePointer (*getSelection)(RichEditorStyledStringControllerPeer* peer); - void (*onContentChanged)(RichEditorStyledStringControllerPeer* peer, + Ark_MutableStyledString (*getStyledString)(Ark_RichEditorStyledStringController peer); + Ark_RichEditorRange (*getSelection)(Ark_RichEditorStyledStringController peer); + void (*onContentChanged)(Ark_RichEditorStyledStringController peer, const Ark_StyledStringChangedListener* listener); } GENERATED_ArkUIRichEditorStyledStringControllerAccessor; typedef struct GENERATED_ArkUIScrollerAccessor { - void (*destroyPeer)(ScrollerPeer* peer); + void (*destroyPeer)(Ark_Scroller peer); Ark_Scroller (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*scrollTo)(ScrollerPeer* peer, + void (*scrollTo)(Ark_Scroller peer, const Ark_ScrollOptions* options); - void (*scrollEdge)(ScrollerPeer* peer, + void (*scrollEdge)(Ark_Scroller peer, Ark_Edge value, const Opt_ScrollEdgeOptions* options); - void (*fling)(ScrollerPeer* peer, + void (*fling)(Ark_Scroller peer, const Ark_Number* velocity); - void (*scrollPage0)(ScrollerPeer* peer, + void (*scrollPage0)(Ark_Scroller peer, const Ark_ScrollPageOptions* value); - void (*scrollPage1)(ScrollerPeer* peer, + void (*scrollPage1)(Ark_Scroller peer, const Ark_Literal_Boolean_next_Axis_direction* value); - Ark_NativePointer (*currentOffset)(ScrollerPeer* peer); - void (*scrollToIndex)(ScrollerPeer* peer, + Ark_OffsetResult (*currentOffset)(Ark_Scroller peer); + void (*scrollToIndex)(Ark_Scroller peer, const Ark_Number* value, const Opt_Boolean* smooth, const Opt_ScrollAlign* align, const Opt_ScrollToIndexOptions* options); - void (*scrollBy)(ScrollerPeer* peer, + void (*scrollBy)(Ark_Scroller peer, const Ark_Length* dx, const Ark_Length* dy); - Ark_Boolean (*isAtEnd)(ScrollerPeer* peer); - Ark_NativePointer (*getItemRect)(ScrollerPeer* peer, - const Ark_Number* index); - Ark_Int32 (*getItemIndex)(ScrollerPeer* peer, + Ark_Boolean (*isAtEnd)(Ark_Scroller peer); + Ark_RectResult (*getItemRect)(Ark_Scroller peer, + const Ark_Number* index); + Ark_Int32 (*getItemIndex)(Ark_Scroller peer, const Ark_Number* x, const Ark_Number* y); } GENERATED_ArkUIScrollerAccessor; typedef struct GENERATED_ArkUISearchControllerAccessor { - void (*destroyPeer)(SearchControllerPeer* peer); + void (*destroyPeer)(Ark_SearchController peer); Ark_SearchController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*caretPosition)(SearchControllerPeer* peer, + void (*caretPosition)(Ark_SearchController peer, const Ark_Number* value); - void (*stopEditing)(SearchControllerPeer* peer); - void (*setTextSelection)(SearchControllerPeer* peer, + void (*stopEditing)(Ark_SearchController peer); + void (*setTextSelection)(Ark_SearchController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); } GENERATED_ArkUISearchControllerAccessor; typedef struct GENERATED_ArkUISwiperControllerAccessor { - void (*destroyPeer)(SwiperControllerPeer* peer); + void (*destroyPeer)(Ark_SwiperController peer); Ark_SwiperController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*showNext)(SwiperControllerPeer* peer); - void (*showPrevious)(SwiperControllerPeer* peer); - void (*changeIndex)(SwiperControllerPeer* peer, + void (*showNext)(Ark_SwiperController peer); + void (*showPrevious)(Ark_SwiperController peer); + void (*changeIndex)(Ark_SwiperController peer, const Ark_Number* index, const Opt_Boolean* useAnimation); - void (*finishAnimation)(SwiperControllerPeer* peer, + void (*finishAnimation)(Ark_SwiperController peer, const Opt_VoidCallback* callback_); } GENERATED_ArkUISwiperControllerAccessor; typedef struct GENERATED_ArkUISwiperContentTransitionProxyAccessor { - void (*destroyPeer)(SwiperContentTransitionProxyPeer* peer); + void (*destroyPeer)(Ark_SwiperContentTransitionProxy peer); Ark_SwiperContentTransitionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*finishTransition)(SwiperContentTransitionProxyPeer* peer); - Ark_Int32 (*getSelectedIndex)(SwiperContentTransitionProxyPeer* peer); - void (*setSelectedIndex)(SwiperContentTransitionProxyPeer* peer, + void (*finishTransition)(Ark_SwiperContentTransitionProxy peer); + Ark_Int32 (*getSelectedIndex)(Ark_SwiperContentTransitionProxy peer); + void (*setSelectedIndex)(Ark_SwiperContentTransitionProxy peer, const Ark_Number* selectedIndex); - Ark_Int32 (*getIndex)(SwiperContentTransitionProxyPeer* peer); - void (*setIndex)(SwiperContentTransitionProxyPeer* peer, + Ark_Int32 (*getIndex)(Ark_SwiperContentTransitionProxy peer); + void (*setIndex)(Ark_SwiperContentTransitionProxy peer, const Ark_Number* index); - Ark_Int32 (*getPosition)(SwiperContentTransitionProxyPeer* peer); - void (*setPosition)(SwiperContentTransitionProxyPeer* peer, + Ark_Int32 (*getPosition)(Ark_SwiperContentTransitionProxy peer); + void (*setPosition)(Ark_SwiperContentTransitionProxy peer, const Ark_Number* position); - Ark_Int32 (*getMainAxisLength)(SwiperContentTransitionProxyPeer* peer); - void (*setMainAxisLength)(SwiperContentTransitionProxyPeer* peer, + Ark_Int32 (*getMainAxisLength)(Ark_SwiperContentTransitionProxy peer); + void (*setMainAxisLength)(Ark_SwiperContentTransitionProxy peer, const Ark_Number* mainAxisLength); } GENERATED_ArkUISwiperContentTransitionProxyAccessor; typedef struct GENERATED_ArkUIIndicatorComponentControllerAccessor { - void (*destroyPeer)(IndicatorComponentControllerPeer* peer); + void (*destroyPeer)(Ark_IndicatorComponentController peer); Ark_IndicatorComponentController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*showNext)(IndicatorComponentControllerPeer* peer); - void (*showPrevious)(IndicatorComponentControllerPeer* peer); - void (*changeIndex)(IndicatorComponentControllerPeer* peer, + void (*showNext)(Ark_IndicatorComponentController peer); + void (*showPrevious)(Ark_IndicatorComponentController peer); + void (*changeIndex)(Ark_IndicatorComponentController peer, const Ark_Number* index, const Opt_Boolean* useAnimation); } GENERATED_ArkUIIndicatorComponentControllerAccessor; typedef struct GENERATED_ArkUIScaleSymbolEffectAccessor { - void (*destroyPeer)(ScaleSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_ScaleSymbolEffect peer); Ark_ScaleSymbolEffect (*ctor)(const Opt_EffectScope* scope, const Opt_EffectDirection* direction); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(ScaleSymbolEffectPeer* peer); - void (*setScope)(ScaleSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_ScaleSymbolEffect peer); + void (*setScope)(Ark_ScaleSymbolEffect peer, Ark_EffectScope scope); - Ark_NativePointer (*getDirection)(ScaleSymbolEffectPeer* peer); - void (*setDirection)(ScaleSymbolEffectPeer* peer, + Ark_EffectDirection (*getDirection)(Ark_ScaleSymbolEffect peer); + void (*setDirection)(Ark_ScaleSymbolEffect peer, Ark_EffectDirection direction); } GENERATED_ArkUIScaleSymbolEffectAccessor; typedef struct GENERATED_ArkUIHierarchicalSymbolEffectAccessor { - void (*destroyPeer)(HierarchicalSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_HierarchicalSymbolEffect peer); Ark_HierarchicalSymbolEffect (*ctor)(const Opt_EffectFillStyle* fillStyle); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getFillStyle)(HierarchicalSymbolEffectPeer* peer); - void (*setFillStyle)(HierarchicalSymbolEffectPeer* peer, + Ark_EffectFillStyle (*getFillStyle)(Ark_HierarchicalSymbolEffect peer); + void (*setFillStyle)(Ark_HierarchicalSymbolEffect peer, Ark_EffectFillStyle fillStyle); } GENERATED_ArkUIHierarchicalSymbolEffectAccessor; typedef struct GENERATED_ArkUIAppearSymbolEffectAccessor { - void (*destroyPeer)(AppearSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_AppearSymbolEffect peer); Ark_AppearSymbolEffect (*ctor)(const Opt_EffectScope* scope); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(AppearSymbolEffectPeer* peer); - void (*setScope)(AppearSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_AppearSymbolEffect peer); + void (*setScope)(Ark_AppearSymbolEffect peer, Ark_EffectScope scope); } GENERATED_ArkUIAppearSymbolEffectAccessor; typedef struct GENERATED_ArkUIDisappearSymbolEffectAccessor { - void (*destroyPeer)(DisappearSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_DisappearSymbolEffect peer); Ark_DisappearSymbolEffect (*ctor)(const Opt_EffectScope* scope); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(DisappearSymbolEffectPeer* peer); - void (*setScope)(DisappearSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_DisappearSymbolEffect peer); + void (*setScope)(Ark_DisappearSymbolEffect peer, Ark_EffectScope scope); } GENERATED_ArkUIDisappearSymbolEffectAccessor; typedef struct GENERATED_ArkUIBounceSymbolEffectAccessor { - void (*destroyPeer)(BounceSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_BounceSymbolEffect peer); Ark_BounceSymbolEffect (*ctor)(const Opt_EffectScope* scope, const Opt_EffectDirection* direction); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(BounceSymbolEffectPeer* peer); - void (*setScope)(BounceSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_BounceSymbolEffect peer); + void (*setScope)(Ark_BounceSymbolEffect peer, Ark_EffectScope scope); - Ark_NativePointer (*getDirection)(BounceSymbolEffectPeer* peer); - void (*setDirection)(BounceSymbolEffectPeer* peer, + Ark_EffectDirection (*getDirection)(Ark_BounceSymbolEffect peer); + void (*setDirection)(Ark_BounceSymbolEffect peer, Ark_EffectDirection direction); } GENERATED_ArkUIBounceSymbolEffectAccessor; typedef struct GENERATED_ArkUIReplaceSymbolEffectAccessor { - void (*destroyPeer)(ReplaceSymbolEffectPeer* peer); + void (*destroyPeer)(Ark_ReplaceSymbolEffect peer); Ark_ReplaceSymbolEffect (*ctor)(const Opt_EffectScope* scope); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getScope)(ReplaceSymbolEffectPeer* peer); - void (*setScope)(ReplaceSymbolEffectPeer* peer, + Ark_EffectScope (*getScope)(Ark_ReplaceSymbolEffect peer); + void (*setScope)(Ark_ReplaceSymbolEffect peer, Ark_EffectScope scope); } GENERATED_ArkUIReplaceSymbolEffectAccessor; typedef struct GENERATED_ArkUITabsControllerAccessor { - void (*destroyPeer)(TabsControllerPeer* peer); + void (*destroyPeer)(Ark_TabsController peer); Ark_TabsController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*changeIndex)(TabsControllerPeer* peer, + void (*changeIndex)(Ark_TabsController peer, const Ark_Number* value); - void (*preloadItems)(TabsControllerPeer* peer, + void (*preloadItems)(Ark_TabsController peer, const Opt_Array_Number* indices, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*setTabBarTranslate)(TabsControllerPeer* peer, + void (*setTabBarTranslate)(Ark_TabsController peer, const Ark_TranslateOptions* translate); - void (*setTabBarOpacity)(TabsControllerPeer* peer, + void (*setTabBarOpacity)(Ark_TabsController peer, const Ark_Number* opacity); } GENERATED_ArkUITabsControllerAccessor; typedef struct GENERATED_ArkUITabContentTransitionProxyAccessor { - void (*destroyPeer)(TabContentTransitionProxyPeer* peer); + void (*destroyPeer)(Ark_TabContentTransitionProxy peer); Ark_TabContentTransitionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*finishTransition)(TabContentTransitionProxyPeer* peer); - Ark_Int32 (*getFrom)(TabContentTransitionProxyPeer* peer); - void (*setFrom)(TabContentTransitionProxyPeer* peer, + void (*finishTransition)(Ark_TabContentTransitionProxy peer); + Ark_Int32 (*getFrom)(Ark_TabContentTransitionProxy peer); + void (*setFrom)(Ark_TabContentTransitionProxy peer, const Ark_Number* from); - Ark_Int32 (*getTo)(TabContentTransitionProxyPeer* peer); - void (*setTo)(TabContentTransitionProxyPeer* peer, + Ark_Int32 (*getTo)(Ark_TabContentTransitionProxy peer); + void (*setTo)(Ark_TabContentTransitionProxy peer, const Ark_Number* to); } GENERATED_ArkUITabContentTransitionProxyAccessor; typedef struct GENERATED_ArkUITextControllerAccessor { - void (*destroyPeer)(TextControllerPeer* peer); + void (*destroyPeer)(Ark_TextController peer); Ark_TextController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*closeSelectionMenu)(TextControllerPeer* peer); - void (*setStyledString)(TextControllerPeer* peer, + void (*closeSelectionMenu)(Ark_TextController peer); + void (*setStyledString)(Ark_TextController peer, Ark_StyledString value); - Ark_LayoutManager (*getLayoutManager)(TextControllerPeer* peer); + Ark_LayoutManager (*getLayoutManager)(Ark_TextController peer); } GENERATED_ArkUITextControllerAccessor; typedef struct GENERATED_ArkUITextAreaControllerAccessor { - void (*destroyPeer)(TextAreaControllerPeer* peer); + void (*destroyPeer)(Ark_TextAreaController peer); Ark_TextAreaController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*caretPosition)(TextAreaControllerPeer* peer, + void (*caretPosition)(Ark_TextAreaController peer, const Ark_Number* value); - void (*setTextSelection)(TextAreaControllerPeer* peer, + void (*setTextSelection)(Ark_TextAreaController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); - void (*stopEditing)(TextAreaControllerPeer* peer); + void (*stopEditing)(Ark_TextAreaController peer); } GENERATED_ArkUITextAreaControllerAccessor; typedef struct GENERATED_ArkUITextClockControllerAccessor { - void (*destroyPeer)(TextClockControllerPeer* peer); + void (*destroyPeer)(Ark_TextClockController peer); Ark_TextClockController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*start)(TextClockControllerPeer* peer); - void (*stop)(TextClockControllerPeer* peer); + void (*start)(Ark_TextClockController peer); + void (*stop)(Ark_TextClockController peer); } GENERATED_ArkUITextClockControllerAccessor; typedef struct GENERATED_ArkUITextBaseControllerAccessor { - void (*destroyPeer)(TextBaseControllerPeer* peer); + void (*destroyPeer)(Ark_TextBaseController peer); Ark_TextBaseController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setSelection)(TextBaseControllerPeer* peer, + void (*setSelection)(Ark_TextBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); - void (*closeSelectionMenu)(TextBaseControllerPeer* peer); - Ark_LayoutManager (*getLayoutManager)(TextBaseControllerPeer* peer); + void (*closeSelectionMenu)(Ark_TextBaseController peer); + Ark_LayoutManager (*getLayoutManager)(Ark_TextBaseController peer); } GENERATED_ArkUITextBaseControllerAccessor; typedef struct GENERATED_ArkUITextEditControllerExAccessor { - void (*destroyPeer)(TextEditControllerExPeer* peer); + void (*destroyPeer)(Ark_TextEditControllerEx peer); Ark_TextEditControllerEx (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*isEditing)(TextEditControllerExPeer* peer); - void (*stopEditing)(TextEditControllerExPeer* peer); - Ark_Boolean (*setCaretOffset)(TextEditControllerExPeer* peer, + Ark_Boolean (*isEditing)(Ark_TextEditControllerEx peer); + void (*stopEditing)(Ark_TextEditControllerEx peer); + Ark_Boolean (*setCaretOffset)(Ark_TextEditControllerEx peer, const Ark_Number* offset); - Ark_Int32 (*getCaretOffset)(TextEditControllerExPeer* peer); - Ark_NativePointer (*getPreviewText)(TextEditControllerExPeer* peer); + Ark_Int32 (*getCaretOffset)(Ark_TextEditControllerEx peer); + Ark_PreviewText (*getPreviewText)(Ark_TextEditControllerEx peer); } GENERATED_ArkUITextEditControllerExAccessor; typedef struct GENERATED_ArkUIStyledStringControllerAccessor { - void (*destroyPeer)(StyledStringControllerPeer* peer); + void (*destroyPeer)(Ark_StyledStringController peer); Ark_StyledStringController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setStyledString)(StyledStringControllerPeer* peer, + void (*setStyledString)(Ark_StyledStringController peer, Ark_StyledString styledString); - Ark_MutableStyledString (*getStyledString)(StyledStringControllerPeer* peer); + Ark_MutableStyledString (*getStyledString)(Ark_StyledStringController peer); } GENERATED_ArkUIStyledStringControllerAccessor; typedef struct GENERATED_ArkUILayoutManagerAccessor { - void (*destroyPeer)(LayoutManagerPeer* peer); + void (*destroyPeer)(Ark_LayoutManager peer); Ark_LayoutManager (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getLineCount)(LayoutManagerPeer* peer); - Ark_NativePointer (*getGlyphPositionAtCoordinate)(LayoutManagerPeer* peer, - const Ark_Number* x, - const Ark_Number* y); - Ark_NativePointer (*getLineMetrics)(LayoutManagerPeer* peer, - const Ark_Number* lineNumber); - void (*getRectsForRange)(LayoutManagerPeer* peer, - const Ark_TextRange* range, - Ark_RectWidthStyle widthStyle, - Ark_RectHeightStyle heightStyle); + Ark_Int32 (*getLineCount)(Ark_LayoutManager peer); + Ark_PositionWithAffinity (*getGlyphPositionAtCoordinate)(Ark_LayoutManager peer, + const Ark_Number* x, + const Ark_Number* y); + Ark_LineMetrics (*getLineMetrics)(Ark_LayoutManager peer, + const Ark_Number* lineNumber); + Array_TextBox (*getRectsForRange)(Ark_LayoutManager peer, + const Ark_TextRange* range, + Ark_RectWidthStyle widthStyle, + Ark_RectHeightStyle heightStyle); } GENERATED_ArkUILayoutManagerAccessor; typedef struct GENERATED_ArkUITextMenuItemIdAccessor { - void (*destroyPeer)(TextMenuItemIdPeer* peer); + void (*destroyPeer)(Ark_TextMenuItemId peer); Ark_TextMenuItemId (*ctor)(); Ark_NativePointer (*getFinalizer)(); Ark_TextMenuItemId (*of)(const Ark_ResourceStr* id); - Ark_Boolean (*equals)(TextMenuItemIdPeer* peer, + Ark_Boolean (*equals)(Ark_TextMenuItemId peer, Ark_TextMenuItemId id); } GENERATED_ArkUITextMenuItemIdAccessor; typedef struct GENERATED_ArkUIEditMenuOptionsAccessor { - void (*destroyPeer)(EditMenuOptionsPeer* peer); + void (*destroyPeer)(Ark_EditMenuOptions peer); Ark_EditMenuOptions (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*onCreateMenu)(EditMenuOptionsPeer* peer, - const Array_TextMenuItem* menuItems); - Ark_Boolean (*onMenuItemClick)(EditMenuOptionsPeer* peer, + Array_TextMenuItem (*onCreateMenu)(Ark_EditMenuOptions peer, + const Array_TextMenuItem* menuItems); + Ark_Boolean (*onMenuItemClick)(Ark_EditMenuOptions peer, const Ark_TextMenuItem* menuItem, const Ark_TextRange* range); } GENERATED_ArkUIEditMenuOptionsAccessor; typedef struct GENERATED_ArkUISubmitEventAccessor { - void (*destroyPeer)(SubmitEventPeer* peer); + void (*destroyPeer)(Ark_SubmitEvent peer); Ark_SubmitEvent (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*keepEditableState)(SubmitEventPeer* peer); - void (*getText)(SubmitEventPeer* peer); - void (*setText)(SubmitEventPeer* peer, + void (*keepEditableState)(Ark_SubmitEvent peer); + Ark_String (*getText)(Ark_SubmitEvent peer); + void (*setText)(Ark_SubmitEvent peer, const Ark_String* text); } GENERATED_ArkUISubmitEventAccessor; typedef struct GENERATED_ArkUITextInputControllerAccessor { - void (*destroyPeer)(TextInputControllerPeer* peer); + void (*destroyPeer)(Ark_TextInputController peer); Ark_TextInputController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*caretPosition)(TextInputControllerPeer* peer, + void (*caretPosition)(Ark_TextInputController peer, const Ark_Number* value); - void (*setTextSelection)(TextInputControllerPeer* peer, + void (*setTextSelection)(Ark_TextInputController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options); - void (*stopEditing)(TextInputControllerPeer* peer); + void (*stopEditing)(Ark_TextInputController peer); } GENERATED_ArkUITextInputControllerAccessor; typedef struct GENERATED_ArkUITextPickerDialogAccessor { - void (*destroyPeer)(TextPickerDialogPeer* peer); + void (*destroyPeer)(Ark_TextPickerDialog peer); Ark_TextPickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_TextPickerDialogOptions* options); } GENERATED_ArkUITextPickerDialogAccessor; typedef struct GENERATED_ArkUITextTimerControllerAccessor { - void (*destroyPeer)(TextTimerControllerPeer* peer); + void (*destroyPeer)(Ark_TextTimerController peer); Ark_TextTimerController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*start)(TextTimerControllerPeer* peer); - void (*pause)(TextTimerControllerPeer* peer); - void (*reset)(TextTimerControllerPeer* peer); + void (*start)(Ark_TextTimerController peer); + void (*pause)(Ark_TextTimerController peer); + void (*reset)(Ark_TextTimerController peer); } GENERATED_ArkUITextTimerControllerAccessor; typedef struct GENERATED_ArkUITimePickerDialogAccessor { - void (*destroyPeer)(TimePickerDialogPeer* peer); + void (*destroyPeer)(Ark_TimePickerDialog peer); Ark_TimePickerDialog (*ctor)(); Ark_NativePointer (*getFinalizer)(); void (*show)(const Opt_TimePickerDialogOptions* options); } GENERATED_ArkUITimePickerDialogAccessor; typedef struct GENERATED_ArkUIColorFilterAccessor { - void (*destroyPeer)(ColorFilterPeer* peer); + void (*destroyPeer)(Ark_ColorFilter peer); Ark_ColorFilter (*ctor)(const Array_Number* value); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUIColorFilterAccessor; typedef struct GENERATED_ArkUIVideoControllerAccessor { - void (*destroyPeer)(VideoControllerPeer* peer); + void (*destroyPeer)(Ark_VideoController peer); Ark_VideoController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*start)(VideoControllerPeer* peer); - void (*pause)(VideoControllerPeer* peer); - void (*stop)(VideoControllerPeer* peer); - void (*setCurrentTime0)(VideoControllerPeer* peer, + void (*start)(Ark_VideoController peer); + void (*pause)(Ark_VideoController peer); + void (*stop)(Ark_VideoController peer); + void (*setCurrentTime0)(Ark_VideoController peer, const Ark_Number* value); - void (*requestFullscreen)(VideoControllerPeer* peer, + void (*requestFullscreen)(Ark_VideoController peer, Ark_Boolean value); - void (*exitFullscreen)(VideoControllerPeer* peer); - void (*setCurrentTime1)(VideoControllerPeer* peer, + void (*exitFullscreen)(Ark_VideoController peer); + void (*setCurrentTime1)(Ark_VideoController peer, const Ark_Number* value, Ark_SeekMode seekMode); - void (*reset)(VideoControllerPeer* peer); + void (*reset)(Ark_VideoController peer); } GENERATED_ArkUIVideoControllerAccessor; typedef struct GENERATED_ArkUIWebKeyboardControllerAccessor { - void (*destroyPeer)(WebKeyboardControllerPeer* peer); + void (*destroyPeer)(Ark_WebKeyboardController peer); Ark_WebKeyboardController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*insertText)(WebKeyboardControllerPeer* peer, + void (*insertText)(Ark_WebKeyboardController peer, const Ark_String* text); - void (*deleteForward)(WebKeyboardControllerPeer* peer, + void (*deleteForward)(Ark_WebKeyboardController peer, const Ark_Number* length); - void (*deleteBackward)(WebKeyboardControllerPeer* peer, + void (*deleteBackward)(Ark_WebKeyboardController peer, const Ark_Number* length); - void (*sendFunctionKey)(WebKeyboardControllerPeer* peer, + void (*sendFunctionKey)(Ark_WebKeyboardController peer, const Ark_Number* key); - void (*close)(WebKeyboardControllerPeer* peer); + void (*close)(Ark_WebKeyboardController peer); } GENERATED_ArkUIWebKeyboardControllerAccessor; typedef struct GENERATED_ArkUIFullScreenExitHandlerAccessor { - void (*destroyPeer)(FullScreenExitHandlerPeer* peer); + void (*destroyPeer)(Ark_FullScreenExitHandler peer); Ark_FullScreenExitHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*exitFullScreen)(FullScreenExitHandlerPeer* peer); + void (*exitFullScreen)(Ark_FullScreenExitHandler peer); } GENERATED_ArkUIFullScreenExitHandlerAccessor; typedef struct GENERATED_ArkUIFileSelectorParamAccessor { - void (*destroyPeer)(FileSelectorParamPeer* peer); + void (*destroyPeer)(Ark_FileSelectorParam peer); Ark_FileSelectorParam (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getTitle)(FileSelectorParamPeer* peer); - Ark_NativePointer (*getMode)(FileSelectorParamPeer* peer); - void (*getAcceptType)(FileSelectorParamPeer* peer); - Ark_Boolean (*isCapture)(FileSelectorParamPeer* peer); + Ark_String (*getTitle)(Ark_FileSelectorParam peer); + Ark_FileSelectorMode (*getMode)(Ark_FileSelectorParam peer); + Array_String (*getAcceptType)(Ark_FileSelectorParam peer); + Ark_Boolean (*isCapture)(Ark_FileSelectorParam peer); } GENERATED_ArkUIFileSelectorParamAccessor; typedef struct GENERATED_ArkUIJsResultAccessor { - void (*destroyPeer)(JsResultPeer* peer); + void (*destroyPeer)(Ark_JsResult peer); Ark_JsResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*handleCancel)(JsResultPeer* peer); - void (*handleConfirm)(JsResultPeer* peer); - void (*handlePromptConfirm)(JsResultPeer* peer, + void (*handleCancel)(Ark_JsResult peer); + void (*handleConfirm)(Ark_JsResult peer); + void (*handlePromptConfirm)(Ark_JsResult peer, const Ark_String* result); } GENERATED_ArkUIJsResultAccessor; typedef struct GENERATED_ArkUIFileSelectorResultAccessor { - void (*destroyPeer)(FileSelectorResultPeer* peer); + void (*destroyPeer)(Ark_FileSelectorResult peer); Ark_FileSelectorResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*handleFileList)(FileSelectorResultPeer* peer, + void (*handleFileList)(Ark_FileSelectorResult peer, const Array_String* fileList); } GENERATED_ArkUIFileSelectorResultAccessor; typedef struct GENERATED_ArkUIHttpAuthHandlerAccessor { - void (*destroyPeer)(HttpAuthHandlerPeer* peer); + void (*destroyPeer)(Ark_HttpAuthHandler peer); Ark_HttpAuthHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*confirm)(HttpAuthHandlerPeer* peer, + Ark_Boolean (*confirm)(Ark_HttpAuthHandler peer, const Ark_String* userName, const Ark_String* password); - void (*cancel)(HttpAuthHandlerPeer* peer); - Ark_Boolean (*isHttpAuthInfoSaved)(HttpAuthHandlerPeer* peer); + void (*cancel)(Ark_HttpAuthHandler peer); + Ark_Boolean (*isHttpAuthInfoSaved)(Ark_HttpAuthHandler peer); } GENERATED_ArkUIHttpAuthHandlerAccessor; typedef struct GENERATED_ArkUISslErrorHandlerAccessor { - void (*destroyPeer)(SslErrorHandlerPeer* peer); + void (*destroyPeer)(Ark_SslErrorHandler peer); Ark_SslErrorHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*handleConfirm)(SslErrorHandlerPeer* peer); - void (*handleCancel)(SslErrorHandlerPeer* peer); + void (*handleConfirm)(Ark_SslErrorHandler peer); + void (*handleCancel)(Ark_SslErrorHandler peer); } GENERATED_ArkUISslErrorHandlerAccessor; typedef struct GENERATED_ArkUIClientAuthenticationHandlerAccessor { - void (*destroyPeer)(ClientAuthenticationHandlerPeer* peer); + void (*destroyPeer)(Ark_ClientAuthenticationHandler peer); Ark_ClientAuthenticationHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*confirm0)(ClientAuthenticationHandlerPeer* peer, + void (*confirm0)(Ark_ClientAuthenticationHandler peer, const Ark_String* priKeyFile, const Ark_String* certChainFile); - void (*confirm1)(ClientAuthenticationHandlerPeer* peer, + void (*confirm1)(Ark_ClientAuthenticationHandler peer, const Ark_String* authUri); - void (*cancel)(ClientAuthenticationHandlerPeer* peer); - void (*ignore)(ClientAuthenticationHandlerPeer* peer); + void (*cancel)(Ark_ClientAuthenticationHandler peer); + void (*ignore)(Ark_ClientAuthenticationHandler peer); } GENERATED_ArkUIClientAuthenticationHandlerAccessor; typedef struct GENERATED_ArkUIPermissionRequestAccessor { - void (*destroyPeer)(PermissionRequestPeer* peer); + void (*destroyPeer)(Ark_PermissionRequest peer); Ark_PermissionRequest (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*deny)(PermissionRequestPeer* peer); - void (*getOrigin)(PermissionRequestPeer* peer); - void (*getAccessibleResource)(PermissionRequestPeer* peer); - void (*grant)(PermissionRequestPeer* peer, + void (*deny)(Ark_PermissionRequest peer); + Ark_String (*getOrigin)(Ark_PermissionRequest peer); + Array_String (*getAccessibleResource)(Ark_PermissionRequest peer); + void (*grant)(Ark_PermissionRequest peer, const Array_String* resources); } GENERATED_ArkUIPermissionRequestAccessor; typedef struct GENERATED_ArkUIScreenCaptureHandlerAccessor { - void (*destroyPeer)(ScreenCaptureHandlerPeer* peer); + void (*destroyPeer)(Ark_ScreenCaptureHandler peer); Ark_ScreenCaptureHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getOrigin)(ScreenCaptureHandlerPeer* peer); - void (*grant)(ScreenCaptureHandlerPeer* peer, + Ark_String (*getOrigin)(Ark_ScreenCaptureHandler peer); + void (*grant)(Ark_ScreenCaptureHandler peer, const Ark_ScreenCaptureConfig* config); - void (*deny)(ScreenCaptureHandlerPeer* peer); + void (*deny)(Ark_ScreenCaptureHandler peer); } GENERATED_ArkUIScreenCaptureHandlerAccessor; typedef struct GENERATED_ArkUIDataResubmissionHandlerAccessor { - void (*destroyPeer)(DataResubmissionHandlerPeer* peer); + void (*destroyPeer)(Ark_DataResubmissionHandler peer); Ark_DataResubmissionHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*resend)(DataResubmissionHandlerPeer* peer); - void (*cancel)(DataResubmissionHandlerPeer* peer); + void (*resend)(Ark_DataResubmissionHandler peer); + void (*cancel)(Ark_DataResubmissionHandler peer); } GENERATED_ArkUIDataResubmissionHandlerAccessor; typedef struct GENERATED_ArkUIControllerHandlerAccessor { - void (*destroyPeer)(ControllerHandlerPeer* peer); + void (*destroyPeer)(Ark_ControllerHandler peer); Ark_ControllerHandler (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setWebController)(ControllerHandlerPeer* peer, + void (*setWebController)(Ark_ControllerHandler peer, Ark_WebviewController controller); } GENERATED_ArkUIControllerHandlerAccessor; typedef struct GENERATED_ArkUIWebContextMenuParamAccessor { - void (*destroyPeer)(WebContextMenuParamPeer* peer); + void (*destroyPeer)(Ark_WebContextMenuParam peer); Ark_WebContextMenuParam (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*x)(WebContextMenuParamPeer* peer); - Ark_Int32 (*y)(WebContextMenuParamPeer* peer); - void (*getLinkUrl)(WebContextMenuParamPeer* peer); - void (*getUnfilteredLinkUrl)(WebContextMenuParamPeer* peer); - void (*getSourceUrl)(WebContextMenuParamPeer* peer); - Ark_Boolean (*existsImageContents)(WebContextMenuParamPeer* peer); - Ark_NativePointer (*getMediaType)(WebContextMenuParamPeer* peer); - void (*getSelectionText)(WebContextMenuParamPeer* peer); - Ark_NativePointer (*getSourceType)(WebContextMenuParamPeer* peer); - Ark_NativePointer (*getInputFieldType)(WebContextMenuParamPeer* peer); - Ark_Boolean (*isEditable)(WebContextMenuParamPeer* peer); - Ark_Int32 (*getEditStateFlags)(WebContextMenuParamPeer* peer); - Ark_Int32 (*getPreviewWidth)(WebContextMenuParamPeer* peer); - Ark_Int32 (*getPreviewHeight)(WebContextMenuParamPeer* peer); + Ark_Int32 (*x)(Ark_WebContextMenuParam peer); + Ark_Int32 (*y)(Ark_WebContextMenuParam peer); + Ark_String (*getLinkUrl)(Ark_WebContextMenuParam peer); + Ark_String (*getUnfilteredLinkUrl)(Ark_WebContextMenuParam peer); + Ark_String (*getSourceUrl)(Ark_WebContextMenuParam peer); + Ark_Boolean (*existsImageContents)(Ark_WebContextMenuParam peer); + Ark_ContextMenuMediaType (*getMediaType)(Ark_WebContextMenuParam peer); + Ark_String (*getSelectionText)(Ark_WebContextMenuParam peer); + Ark_ContextMenuSourceType (*getSourceType)(Ark_WebContextMenuParam peer); + Ark_ContextMenuInputFieldType (*getInputFieldType)(Ark_WebContextMenuParam peer); + Ark_Boolean (*isEditable)(Ark_WebContextMenuParam peer); + Ark_Int32 (*getEditStateFlags)(Ark_WebContextMenuParam peer); + Ark_Int32 (*getPreviewWidth)(Ark_WebContextMenuParam peer); + Ark_Int32 (*getPreviewHeight)(Ark_WebContextMenuParam peer); } GENERATED_ArkUIWebContextMenuParamAccessor; typedef struct GENERATED_ArkUIWebContextMenuResultAccessor { - void (*destroyPeer)(WebContextMenuResultPeer* peer); + void (*destroyPeer)(Ark_WebContextMenuResult peer); Ark_WebContextMenuResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*closeContextMenu)(WebContextMenuResultPeer* peer); - void (*copyImage)(WebContextMenuResultPeer* peer); - void (*copy)(WebContextMenuResultPeer* peer); - void (*paste)(WebContextMenuResultPeer* peer); - void (*cut)(WebContextMenuResultPeer* peer); - void (*selectAll)(WebContextMenuResultPeer* peer); + void (*closeContextMenu)(Ark_WebContextMenuResult peer); + void (*copyImage)(Ark_WebContextMenuResult peer); + void (*copy)(Ark_WebContextMenuResult peer); + void (*paste)(Ark_WebContextMenuResult peer); + void (*cut)(Ark_WebContextMenuResult peer); + void (*selectAll)(Ark_WebContextMenuResult peer); } GENERATED_ArkUIWebContextMenuResultAccessor; typedef struct GENERATED_ArkUIConsoleMessageAccessor { - void (*destroyPeer)(ConsoleMessagePeer* peer); + void (*destroyPeer)(Ark_ConsoleMessage peer); Ark_ConsoleMessage (*ctor)(const Ark_String* message, const Ark_String* sourceId, const Ark_Number* lineNumber, Ark_MessageLevel messageLevel); Ark_NativePointer (*getFinalizer)(); - void (*getMessage)(ConsoleMessagePeer* peer); - void (*getSourceId)(ConsoleMessagePeer* peer); - Ark_Int32 (*getLineNumber)(ConsoleMessagePeer* peer); - Ark_NativePointer (*getMessageLevel)(ConsoleMessagePeer* peer); + Ark_String (*getMessage)(Ark_ConsoleMessage peer); + Ark_String (*getSourceId)(Ark_ConsoleMessage peer); + Ark_Int32 (*getLineNumber)(Ark_ConsoleMessage peer); + Ark_MessageLevel (*getMessageLevel)(Ark_ConsoleMessage peer); } GENERATED_ArkUIConsoleMessageAccessor; typedef struct GENERATED_ArkUIWebResourceRequestAccessor { - void (*destroyPeer)(WebResourceRequestPeer* peer); + void (*destroyPeer)(Ark_WebResourceRequest peer); Ark_WebResourceRequest (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getRequestHeader)(WebResourceRequestPeer* peer); - void (*getRequestUrl)(WebResourceRequestPeer* peer); - Ark_Boolean (*isRequestGesture)(WebResourceRequestPeer* peer); - Ark_Boolean (*isMainFrame)(WebResourceRequestPeer* peer); - Ark_Boolean (*isRedirect)(WebResourceRequestPeer* peer); - void (*getRequestMethod)(WebResourceRequestPeer* peer); + Array_Header (*getRequestHeader)(Ark_WebResourceRequest peer); + Ark_String (*getRequestUrl)(Ark_WebResourceRequest peer); + Ark_Boolean (*isRequestGesture)(Ark_WebResourceRequest peer); + Ark_Boolean (*isMainFrame)(Ark_WebResourceRequest peer); + Ark_Boolean (*isRedirect)(Ark_WebResourceRequest peer); + Ark_String (*getRequestMethod)(Ark_WebResourceRequest peer); } GENERATED_ArkUIWebResourceRequestAccessor; typedef struct GENERATED_ArkUIWebResourceResponseAccessor { - void (*destroyPeer)(WebResourceResponsePeer* peer); + void (*destroyPeer)(Ark_WebResourceResponse peer); Ark_WebResourceResponse (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getResponseData)(WebResourceResponsePeer* peer); - Ark_NativePointer (*getResponseDataEx)(WebResourceResponsePeer* peer); - void (*getResponseEncoding)(WebResourceResponsePeer* peer); - void (*getResponseMimeType)(WebResourceResponsePeer* peer); - void (*getReasonMessage)(WebResourceResponsePeer* peer); - void (*getResponseHeader)(WebResourceResponsePeer* peer); - Ark_Int32 (*getResponseCode)(WebResourceResponsePeer* peer); - void (*setResponseData)(WebResourceResponsePeer* peer, + Ark_String (*getResponseData)(Ark_WebResourceResponse peer); + Opt_Union_String_Number_Buffer_Resource (*getResponseDataEx)(Ark_WebResourceResponse peer); + Ark_String (*getResponseEncoding)(Ark_WebResourceResponse peer); + Ark_String (*getResponseMimeType)(Ark_WebResourceResponse peer); + Ark_String (*getReasonMessage)(Ark_WebResourceResponse peer); + Array_Header (*getResponseHeader)(Ark_WebResourceResponse peer); + Ark_Int32 (*getResponseCode)(Ark_WebResourceResponse peer); + void (*setResponseData)(Ark_WebResourceResponse peer, const Ark_Union_String_Number_Resource_Buffer* data); - void (*setResponseEncoding)(WebResourceResponsePeer* peer, + void (*setResponseEncoding)(Ark_WebResourceResponse peer, const Ark_String* encoding); - void (*setResponseMimeType)(WebResourceResponsePeer* peer, + void (*setResponseMimeType)(Ark_WebResourceResponse peer, const Ark_String* mimeType); - void (*setReasonMessage)(WebResourceResponsePeer* peer, + void (*setReasonMessage)(Ark_WebResourceResponse peer, const Ark_String* reason); - void (*setResponseHeader)(WebResourceResponsePeer* peer, + void (*setResponseHeader)(Ark_WebResourceResponse peer, const Array_Header* header); - void (*setResponseCode)(WebResourceResponsePeer* peer, + void (*setResponseCode)(Ark_WebResourceResponse peer, const Ark_Number* code); - void (*setResponseIsReady)(WebResourceResponsePeer* peer, + void (*setResponseIsReady)(Ark_WebResourceResponse peer, Ark_Boolean IsReady); - Ark_Boolean (*getResponseIsReady)(WebResourceResponsePeer* peer); + Ark_Boolean (*getResponseIsReady)(Ark_WebResourceResponse peer); } GENERATED_ArkUIWebResourceResponseAccessor; typedef struct GENERATED_ArkUIWebResourceErrorAccessor { - void (*destroyPeer)(WebResourceErrorPeer* peer); + void (*destroyPeer)(Ark_WebResourceError peer); Ark_WebResourceError (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getErrorInfo)(WebResourceErrorPeer* peer); - Ark_Int32 (*getErrorCode)(WebResourceErrorPeer* peer); + Ark_String (*getErrorInfo)(Ark_WebResourceError peer); + Ark_Int32 (*getErrorCode)(Ark_WebResourceError peer); } GENERATED_ArkUIWebResourceErrorAccessor; typedef struct GENERATED_ArkUIJsGeolocationAccessor { - void (*destroyPeer)(JsGeolocationPeer* peer); + void (*destroyPeer)(Ark_JsGeolocation peer); Ark_JsGeolocation (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*invoke)(JsGeolocationPeer* peer, + void (*invoke)(Ark_JsGeolocation peer, const Ark_String* origin, Ark_Boolean allow, Ark_Boolean retain); } GENERATED_ArkUIJsGeolocationAccessor; typedef struct GENERATED_ArkUIWebCookieAccessor { - void (*destroyPeer)(WebCookiePeer* peer); + void (*destroyPeer)(Ark_WebCookie peer); Ark_WebCookie (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setCookie)(WebCookiePeer* peer); - void (*saveCookie)(WebCookiePeer* peer); + void (*setCookie)(Ark_WebCookie peer); + void (*saveCookie)(Ark_WebCookie peer); } GENERATED_ArkUIWebCookieAccessor; typedef struct GENERATED_ArkUIEventResultAccessor { - void (*destroyPeer)(EventResultPeer* peer); + void (*destroyPeer)(Ark_EventResult peer); Ark_EventResult (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setGestureEventResult)(EventResultPeer* peer, + void (*setGestureEventResult)(Ark_EventResult peer, Ark_Boolean result); } GENERATED_ArkUIEventResultAccessor; typedef struct GENERATED_ArkUIWebControllerAccessor { - void (*destroyPeer)(WebControllerPeer* peer); + void (*destroyPeer)(Ark_WebController peer); Ark_WebController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*onInactive)(WebControllerPeer* peer); - void (*onActive)(WebControllerPeer* peer); - void (*zoom)(WebControllerPeer* peer, + void (*onInactive)(Ark_WebController peer); + void (*onActive)(Ark_WebController peer); + void (*zoom)(Ark_WebController peer, const Ark_Number* factor); - void (*clearHistory)(WebControllerPeer* peer); - void (*runJavaScript)(WebControllerPeer* peer, + void (*clearHistory)(Ark_WebController peer); + void (*runJavaScript)(Ark_WebController peer, const Ark_Literal_String_script_Callback_String_Void_callback_* options); - void (*loadData)(WebControllerPeer* peer, + void (*loadData)(Ark_WebController peer, const Ark_Literal_String_baseUrl_data_encoding_historyUrl_mimeType* options); - void (*loadUrl)(WebControllerPeer* peer, + void (*loadUrl)(Ark_WebController peer, const Ark_Literal_Union_String_Resource_url_Array_Header_headers* options); - void (*refresh)(WebControllerPeer* peer); - void (*stop)(WebControllerPeer* peer); - void (*registerJavaScriptProxy)(WebControllerPeer* peer, + void (*refresh)(Ark_WebController peer); + void (*stop)(Ark_WebController peer); + void (*registerJavaScriptProxy)(Ark_WebController peer, const Ark_Literal_Object_object__String_name_Array_String_methodList* options); - void (*deleteJavaScriptRegister)(WebControllerPeer* peer, + void (*deleteJavaScriptRegister)(Ark_WebController peer, const Ark_String* name); - Ark_NativePointer (*getHitTest)(WebControllerPeer* peer); - void (*requestFocus)(WebControllerPeer* peer); - Ark_Boolean (*accessBackward)(WebControllerPeer* peer); - Ark_Boolean (*accessForward)(WebControllerPeer* peer); - Ark_Boolean (*accessStep)(WebControllerPeer* peer, + Ark_HitTestType (*getHitTest)(Ark_WebController peer); + void (*requestFocus)(Ark_WebController peer); + Ark_Boolean (*accessBackward)(Ark_WebController peer); + Ark_Boolean (*accessForward)(Ark_WebController peer); + Ark_Boolean (*accessStep)(Ark_WebController peer, const Ark_Number* step); - void (*backward)(WebControllerPeer* peer); - void (*forward)(WebControllerPeer* peer); - Ark_WebCookie (*getCookieManager)(WebControllerPeer* peer); + void (*backward)(Ark_WebController peer); + void (*forward)(Ark_WebController peer); + Ark_WebCookie (*getCookieManager)(Ark_WebController peer); } GENERATED_ArkUIWebControllerAccessor; typedef struct GENERATED_ArkUIXComponentControllerAccessor { - void (*destroyPeer)(XComponentControllerPeer* peer); + void (*destroyPeer)(Ark_XComponentController peer); Ark_XComponentController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*getXComponentSurfaceId)(XComponentControllerPeer* peer); - Ark_NativePointer (*getXComponentContext)(XComponentControllerPeer* peer); - void (*setXComponentSurfaceSize)(XComponentControllerPeer* peer, + Ark_String (*getXComponentSurfaceId)(Ark_XComponentController peer); + Ark_CustomObject (*getXComponentContext)(Ark_XComponentController peer); + void (*setXComponentSurfaceSize)(Ark_XComponentController peer, const Ark_Literal_Number_surfaceHeight_surfaceWidth* value); - void (*setXComponentSurfaceRect)(XComponentControllerPeer* peer, + void (*setXComponentSurfaceRect)(Ark_XComponentController peer, const Ark_SurfaceRect* rect); - Ark_NativePointer (*getXComponentSurfaceRect)(XComponentControllerPeer* peer); - void (*setXComponentSurfaceRotation)(XComponentControllerPeer* peer, + Ark_SurfaceRect (*getXComponentSurfaceRect)(Ark_XComponentController peer); + void (*setXComponentSurfaceRotation)(Ark_XComponentController peer, const Ark_SurfaceRotationOptions* rotationOptions); - Ark_NativePointer (*getXComponentSurfaceRotation)(XComponentControllerPeer* peer); - void (*onSurfaceCreated)(XComponentControllerPeer* peer, + Ark_SurfaceRotationOptions (*getXComponentSurfaceRotation)(Ark_XComponentController peer); + void (*onSurfaceCreated)(Ark_XComponentController peer, const Ark_String* surfaceId); - void (*onSurfaceChanged)(XComponentControllerPeer* peer, + void (*onSurfaceChanged)(Ark_XComponentController peer, const Ark_String* surfaceId, const Ark_SurfaceRect* rect); - void (*onSurfaceDestroyed)(XComponentControllerPeer* peer, + void (*onSurfaceDestroyed)(Ark_XComponentController peer, const Ark_String* surfaceId); - void (*startImageAnalyzer)(XComponentControllerPeer* peer, + void (*startImageAnalyzer)(Ark_XComponentController peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*stopImageAnalyzer)(XComponentControllerPeer* peer); + void (*stopImageAnalyzer)(Ark_XComponentController peer); } GENERATED_ArkUIXComponentControllerAccessor; typedef struct GENERATED_ArkUIWaterFlowSectionsAccessor { - void (*destroyPeer)(WaterFlowSectionsPeer* peer); + void (*destroyPeer)(Ark_WaterFlowSections peer); Ark_WaterFlowSections (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_Boolean (*splice)(WaterFlowSectionsPeer* peer, + Ark_Boolean (*splice)(Ark_WaterFlowSections peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_SectionOptions* sections); - Ark_Boolean (*push)(WaterFlowSectionsPeer* peer, + Ark_Boolean (*push)(Ark_WaterFlowSections peer, const Ark_SectionOptions* section); - Ark_Boolean (*update)(WaterFlowSectionsPeer* peer, + Ark_Boolean (*update)(Ark_WaterFlowSections peer, const Ark_Number* sectionIndex, const Ark_SectionOptions* section); - void (*values)(WaterFlowSectionsPeer* peer); - Ark_Int32 (*length)(WaterFlowSectionsPeer* peer); + Array_SectionOptions (*values)(Ark_WaterFlowSections peer); + Ark_Int32 (*length)(Ark_WaterFlowSections peer); } GENERATED_ArkUIWaterFlowSectionsAccessor; typedef struct GENERATED_ArkUIUIExtensionProxyAccessor { - void (*destroyPeer)(UIExtensionProxyPeer* peer); + void (*destroyPeer)(Ark_UIExtensionProxy peer); Ark_UIExtensionProxy (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*send)(UIExtensionProxyPeer* peer, + void (*send)(Ark_UIExtensionProxy peer, const Map_String_CustomObject* data); - Ark_NativePointer (*sendSync)(UIExtensionProxyPeer* peer, - const Map_String_CustomObject* data); - void (*onAsyncReceiverRegister)(UIExtensionProxyPeer* peer, + Map_String_CustomObject (*sendSync)(Ark_UIExtensionProxy peer, + const Map_String_CustomObject* data); + void (*onAsyncReceiverRegister)(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_); - void (*onSyncReceiverRegister)(UIExtensionProxyPeer* peer, + void (*onSyncReceiverRegister)(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_); - void (*offAsyncReceiverRegister)(UIExtensionProxyPeer* peer, + void (*offAsyncReceiverRegister)(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_); - void (*offSyncReceiverRegister)(UIExtensionProxyPeer* peer, + void (*offSyncReceiverRegister)(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_); } GENERATED_ArkUIUIExtensionProxyAccessor; typedef struct GENERATED_ArkUIStyledStringAccessor { - void (*destroyPeer)(StyledStringPeer* peer); + void (*destroyPeer)(Ark_StyledString peer); Ark_StyledString (*ctor)(const Ark_Union_String_ImageAttachment_CustomSpan* value, const Opt_Array_StyleOptions* styles); Ark_NativePointer (*getFinalizer)(); - void (*getString)(StyledStringPeer* peer); - void (*getStyles)(StyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - const Opt_StyledStringKey* styledKey); - Ark_Boolean (*equals)(StyledStringPeer* peer, + Ark_String (*getString)(Ark_StyledString peer); + Array_SpanStyle (*getStyles)(Ark_StyledString peer, + const Ark_Number* start, + const Ark_Number* length, + const Opt_StyledStringKey* styledKey); + Ark_Boolean (*equals)(Ark_StyledString peer, Ark_StyledString other); - Ark_StyledString (*subStyledString)(StyledStringPeer* peer, + Ark_StyledString (*subStyledString)(Ark_StyledString peer, const Ark_Number* start, const Opt_Number* length); void (*fromHtml)(const Ark_String* html, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise); - void (*toHtml)(Ark_StyledString styledString); - void (*marshalling)(Ark_StyledString styledString); + Ark_String (*toHtml)(Ark_StyledString styledString); + Ark_Buffer (*marshalling)(Ark_StyledString styledString); void (*unmarshalling)(const Ark_Buffer* buffer, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise); - Ark_Int32 (*getLength)(StyledStringPeer* peer); + Ark_Int32 (*getLength)(Ark_StyledString peer); } GENERATED_ArkUIStyledStringAccessor; typedef struct GENERATED_ArkUITextStyle_styled_stringAccessor { - void (*destroyPeer)(TextStyle_styled_stringPeer* peer); + void (*destroyPeer)(Ark_TextStyle_styled_string peer); Ark_TextStyle_styled_string (*ctor)(const Opt_TextStyleInterface* value); Ark_NativePointer (*getFinalizer)(); - void (*getFontFamily)(TextStyle_styled_stringPeer* peer); - Ark_Int32 (*getFontSize)(TextStyle_styled_stringPeer* peer); - Ark_Int32 (*getFontWeight)(TextStyle_styled_stringPeer* peer); - Ark_NativePointer (*getFontStyle)(TextStyle_styled_stringPeer* peer); + Ark_String (*getFontFamily)(Ark_TextStyle_styled_string peer); + Ark_Int32 (*getFontSize)(Ark_TextStyle_styled_string peer); + Ark_Int32 (*getFontWeight)(Ark_TextStyle_styled_string peer); + Ark_FontStyle (*getFontStyle)(Ark_TextStyle_styled_string peer); } GENERATED_ArkUITextStyle_styled_stringAccessor; typedef struct GENERATED_ArkUIDecorationStyleAccessor { - void (*destroyPeer)(DecorationStylePeer* peer); + void (*destroyPeer)(Ark_DecorationStyle peer); Ark_DecorationStyle (*ctor)(const Ark_DecorationStyleInterface* value); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getType)(DecorationStylePeer* peer); - Ark_NativePointer (*getStyle)(DecorationStylePeer* peer); + Ark_TextDecorationType (*getType)(Ark_DecorationStyle peer); + Ark_TextDecorationStyle (*getStyle)(Ark_DecorationStyle peer); } GENERATED_ArkUIDecorationStyleAccessor; typedef struct GENERATED_ArkUIBaselineOffsetStyleAccessor { - void (*destroyPeer)(BaselineOffsetStylePeer* peer); + void (*destroyPeer)(Ark_BaselineOffsetStyle peer); Ark_BaselineOffsetStyle (*ctor)(Ark_LengthMetrics value); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getBaselineOffset)(BaselineOffsetStylePeer* peer); + Ark_Int32 (*getBaselineOffset)(Ark_BaselineOffsetStyle peer); } GENERATED_ArkUIBaselineOffsetStyleAccessor; typedef struct GENERATED_ArkUILetterSpacingStyleAccessor { - void (*destroyPeer)(LetterSpacingStylePeer* peer); + void (*destroyPeer)(Ark_LetterSpacingStyle peer); Ark_LetterSpacingStyle (*ctor)(Ark_LengthMetrics value); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getLetterSpacing)(LetterSpacingStylePeer* peer); + Ark_Int32 (*getLetterSpacing)(Ark_LetterSpacingStyle peer); } GENERATED_ArkUILetterSpacingStyleAccessor; typedef struct GENERATED_ArkUITextShadowStyleAccessor { - void (*destroyPeer)(TextShadowStylePeer* peer); + void (*destroyPeer)(Ark_TextShadowStyle peer); Ark_TextShadowStyle (*ctor)(const Ark_Union_ShadowOptions_Array_ShadowOptions* value); Ark_NativePointer (*getFinalizer)(); + Array_ShadowOptions (*getTextShadow)(Ark_TextShadowStyle peer); } GENERATED_ArkUITextShadowStyleAccessor; typedef struct GENERATED_ArkUIBackgroundColorStyleAccessor { - void (*destroyPeer)(BackgroundColorStylePeer* peer); + void (*destroyPeer)(Ark_BackgroundColorStyle peer); Ark_BackgroundColorStyle (*ctor)(const Ark_TextBackgroundStyle* textBackgroundStyle); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUIBackgroundColorStyleAccessor; typedef struct GENERATED_ArkUIGestureStyleAccessor { - void (*destroyPeer)(GestureStylePeer* peer); + void (*destroyPeer)(Ark_GestureStyle peer); Ark_GestureStyle (*ctor)(const Opt_GestureStyleInterface* value); Ark_NativePointer (*getFinalizer)(); } GENERATED_ArkUIGestureStyleAccessor; typedef struct GENERATED_ArkUIParagraphStyleAccessor { - void (*destroyPeer)(ParagraphStylePeer* peer); + void (*destroyPeer)(Ark_ParagraphStyle peer); Ark_ParagraphStyle (*ctor)(const Opt_ParagraphStyleInterface* value); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getTextAlign)(ParagraphStylePeer* peer); - Ark_Int32 (*getTextIndent)(ParagraphStylePeer* peer); - Ark_Int32 (*getMaxLines)(ParagraphStylePeer* peer); - Ark_NativePointer (*getOverflow)(ParagraphStylePeer* peer); - Ark_NativePointer (*getWordBreak)(ParagraphStylePeer* peer); + Ark_TextAlign (*getTextAlign)(Ark_ParagraphStyle peer); + Ark_Int32 (*getTextIndent)(Ark_ParagraphStyle peer); + Ark_Int32 (*getMaxLines)(Ark_ParagraphStyle peer); + Ark_TextOverflow (*getOverflow)(Ark_ParagraphStyle peer); + Ark_WordBreak (*getWordBreak)(Ark_ParagraphStyle peer); } GENERATED_ArkUIParagraphStyleAccessor; typedef struct GENERATED_ArkUILineHeightStyleAccessor { - void (*destroyPeer)(LineHeightStylePeer* peer); + void (*destroyPeer)(Ark_LineHeightStyle peer); Ark_LineHeightStyle (*ctor)(Ark_LengthMetrics lineHeight); Ark_NativePointer (*getFinalizer)(); - Ark_Int32 (*getLineHeight)(LineHeightStylePeer* peer); + Ark_Int32 (*getLineHeight)(Ark_LineHeightStyle peer); } GENERATED_ArkUILineHeightStyleAccessor; typedef struct GENERATED_ArkUIUrlStyleAccessor { - void (*destroyPeer)(UrlStylePeer* peer); + void (*destroyPeer)(Ark_UrlStyle peer); Ark_UrlStyle (*ctor)(const Ark_String* url); Ark_NativePointer (*getFinalizer)(); - void (*getUrl)(UrlStylePeer* peer); + Ark_String (*getUrl)(Ark_UrlStyle peer); } GENERATED_ArkUIUrlStyleAccessor; typedef struct GENERATED_ArkUIMutableStyledStringAccessor { - void (*destroyPeer)(MutableStyledStringPeer* peer); + void (*destroyPeer)(Ark_MutableStyledString peer); Ark_MutableStyledString (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*replaceString)(MutableStyledStringPeer* peer, + void (*replaceString)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, const Ark_String* other); - void (*insertString)(MutableStyledStringPeer* peer, + void (*insertString)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_String* other); - void (*removeString)(MutableStyledStringPeer* peer, + void (*removeString)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length); - void (*replaceStyle)(MutableStyledStringPeer* peer, + void (*replaceStyle)(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle); - void (*setStyle)(MutableStyledStringPeer* peer, + void (*setStyle)(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle); - void (*removeStyle)(MutableStyledStringPeer* peer, + void (*removeStyle)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledStringKey styledKey); - void (*removeStyles)(MutableStyledStringPeer* peer, + void (*removeStyles)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length); - void (*clearStyles)(MutableStyledStringPeer* peer); - void (*replaceStyledString)(MutableStyledStringPeer* peer, + void (*clearStyles)(Ark_MutableStyledString peer); + void (*replaceStyledString)(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledString other); - void (*insertStyledString)(MutableStyledStringPeer* peer, + void (*insertStyledString)(Ark_MutableStyledString peer, const Ark_Number* start, Ark_StyledString other); - void (*appendStyledString)(MutableStyledStringPeer* peer, + void (*appendStyledString)(Ark_MutableStyledString peer, Ark_StyledString other); } GENERATED_ArkUIMutableStyledStringAccessor; typedef struct GENERATED_ArkUIImageAttachmentAccessor { - void (*destroyPeer)(ImageAttachmentPeer* peer); + void (*destroyPeer)(Ark_ImageAttachment peer); Ark_ImageAttachment (*ctor)(const Ark_ImageAttachmentInterface* value); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*getVerticalAlign)(ImageAttachmentPeer* peer); - Ark_NativePointer (*getObjectFit)(ImageAttachmentPeer* peer); + Ark_ImageSpanAlignment (*getVerticalAlign)(Ark_ImageAttachment peer); + Ark_ImageFit (*getObjectFit)(Ark_ImageAttachment peer); } GENERATED_ArkUIImageAttachmentAccessor; typedef struct GENERATED_ArkUICustomSpanAccessor { - void (*destroyPeer)(CustomSpanPeer* peer); + void (*destroyPeer)(Ark_CustomSpan peer); Ark_CustomSpan (*ctor)(); Ark_NativePointer (*getFinalizer)(); - Ark_NativePointer (*onMeasure)(CustomSpanPeer* peer, - const Ark_CustomSpanMeasureInfo* measureInfo); - void (*onDraw)(CustomSpanPeer* peer, + Ark_CustomSpanMetrics (*onMeasure)(Ark_CustomSpan peer, + const Ark_CustomSpanMeasureInfo* measureInfo); + void (*onDraw)(Ark_CustomSpan peer, const Ark_DrawContext* context, const Ark_CustomSpanDrawInfo* drawInfo); - void (*invalidate)(CustomSpanPeer* peer); + void (*invalidate)(Ark_CustomSpan peer); } GENERATED_ArkUICustomSpanAccessor; typedef struct GENERATED_ArkUILinearIndicatorControllerAccessor { - void (*destroyPeer)(LinearIndicatorControllerPeer* peer); + void (*destroyPeer)(Ark_LinearIndicatorController peer); Ark_LinearIndicatorController (*ctor)(); Ark_NativePointer (*getFinalizer)(); - void (*setProgress)(LinearIndicatorControllerPeer* peer, + void (*setProgress)(Ark_LinearIndicatorController peer, const Ark_Number* index, const Ark_Number* progress); - void (*start)(LinearIndicatorControllerPeer* peer, + void (*start)(Ark_LinearIndicatorController peer, const Opt_LinearIndicatorStartOptions* options); - void (*pause)(LinearIndicatorControllerPeer* peer); - void (*stop)(LinearIndicatorControllerPeer* peer); + void (*pause)(Ark_LinearIndicatorController peer); + void (*stop)(Ark_LinearIndicatorController peer); } GENERATED_ArkUILinearIndicatorControllerAccessor; -typedef struct GENERATED_ArkUIGlobalScope_inspectorAccessor { - void (*destroyPeer)(GlobalScope_inspectorPeer* peer); - Ark_NativePointer (*getInspectorNodes)(); - Ark_NativePointer (*getInspectorNodeById)(const Ark_Number* id); +typedef struct GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor { + void (*destroyPeer)(Ark_GlobalScope_Profiler_inspector peer); void (*registerVsyncCallback)(const Callback_String_Void* callback_); void (*unregisterVsyncCallback)(); - void (*setAppBgColor)(const Ark_String* value); -} GENERATED_ArkUIGlobalScope_inspectorAccessor; +} GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor; typedef struct GENERATED_ArkUIAbilityComponentEventsReceiver { void (*onConnect)(Ark_Int32 nodeId); @@ -22186,6 +22665,7 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIAnimationExtenderAccessor* (*getAnimationExtenderAccessor)(); const GENERATED_ArkUIUnifiedDataAccessor* (*getUnifiedDataAccessor)(); const GENERATED_ArkUILazyForEachOpsAccessor* (*getLazyForEachOpsAccessor)(); + const GENERATED_ArkUISystemOpsAccessor* (*getSystemOpsAccessor)(); const GENERATED_ArkUIDrawingCanvasAccessor* (*getDrawingCanvasAccessor)(); const GENERATED_ArkUILengthMetricsAccessor* (*getLengthMetricsAccessor)(); const GENERATED_ArkUIWebviewControllerAccessor* (*getWebviewControllerAccessor)(); @@ -22212,10 +22692,14 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIRenderingContextSettingsAccessor* (*getRenderingContextSettingsAccessor)(); const GENERATED_ArkUICanvasRendererAccessor* (*getCanvasRendererAccessor)(); const GENERATED_ArkUICanvasRenderingContext2DAccessor* (*getCanvasRenderingContext2DAccessor)(); + const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor* (*getOffscreenCanvasRenderingContext2DAccessor)(); + const GENERATED_ArkUIOffscreenCanvasAccessor* (*getOffscreenCanvasAccessor)(); const GENERATED_ArkUIDrawingRenderingContextAccessor* (*getDrawingRenderingContextAccessor)(); const GENERATED_ArkUIICurveAccessor* (*getICurveAccessor)(); const GENERATED_ArkUIDrawModifierAccessor* (*getDrawModifierAccessor)(); const GENERATED_ArkUITransitionEffectAccessor* (*getTransitionEffectAccessor)(); + const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* (*getGlobalScope_focusControl_commonAccessor)(); + const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* (*getGlobalScope_cursorControl_commonAccessor)(); const GENERATED_ArkUIBaseEventAccessor* (*getBaseEventAccessor)(); const GENERATED_ArkUIClickEventAccessor* (*getClickEventAccessor)(); const GENERATED_ArkUIHoverEventAccessor* (*getHoverEventAccessor)(); @@ -22233,7 +22717,6 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIChildrenMainSizeAccessor* (*getChildrenMainSizeAccessor)(); const GENERATED_ArkUIUICommonEventAccessor* (*getUICommonEventAccessor)(); const GENERATED_ArkUIGestureModifierAccessor* (*getGestureModifierAccessor)(); - const GENERATED_ArkUIGlobalScope_commonAccessor* (*getGlobalScope_commonAccessor)(); const GENERATED_ArkUIContextMenuAccessor* (*getContextMenuAccessor)(); const GENERATED_ArkUICustomDialogControllerAccessor* (*getCustomDialogControllerAccessor)(); const GENERATED_ArkUILinearGradientAccessor* (*getLinearGradientAccessor)(); @@ -22331,7 +22814,7 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUIImageAttachmentAccessor* (*getImageAttachmentAccessor)(); const GENERATED_ArkUICustomSpanAccessor* (*getCustomSpanAccessor)(); const GENERATED_ArkUILinearIndicatorControllerAccessor* (*getLinearIndicatorControllerAccessor)(); - const GENERATED_ArkUIGlobalScope_inspectorAccessor* (*getGlobalScope_inspectorAccessor)(); + const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor* (*getGlobalScope_Profiler_inspectorAccessor)(); } GENERATED_ArkUIAccessors; typedef struct GENERATED_ArkUIGraphicsAPI { diff --git a/arkoala/framework/native/src/generated/bridge_custom.cc b/arkoala/framework/native/src/generated/bridge_custom.cc index 75972006fedf2a8e7f26ec881e46c34714a65f2b..a4db546e786063fee1d51300b345e00b835ca383 100644 --- a/arkoala/framework/native/src/generated/bridge_custom.cc +++ b/arkoala/framework/native/src/generated/bridge_custom.cc @@ -459,7 +459,7 @@ KVMObjectHandle impl_LoadUserView(KVMContext vm, const KStringPtr& viewClass, co return nullptr; } return (KVMObjectHandle)result; -#elif KOALA_USE_PANDA_VM +#elif KOALA_ETS_NAPI EtsEnv* env = reinterpret_cast(vm); std:: string className(viewClass.c_str()); // TODO: hack, fix it! @@ -499,6 +499,9 @@ KVMObjectHandle impl_LoadUserView(KVMContext vm, const KStringPtr& viewClass, co return nullptr; } return (KVMObjectHandle)result; +#elif KOALA_ANI + fprintf(stderr, "LoadUserView() is not implemented yet\n"); + return nullptr; #else fprintf(stderr, "LoadUserView() is not implemented yet\n"); return nullptr; diff --git a/arkoala/framework/native/src/generated/bridge_generated.cc b/arkoala/framework/native/src/generated/bridge_generated.cc index f259db682ad0f719e05f1c0d1cdc2ac6e25845a7..6852d0ddee5145a9ade681a555b461c15c07341c 100644 --- a/arkoala/framework/native/src/generated/bridge_generated.cc +++ b/arkoala/framework/native/src/generated/bridge_generated.cc @@ -17094,15 +17094,17 @@ Ark_NativePointer impl_UnifiedData_getFinalizer() { } KOALA_INTEROP_0(UnifiedData_getFinalizer, Ark_NativePointer) Ark_Boolean impl_UnifiedData_hasType(Ark_NativePointer thisPtr, const KStringPtr& UnifiedData_type) { - UnifiedDataPeer* self = reinterpret_cast(thisPtr); + Ark_UnifiedData self = reinterpret_cast(thisPtr); return GetAccessors()->getUnifiedDataAccessor()->hasType(self, (const Ark_String*) (&UnifiedData_type)); } KOALA_INTEROP_2(UnifiedData_hasType, Ark_Boolean, Ark_NativePointer, KStringPtr) -void impl_UnifiedData_getTypes(Ark_NativePointer thisPtr) { - UnifiedDataPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getUnifiedDataAccessor()->getTypes(self); +Ark_NativePointer impl_UnifiedData_getTypes(Ark_NativePointer thisPtr) { + Ark_UnifiedData self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getUnifiedDataAccessor()->getTypes(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(UnifiedData_getTypes, Ark_NativePointer) +KOALA_INTEROP_1(UnifiedData_getTypes, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_LazyForEachOps_ctor() { return GetAccessors()->getLazyForEachOpsAccessor()->ctor(); } @@ -17129,6 +17131,22 @@ void impl_LazyForEachOps_Prepare(Ark_NativePointer node) { GetAccessors()->getLazyForEachOpsAccessor()->Prepare(node); } KOALA_INTEROP_V1(LazyForEachOps_Prepare, Ark_NativePointer) +Ark_NativePointer impl_SystemOps_ctor() { + return GetAccessors()->getSystemOpsAccessor()->ctor(); +} +KOALA_INTEROP_0(SystemOps_ctor, Ark_NativePointer) +Ark_NativePointer impl_SystemOps_getFinalizer() { + return GetAccessors()->getSystemOpsAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(SystemOps_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_SystemOps_StartFrame() { + return GetAccessors()->getSystemOpsAccessor()->StartFrame(); +} +KOALA_INTEROP_0(SystemOps_StartFrame, Ark_NativePointer) +void impl_SystemOps_EndFrame(Ark_NativePointer root) { + GetAccessors()->getSystemOpsAccessor()->EndFrame(root); +} +KOALA_INTEROP_V1(SystemOps_EndFrame, Ark_NativePointer) Ark_NativePointer impl_DrawingCanvas_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_PixelMap pixelmap_value = static_cast(thisDeserializer.readPixelMap());; @@ -17140,7 +17158,7 @@ Ark_NativePointer impl_DrawingCanvas_getFinalizer() { } KOALA_INTEROP_0(DrawingCanvas_getFinalizer, Ark_NativePointer) void impl_DrawingCanvas_drawRect(Ark_NativePointer thisPtr, KInteropNumber left, KInteropNumber top, KInteropNumber right, KInteropNumber bottom) { - DrawingCanvasPeer* self = reinterpret_cast(thisPtr); + Ark_DrawingCanvas self = reinterpret_cast(thisPtr); GetAccessors()->getDrawingCanvasAccessor()->drawRect(self, (const Ark_Number*) (&left), (const Ark_Number*) (&top), (const Ark_Number*) (&right), (const Ark_Number*) (&bottom)); } KOALA_INTEROP_V5(DrawingCanvas_drawRect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) @@ -17162,23 +17180,23 @@ Ark_NativePointer impl_LengthMetrics_resource(uint8_t* thisArray, int32_t thisLe return GetAccessors()->getLengthMetricsAccessor()->resource((const Ark_Resource*)&value_value); } KOALA_INTEROP_2(LengthMetrics_resource, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_LengthMetrics_getUnit(Ark_NativePointer thisPtr) { - LengthMetricsPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getLengthMetricsAccessor()->getUnit(self); +void impl_LengthMetrics_getUnit(Ark_NativePointer thisPtr) { + Ark_LengthMetrics self = reinterpret_cast(thisPtr); + GetAccessors()->getLengthMetricsAccessor()->getUnit(self); } -KOALA_INTEROP_1(LengthMetrics_getUnit, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(LengthMetrics_getUnit, Ark_NativePointer) void impl_LengthMetrics_setUnit(Ark_NativePointer thisPtr, Ark_Int32 unit) { - LengthMetricsPeer* self = reinterpret_cast(thisPtr); + Ark_LengthMetrics self = reinterpret_cast(thisPtr); GetAccessors()->getLengthMetricsAccessor()->setUnit(self, static_cast(unit)); } KOALA_INTEROP_V2(LengthMetrics_setUnit, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_LengthMetrics_getValue(Ark_NativePointer thisPtr) { - LengthMetricsPeer* self = reinterpret_cast(thisPtr); + Ark_LengthMetrics self = reinterpret_cast(thisPtr); return GetAccessors()->getLengthMetricsAccessor()->getValue(self); } KOALA_INTEROP_1(LengthMetrics_getValue, Ark_Int32, Ark_NativePointer) void impl_LengthMetrics_setValue(Ark_NativePointer thisPtr, KInteropNumber value) { - LengthMetricsPeer* self = reinterpret_cast(thisPtr); + Ark_LengthMetrics self = reinterpret_cast(thisPtr); GetAccessors()->getLengthMetricsAccessor()->setValue(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(LengthMetrics_setValue, Ark_NativePointer, KInteropNumber) @@ -17195,7 +17213,7 @@ void impl_WebviewController_initializeWebEngine() { } KOALA_INTEROP_V0(WebviewController_initializeWebEngine) void impl_WebviewController_loadUrl(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebviewControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebviewController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 url_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_String_Resource url_value_buf = {}; @@ -17292,19 +17310,19 @@ Ark_NativePointer impl_FrameNode_getFinalizer() { } KOALA_INTEROP_0(FrameNode_getFinalizer, Ark_NativePointer) Ark_Boolean impl_FrameNode_isModifiable(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->isModifiable(self); } KOALA_INTEROP_1(FrameNode_isModifiable, Ark_Boolean, Ark_NativePointer) void impl_FrameNode_appendChild(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_FrameNode node_value = static_cast(thisDeserializer.readFrameNode());; GetAccessors()->getFrameNodeAccessor()->appendChild(self, node_value); } KOALA_INTEROP_V3(FrameNode_appendChild, Ark_NativePointer, uint8_t*, int32_t) void impl_FrameNode_insertChildAfter(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_FrameNode child_value = static_cast(thisDeserializer.readFrameNode());; Ark_FrameNode sibling_value = static_cast(thisDeserializer.readFrameNode());; @@ -17312,62 +17330,64 @@ void impl_FrameNode_insertChildAfter(Ark_NativePointer thisPtr, uint8_t* thisArr } KOALA_INTEROP_V3(FrameNode_insertChildAfter, Ark_NativePointer, uint8_t*, int32_t) void impl_FrameNode_removeChild(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_FrameNode node_value = static_cast(thisDeserializer.readFrameNode());; GetAccessors()->getFrameNodeAccessor()->removeChild(self, node_value); } KOALA_INTEROP_V3(FrameNode_removeChild, Ark_NativePointer, uint8_t*, int32_t) void impl_FrameNode_clearChildren(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); GetAccessors()->getFrameNodeAccessor()->clearChildren(self); } KOALA_INTEROP_V1(FrameNode_clearChildren, Ark_NativePointer) Ark_NativePointer impl_FrameNode_getChild(Ark_NativePointer thisPtr, KInteropNumber index) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getChild(self, (const Ark_Number*) (&index)); } KOALA_INTEROP_2(FrameNode_getChild, Ark_NativePointer, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_FrameNode_getFirstChild(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getFirstChild(self); } KOALA_INTEROP_1(FrameNode_getFirstChild, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_FrameNode_getNextSibling(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getNextSibling(self); } KOALA_INTEROP_1(FrameNode_getNextSibling, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_FrameNode_getPreviousSibling(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getPreviousSibling(self); } KOALA_INTEROP_1(FrameNode_getPreviousSibling, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_FrameNode_getParent(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getParent(self); } KOALA_INTEROP_1(FrameNode_getParent, Ark_NativePointer, Ark_NativePointer) Ark_Int32 impl_FrameNode_getChildrenCount(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getChildrenCount(self); } KOALA_INTEROP_1(FrameNode_getChildrenCount, Ark_Int32, Ark_NativePointer) void impl_FrameNode_dispose(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); GetAccessors()->getFrameNodeAccessor()->dispose(self); } KOALA_INTEROP_V1(FrameNode_dispose, Ark_NativePointer) Ark_Int32 impl_FrameNode_getOpacity(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); + Ark_FrameNode self = reinterpret_cast(thisPtr); return GetAccessors()->getFrameNodeAccessor()->getOpacity(self); } KOALA_INTEROP_1(FrameNode_getOpacity, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_FrameNode_getPositionToWindowWithTransform(Ark_NativePointer thisPtr) { - FrameNodePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getFrameNodeAccessor()->getPositionToWindowWithTransform(self); +KInteropReturnBuffer impl_FrameNode_getPositionToWindowWithTransform(Ark_NativePointer thisPtr) { + Ark_FrameNode self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writePosition(GetAccessors()->getFrameNodeAccessor()->getPositionToWindowWithTransform(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(FrameNode_getPositionToWindowWithTransform, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(FrameNode_getPositionToWindowWithTransform, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_PixelMap_ctor() { return GetAccessors()->getPixelMapAccessor()->ctor(); } @@ -17377,39 +17397,29 @@ Ark_NativePointer impl_PixelMap_getFinalizer() { } KOALA_INTEROP_0(PixelMap_getFinalizer, Ark_NativePointer) void impl_PixelMap_readPixelsToBufferSync(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - PixelMapPeer* self = reinterpret_cast(thisPtr); + Ark_PixelMap self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Buffer dst_value = static_cast(thisDeserializer.readBuffer());; GetAccessors()->getPixelMapAccessor()->readPixelsToBufferSync(self, (const Ark_Buffer*)&dst_value); } KOALA_INTEROP_V3(PixelMap_readPixelsToBufferSync, Ark_NativePointer, uint8_t*, int32_t) void impl_PixelMap_writeBufferToPixels(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - PixelMapPeer* self = reinterpret_cast(thisPtr); + Ark_PixelMap self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Buffer src_value = static_cast(thisDeserializer.readBuffer());; GetAccessors()->getPixelMapAccessor()->writeBufferToPixels(self, (const Ark_Buffer*)&src_value); } KOALA_INTEROP_V3(PixelMap_writeBufferToPixels, Ark_NativePointer, uint8_t*, int32_t) -Ark_Int32 impl_PixelMap_getIsEditable(Ark_NativePointer thisPtr) { - PixelMapPeer* self = reinterpret_cast(thisPtr); +Ark_Boolean impl_PixelMap_getIsEditable(Ark_NativePointer thisPtr) { + Ark_PixelMap self = reinterpret_cast(thisPtr); return GetAccessors()->getPixelMapAccessor()->getIsEditable(self); } -KOALA_INTEROP_1(PixelMap_getIsEditable, Ark_Int32, Ark_NativePointer) -void impl_PixelMap_setIsEditable(Ark_NativePointer thisPtr, Ark_Int32 isEditable) { - PixelMapPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getPixelMapAccessor()->setIsEditable(self, isEditable); -} -KOALA_INTEROP_V2(PixelMap_setIsEditable, Ark_NativePointer, Ark_Int32) -Ark_Int32 impl_PixelMap_getIsStrideAlignment(Ark_NativePointer thisPtr) { - PixelMapPeer* self = reinterpret_cast(thisPtr); +KOALA_INTEROP_1(PixelMap_getIsEditable, Ark_Boolean, Ark_NativePointer) +Ark_Boolean impl_PixelMap_getIsStrideAlignment(Ark_NativePointer thisPtr) { + Ark_PixelMap self = reinterpret_cast(thisPtr); return GetAccessors()->getPixelMapAccessor()->getIsStrideAlignment(self); } -KOALA_INTEROP_1(PixelMap_getIsStrideAlignment, Ark_Int32, Ark_NativePointer) -void impl_PixelMap_setIsStrideAlignment(Ark_NativePointer thisPtr, Ark_Int32 isStrideAlignment) { - PixelMapPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getPixelMapAccessor()->setIsStrideAlignment(self, isStrideAlignment); -} -KOALA_INTEROP_V2(PixelMap_setIsStrideAlignment, Ark_NativePointer, Ark_Int32) +KOALA_INTEROP_1(PixelMap_getIsStrideAlignment, Ark_Boolean, Ark_NativePointer) Ark_NativePointer impl_NavExtender_ctor() { return GetAccessors()->getNavExtenderAccessor()->ctor(); } @@ -17534,12 +17544,12 @@ Ark_NativePointer impl_CalendarController_getFinalizer() { } KOALA_INTEROP_0(CalendarController_getFinalizer, Ark_NativePointer) void impl_CalendarController_backToToday(Ark_NativePointer thisPtr) { - CalendarControllerPeer* self = reinterpret_cast(thisPtr); + Ark_CalendarController self = reinterpret_cast(thisPtr); GetAccessors()->getCalendarControllerAccessor()->backToToday(self); } KOALA_INTEROP_V1(CalendarController_backToToday, Ark_NativePointer) void impl_CalendarController_goTo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CalendarControllerPeer* self = reinterpret_cast(thisPtr); + Ark_CalendarController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Number_day_month_year value_value_buf = {}; value_value_buf.year = static_cast(thisDeserializer.readNumber()); @@ -17579,7 +17589,7 @@ Ark_NativePointer impl_CanvasGradient_getFinalizer() { } KOALA_INTEROP_0(CanvasGradient_getFinalizer, Ark_NativePointer) void impl_CanvasGradient_addColorStop(Ark_NativePointer thisPtr, KInteropNumber offset, const KStringPtr& color) { - CanvasGradientPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasGradient self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasGradientAccessor()->addColorStop(self, (const Ark_Number*) (&offset), (const Ark_String*) (&color)); } KOALA_INTEROP_V3(CanvasGradient_addColorStop, Ark_NativePointer, KInteropNumber, KStringPtr) @@ -17592,7 +17602,7 @@ Ark_NativePointer impl_CanvasPath_getFinalizer() { } KOALA_INTEROP_0(CanvasPath_getFinalizer, Ark_NativePointer) void impl_CanvasPath_arc(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber radius, KInteropNumber startAngle, KInteropNumber endAngle, uint8_t* thisArray, int32_t thisLength) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto counterclockwise_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean counterclockwise_value_buf = {}; @@ -17606,22 +17616,22 @@ void impl_CanvasPath_arc(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNu } KOALA_INTEROP_V8(CanvasPath_arc, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_CanvasPath_arcTo(Ark_NativePointer thisPtr, KInteropNumber x1, KInteropNumber y1, KInteropNumber x2, KInteropNumber y2, KInteropNumber radius) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->arcTo(self, (const Ark_Number*) (&x1), (const Ark_Number*) (&y1), (const Ark_Number*) (&x2), (const Ark_Number*) (&y2), (const Ark_Number*) (&radius)); } KOALA_INTEROP_V6(CanvasPath_arcTo, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasPath_bezierCurveTo(Ark_NativePointer thisPtr, KInteropNumber cp1x, KInteropNumber cp1y, KInteropNumber cp2x, KInteropNumber cp2y, KInteropNumber x, KInteropNumber y) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->bezierCurveTo(self, (const Ark_Number*) (&cp1x), (const Ark_Number*) (&cp1y), (const Ark_Number*) (&cp2x), (const Ark_Number*) (&cp2y), (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V7(CanvasPath_bezierCurveTo, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasPath_closePath(Ark_NativePointer thisPtr) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->closePath(self); } KOALA_INTEROP_V1(CanvasPath_closePath, Ark_NativePointer) void impl_CanvasPath_ellipse(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber radiusX, KInteropNumber radiusY, KInteropNumber rotation, KInteropNumber startAngle, KInteropNumber endAngle, uint8_t* thisArray, int32_t thisLength) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto counterclockwise_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean counterclockwise_value_buf = {}; @@ -17635,22 +17645,22 @@ void impl_CanvasPath_ellipse(Ark_NativePointer thisPtr, KInteropNumber x, KInter } KOALA_INTEROP_V10(CanvasPath_ellipse, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_CanvasPath_lineTo(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->lineTo(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V3(CanvasPath_lineTo, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_CanvasPath_moveTo(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->moveTo(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V3(CanvasPath_moveTo, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_CanvasPath_quadraticCurveTo(Ark_NativePointer thisPtr, KInteropNumber cpx, KInteropNumber cpy, KInteropNumber x, KInteropNumber y) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->quadraticCurveTo(self, (const Ark_Number*) (&cpx), (const Ark_Number*) (&cpy), (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V5(CanvasPath_quadraticCurveTo, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasPath_rect(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber w, KInteropNumber h) { - CanvasPathPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPath self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasPathAccessor()->rect(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Ark_Number*) (&w), (const Ark_Number*) (&h)); } KOALA_INTEROP_V5(CanvasPath_rect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) @@ -17663,7 +17673,7 @@ Ark_NativePointer impl_Path2D_getFinalizer() { } KOALA_INTEROP_0(Path2D_getFinalizer, Ark_NativePointer) void impl_Path2D_addPath(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Path2DPeer* self = reinterpret_cast(thisPtr); + Ark_Path2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Path2D path_value = static_cast(thisDeserializer.readPath2D());; const auto transform_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -17686,7 +17696,7 @@ Ark_NativePointer impl_CanvasPattern_getFinalizer() { } KOALA_INTEROP_0(CanvasPattern_getFinalizer, Ark_NativePointer) void impl_CanvasPattern_setTransform(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasPatternPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasPattern self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto transform_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Matrix2D transform_value_buf = {}; @@ -17708,17 +17718,17 @@ Ark_NativePointer impl_ImageBitmap_getFinalizer() { } KOALA_INTEROP_0(ImageBitmap_getFinalizer, Ark_NativePointer) void impl_ImageBitmap_close(Ark_NativePointer thisPtr) { - ImageBitmapPeer* self = reinterpret_cast(thisPtr); + Ark_ImageBitmap self = reinterpret_cast(thisPtr); GetAccessors()->getImageBitmapAccessor()->close(self); } KOALA_INTEROP_V1(ImageBitmap_close, Ark_NativePointer) Ark_Int32 impl_ImageBitmap_getHeight(Ark_NativePointer thisPtr) { - ImageBitmapPeer* self = reinterpret_cast(thisPtr); + Ark_ImageBitmap self = reinterpret_cast(thisPtr); return GetAccessors()->getImageBitmapAccessor()->getHeight(self); } KOALA_INTEROP_1(ImageBitmap_getHeight, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_ImageBitmap_getWidth(Ark_NativePointer thisPtr) { - ImageBitmapPeer* self = reinterpret_cast(thisPtr); + Ark_ImageBitmap self = reinterpret_cast(thisPtr); return GetAccessors()->getImageBitmapAccessor()->getWidth(self); } KOALA_INTEROP_1(ImageBitmap_getWidth, Ark_Int32, Ark_NativePointer) @@ -17740,12 +17750,12 @@ Ark_NativePointer impl_ImageData_getFinalizer() { } KOALA_INTEROP_0(ImageData_getFinalizer, Ark_NativePointer) Ark_Int32 impl_ImageData_getHeight(Ark_NativePointer thisPtr) { - ImageDataPeer* self = reinterpret_cast(thisPtr); + Ark_ImageData self = reinterpret_cast(thisPtr); return GetAccessors()->getImageDataAccessor()->getHeight(self); } KOALA_INTEROP_1(ImageData_getHeight, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_ImageData_getWidth(Ark_NativePointer thisPtr) { - ImageDataPeer* self = reinterpret_cast(thisPtr); + Ark_ImageData self = reinterpret_cast(thisPtr); return GetAccessors()->getImageDataAccessor()->getWidth(self); } KOALA_INTEROP_1(ImageData_getWidth, Ark_Int32, Ark_NativePointer) @@ -17767,12 +17777,12 @@ Ark_NativePointer impl_RenderingContextSettings_getFinalizer() { } KOALA_INTEROP_0(RenderingContextSettings_getFinalizer, Ark_NativePointer) Ark_Boolean impl_RenderingContextSettings_getAntialias(Ark_NativePointer thisPtr) { - RenderingContextSettingsPeer* self = reinterpret_cast(thisPtr); + Ark_RenderingContextSettings self = reinterpret_cast(thisPtr); return GetAccessors()->getRenderingContextSettingsAccessor()->getAntialias(self); } KOALA_INTEROP_1(RenderingContextSettings_getAntialias, Ark_Boolean, Ark_NativePointer) void impl_RenderingContextSettings_setAntialias(Ark_NativePointer thisPtr, Ark_Boolean antialias) { - RenderingContextSettingsPeer* self = reinterpret_cast(thisPtr); + Ark_RenderingContextSettings self = reinterpret_cast(thisPtr); GetAccessors()->getRenderingContextSettingsAccessor()->setAntialias(self, antialias); } KOALA_INTEROP_V2(RenderingContextSettings_setAntialias, Ark_NativePointer, Ark_Boolean) @@ -17785,7 +17795,7 @@ Ark_NativePointer impl_CanvasRenderer_getFinalizer() { } KOALA_INTEROP_0(CanvasRenderer_getFinalizer, Ark_NativePointer) void impl_CanvasRenderer_drawImage0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, KInteropNumber dx, KInteropNumber dy) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 image_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_ImageBitmap_PixelMap image_value_buf = {}; @@ -17806,7 +17816,7 @@ void impl_CanvasRenderer_drawImage0(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V5(CanvasRenderer_drawImage0, Ark_NativePointer, uint8_t*, int32_t, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_drawImage1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, KInteropNumber dx, KInteropNumber dy, KInteropNumber dw, KInteropNumber dh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 image_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_ImageBitmap_PixelMap image_value_buf = {}; @@ -17827,7 +17837,7 @@ void impl_CanvasRenderer_drawImage1(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V7(CanvasRenderer_drawImage1, Ark_NativePointer, uint8_t*, int32_t, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_drawImage2(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, KInteropNumber sx, KInteropNumber sy, KInteropNumber sw, KInteropNumber sh, KInteropNumber dx, KInteropNumber dy, KInteropNumber dw, KInteropNumber dh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 image_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_ImageBitmap_PixelMap image_value_buf = {}; @@ -17848,12 +17858,12 @@ void impl_CanvasRenderer_drawImage2(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V11(CanvasRenderer_drawImage2, Ark_NativePointer, uint8_t*, int32_t, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_beginPath(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->beginPath(self); } KOALA_INTEROP_V1(CanvasRenderer_beginPath, Ark_NativePointer) void impl_CanvasRenderer_clip0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto fillRule_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_String fillRule_value_buf = {}; @@ -17867,7 +17877,7 @@ void impl_CanvasRenderer_clip0(Ark_NativePointer thisPtr, uint8_t* thisArray, in } KOALA_INTEROP_V3(CanvasRenderer_clip0, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_clip1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Path2D path_value = static_cast(thisDeserializer.readPath2D());; const auto fillRule_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -17882,7 +17892,7 @@ void impl_CanvasRenderer_clip1(Ark_NativePointer thisPtr, uint8_t* thisArray, in } KOALA_INTEROP_V3(CanvasRenderer_clip1, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_fill0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto fillRule_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_String fillRule_value_buf = {}; @@ -17896,7 +17906,7 @@ void impl_CanvasRenderer_fill0(Ark_NativePointer thisPtr, uint8_t* thisArray, in } KOALA_INTEROP_V3(CanvasRenderer_fill0, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_fill1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Path2D path_value = static_cast(thisDeserializer.readPath2D());; const auto fillRule_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -17911,24 +17921,24 @@ void impl_CanvasRenderer_fill1(Ark_NativePointer thisPtr, uint8_t* thisArray, in } KOALA_INTEROP_V3(CanvasRenderer_fill1, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_stroke0(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->stroke0(self); } KOALA_INTEROP_V1(CanvasRenderer_stroke0, Ark_NativePointer) void impl_CanvasRenderer_stroke1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Path2D path_value = static_cast(thisDeserializer.readPath2D());; GetAccessors()->getCanvasRendererAccessor()->stroke1(self, path_value); } KOALA_INTEROP_V3(CanvasRenderer_stroke1, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_CanvasRenderer_createLinearGradient(Ark_NativePointer thisPtr, KInteropNumber x0, KInteropNumber y0, KInteropNumber x1, KInteropNumber y1) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->createLinearGradient(self, (const Ark_Number*) (&x0), (const Ark_Number*) (&y0), (const Ark_Number*) (&x1), (const Ark_Number*) (&y1)); } KOALA_INTEROP_5(CanvasRenderer_createLinearGradient, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) -Ark_NativePointer impl_CanvasRenderer_createPattern(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); +void impl_CanvasRenderer_createPattern(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageBitmap image_value = static_cast(thisDeserializer.readImageBitmap());; const auto repetition_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -17939,43 +17949,43 @@ Ark_NativePointer impl_CanvasRenderer_createPattern(Ark_NativePointer thisPtr, u repetition_value_buf.value = static_cast(thisDeserializer.readString()); } Opt_String repetition_value = repetition_value_buf;; - return GetAccessors()->getCanvasRendererAccessor()->createPattern(self, image_value, (const Opt_String*)&repetition_value); + GetAccessors()->getCanvasRendererAccessor()->createPattern(self, image_value, (const Opt_String*)&repetition_value); } -KOALA_INTEROP_3(CanvasRenderer_createPattern, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(CanvasRenderer_createPattern, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_CanvasRenderer_createRadialGradient(Ark_NativePointer thisPtr, KInteropNumber x0, KInteropNumber y0, KInteropNumber r0, KInteropNumber x1, KInteropNumber y1, KInteropNumber r1) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->createRadialGradient(self, (const Ark_Number*) (&x0), (const Ark_Number*) (&y0), (const Ark_Number*) (&r0), (const Ark_Number*) (&x1), (const Ark_Number*) (&y1), (const Ark_Number*) (&r1)); } KOALA_INTEROP_7(CanvasRenderer_createRadialGradient, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) Ark_NativePointer impl_CanvasRenderer_createConicGradient(Ark_NativePointer thisPtr, KInteropNumber startAngle, KInteropNumber x, KInteropNumber y) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->createConicGradient(self, (const Ark_Number*) (&startAngle), (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_4(CanvasRenderer_createConicGradient, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber) Ark_NativePointer impl_CanvasRenderer_createImageData0(Ark_NativePointer thisPtr, KInteropNumber sw, KInteropNumber sh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->createImageData0(self, (const Ark_Number*) (&sw), (const Ark_Number*) (&sh)); } KOALA_INTEROP_3(CanvasRenderer_createImageData0, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber) Ark_NativePointer impl_CanvasRenderer_createImageData1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageData imagedata_value = static_cast(thisDeserializer.readImageData());; return GetAccessors()->getCanvasRendererAccessor()->createImageData1(self, imagedata_value); } KOALA_INTEROP_3(CanvasRenderer_createImageData1, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_CanvasRenderer_getImageData(Ark_NativePointer thisPtr, KInteropNumber sx, KInteropNumber sy, KInteropNumber sw, KInteropNumber sh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getImageData(self, (const Ark_Number*) (&sx), (const Ark_Number*) (&sy), (const Ark_Number*) (&sw), (const Ark_Number*) (&sh)); } KOALA_INTEROP_5(CanvasRenderer_getImageData, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) Ark_NativePointer impl_CanvasRenderer_getPixelMap(Ark_NativePointer thisPtr, KInteropNumber sx, KInteropNumber sy, KInteropNumber sw, KInteropNumber sh) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getPixelMap(self, (const Ark_Number*) (&sx), (const Ark_Number*) (&sy), (const Ark_Number*) (&sw), (const Ark_Number*) (&sh)); } KOALA_INTEROP_5(CanvasRenderer_getPixelMap, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_putImageData0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageData imagedata_value = static_cast(thisDeserializer.readImageData());; const Ark_Int8 dx_value_buf_selector = thisDeserializer.readInt8(); @@ -18012,7 +18022,7 @@ void impl_CanvasRenderer_putImageData0(Ark_NativePointer thisPtr, uint8_t* thisA } KOALA_INTEROP_V3(CanvasRenderer_putImageData0, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageData imagedata_value = static_cast(thisDeserializer.readImageData());; const Ark_Int8 dx_value_buf_selector = thisDeserializer.readInt8(); @@ -18108,13 +18118,15 @@ void impl_CanvasRenderer_putImageData1(Ark_NativePointer thisPtr, uint8_t* thisA GetAccessors()->getCanvasRendererAccessor()->putImageData1(self, imagedata_value, (const Ark_Union_Number_String*)&dx_value, (const Ark_Union_Number_String*)&dy_value, (const Ark_Union_Number_String*)&dirtyX_value, (const Ark_Union_Number_String*)&dirtyY_value, (const Ark_Union_Number_String*)&dirtyWidth_value, (const Ark_Union_Number_String*)&dirtyHeight_value); } KOALA_INTEROP_V3(CanvasRenderer_putImageData1, Ark_NativePointer, uint8_t*, int32_t) -void impl_CanvasRenderer_getLineDash(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getCanvasRendererAccessor()->getLineDash(self); +Ark_NativePointer impl_CanvasRenderer_getLineDash(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getCanvasRendererAccessor()->getLineDash(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(CanvasRenderer_getLineDash, Ark_NativePointer) +KOALA_INTEROP_1(CanvasRenderer_getLineDash, Ark_NativePointer, Ark_NativePointer) void impl_CanvasRenderer_setLineDash(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 segments_value_buf_length = thisDeserializer.readInt32(); Array_Number segments_value_buf = {}; @@ -18128,32 +18140,32 @@ void impl_CanvasRenderer_setLineDash(Ark_NativePointer thisPtr, uint8_t* thisArr } KOALA_INTEROP_V3(CanvasRenderer_setLineDash, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_clearRect(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber w, KInteropNumber h) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->clearRect(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Ark_Number*) (&w), (const Ark_Number*) (&h)); } KOALA_INTEROP_V5(CanvasRenderer_clearRect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_fillRect(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber w, KInteropNumber h) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->fillRect(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Ark_Number*) (&w), (const Ark_Number*) (&h)); } KOALA_INTEROP_V5(CanvasRenderer_fillRect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_strokeRect(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y, KInteropNumber w, KInteropNumber h) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->strokeRect(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Ark_Number*) (&w), (const Ark_Number*) (&h)); } KOALA_INTEROP_V5(CanvasRenderer_strokeRect, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_restore(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->restore(self); } KOALA_INTEROP_V1(CanvasRenderer_restore, Ark_NativePointer) void impl_CanvasRenderer_save(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->save(self); } KOALA_INTEROP_V1(CanvasRenderer_save, Ark_NativePointer) void impl_CanvasRenderer_fillText(Ark_NativePointer thisPtr, const KStringPtr& text, KInteropNumber x, KInteropNumber y, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto maxWidth_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number maxWidth_value_buf = {}; @@ -18166,13 +18178,15 @@ void impl_CanvasRenderer_fillText(Ark_NativePointer thisPtr, const KStringPtr& t GetAccessors()->getCanvasRendererAccessor()->fillText(self, (const Ark_String*) (&text), (const Ark_Number*) (&x), (const Ark_Number*) (&y), (const Opt_Number*)&maxWidth_value); } KOALA_INTEROP_V6(CanvasRenderer_fillText, Ark_NativePointer, KStringPtr, KInteropNumber, KInteropNumber, uint8_t*, int32_t) -Ark_NativePointer impl_CanvasRenderer_measureText(Ark_NativePointer thisPtr, const KStringPtr& text) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->measureText(self, (const Ark_String*) (&text)); +KInteropReturnBuffer impl_CanvasRenderer_measureText(Ark_NativePointer thisPtr, const KStringPtr& text) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeTextMetrics(GetAccessors()->getCanvasRendererAccessor()->measureText(self, (const Ark_String*) (&text))); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_2(CanvasRenderer_measureText, Ark_NativePointer, Ark_NativePointer, KStringPtr) +KOALA_INTEROP_2(CanvasRenderer_measureText, KInteropReturnBuffer, Ark_NativePointer, KStringPtr) void impl_CanvasRenderer_strokeText(Ark_NativePointer thisPtr, const KStringPtr& text, KInteropNumber x, KInteropNumber y, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto maxWidth_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number maxWidth_value_buf = {}; @@ -18186,32 +18200,32 @@ void impl_CanvasRenderer_strokeText(Ark_NativePointer thisPtr, const KStringPtr& } KOALA_INTEROP_V6(CanvasRenderer_strokeText, Ark_NativePointer, KStringPtr, KInteropNumber, KInteropNumber, uint8_t*, int32_t) Ark_NativePointer impl_CanvasRenderer_getTransform(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getTransform(self); } KOALA_INTEROP_1(CanvasRenderer_getTransform, Ark_NativePointer, Ark_NativePointer) void impl_CanvasRenderer_resetTransform(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->resetTransform(self); } KOALA_INTEROP_V1(CanvasRenderer_resetTransform, Ark_NativePointer) void impl_CanvasRenderer_rotate(Ark_NativePointer thisPtr, KInteropNumber angle) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->rotate(self, (const Ark_Number*) (&angle)); } KOALA_INTEROP_V2(CanvasRenderer_rotate, Ark_NativePointer, KInteropNumber) void impl_CanvasRenderer_scale(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->scale(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V3(CanvasRenderer_scale, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_setTransform0(Ark_NativePointer thisPtr, KInteropNumber a, KInteropNumber b, KInteropNumber c, KInteropNumber d, KInteropNumber e, KInteropNumber f) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setTransform0(self, (const Ark_Number*) (&a), (const Ark_Number*) (&b), (const Ark_Number*) (&c), (const Ark_Number*) (&d), (const Ark_Number*) (&e), (const Ark_Number*) (&f)); } KOALA_INTEROP_V7(CanvasRenderer_setTransform0, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_setTransform1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto transform_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Matrix2D transform_value_buf = {}; @@ -18225,17 +18239,17 @@ void impl_CanvasRenderer_setTransform1(Ark_NativePointer thisPtr, uint8_t* thisA } KOALA_INTEROP_V3(CanvasRenderer_setTransform1, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_transform(Ark_NativePointer thisPtr, KInteropNumber a, KInteropNumber b, KInteropNumber c, KInteropNumber d, KInteropNumber e, KInteropNumber f) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->transform(self, (const Ark_Number*) (&a), (const Ark_Number*) (&b), (const Ark_Number*) (&c), (const Ark_Number*) (&d), (const Ark_Number*) (&e), (const Ark_Number*) (&f)); } KOALA_INTEROP_V7(CanvasRenderer_transform, Ark_NativePointer, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_translate(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->translate(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_V3(CanvasRenderer_translate, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_CanvasRenderer_setPixelMap(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_PixelMap value_value_buf = {}; @@ -18249,49 +18263,49 @@ void impl_CanvasRenderer_setPixelMap(Ark_NativePointer thisPtr, uint8_t* thisArr } KOALA_INTEROP_V3(CanvasRenderer_setPixelMap, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_transferFromImageBitmap(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageBitmap bitmap_value = static_cast(thisDeserializer.readImageBitmap());; GetAccessors()->getCanvasRendererAccessor()->transferFromImageBitmap(self, bitmap_value); } KOALA_INTEROP_V3(CanvasRenderer_transferFromImageBitmap, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_saveLayer(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->saveLayer(self); } KOALA_INTEROP_V1(CanvasRenderer_saveLayer, Ark_NativePointer) void impl_CanvasRenderer_restoreLayer(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->restoreLayer(self); } KOALA_INTEROP_V1(CanvasRenderer_restoreLayer, Ark_NativePointer) void impl_CanvasRenderer_reset(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->reset(self); } KOALA_INTEROP_V1(CanvasRenderer_reset, Ark_NativePointer) Ark_Int32 impl_CanvasRenderer_getGlobalAlpha(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getGlobalAlpha(self); } KOALA_INTEROP_1(CanvasRenderer_getGlobalAlpha, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setGlobalAlpha(Ark_NativePointer thisPtr, KInteropNumber globalAlpha) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setGlobalAlpha(self, (const Ark_Number*) (&globalAlpha)); } KOALA_INTEROP_V2(CanvasRenderer_setGlobalAlpha, Ark_NativePointer, KInteropNumber) void impl_CanvasRenderer_getGlobalCompositeOperation(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->getGlobalCompositeOperation(self); } KOALA_INTEROP_V1(CanvasRenderer_getGlobalCompositeOperation, Ark_NativePointer) void impl_CanvasRenderer_setGlobalCompositeOperation(Ark_NativePointer thisPtr, const KStringPtr& globalCompositeOperation) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setGlobalCompositeOperation(self, (const Ark_String*) (&globalCompositeOperation)); } KOALA_INTEROP_V2(CanvasRenderer_setGlobalCompositeOperation, Ark_NativePointer, KStringPtr) void impl_CanvasRenderer_setFillStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 fillStyle_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_String_Number_CanvasGradient_CanvasPattern fillStyle_value_buf = {}; @@ -18320,7 +18334,7 @@ void impl_CanvasRenderer_setFillStyle(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_V3(CanvasRenderer_setFillStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_setStrokeStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 strokeStyle_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_String_Number_CanvasGradient_CanvasPattern strokeStyle_value_buf = {}; @@ -18349,162 +18363,162 @@ void impl_CanvasRenderer_setStrokeStyle(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_V3(CanvasRenderer_setStrokeStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderer_getFilter(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->getFilter(self); } KOALA_INTEROP_V1(CanvasRenderer_getFilter, Ark_NativePointer) void impl_CanvasRenderer_setFilter(Ark_NativePointer thisPtr, const KStringPtr& filter) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setFilter(self, (const Ark_String*) (&filter)); } KOALA_INTEROP_V2(CanvasRenderer_setFilter, Ark_NativePointer, KStringPtr) Ark_Boolean impl_CanvasRenderer_getImageSmoothingEnabled(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getImageSmoothingEnabled(self); } KOALA_INTEROP_1(CanvasRenderer_getImageSmoothingEnabled, Ark_Boolean, Ark_NativePointer) void impl_CanvasRenderer_setImageSmoothingEnabled(Ark_NativePointer thisPtr, Ark_Boolean imageSmoothingEnabled) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setImageSmoothingEnabled(self, imageSmoothingEnabled); } KOALA_INTEROP_V2(CanvasRenderer_setImageSmoothingEnabled, Ark_NativePointer, Ark_Boolean) -Ark_NativePointer impl_CanvasRenderer_getImageSmoothingQuality(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getImageSmoothingQuality(self); +void impl_CanvasRenderer_getImageSmoothingQuality(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getImageSmoothingQuality(self); } -KOALA_INTEROP_1(CanvasRenderer_getImageSmoothingQuality, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getImageSmoothingQuality, Ark_NativePointer) void impl_CanvasRenderer_setImageSmoothingQuality(Ark_NativePointer thisPtr, const KStringPtr& imageSmoothingQuality) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setImageSmoothingQuality(self, (const Ark_String*) (&imageSmoothingQuality)); } KOALA_INTEROP_V2(CanvasRenderer_setImageSmoothingQuality, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_CanvasRenderer_getLineCap(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getLineCap(self); +void impl_CanvasRenderer_getLineCap(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getLineCap(self); } -KOALA_INTEROP_1(CanvasRenderer_getLineCap, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getLineCap, Ark_NativePointer) void impl_CanvasRenderer_setLineCap(Ark_NativePointer thisPtr, const KStringPtr& lineCap) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setLineCap(self, (const Ark_String*) (&lineCap)); } KOALA_INTEROP_V2(CanvasRenderer_setLineCap, Ark_NativePointer, KStringPtr) Ark_Int32 impl_CanvasRenderer_getLineDashOffset(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getLineDashOffset(self); } KOALA_INTEROP_1(CanvasRenderer_getLineDashOffset, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setLineDashOffset(Ark_NativePointer thisPtr, KInteropNumber lineDashOffset) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setLineDashOffset(self, (const Ark_Number*) (&lineDashOffset)); } KOALA_INTEROP_V2(CanvasRenderer_setLineDashOffset, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_CanvasRenderer_getLineJoin(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getLineJoin(self); +void impl_CanvasRenderer_getLineJoin(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getLineJoin(self); } -KOALA_INTEROP_1(CanvasRenderer_getLineJoin, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getLineJoin, Ark_NativePointer) void impl_CanvasRenderer_setLineJoin(Ark_NativePointer thisPtr, const KStringPtr& lineJoin) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setLineJoin(self, (const Ark_String*) (&lineJoin)); } KOALA_INTEROP_V2(CanvasRenderer_setLineJoin, Ark_NativePointer, KStringPtr) Ark_Int32 impl_CanvasRenderer_getLineWidth(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getLineWidth(self); } KOALA_INTEROP_1(CanvasRenderer_getLineWidth, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setLineWidth(Ark_NativePointer thisPtr, KInteropNumber lineWidth) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setLineWidth(self, (const Ark_Number*) (&lineWidth)); } KOALA_INTEROP_V2(CanvasRenderer_setLineWidth, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_CanvasRenderer_getMiterLimit(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getMiterLimit(self); } KOALA_INTEROP_1(CanvasRenderer_getMiterLimit, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setMiterLimit(Ark_NativePointer thisPtr, KInteropNumber miterLimit) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setMiterLimit(self, (const Ark_Number*) (&miterLimit)); } KOALA_INTEROP_V2(CanvasRenderer_setMiterLimit, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_CanvasRenderer_getShadowBlur(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getShadowBlur(self); } KOALA_INTEROP_1(CanvasRenderer_getShadowBlur, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setShadowBlur(Ark_NativePointer thisPtr, KInteropNumber shadowBlur) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setShadowBlur(self, (const Ark_Number*) (&shadowBlur)); } KOALA_INTEROP_V2(CanvasRenderer_setShadowBlur, Ark_NativePointer, KInteropNumber) void impl_CanvasRenderer_getShadowColor(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->getShadowColor(self); } KOALA_INTEROP_V1(CanvasRenderer_getShadowColor, Ark_NativePointer) void impl_CanvasRenderer_setShadowColor(Ark_NativePointer thisPtr, const KStringPtr& shadowColor) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setShadowColor(self, (const Ark_String*) (&shadowColor)); } KOALA_INTEROP_V2(CanvasRenderer_setShadowColor, Ark_NativePointer, KStringPtr) Ark_Int32 impl_CanvasRenderer_getShadowOffsetX(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getShadowOffsetX(self); } KOALA_INTEROP_1(CanvasRenderer_getShadowOffsetX, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setShadowOffsetX(Ark_NativePointer thisPtr, KInteropNumber shadowOffsetX) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setShadowOffsetX(self, (const Ark_Number*) (&shadowOffsetX)); } KOALA_INTEROP_V2(CanvasRenderer_setShadowOffsetX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_CanvasRenderer_getShadowOffsetY(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRendererAccessor()->getShadowOffsetY(self); } KOALA_INTEROP_1(CanvasRenderer_getShadowOffsetY, Ark_Int32, Ark_NativePointer) void impl_CanvasRenderer_setShadowOffsetY(Ark_NativePointer thisPtr, KInteropNumber shadowOffsetY) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setShadowOffsetY(self, (const Ark_Number*) (&shadowOffsetY)); } KOALA_INTEROP_V2(CanvasRenderer_setShadowOffsetY, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_CanvasRenderer_getDirection(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getDirection(self); +void impl_CanvasRenderer_getDirection(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getDirection(self); } -KOALA_INTEROP_1(CanvasRenderer_getDirection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getDirection, Ark_NativePointer) void impl_CanvasRenderer_setDirection(Ark_NativePointer thisPtr, const KStringPtr& direction) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setDirection(self, (const Ark_String*) (&direction)); } KOALA_INTEROP_V2(CanvasRenderer_setDirection, Ark_NativePointer, KStringPtr) void impl_CanvasRenderer_getFont(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->getFont(self); } KOALA_INTEROP_V1(CanvasRenderer_getFont, Ark_NativePointer) void impl_CanvasRenderer_setFont(Ark_NativePointer thisPtr, const KStringPtr& font) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setFont(self, (const Ark_String*) (&font)); } KOALA_INTEROP_V2(CanvasRenderer_setFont, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_CanvasRenderer_getTextAlign(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getTextAlign(self); +void impl_CanvasRenderer_getTextAlign(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getTextAlign(self); } -KOALA_INTEROP_1(CanvasRenderer_getTextAlign, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getTextAlign, Ark_NativePointer) void impl_CanvasRenderer_setTextAlign(Ark_NativePointer thisPtr, const KStringPtr& textAlign) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setTextAlign(self, (const Ark_String*) (&textAlign)); } KOALA_INTEROP_V2(CanvasRenderer_setTextAlign, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_CanvasRenderer_getTextBaseline(Ark_NativePointer thisPtr) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getCanvasRendererAccessor()->getTextBaseline(self); +void impl_CanvasRenderer_getTextBaseline(Ark_NativePointer thisPtr) { + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); + GetAccessors()->getCanvasRendererAccessor()->getTextBaseline(self); } -KOALA_INTEROP_1(CanvasRenderer_getTextBaseline, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(CanvasRenderer_getTextBaseline, Ark_NativePointer) void impl_CanvasRenderer_setTextBaseline(Ark_NativePointer thisPtr, const KStringPtr& textBaseline) { - CanvasRendererPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderer self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRendererAccessor()->setTextBaseline(self, (const Ark_String*) (&textBaseline)); } KOALA_INTEROP_V2(CanvasRenderer_setTextBaseline, Ark_NativePointer, KStringPtr) @@ -18526,7 +18540,7 @@ Ark_NativePointer impl_CanvasRenderingContext2D_getFinalizer() { } KOALA_INTEROP_0(CanvasRenderingContext2D_getFinalizer, Ark_NativePointer) void impl_CanvasRenderingContext2D_toDataURL(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto type_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_String type_value_buf = {}; @@ -18537,18 +18551,18 @@ void impl_CanvasRenderingContext2D_toDataURL(Ark_NativePointer thisPtr, uint8_t* } Opt_String type_value = type_value_buf;; const auto quality_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_Number quality_value_buf = {}; + Opt_Float32 quality_value_buf = {}; quality_value_buf.tag = quality_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; if ((INTEROP_RUNTIME_UNDEFINED) != (quality_value_buf_runtimeType)) { - quality_value_buf.value = static_cast(thisDeserializer.readNumber()); + quality_value_buf.value = thisDeserializer.readFloat32(); } - Opt_Number quality_value = quality_value_buf;; - GetAccessors()->getCanvasRenderingContext2DAccessor()->toDataURL(self, (const Opt_String*)&type_value, (const Opt_Number*)&quality_value); + Opt_Float32 quality_value = quality_value_buf;; + GetAccessors()->getCanvasRenderingContext2DAccessor()->toDataURL(self, (const Opt_String*)&type_value, (const Opt_Float32*)&quality_value); } KOALA_INTEROP_V3(CanvasRenderingContext2D_toDataURL, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_startImageAnalyzer(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageAnalyzerConfig config_value = thisDeserializer.readImageAnalyzerConfig();; Callback_Opt_Array_String_Void outputArgumentForReturningPromise_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Opt_Array_String_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Opt_Array_String_Void))))};; @@ -18556,19 +18570,19 @@ void impl_CanvasRenderingContext2D_startImageAnalyzer(Ark_NativePointer thisPtr, } KOALA_INTEROP_V3(CanvasRenderingContext2D_startImageAnalyzer, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_stopImageAnalyzer(Ark_NativePointer thisPtr) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); GetAccessors()->getCanvasRenderingContext2DAccessor()->stopImageAnalyzer(self); } KOALA_INTEROP_V1(CanvasRenderingContext2D_stopImageAnalyzer, Ark_NativePointer) void impl_CanvasRenderingContext2D_onOnAttach(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getCanvasRenderingContext2DAccessor()->onOnAttach(self, (const Callback_Void*)&callback__value); } KOALA_INTEROP_V3(CanvasRenderingContext2D_onOnAttach, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_offOnAttach(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -18582,14 +18596,14 @@ void impl_CanvasRenderingContext2D_offOnAttach(Ark_NativePointer thisPtr, uint8_ } KOALA_INTEROP_V3(CanvasRenderingContext2D_offOnAttach, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_onOnDetach(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getCanvasRenderingContext2DAccessor()->onOnDetach(self, (const Callback_Void*)&callback__value); } KOALA_INTEROP_V3(CanvasRenderingContext2D_onOnDetach, Ark_NativePointer, uint8_t*, int32_t) void impl_CanvasRenderingContext2D_offOnDetach(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -18603,15 +18617,106 @@ void impl_CanvasRenderingContext2D_offOnDetach(Ark_NativePointer thisPtr, uint8_ } KOALA_INTEROP_V3(CanvasRenderingContext2D_offOnDetach, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_CanvasRenderingContext2D_getHeight(Ark_NativePointer thisPtr) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRenderingContext2DAccessor()->getHeight(self); } KOALA_INTEROP_1(CanvasRenderingContext2D_getHeight, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_CanvasRenderingContext2D_getWidth(Ark_NativePointer thisPtr) { - CanvasRenderingContext2DPeer* self = reinterpret_cast(thisPtr); + Ark_CanvasRenderingContext2D self = reinterpret_cast(thisPtr); return GetAccessors()->getCanvasRenderingContext2DAccessor()->getWidth(self); } KOALA_INTEROP_1(CanvasRenderingContext2D_getWidth, Ark_Int32, Ark_NativePointer) +Ark_NativePointer impl_OffscreenCanvasRenderingContext2D_ctor(KInteropNumber width, KInteropNumber height, uint8_t* thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + const auto settings_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_RenderingContextSettings settings_value_buf = {}; + settings_value_buf.tag = settings_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (settings_value_buf_runtimeType)) + { + settings_value_buf.value = static_cast(thisDeserializer.readRenderingContextSettings()); + } + Opt_RenderingContextSettings settings_value = settings_value_buf;; + return GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->ctor((const Ark_Number*) (&width), (const Ark_Number*) (&height), (const Opt_RenderingContextSettings*)&settings_value); +} +KOALA_INTEROP_4(OffscreenCanvasRenderingContext2D_ctor, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) +Ark_NativePointer impl_OffscreenCanvasRenderingContext2D_getFinalizer() { + return GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(OffscreenCanvasRenderingContext2D_getFinalizer, Ark_NativePointer) +void impl_OffscreenCanvasRenderingContext2D_toDataURL(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_OffscreenCanvasRenderingContext2D self = reinterpret_cast(thisPtr); + Deserializer thisDeserializer(thisArray, thisLength); + const auto type_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_String type_value_buf = {}; + type_value_buf.tag = type_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (type_value_buf_runtimeType)) + { + type_value_buf.value = static_cast(thisDeserializer.readString()); + } + Opt_String type_value = type_value_buf;; + const auto quality_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_Float32 quality_value_buf = {}; + quality_value_buf.tag = quality_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (quality_value_buf_runtimeType)) + { + quality_value_buf.value = thisDeserializer.readFloat32(); + } + Opt_Float32 quality_value = quality_value_buf;; + GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->toDataURL(self, (const Opt_String*)&type_value, (const Opt_Float32*)&quality_value); +} +KOALA_INTEROP_V3(OffscreenCanvasRenderingContext2D_toDataURL, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_OffscreenCanvasRenderingContext2D_transferToImageBitmap(Ark_NativePointer thisPtr) { + Ark_OffscreenCanvasRenderingContext2D self = reinterpret_cast(thisPtr); + return GetAccessors()->getOffscreenCanvasRenderingContext2DAccessor()->transferToImageBitmap(self); +} +KOALA_INTEROP_1(OffscreenCanvasRenderingContext2D_transferToImageBitmap, Ark_NativePointer, Ark_NativePointer) +Ark_NativePointer impl_OffscreenCanvas_ctor(KInteropNumber width, KInteropNumber height) { + return GetAccessors()->getOffscreenCanvasAccessor()->ctor((const Ark_Number*) (&width), (const Ark_Number*) (&height)); +} +KOALA_INTEROP_2(OffscreenCanvas_ctor, Ark_NativePointer, KInteropNumber, KInteropNumber) +Ark_NativePointer impl_OffscreenCanvas_getFinalizer() { + return GetAccessors()->getOffscreenCanvasAccessor()->getFinalizer(); +} +KOALA_INTEROP_0(OffscreenCanvas_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_OffscreenCanvas_transferToImageBitmap(Ark_NativePointer thisPtr) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + return GetAccessors()->getOffscreenCanvasAccessor()->transferToImageBitmap(self); +} +KOALA_INTEROP_1(OffscreenCanvas_transferToImageBitmap, Ark_NativePointer, Ark_NativePointer) +Ark_NativePointer impl_OffscreenCanvas_getContext2d(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + Deserializer thisDeserializer(thisArray, thisLength); + const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); + Opt_RenderingContextSettings options_value_buf = {}; + options_value_buf.tag = options_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (options_value_buf_runtimeType)) + { + options_value_buf.value = static_cast(thisDeserializer.readRenderingContextSettings()); + } + Opt_RenderingContextSettings options_value = options_value_buf;; + return GetAccessors()->getOffscreenCanvasAccessor()->getContext2d(self, (const Opt_RenderingContextSettings*)&options_value); +} +KOALA_INTEROP_3(OffscreenCanvas_getContext2d, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +Ark_Int32 impl_OffscreenCanvas_getHeight(Ark_NativePointer thisPtr) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + return GetAccessors()->getOffscreenCanvasAccessor()->getHeight(self); +} +KOALA_INTEROP_1(OffscreenCanvas_getHeight, Ark_Int32, Ark_NativePointer) +void impl_OffscreenCanvas_setHeight(Ark_NativePointer thisPtr, KInteropNumber height) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + GetAccessors()->getOffscreenCanvasAccessor()->setHeight(self, (const Ark_Number*) (&height)); +} +KOALA_INTEROP_V2(OffscreenCanvas_setHeight, Ark_NativePointer, KInteropNumber) +Ark_Int32 impl_OffscreenCanvas_getWidth(Ark_NativePointer thisPtr) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + return GetAccessors()->getOffscreenCanvasAccessor()->getWidth(self); +} +KOALA_INTEROP_1(OffscreenCanvas_getWidth, Ark_Int32, Ark_NativePointer) +void impl_OffscreenCanvas_setWidth(Ark_NativePointer thisPtr, KInteropNumber width) { + Ark_OffscreenCanvas self = reinterpret_cast(thisPtr); + GetAccessors()->getOffscreenCanvasAccessor()->setWidth(self, (const Ark_Number*) (&width)); +} +KOALA_INTEROP_V2(OffscreenCanvas_setWidth, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_DrawingRenderingContext_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); const auto unit_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -18630,7 +18735,7 @@ Ark_NativePointer impl_DrawingRenderingContext_getFinalizer() { } KOALA_INTEROP_0(DrawingRenderingContext_getFinalizer, Ark_NativePointer) void impl_DrawingRenderingContext_invalidate(Ark_NativePointer thisPtr) { - DrawingRenderingContextPeer* self = reinterpret_cast(thisPtr); + Ark_DrawingRenderingContext self = reinterpret_cast(thisPtr); GetAccessors()->getDrawingRenderingContextAccessor()->invalidate(self); } KOALA_INTEROP_V1(DrawingRenderingContext_invalidate, Ark_NativePointer) @@ -18643,7 +18748,7 @@ Ark_NativePointer impl_ICurve_getFinalizer() { } KOALA_INTEROP_0(ICurve_getFinalizer, Ark_NativePointer) Ark_Int32 impl_ICurve_interpolate(Ark_NativePointer thisPtr, KInteropNumber fraction) { - ICurvePeer* self = reinterpret_cast(thisPtr); + Ark_ICurve self = reinterpret_cast(thisPtr); return GetAccessors()->getICurveAccessor()->interpolate(self, (const Ark_Number*) (&fraction)); } KOALA_INTEROP_2(ICurve_interpolate, Ark_Int32, Ark_NativePointer, KInteropNumber) @@ -18656,28 +18761,28 @@ Ark_NativePointer impl_DrawModifier_getFinalizer() { } KOALA_INTEROP_0(DrawModifier_getFinalizer, Ark_NativePointer) void impl_DrawModifier_drawBehind(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DrawModifierPeer* self = reinterpret_cast(thisPtr); + Ark_DrawModifier self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_DrawContext drawContext_value = thisDeserializer.readDrawContext();; GetAccessors()->getDrawModifierAccessor()->drawBehind(self, (const Ark_DrawContext*)&drawContext_value); } KOALA_INTEROP_V3(DrawModifier_drawBehind, Ark_NativePointer, uint8_t*, int32_t) void impl_DrawModifier_drawContent(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DrawModifierPeer* self = reinterpret_cast(thisPtr); + Ark_DrawModifier self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_DrawContext drawContext_value = thisDeserializer.readDrawContext();; GetAccessors()->getDrawModifierAccessor()->drawContent(self, (const Ark_DrawContext*)&drawContext_value); } KOALA_INTEROP_V3(DrawModifier_drawContent, Ark_NativePointer, uint8_t*, int32_t) void impl_DrawModifier_drawFront(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DrawModifierPeer* self = reinterpret_cast(thisPtr); + Ark_DrawModifier self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_DrawContext drawContext_value = thisDeserializer.readDrawContext();; GetAccessors()->getDrawModifierAccessor()->drawFront(self, (const Ark_DrawContext*)&drawContext_value); } KOALA_INTEROP_V3(DrawModifier_drawFront, Ark_NativePointer, uint8_t*, int32_t) void impl_DrawModifier_invalidate(Ark_NativePointer thisPtr) { - DrawModifierPeer* self = reinterpret_cast(thisPtr); + Ark_DrawModifier self = reinterpret_cast(thisPtr); GetAccessors()->getDrawModifierAccessor()->invalidate(self); } KOALA_INTEROP_V1(DrawModifier_invalidate, Ark_NativePointer) @@ -18737,19 +18842,31 @@ Ark_NativePointer impl_TransitionEffect_asymmetric(uint8_t* thisArray, int32_t t } KOALA_INTEROP_2(TransitionEffect_asymmetric, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TransitionEffect_animation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TransitionEffectPeer* self = reinterpret_cast(thisPtr); + Ark_TransitionEffect self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; return GetAccessors()->getTransitionEffectAccessor()->animation(self, (const Ark_AnimateParam*)&value_value); } KOALA_INTEROP_3(TransitionEffect_animation, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TransitionEffect_combine(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TransitionEffectPeer* self = reinterpret_cast(thisPtr); + Ark_TransitionEffect self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TransitionEffect transitionEffect_value = static_cast(thisDeserializer.readTransitionEffect());; return GetAccessors()->getTransitionEffectAccessor()->combine(self, transitionEffect_value); } KOALA_INTEROP_3(TransitionEffect_combine, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +Ark_Boolean impl_GlobalScope_focusControl_common_requestFocus(const KStringPtr& value) { + return GetAccessors()->getGlobalScope_focusControl_commonAccessor()->requestFocus((const Ark_String*) (&value)); +} +KOALA_INTEROP_1(GlobalScope_focusControl_common_requestFocus, Ark_Boolean, KStringPtr) +void impl_GlobalScope_cursorControl_common_setCursor(Ark_Int32 value) { + GetAccessors()->getGlobalScope_cursorControl_commonAccessor()->setCursor(static_cast(value)); +} +KOALA_INTEROP_V1(GlobalScope_cursorControl_common_setCursor, Ark_Int32) +void impl_GlobalScope_cursorControl_common_restoreDefault() { + GetAccessors()->getGlobalScope_cursorControl_commonAccessor()->restoreDefault(); +} +KOALA_INTEROP_V0(GlobalScope_cursorControl_common_restoreDefault) Ark_NativePointer impl_BaseEvent_ctor() { return GetAccessors()->getBaseEventAccessor()->ctor(); } @@ -18759,7 +18876,7 @@ Ark_NativePointer impl_BaseEvent_getFinalizer() { } KOALA_INTEROP_0(BaseEvent_getFinalizer, Ark_NativePointer) Ark_Boolean impl_BaseEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 keys_value_buf_length = thisDeserializer.readInt32(); Array_String keys_value_buf = {}; @@ -18773,99 +18890,99 @@ Ark_Boolean impl_BaseEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_ } KOALA_INTEROP_3(BaseEvent_getModifierKeyState, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) void impl_BaseEvent_setTarget(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_EventTarget target_value = thisDeserializer.readEventTarget();; GetAccessors()->getBaseEventAccessor()->setTarget(self, (const Ark_EventTarget*)&target_value); } KOALA_INTEROP_V3(BaseEvent_setTarget, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_BaseEvent_getTimestamp(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getTimestamp(self); } KOALA_INTEROP_1(BaseEvent_getTimestamp, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setTimestamp(Ark_NativePointer thisPtr, KInteropNumber timestamp) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setTimestamp(self, (const Ark_Number*) (×tamp)); } KOALA_INTEROP_V2(BaseEvent_setTimestamp, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_BaseEvent_getSource(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getBaseEventAccessor()->getSource(self); +void impl_BaseEvent_getSource(Ark_NativePointer thisPtr) { + Ark_BaseEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getBaseEventAccessor()->getSource(self); } -KOALA_INTEROP_1(BaseEvent_getSource, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(BaseEvent_getSource, Ark_NativePointer) void impl_BaseEvent_setSource(Ark_NativePointer thisPtr, Ark_Int32 source) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setSource(self, static_cast(source)); } KOALA_INTEROP_V2(BaseEvent_setSource, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_BaseEvent_getAxisHorizontal(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getAxisHorizontal(self); } KOALA_INTEROP_1(BaseEvent_getAxisHorizontal, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setAxisHorizontal(Ark_NativePointer thisPtr, KInteropNumber axisHorizontal) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setAxisHorizontal(self, (const Ark_Number*) (&axisHorizontal)); } KOALA_INTEROP_V2(BaseEvent_setAxisHorizontal, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_BaseEvent_getAxisVertical(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getAxisVertical(self); } KOALA_INTEROP_1(BaseEvent_getAxisVertical, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setAxisVertical(Ark_NativePointer thisPtr, KInteropNumber axisVertical) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setAxisVertical(self, (const Ark_Number*) (&axisVertical)); } KOALA_INTEROP_V2(BaseEvent_setAxisVertical, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_BaseEvent_getPressure(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getPressure(self); } KOALA_INTEROP_1(BaseEvent_getPressure, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setPressure(Ark_NativePointer thisPtr, KInteropNumber pressure) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setPressure(self, (const Ark_Number*) (&pressure)); } KOALA_INTEROP_V2(BaseEvent_setPressure, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_BaseEvent_getTiltX(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getTiltX(self); } KOALA_INTEROP_1(BaseEvent_getTiltX, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setTiltX(Ark_NativePointer thisPtr, KInteropNumber tiltX) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setTiltX(self, (const Ark_Number*) (&tiltX)); } KOALA_INTEROP_V2(BaseEvent_setTiltX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_BaseEvent_getTiltY(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getTiltY(self); } KOALA_INTEROP_1(BaseEvent_getTiltY, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setTiltY(Ark_NativePointer thisPtr, KInteropNumber tiltY) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setTiltY(self, (const Ark_Number*) (&tiltY)); } KOALA_INTEROP_V2(BaseEvent_setTiltY, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_BaseEvent_getSourceTool(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getBaseEventAccessor()->getSourceTool(self); +void impl_BaseEvent_getSourceTool(Ark_NativePointer thisPtr) { + Ark_BaseEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getBaseEventAccessor()->getSourceTool(self); } -KOALA_INTEROP_1(BaseEvent_getSourceTool, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(BaseEvent_getSourceTool, Ark_NativePointer) void impl_BaseEvent_setSourceTool(Ark_NativePointer thisPtr, Ark_Int32 sourceTool) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setSourceTool(self, static_cast(sourceTool)); } KOALA_INTEROP_V2(BaseEvent_setSourceTool, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_BaseEvent_getDeviceId(Ark_NativePointer thisPtr) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getBaseEventAccessor()->getDeviceId(self); } KOALA_INTEROP_1(BaseEvent_getDeviceId, Ark_Int32, Ark_NativePointer) void impl_BaseEvent_setDeviceId(Ark_NativePointer thisPtr, KInteropNumber deviceId) { - BaseEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getBaseEventAccessor()->setDeviceId(self, (const Ark_Number*) (&deviceId)); } KOALA_INTEROP_V2(BaseEvent_setDeviceId, Ark_NativePointer, KInteropNumber) @@ -18878,94 +18995,94 @@ Ark_NativePointer impl_ClickEvent_getFinalizer() { } KOALA_INTEROP_0(ClickEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_ClickEvent_getDisplayX(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getDisplayX(self); } KOALA_INTEROP_1(ClickEvent_getDisplayX, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setDisplayX(Ark_NativePointer thisPtr, KInteropNumber displayX) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setDisplayX(self, (const Ark_Number*) (&displayX)); } KOALA_INTEROP_V2(ClickEvent_setDisplayX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getDisplayY(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getDisplayY(self); } KOALA_INTEROP_1(ClickEvent_getDisplayY, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setDisplayY(Ark_NativePointer thisPtr, KInteropNumber displayY) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setDisplayY(self, (const Ark_Number*) (&displayY)); } KOALA_INTEROP_V2(ClickEvent_setDisplayY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getWindowX(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getWindowX(self); } KOALA_INTEROP_1(ClickEvent_getWindowX, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setWindowX(Ark_NativePointer thisPtr, KInteropNumber windowX) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setWindowX(self, (const Ark_Number*) (&windowX)); } KOALA_INTEROP_V2(ClickEvent_setWindowX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getWindowY(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getWindowY(self); } KOALA_INTEROP_1(ClickEvent_getWindowY, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setWindowY(Ark_NativePointer thisPtr, KInteropNumber windowY) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setWindowY(self, (const Ark_Number*) (&windowY)); } KOALA_INTEROP_V2(ClickEvent_setWindowY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getScreenX(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getScreenX(self); } KOALA_INTEROP_1(ClickEvent_getScreenX, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setScreenX(Ark_NativePointer thisPtr, KInteropNumber screenX) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setScreenX(self, (const Ark_Number*) (&screenX)); } KOALA_INTEROP_V2(ClickEvent_setScreenX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getScreenY(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getScreenY(self); } KOALA_INTEROP_1(ClickEvent_getScreenY, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setScreenY(Ark_NativePointer thisPtr, KInteropNumber screenY) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setScreenY(self, (const Ark_Number*) (&screenY)); } KOALA_INTEROP_V2(ClickEvent_setScreenY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getX(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getX(self); } KOALA_INTEROP_1(ClickEvent_getX, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setX(Ark_NativePointer thisPtr, KInteropNumber x) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setX(self, (const Ark_Number*) (&x)); } KOALA_INTEROP_V2(ClickEvent_setX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_ClickEvent_getY(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getClickEventAccessor()->getY(self); } KOALA_INTEROP_1(ClickEvent_getY, Ark_Int32, Ark_NativePointer) void impl_ClickEvent_setY(Ark_NativePointer thisPtr, KInteropNumber y) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); GetAccessors()->getClickEventAccessor()->setY(self, (const Ark_Number*) (&y)); } KOALA_INTEROP_V2(ClickEvent_setY, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_ClickEvent_getPreventDefault(Ark_NativePointer thisPtr) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getClickEventAccessor()->getPreventDefault(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(ClickEvent_getPreventDefault, Ark_NativePointer, Ark_NativePointer) void impl_ClickEvent_setPreventDefault(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ClickEventPeer* self = reinterpret_cast(thisPtr); + Ark_ClickEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void preventDefault_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getClickEventAccessor()->setPreventDefault(self, (const Callback_Void*)&preventDefault_value); @@ -18980,14 +19097,14 @@ Ark_NativePointer impl_HoverEvent_getFinalizer() { } KOALA_INTEROP_0(HoverEvent_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_HoverEvent_getStopPropagation(Ark_NativePointer thisPtr) { - HoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_HoverEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getHoverEventAccessor()->getStopPropagation(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(HoverEvent_getStopPropagation, Ark_NativePointer, Ark_NativePointer) void impl_HoverEvent_setStopPropagation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - HoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_HoverEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void stopPropagation_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getHoverEventAccessor()->setStopPropagation(self, (const Callback_Void*)&stopPropagation_value); @@ -19001,115 +19118,115 @@ Ark_NativePointer impl_MouseEvent_getFinalizer() { return GetAccessors()->getMouseEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(MouseEvent_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_MouseEvent_getButton(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMouseEventAccessor()->getButton(self); +void impl_MouseEvent_getButton(Ark_NativePointer thisPtr) { + Ark_MouseEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getMouseEventAccessor()->getButton(self); } -KOALA_INTEROP_1(MouseEvent_getButton, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(MouseEvent_getButton, Ark_NativePointer) void impl_MouseEvent_setButton(Ark_NativePointer thisPtr, Ark_Int32 button) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setButton(self, static_cast(button)); } KOALA_INTEROP_V2(MouseEvent_setButton, Ark_NativePointer, Ark_Int32) -Ark_NativePointer impl_MouseEvent_getAction(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMouseEventAccessor()->getAction(self); +void impl_MouseEvent_getAction(Ark_NativePointer thisPtr) { + Ark_MouseEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getMouseEventAccessor()->getAction(self); } -KOALA_INTEROP_1(MouseEvent_getAction, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(MouseEvent_getAction, Ark_NativePointer) void impl_MouseEvent_setAction(Ark_NativePointer thisPtr, Ark_Int32 action) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setAction(self, static_cast(action)); } KOALA_INTEROP_V2(MouseEvent_setAction, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_MouseEvent_getDisplayX(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getDisplayX(self); } KOALA_INTEROP_1(MouseEvent_getDisplayX, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setDisplayX(Ark_NativePointer thisPtr, KInteropNumber displayX) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setDisplayX(self, (const Ark_Number*) (&displayX)); } KOALA_INTEROP_V2(MouseEvent_setDisplayX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getDisplayY(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getDisplayY(self); } KOALA_INTEROP_1(MouseEvent_getDisplayY, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setDisplayY(Ark_NativePointer thisPtr, KInteropNumber displayY) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setDisplayY(self, (const Ark_Number*) (&displayY)); } KOALA_INTEROP_V2(MouseEvent_setDisplayY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getWindowX(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getWindowX(self); } KOALA_INTEROP_1(MouseEvent_getWindowX, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setWindowX(Ark_NativePointer thisPtr, KInteropNumber windowX) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setWindowX(self, (const Ark_Number*) (&windowX)); } KOALA_INTEROP_V2(MouseEvent_setWindowX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getWindowY(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getWindowY(self); } KOALA_INTEROP_1(MouseEvent_getWindowY, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setWindowY(Ark_NativePointer thisPtr, KInteropNumber windowY) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setWindowY(self, (const Ark_Number*) (&windowY)); } KOALA_INTEROP_V2(MouseEvent_setWindowY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getScreenX(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getScreenX(self); } KOALA_INTEROP_1(MouseEvent_getScreenX, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setScreenX(Ark_NativePointer thisPtr, KInteropNumber screenX) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setScreenX(self, (const Ark_Number*) (&screenX)); } KOALA_INTEROP_V2(MouseEvent_setScreenX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getScreenY(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getScreenY(self); } KOALA_INTEROP_1(MouseEvent_getScreenY, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setScreenY(Ark_NativePointer thisPtr, KInteropNumber screenY) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setScreenY(self, (const Ark_Number*) (&screenY)); } KOALA_INTEROP_V2(MouseEvent_setScreenY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getX(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getX(self); } KOALA_INTEROP_1(MouseEvent_getX, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setX(Ark_NativePointer thisPtr, KInteropNumber x) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setX(self, (const Ark_Number*) (&x)); } KOALA_INTEROP_V2(MouseEvent_setX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_MouseEvent_getY(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getMouseEventAccessor()->getY(self); } KOALA_INTEROP_1(MouseEvent_getY, Ark_Int32, Ark_NativePointer) void impl_MouseEvent_setY(Ark_NativePointer thisPtr, KInteropNumber y) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); GetAccessors()->getMouseEventAccessor()->setY(self, (const Ark_Number*) (&y)); } KOALA_INTEROP_V2(MouseEvent_setY, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_MouseEvent_getStopPropagation(Ark_NativePointer thisPtr) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getMouseEventAccessor()->getStopPropagation(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(MouseEvent_getStopPropagation, Ark_NativePointer, Ark_NativePointer) void impl_MouseEvent_setStopPropagation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MouseEventPeer* self = reinterpret_cast(thisPtr); + Ark_MouseEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void stopPropagation_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getMouseEventAccessor()->setStopPropagation(self, (const Callback_Void*)&stopPropagation_value); @@ -19123,73 +19240,73 @@ Ark_NativePointer impl_AccessibilityHoverEvent_getFinalizer() { return GetAccessors()->getAccessibilityHoverEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(AccessibilityHoverEvent_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_AccessibilityHoverEvent_getType(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getAccessibilityHoverEventAccessor()->getType(self); +void impl_AccessibilityHoverEvent_getType(Ark_NativePointer thisPtr) { + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getAccessibilityHoverEventAccessor()->getType(self); } -KOALA_INTEROP_1(AccessibilityHoverEvent_getType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(AccessibilityHoverEvent_getType, Ark_NativePointer) void impl_AccessibilityHoverEvent_setType(Ark_NativePointer thisPtr, Ark_Int32 type) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setType(self, static_cast(type)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setType, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_AccessibilityHoverEvent_getX(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getX(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getX, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setX(Ark_NativePointer thisPtr, KInteropNumber x) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setX(self, (const Ark_Number*) (&x)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getY(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getY(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getY, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setY(Ark_NativePointer thisPtr, KInteropNumber y) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setY(self, (const Ark_Number*) (&y)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getDisplayX(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getDisplayX(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getDisplayX, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setDisplayX(Ark_NativePointer thisPtr, KInteropNumber displayX) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setDisplayX(self, (const Ark_Number*) (&displayX)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setDisplayX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getDisplayY(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getDisplayY(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getDisplayY, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setDisplayY(Ark_NativePointer thisPtr, KInteropNumber displayY) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setDisplayY(self, (const Ark_Number*) (&displayY)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setDisplayY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getWindowX(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getWindowX(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getWindowX, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setWindowX(Ark_NativePointer thisPtr, KInteropNumber windowX) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setWindowX(self, (const Ark_Number*) (&windowX)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setWindowX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_AccessibilityHoverEvent_getWindowY(Ark_NativePointer thisPtr) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getAccessibilityHoverEventAccessor()->getWindowY(self); } KOALA_INTEROP_1(AccessibilityHoverEvent_getWindowY, Ark_Int32, Ark_NativePointer) void impl_AccessibilityHoverEvent_setWindowY(Ark_NativePointer thisPtr, KInteropNumber windowY) { - AccessibilityHoverEventPeer* self = reinterpret_cast(thisPtr); + Ark_AccessibilityHoverEvent self = reinterpret_cast(thisPtr); GetAccessors()->getAccessibilityHoverEventAccessor()->setWindowY(self, (const Ark_Number*) (&windowY)); } KOALA_INTEROP_V2(AccessibilityHoverEvent_setWindowY, Ark_NativePointer, KInteropNumber) @@ -19201,23 +19318,32 @@ Ark_NativePointer impl_TouchEvent_getFinalizer() { return GetAccessors()->getTouchEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(TouchEvent_getFinalizer, Ark_NativePointer) -void impl_TouchEvent_getHistoricalPoints(Ark_NativePointer thisPtr) { - TouchEventPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getTouchEventAccessor()->getHistoricalPoints(self); +Ark_NativePointer impl_TouchEvent_getHistoricalPoints(Ark_NativePointer thisPtr) { + Ark_TouchEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getHistoricalPoints(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(TouchEvent_getHistoricalPoints, Ark_NativePointer) -Ark_NativePointer impl_TouchEvent_getType(Ark_NativePointer thisPtr) { - TouchEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTouchEventAccessor()->getType(self); +KOALA_INTEROP_1(TouchEvent_getHistoricalPoints, Ark_NativePointer, Ark_NativePointer) +void impl_TouchEvent_getType(Ark_NativePointer thisPtr) { + Ark_TouchEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getTouchEventAccessor()->getType(self); } -KOALA_INTEROP_1(TouchEvent_getType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(TouchEvent_getType, Ark_NativePointer) void impl_TouchEvent_setType(Ark_NativePointer thisPtr, Ark_Int32 type) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); GetAccessors()->getTouchEventAccessor()->setType(self, static_cast(type)); } KOALA_INTEROP_V2(TouchEvent_setType, Ark_NativePointer, Ark_Int32) +Ark_NativePointer impl_TouchEvent_getTouches(Ark_NativePointer thisPtr) { + Ark_TouchEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getTouches(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(TouchEvent_getTouches, Ark_NativePointer, Ark_NativePointer) void impl_TouchEvent_setTouches(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 touches_value_buf_length = thisDeserializer.readInt32(); Array_TouchObject touches_value_buf = {}; @@ -19230,8 +19356,15 @@ void impl_TouchEvent_setTouches(Ark_NativePointer thisPtr, uint8_t* thisArray, i GetAccessors()->getTouchEventAccessor()->setTouches(self, (const Array_TouchObject*)&touches_value); } KOALA_INTEROP_V3(TouchEvent_setTouches, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_TouchEvent_getChangedTouches(Ark_NativePointer thisPtr) { + Ark_TouchEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getChangedTouches(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(TouchEvent_getChangedTouches, Ark_NativePointer, Ark_NativePointer) void impl_TouchEvent_setChangedTouches(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 changedTouches_value_buf_length = thisDeserializer.readInt32(); Array_TouchObject changedTouches_value_buf = {}; @@ -19245,28 +19378,28 @@ void impl_TouchEvent_setChangedTouches(Ark_NativePointer thisPtr, uint8_t* thisA } KOALA_INTEROP_V3(TouchEvent_setChangedTouches, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TouchEvent_getStopPropagation(Ark_NativePointer thisPtr) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getStopPropagation(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(TouchEvent_getStopPropagation, Ark_NativePointer, Ark_NativePointer) void impl_TouchEvent_setStopPropagation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void stopPropagation_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getTouchEventAccessor()->setStopPropagation(self, (const Callback_Void*)&stopPropagation_value); } KOALA_INTEROP_V3(TouchEvent_setStopPropagation, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TouchEvent_getPreventDefault(Ark_NativePointer thisPtr) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getTouchEventAccessor()->getPreventDefault(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(TouchEvent_getPreventDefault, Ark_NativePointer, Ark_NativePointer) void impl_TouchEvent_setPreventDefault(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TouchEventPeer* self = reinterpret_cast(thisPtr); + Ark_TouchEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void preventDefault_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getTouchEventAccessor()->setPreventDefault(self, (const Callback_Void*)&preventDefault_value); @@ -19281,7 +19414,7 @@ Ark_NativePointer impl_PixelMapMock_getFinalizer() { } KOALA_INTEROP_0(PixelMapMock_getFinalizer, Ark_NativePointer) void impl_PixelMapMock_release(Ark_NativePointer thisPtr) { - PixelMapMockPeer* self = reinterpret_cast(thisPtr); + Ark_PixelMapMock self = reinterpret_cast(thisPtr); GetAccessors()->getPixelMapMockAccessor()->release(self); } KOALA_INTEROP_V1(PixelMapMock_release, Ark_NativePointer) @@ -19294,84 +19427,88 @@ Ark_NativePointer impl_DragEvent_getFinalizer() { } KOALA_INTEROP_0(DragEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_DragEvent_getDisplayX(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getDisplayX(self); } KOALA_INTEROP_1(DragEvent_getDisplayX, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getDisplayY(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getDisplayY(self); } KOALA_INTEROP_1(DragEvent_getDisplayY, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getWindowX(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getWindowX(self); } KOALA_INTEROP_1(DragEvent_getWindowX, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getWindowY(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getWindowY(self); } KOALA_INTEROP_1(DragEvent_getWindowY, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getX(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getX(self); } KOALA_INTEROP_1(DragEvent_getX, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getY(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getY(self); } KOALA_INTEROP_1(DragEvent_getY, Ark_Int32, Ark_NativePointer) void impl_DragEvent_setData(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_UnifiedData unifiedData_value = static_cast(thisDeserializer.readUnifiedData());; GetAccessors()->getDragEventAccessor()->setData(self, unifiedData_value); } KOALA_INTEROP_V3(DragEvent_setData, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_DragEvent_getData(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getData(self); } KOALA_INTEROP_1(DragEvent_getData, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_DragEvent_getSummary(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDragEventAccessor()->getSummary(self); +KInteropReturnBuffer impl_DragEvent_getSummary(Ark_NativePointer thisPtr) { + Ark_DragEvent self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeSummary(GetAccessors()->getDragEventAccessor()->getSummary(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(DragEvent_getSummary, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(DragEvent_getSummary, KInteropReturnBuffer, Ark_NativePointer) void impl_DragEvent_setResult(Ark_NativePointer thisPtr, Ark_Int32 dragResult) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); GetAccessors()->getDragEventAccessor()->setResult(self, static_cast(dragResult)); } KOALA_INTEROP_V2(DragEvent_setResult, Ark_NativePointer, Ark_Int32) -Ark_NativePointer impl_DragEvent_getResult(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDragEventAccessor()->getResult(self); -} -KOALA_INTEROP_1(DragEvent_getResult, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_DragEvent_getPreviewRect(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDragEventAccessor()->getPreviewRect(self); -} -KOALA_INTEROP_1(DragEvent_getPreviewRect, Ark_NativePointer, Ark_NativePointer) +void impl_DragEvent_getResult(Ark_NativePointer thisPtr) { + Ark_DragEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getDragEventAccessor()->getResult(self); +} +KOALA_INTEROP_V1(DragEvent_getResult, Ark_NativePointer) +KInteropReturnBuffer impl_DragEvent_getPreviewRect(Ark_NativePointer thisPtr) { + Ark_DragEvent self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRectangle(GetAccessors()->getDragEventAccessor()->getPreviewRect(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(DragEvent_getPreviewRect, KInteropReturnBuffer, Ark_NativePointer) Ark_Int32 impl_DragEvent_getVelocityX(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getVelocityX(self); } KOALA_INTEROP_1(DragEvent_getVelocityX, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getVelocityY(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getVelocityY(self); } KOALA_INTEROP_1(DragEvent_getVelocityY, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_DragEvent_getVelocity(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getVelocity(self); } KOALA_INTEROP_1(DragEvent_getVelocity, Ark_Int32, Ark_NativePointer) Ark_Boolean impl_DragEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 keys_value_buf_length = thisDeserializer.readInt32(); Array_String keys_value_buf = {}; @@ -19384,23 +19521,23 @@ Ark_Boolean impl_DragEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_ return GetAccessors()->getDragEventAccessor()->getModifierKeyState(self, (const Array_String*)&keys_value); } KOALA_INTEROP_3(DragEvent_getModifierKeyState, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_DragEvent_getDragBehavior(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDragEventAccessor()->getDragBehavior(self); +void impl_DragEvent_getDragBehavior(Ark_NativePointer thisPtr) { + Ark_DragEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getDragEventAccessor()->getDragBehavior(self); } -KOALA_INTEROP_1(DragEvent_getDragBehavior, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(DragEvent_getDragBehavior, Ark_NativePointer) void impl_DragEvent_setDragBehavior(Ark_NativePointer thisPtr, Ark_Int32 dragBehavior) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); GetAccessors()->getDragEventAccessor()->setDragBehavior(self, static_cast(dragBehavior)); } KOALA_INTEROP_V2(DragEvent_setDragBehavior, Ark_NativePointer, Ark_Int32) Ark_Boolean impl_DragEvent_getUseCustomDropAnimation(Ark_NativePointer thisPtr) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getDragEventAccessor()->getUseCustomDropAnimation(self); } KOALA_INTEROP_1(DragEvent_getUseCustomDropAnimation, Ark_Boolean, Ark_NativePointer) void impl_DragEvent_setUseCustomDropAnimation(Ark_NativePointer thisPtr, Ark_Boolean useCustomDropAnimation) { - DragEventPeer* self = reinterpret_cast(thisPtr); + Ark_DragEvent self = reinterpret_cast(thisPtr); GetAccessors()->getDragEventAccessor()->setUseCustomDropAnimation(self, useCustomDropAnimation); } KOALA_INTEROP_V2(DragEvent_setUseCustomDropAnimation, Ark_NativePointer, Ark_Boolean) @@ -19413,7 +19550,7 @@ Ark_NativePointer impl_KeyEvent_getFinalizer() { } KOALA_INTEROP_0(KeyEvent_getFinalizer, Ark_NativePointer) Ark_Boolean impl_KeyEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 keys_value_buf_length = thisDeserializer.readInt32(); Array_String keys_value_buf = {}; @@ -19426,104 +19563,104 @@ Ark_Boolean impl_KeyEvent_getModifierKeyState(Ark_NativePointer thisPtr, uint8_t return GetAccessors()->getKeyEventAccessor()->getModifierKeyState(self, (const Array_String*)&keys_value); } KOALA_INTEROP_3(KeyEvent_getModifierKeyState, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_KeyEvent_getType(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getKeyEventAccessor()->getType(self); +void impl_KeyEvent_getType(Ark_NativePointer thisPtr) { + Ark_KeyEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getKeyEventAccessor()->getType(self); } -KOALA_INTEROP_1(KeyEvent_getType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(KeyEvent_getType, Ark_NativePointer) void impl_KeyEvent_setType(Ark_NativePointer thisPtr, Ark_Int32 type) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setType(self, static_cast(type)); } KOALA_INTEROP_V2(KeyEvent_setType, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_KeyEvent_getKeyCode(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getKeyCode(self); } KOALA_INTEROP_1(KeyEvent_getKeyCode, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setKeyCode(Ark_NativePointer thisPtr, KInteropNumber keyCode) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setKeyCode(self, (const Ark_Number*) (&keyCode)); } KOALA_INTEROP_V2(KeyEvent_setKeyCode, Ark_NativePointer, KInteropNumber) void impl_KeyEvent_getKeyText(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->getKeyText(self); } KOALA_INTEROP_V1(KeyEvent_getKeyText, Ark_NativePointer) void impl_KeyEvent_setKeyText(Ark_NativePointer thisPtr, const KStringPtr& keyText) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setKeyText(self, (const Ark_String*) (&keyText)); } KOALA_INTEROP_V2(KeyEvent_setKeyText, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_KeyEvent_getKeySource(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getKeyEventAccessor()->getKeySource(self); +void impl_KeyEvent_getKeySource(Ark_NativePointer thisPtr) { + Ark_KeyEvent self = reinterpret_cast(thisPtr); + GetAccessors()->getKeyEventAccessor()->getKeySource(self); } -KOALA_INTEROP_1(KeyEvent_getKeySource, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(KeyEvent_getKeySource, Ark_NativePointer) void impl_KeyEvent_setKeySource(Ark_NativePointer thisPtr, Ark_Int32 keySource) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setKeySource(self, static_cast(keySource)); } KOALA_INTEROP_V2(KeyEvent_setKeySource, Ark_NativePointer, Ark_Int32) Ark_Int32 impl_KeyEvent_getDeviceId(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getDeviceId(self); } KOALA_INTEROP_1(KeyEvent_getDeviceId, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setDeviceId(Ark_NativePointer thisPtr, KInteropNumber deviceId) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setDeviceId(self, (const Ark_Number*) (&deviceId)); } KOALA_INTEROP_V2(KeyEvent_setDeviceId, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_KeyEvent_getMetaKey(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getMetaKey(self); } KOALA_INTEROP_1(KeyEvent_getMetaKey, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setMetaKey(Ark_NativePointer thisPtr, KInteropNumber metaKey) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setMetaKey(self, (const Ark_Number*) (&metaKey)); } KOALA_INTEROP_V2(KeyEvent_setMetaKey, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_KeyEvent_getTimestamp(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getTimestamp(self); } KOALA_INTEROP_1(KeyEvent_getTimestamp, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setTimestamp(Ark_NativePointer thisPtr, KInteropNumber timestamp) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setTimestamp(self, (const Ark_Number*) (×tamp)); } KOALA_INTEROP_V2(KeyEvent_setTimestamp, Ark_NativePointer, KInteropNumber) Ark_NativePointer impl_KeyEvent_getStopPropagation(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getKeyEventAccessor()->getStopPropagation(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(KeyEvent_getStopPropagation, Ark_NativePointer, Ark_NativePointer) void impl_KeyEvent_setStopPropagation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_Void stopPropagation_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; GetAccessors()->getKeyEventAccessor()->setStopPropagation(self, (const Callback_Void*)&stopPropagation_value); } KOALA_INTEROP_V3(KeyEvent_setStopPropagation, Ark_NativePointer, uint8_t*, int32_t) void impl_KeyEvent_setIntentionCode(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_IntentionCode intentionCode_value = thisDeserializer.readIntentionCode();; GetAccessors()->getKeyEventAccessor()->setIntentionCode(self, (const Ark_IntentionCode*)&intentionCode_value); } KOALA_INTEROP_V3(KeyEvent_setIntentionCode, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_KeyEvent_getUnicode(Ark_NativePointer thisPtr) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getKeyEventAccessor()->getUnicode(self); } KOALA_INTEROP_1(KeyEvent_getUnicode, Ark_Int32, Ark_NativePointer) void impl_KeyEvent_setUnicode(Ark_NativePointer thisPtr, KInteropNumber unicode) { - KeyEventPeer* self = reinterpret_cast(thisPtr); + Ark_KeyEvent self = reinterpret_cast(thisPtr); GetAccessors()->getKeyEventAccessor()->setUnicode(self, (const Ark_Number*) (&unicode)); } KOALA_INTEROP_V2(KeyEvent_setUnicode, Ark_NativePointer, KInteropNumber) @@ -19560,12 +19697,12 @@ Ark_NativePointer impl_ProgressMask_getFinalizer() { } KOALA_INTEROP_0(ProgressMask_getFinalizer, Ark_NativePointer) void impl_ProgressMask_updateProgress(Ark_NativePointer thisPtr, KInteropNumber value) { - ProgressMaskPeer* self = reinterpret_cast(thisPtr); + Ark_ProgressMask self = reinterpret_cast(thisPtr); GetAccessors()->getProgressMaskAccessor()->updateProgress(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(ProgressMask_updateProgress, Ark_NativePointer, KInteropNumber) void impl_ProgressMask_updateColor(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ProgressMaskPeer* self = reinterpret_cast(thisPtr); + Ark_ProgressMask self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); Ark_ResourceColor value_value_buf = {}; @@ -19594,7 +19731,7 @@ void impl_ProgressMask_updateColor(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(ProgressMask_updateColor, Ark_NativePointer, uint8_t*, int32_t) void impl_ProgressMask_enableBreathingAnimation(Ark_NativePointer thisPtr, Ark_Boolean value) { - ProgressMaskPeer* self = reinterpret_cast(thisPtr); + Ark_ProgressMask self = reinterpret_cast(thisPtr); GetAccessors()->getProgressMaskAccessor()->enableBreathingAnimation(self, value); } KOALA_INTEROP_V2(ProgressMask_enableBreathingAnimation, Ark_NativePointer, Ark_Boolean) @@ -19606,28 +19743,36 @@ Ark_NativePointer impl_Measurable_getFinalizer() { return GetAccessors()->getMeasurableAccessor()->getFinalizer(); } KOALA_INTEROP_0(Measurable_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_Measurable_measure(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MeasurablePeer* self = reinterpret_cast(thisPtr); +KInteropReturnBuffer impl_Measurable_measure(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_Measurable self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ConstraintSizeOptions constraint_value = thisDeserializer.readConstraintSizeOptions();; - return GetAccessors()->getMeasurableAccessor()->measure(self, (const Ark_ConstraintSizeOptions*)&constraint_value); -} -KOALA_INTEROP_3(Measurable_measure, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_Measurable_getMargin(Ark_NativePointer thisPtr) { - MeasurablePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMeasurableAccessor()->getMargin(self); -} -KOALA_INTEROP_1(Measurable_getMargin, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_Measurable_getPadding(Ark_NativePointer thisPtr) { - MeasurablePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMeasurableAccessor()->getPadding(self); -} -KOALA_INTEROP_1(Measurable_getPadding, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_Measurable_getBorderWidth(Ark_NativePointer thisPtr) { - MeasurablePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getMeasurableAccessor()->getBorderWidth(self); -} -KOALA_INTEROP_1(Measurable_getBorderWidth, Ark_NativePointer, Ark_NativePointer) + Serializer _retSerializer {}; + _retSerializer.writeMeasureResult(GetAccessors()->getMeasurableAccessor()->measure(self, (const Ark_ConstraintSizeOptions*)&constraint_value)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_3(Measurable_measure, KInteropReturnBuffer, Ark_NativePointer, uint8_t*, int32_t) +KInteropReturnBuffer impl_Measurable_getMargin(Ark_NativePointer thisPtr) { + Ark_Measurable self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeDirectionalEdgesT(GetAccessors()->getMeasurableAccessor()->getMargin(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(Measurable_getMargin, KInteropReturnBuffer, Ark_NativePointer) +KInteropReturnBuffer impl_Measurable_getPadding(Ark_NativePointer thisPtr) { + Ark_Measurable self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeDirectionalEdgesT(GetAccessors()->getMeasurableAccessor()->getPadding(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(Measurable_getPadding, KInteropReturnBuffer, Ark_NativePointer) +KInteropReturnBuffer impl_Measurable_getBorderWidth(Ark_NativePointer thisPtr) { + Ark_Measurable self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeDirectionalEdgesT(GetAccessors()->getMeasurableAccessor()->getBorderWidth(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(Measurable_getBorderWidth, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_View_ctor() { return GetAccessors()->getViewAccessor()->ctor(); } @@ -19637,7 +19782,7 @@ Ark_NativePointer impl_View_getFinalizer() { } KOALA_INTEROP_0(View_getFinalizer, Ark_NativePointer) void impl_View_create(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ViewPeer* self = reinterpret_cast(thisPtr); + Ark_View self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject value_value = static_cast(thisDeserializer.readCustomObject("Any"));; GetAccessors()->getViewAccessor()->create(self, (const Ark_CustomObject*)&value_value); @@ -19651,18 +19796,22 @@ Ark_NativePointer impl_TextContentControllerBase_getFinalizer() { return GetAccessors()->getTextContentControllerBaseAccessor()->getFinalizer(); } KOALA_INTEROP_0(TextContentControllerBase_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_TextContentControllerBase_getCaretOffset(Ark_NativePointer thisPtr) { - TextContentControllerBasePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTextContentControllerBaseAccessor()->getCaretOffset(self); -} -KOALA_INTEROP_1(TextContentControllerBase_getCaretOffset, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_TextContentControllerBase_getTextContentRect(Ark_NativePointer thisPtr) { - TextContentControllerBasePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTextContentControllerBaseAccessor()->getTextContentRect(self); -} -KOALA_INTEROP_1(TextContentControllerBase_getTextContentRect, Ark_NativePointer, Ark_NativePointer) +KInteropReturnBuffer impl_TextContentControllerBase_getCaretOffset(Ark_NativePointer thisPtr) { + Ark_TextContentControllerBase self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeCaretOffset(GetAccessors()->getTextContentControllerBaseAccessor()->getCaretOffset(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(TextContentControllerBase_getCaretOffset, KInteropReturnBuffer, Ark_NativePointer) +KInteropReturnBuffer impl_TextContentControllerBase_getTextContentRect(Ark_NativePointer thisPtr) { + Ark_TextContentControllerBase self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRectResult(GetAccessors()->getTextContentControllerBaseAccessor()->getTextContentRect(self)); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_1(TextContentControllerBase_getTextContentRect, KInteropReturnBuffer, Ark_NativePointer) Ark_Int32 impl_TextContentControllerBase_getTextContentLineCount(Ark_NativePointer thisPtr) { - TextContentControllerBasePeer* self = reinterpret_cast(thisPtr); + Ark_TextContentControllerBase self = reinterpret_cast(thisPtr); return GetAccessors()->getTextContentControllerBaseAccessor()->getTextContentLineCount(self); } KOALA_INTEROP_1(TextContentControllerBase_getTextContentLineCount, Ark_Int32, Ark_NativePointer) @@ -19675,7 +19824,7 @@ Ark_NativePointer impl_DynamicNode_getFinalizer() { } KOALA_INTEROP_0(DynamicNode_getFinalizer, Ark_NativePointer) void impl_DynamicNode_onMove(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - DynamicNodePeer* self = reinterpret_cast(thisPtr); + Ark_DynamicNode self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto handler_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_OnMoveHandler handler_value_buf = {}; @@ -19697,7 +19846,7 @@ Ark_NativePointer impl_ChildrenMainSize_getFinalizer() { } KOALA_INTEROP_0(ChildrenMainSize_getFinalizer, Ark_NativePointer) void impl_ChildrenMainSize_splice(Ark_NativePointer thisPtr, KInteropNumber start, uint8_t* thisArray, int32_t thisLength) { - ChildrenMainSizePeer* self = reinterpret_cast(thisPtr); + Ark_ChildrenMainSize self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto deleteCount_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number deleteCount_value_buf = {}; @@ -19726,17 +19875,17 @@ void impl_ChildrenMainSize_splice(Ark_NativePointer thisPtr, KInteropNumber star } KOALA_INTEROP_V4(ChildrenMainSize_splice, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_ChildrenMainSize_update(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber childSize) { - ChildrenMainSizePeer* self = reinterpret_cast(thisPtr); + Ark_ChildrenMainSize self = reinterpret_cast(thisPtr); GetAccessors()->getChildrenMainSizeAccessor()->update(self, (const Ark_Number*) (&index), (const Ark_Number*) (&childSize)); } KOALA_INTEROP_V3(ChildrenMainSize_update, Ark_NativePointer, KInteropNumber, KInteropNumber) Ark_Int32 impl_ChildrenMainSize_getChildDefaultSize(Ark_NativePointer thisPtr) { - ChildrenMainSizePeer* self = reinterpret_cast(thisPtr); + Ark_ChildrenMainSize self = reinterpret_cast(thisPtr); return GetAccessors()->getChildrenMainSizeAccessor()->getChildDefaultSize(self); } KOALA_INTEROP_1(ChildrenMainSize_getChildDefaultSize, Ark_Int32, Ark_NativePointer) void impl_ChildrenMainSize_setChildDefaultSize(Ark_NativePointer thisPtr, KInteropNumber childDefaultSize) { - ChildrenMainSizePeer* self = reinterpret_cast(thisPtr); + Ark_ChildrenMainSize self = reinterpret_cast(thisPtr); GetAccessors()->getChildrenMainSizeAccessor()->setChildDefaultSize(self, (const Ark_Number*) (&childDefaultSize)); } KOALA_INTEROP_V2(ChildrenMainSize_setChildDefaultSize, Ark_NativePointer, KInteropNumber) @@ -19749,7 +19898,7 @@ Ark_NativePointer impl_UICommonEvent_getFinalizer() { } KOALA_INTEROP_0(UICommonEvent_getFinalizer, Ark_NativePointer) void impl_UICommonEvent_setOnClick(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_ClickEvent_Void callback__value_buf = {}; @@ -19763,7 +19912,7 @@ void impl_UICommonEvent_setOnClick(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnClick, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnTouch(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_TouchEvent_Void callback__value_buf = {}; @@ -19777,7 +19926,7 @@ void impl_UICommonEvent_setOnTouch(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnTouch, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnAppear(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -19791,7 +19940,7 @@ void impl_UICommonEvent_setOnAppear(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V3(UICommonEvent_setOnAppear, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnDisappear(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -19805,7 +19954,7 @@ void impl_UICommonEvent_setOnDisappear(Ark_NativePointer thisPtr, uint8_t* thisA } KOALA_INTEROP_V3(UICommonEvent_setOnDisappear, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnKeyEvent(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_KeyEvent_Void callback__value_buf = {}; @@ -19819,7 +19968,7 @@ void impl_UICommonEvent_setOnKeyEvent(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_V3(UICommonEvent_setOnKeyEvent, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnFocus(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -19833,7 +19982,7 @@ void impl_UICommonEvent_setOnFocus(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnFocus, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnBlur(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_Void callback__value_buf = {}; @@ -19847,7 +19996,7 @@ void impl_UICommonEvent_setOnBlur(Ark_NativePointer thisPtr, uint8_t* thisArray, } KOALA_INTEROP_V3(UICommonEvent_setOnBlur, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnHover(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_HoverCallback callback__value_buf = {}; @@ -19861,7 +20010,7 @@ void impl_UICommonEvent_setOnHover(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnHover, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnMouse(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_MouseEvent_Void callback__value_buf = {}; @@ -19875,7 +20024,7 @@ void impl_UICommonEvent_setOnMouse(Ark_NativePointer thisPtr, uint8_t* thisArray } KOALA_INTEROP_V3(UICommonEvent_setOnMouse, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnSizeChange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SizeChangeCallback callback__value_buf = {}; @@ -19889,7 +20038,7 @@ void impl_UICommonEvent_setOnSizeChange(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_V3(UICommonEvent_setOnSizeChange, Ark_NativePointer, uint8_t*, int32_t) void impl_UICommonEvent_setOnVisibleAreaApproximateChange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UICommonEventPeer* self = reinterpret_cast(thisPtr); + Ark_UICommonEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_VisibleAreaEventOptions options_value = thisDeserializer.readVisibleAreaEventOptions();; const auto event_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -19912,99 +20061,12 @@ Ark_NativePointer impl_GestureModifier_getFinalizer() { } KOALA_INTEROP_0(GestureModifier_getFinalizer, Ark_NativePointer) void impl_GestureModifier_applyGesture(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - GestureModifierPeer* self = reinterpret_cast(thisPtr); + Ark_GestureModifier self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_UIGestureEvent event_value = thisDeserializer.readUIGestureEvent();; GetAccessors()->getGestureModifierAccessor()->applyGesture(self, (const Ark_UIGestureEvent*)&event_value); } KOALA_INTEROP_V3(GestureModifier_applyGesture, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_GlobalScope_common_getContext(uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - const auto component_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); - Opt_CustomObject component_value_buf = {}; - component_value_buf.tag = component_value_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; - if ((INTEROP_RUNTIME_UNDEFINED) != (component_value_buf_runtimeType)) - { - component_value_buf.value = static_cast(thisDeserializer.readCustomObject("Object")); - } - Opt_CustomObject component_value = component_value_buf;; - return GetAccessors()->getGlobalScope_commonAccessor()->getContext((const Opt_CustomObject*)&component_value); -} -KOALA_INTEROP_2(GlobalScope_common_getContext, Ark_NativePointer, uint8_t*, int32_t) -void impl_GlobalScope_common_postCardAction(uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - Ark_CustomObject component_value = static_cast(thisDeserializer.readCustomObject("Object"));; - Ark_CustomObject action_value = static_cast(thisDeserializer.readCustomObject("Object"));; - GetAccessors()->getGlobalScope_commonAccessor()->postCardAction((const Ark_CustomObject*)&component_value, (const Ark_CustomObject*)&action_value); -} -KOALA_INTEROP_V2(GlobalScope_common_postCardAction, uint8_t*, int32_t) -Ark_NativePointer impl_GlobalScope_common_dollar_r(const KStringPtr& value, uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - const Ark_Int32 params_value_buf_length = thisDeserializer.readInt32(); - Array_CustomObject params_value_buf = {}; - thisDeserializer.resizeArray::type, - std::decay::type>(¶ms_value_buf, params_value_buf_length); - for (int params_value_buf_i = 0; params_value_buf_i < params_value_buf_length; params_value_buf_i++) { - params_value_buf.array[params_value_buf_i] = static_cast(thisDeserializer.readCustomObject("Any")); - } - Array_CustomObject params_value = params_value_buf;; - return GetAccessors()->getGlobalScope_commonAccessor()->dollar_r((const Ark_String*) (&value), (const Array_CustomObject*)¶ms_value); -} -KOALA_INTEROP_3(GlobalScope_common_dollar_r, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) -Ark_NativePointer impl_GlobalScope_common_dollar_rawfile(const KStringPtr& value) { - return GetAccessors()->getGlobalScope_commonAccessor()->dollar_rawfile((const Ark_String*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_dollar_rawfile, Ark_NativePointer, KStringPtr) -void impl_GlobalScope_common_animateTo(uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; - Callback_Void event_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetAccessors()->getGlobalScope_commonAccessor()->animateTo((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); -} -KOALA_INTEROP_V2(GlobalScope_common_animateTo, uint8_t*, int32_t) -void impl_GlobalScope_common_animateToImmediately(uint8_t* thisArray, int32_t thisLength) { - Deserializer thisDeserializer(thisArray, thisLength); - Ark_AnimateParam value_value = thisDeserializer.readAnimateParam();; - Callback_Void event_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))};; - GetAccessors()->getGlobalScope_commonAccessor()->animateToImmediately((const Ark_AnimateParam*)&value_value, (const Callback_Void*)&event_value); -} -KOALA_INTEROP_V2(GlobalScope_common_animateToImmediately, uint8_t*, int32_t) -Ark_Int32 impl_GlobalScope_common_vp2px(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->vp2px((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_vp2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_px2vp(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->px2vp((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_px2vp, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_fp2px(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->fp2px((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_fp2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_px2fp(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->px2fp((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_px2fp, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_lpx2px(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->lpx2px((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_lpx2px, Ark_Int32, KInteropNumber) -Ark_Int32 impl_GlobalScope_common_px2lpx(KInteropNumber value) { - return GetAccessors()->getGlobalScope_commonAccessor()->px2lpx((const Ark_Number*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_px2lpx, Ark_Int32, KInteropNumber) -Ark_Boolean impl_GlobalScope_common_requestFocus(const KStringPtr& value) { - return GetAccessors()->getGlobalScope_commonAccessor()->requestFocus((const Ark_String*) (&value)); -} -KOALA_INTEROP_1(GlobalScope_common_requestFocus, Ark_Boolean, KStringPtr) -void impl_GlobalScope_common_setCursor(Ark_Int32 value) { - GetAccessors()->getGlobalScope_commonAccessor()->setCursor(static_cast(value)); -} -KOALA_INTEROP_V1(GlobalScope_common_setCursor, Ark_Int32) -void impl_GlobalScope_common_restoreDefault() { - GetAccessors()->getGlobalScope_commonAccessor()->restoreDefault(); -} -KOALA_INTEROP_V0(GlobalScope_common_restoreDefault) Ark_NativePointer impl_ContextMenu_ctor() { return GetAccessors()->getContextMenuAccessor()->ctor(); } @@ -20028,12 +20090,12 @@ Ark_NativePointer impl_CustomDialogController_getFinalizer() { } KOALA_INTEROP_0(CustomDialogController_getFinalizer, Ark_NativePointer) void impl_CustomDialogController_open(Ark_NativePointer thisPtr) { - CustomDialogControllerPeer* self = reinterpret_cast(thisPtr); + Ark_CustomDialogController self = reinterpret_cast(thisPtr); GetAccessors()->getCustomDialogControllerAccessor()->open(self); } KOALA_INTEROP_V1(CustomDialogController_open, Ark_NativePointer) void impl_CustomDialogController_close(Ark_NativePointer thisPtr) { - CustomDialogControllerPeer* self = reinterpret_cast(thisPtr); + Ark_CustomDialogController self = reinterpret_cast(thisPtr); GetAccessors()->getCustomDialogControllerAccessor()->close(self); } KOALA_INTEROP_V1(CustomDialogController_close, Ark_NativePointer) @@ -20083,8 +20145,15 @@ Ark_NativePointer impl_BaseGestureEvent_getFinalizer() { return GetAccessors()->getBaseGestureEventAccessor()->getFinalizer(); } KOALA_INTEROP_0(BaseGestureEvent_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_BaseGestureEvent_getFingerList(Ark_NativePointer thisPtr) { + Ark_BaseGestureEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getBaseGestureEventAccessor()->getFingerList(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(BaseGestureEvent_getFingerList, Ark_NativePointer, Ark_NativePointer) void impl_BaseGestureEvent_setFingerList(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - BaseGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_BaseGestureEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 fingerList_value_buf_length = thisDeserializer.readInt32(); Array_FingerInfo fingerList_value_buf = {}; @@ -20114,12 +20183,12 @@ Ark_NativePointer impl_LongPressGestureEvent_getFinalizer() { } KOALA_INTEROP_0(LongPressGestureEvent_getFinalizer, Ark_NativePointer) Ark_Boolean impl_LongPressGestureEvent_getRepeat(Ark_NativePointer thisPtr) { - LongPressGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_LongPressGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getLongPressGestureEventAccessor()->getRepeat(self); } KOALA_INTEROP_1(LongPressGestureEvent_getRepeat, Ark_Boolean, Ark_NativePointer) void impl_LongPressGestureEvent_setRepeat(Ark_NativePointer thisPtr, Ark_Boolean repeat) { - LongPressGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_LongPressGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getLongPressGestureEventAccessor()->setRepeat(self, repeat); } KOALA_INTEROP_V2(LongPressGestureEvent_setRepeat, Ark_NativePointer, Ark_Boolean) @@ -20132,52 +20201,52 @@ Ark_NativePointer impl_PanGestureEvent_getFinalizer() { } KOALA_INTEROP_0(PanGestureEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_PanGestureEvent_getOffsetX(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getOffsetX(self); } KOALA_INTEROP_1(PanGestureEvent_getOffsetX, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setOffsetX(Ark_NativePointer thisPtr, KInteropNumber offsetX) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setOffsetX(self, (const Ark_Number*) (&offsetX)); } KOALA_INTEROP_V2(PanGestureEvent_setOffsetX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PanGestureEvent_getOffsetY(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getOffsetY(self); } KOALA_INTEROP_1(PanGestureEvent_getOffsetY, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setOffsetY(Ark_NativePointer thisPtr, KInteropNumber offsetY) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setOffsetY(self, (const Ark_Number*) (&offsetY)); } KOALA_INTEROP_V2(PanGestureEvent_setOffsetY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PanGestureEvent_getVelocityX(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getVelocityX(self); } KOALA_INTEROP_1(PanGestureEvent_getVelocityX, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setVelocityX(Ark_NativePointer thisPtr, KInteropNumber velocityX) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setVelocityX(self, (const Ark_Number*) (&velocityX)); } KOALA_INTEROP_V2(PanGestureEvent_setVelocityX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PanGestureEvent_getVelocityY(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getVelocityY(self); } KOALA_INTEROP_1(PanGestureEvent_getVelocityY, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setVelocityY(Ark_NativePointer thisPtr, KInteropNumber velocityY) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setVelocityY(self, (const Ark_Number*) (&velocityY)); } KOALA_INTEROP_V2(PanGestureEvent_setVelocityY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PanGestureEvent_getVelocity(Ark_NativePointer thisPtr) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPanGestureEventAccessor()->getVelocity(self); } KOALA_INTEROP_1(PanGestureEvent_getVelocity, Ark_Int32, Ark_NativePointer) void impl_PanGestureEvent_setVelocity(Ark_NativePointer thisPtr, KInteropNumber velocity) { - PanGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureEventAccessor()->setVelocity(self, (const Ark_Number*) (&velocity)); } KOALA_INTEROP_V2(PanGestureEvent_setVelocity, Ark_NativePointer, KInteropNumber) @@ -20190,32 +20259,32 @@ Ark_NativePointer impl_PinchGestureEvent_getFinalizer() { } KOALA_INTEROP_0(PinchGestureEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_PinchGestureEvent_getScale(Ark_NativePointer thisPtr) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPinchGestureEventAccessor()->getScale(self); } KOALA_INTEROP_1(PinchGestureEvent_getScale, Ark_Int32, Ark_NativePointer) void impl_PinchGestureEvent_setScale(Ark_NativePointer thisPtr, KInteropNumber scale) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPinchGestureEventAccessor()->setScale(self, (const Ark_Number*) (&scale)); } KOALA_INTEROP_V2(PinchGestureEvent_setScale, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PinchGestureEvent_getPinchCenterX(Ark_NativePointer thisPtr) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPinchGestureEventAccessor()->getPinchCenterX(self); } KOALA_INTEROP_1(PinchGestureEvent_getPinchCenterX, Ark_Int32, Ark_NativePointer) void impl_PinchGestureEvent_setPinchCenterX(Ark_NativePointer thisPtr, KInteropNumber pinchCenterX) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPinchGestureEventAccessor()->setPinchCenterX(self, (const Ark_Number*) (&pinchCenterX)); } KOALA_INTEROP_V2(PinchGestureEvent_setPinchCenterX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_PinchGestureEvent_getPinchCenterY(Ark_NativePointer thisPtr) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getPinchGestureEventAccessor()->getPinchCenterY(self); } KOALA_INTEROP_1(PinchGestureEvent_getPinchCenterY, Ark_Int32, Ark_NativePointer) void impl_PinchGestureEvent_setPinchCenterY(Ark_NativePointer thisPtr, KInteropNumber pinchCenterY) { - PinchGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_PinchGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getPinchGestureEventAccessor()->setPinchCenterY(self, (const Ark_Number*) (&pinchCenterY)); } KOALA_INTEROP_V2(PinchGestureEvent_setPinchCenterY, Ark_NativePointer, KInteropNumber) @@ -20228,12 +20297,12 @@ Ark_NativePointer impl_RotationGestureEvent_getFinalizer() { } KOALA_INTEROP_0(RotationGestureEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_RotationGestureEvent_getAngle(Ark_NativePointer thisPtr) { - RotationGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_RotationGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getRotationGestureEventAccessor()->getAngle(self); } KOALA_INTEROP_1(RotationGestureEvent_getAngle, Ark_Int32, Ark_NativePointer) void impl_RotationGestureEvent_setAngle(Ark_NativePointer thisPtr, KInteropNumber angle) { - RotationGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_RotationGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getRotationGestureEventAccessor()->setAngle(self, (const Ark_Number*) (&angle)); } KOALA_INTEROP_V2(RotationGestureEvent_setAngle, Ark_NativePointer, KInteropNumber) @@ -20246,22 +20315,22 @@ Ark_NativePointer impl_SwipeGestureEvent_getFinalizer() { } KOALA_INTEROP_0(SwipeGestureEvent_getFinalizer, Ark_NativePointer) Ark_Int32 impl_SwipeGestureEvent_getAngle(Ark_NativePointer thisPtr) { - SwipeGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_SwipeGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getSwipeGestureEventAccessor()->getAngle(self); } KOALA_INTEROP_1(SwipeGestureEvent_getAngle, Ark_Int32, Ark_NativePointer) void impl_SwipeGestureEvent_setAngle(Ark_NativePointer thisPtr, KInteropNumber angle) { - SwipeGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_SwipeGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSwipeGestureEventAccessor()->setAngle(self, (const Ark_Number*) (&angle)); } KOALA_INTEROP_V2(SwipeGestureEvent_setAngle, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_SwipeGestureEvent_getSpeed(Ark_NativePointer thisPtr) { - SwipeGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_SwipeGestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getSwipeGestureEventAccessor()->getSpeed(self); } KOALA_INTEROP_1(SwipeGestureEvent_getSpeed, Ark_Int32, Ark_NativePointer) void impl_SwipeGestureEvent_setSpeed(Ark_NativePointer thisPtr, KInteropNumber speed) { - SwipeGestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_SwipeGestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSwipeGestureEventAccessor()->setSpeed(self, (const Ark_Number*) (&speed)); } KOALA_INTEROP_V2(SwipeGestureEvent_setSpeed, Ark_NativePointer, KInteropNumber) @@ -20274,17 +20343,24 @@ Ark_NativePointer impl_GestureEvent_getFinalizer() { } KOALA_INTEROP_0(GestureEvent_getFinalizer, Ark_NativePointer) Ark_Boolean impl_GestureEvent_getRepeat(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getRepeat(self); } KOALA_INTEROP_1(GestureEvent_getRepeat, Ark_Boolean, Ark_NativePointer) void impl_GestureEvent_setRepeat(Ark_NativePointer thisPtr, Ark_Boolean repeat) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setRepeat(self, repeat); } KOALA_INTEROP_V2(GestureEvent_setRepeat, Ark_NativePointer, Ark_Boolean) +Ark_NativePointer impl_GestureEvent_getFingerList(Ark_NativePointer thisPtr) { + Ark_GestureEvent self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getGestureEventAccessor()->getFingerList(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(GestureEvent_getFingerList, Ark_NativePointer, Ark_NativePointer) void impl_GestureEvent_setFingerList(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 fingerList_value_buf_length = thisDeserializer.readInt32(); Array_FingerInfo fingerList_value_buf = {}; @@ -20298,102 +20374,102 @@ void impl_GestureEvent_setFingerList(Ark_NativePointer thisPtr, uint8_t* thisArr } KOALA_INTEROP_V3(GestureEvent_setFingerList, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_GestureEvent_getOffsetX(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getOffsetX(self); } KOALA_INTEROP_1(GestureEvent_getOffsetX, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setOffsetX(Ark_NativePointer thisPtr, KInteropNumber offsetX) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setOffsetX(self, (const Ark_Number*) (&offsetX)); } KOALA_INTEROP_V2(GestureEvent_setOffsetX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getOffsetY(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getOffsetY(self); } KOALA_INTEROP_1(GestureEvent_getOffsetY, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setOffsetY(Ark_NativePointer thisPtr, KInteropNumber offsetY) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setOffsetY(self, (const Ark_Number*) (&offsetY)); } KOALA_INTEROP_V2(GestureEvent_setOffsetY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getAngle(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getAngle(self); } KOALA_INTEROP_1(GestureEvent_getAngle, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setAngle(Ark_NativePointer thisPtr, KInteropNumber angle) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setAngle(self, (const Ark_Number*) (&angle)); } KOALA_INTEROP_V2(GestureEvent_setAngle, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getSpeed(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getSpeed(self); } KOALA_INTEROP_1(GestureEvent_getSpeed, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setSpeed(Ark_NativePointer thisPtr, KInteropNumber speed) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setSpeed(self, (const Ark_Number*) (&speed)); } KOALA_INTEROP_V2(GestureEvent_setSpeed, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getScale(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getScale(self); } KOALA_INTEROP_1(GestureEvent_getScale, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setScale(Ark_NativePointer thisPtr, KInteropNumber scale) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setScale(self, (const Ark_Number*) (&scale)); } KOALA_INTEROP_V2(GestureEvent_setScale, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getPinchCenterX(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getPinchCenterX(self); } KOALA_INTEROP_1(GestureEvent_getPinchCenterX, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setPinchCenterX(Ark_NativePointer thisPtr, KInteropNumber pinchCenterX) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setPinchCenterX(self, (const Ark_Number*) (&pinchCenterX)); } KOALA_INTEROP_V2(GestureEvent_setPinchCenterX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getPinchCenterY(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getPinchCenterY(self); } KOALA_INTEROP_1(GestureEvent_getPinchCenterY, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setPinchCenterY(Ark_NativePointer thisPtr, KInteropNumber pinchCenterY) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setPinchCenterY(self, (const Ark_Number*) (&pinchCenterY)); } KOALA_INTEROP_V2(GestureEvent_setPinchCenterY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getVelocityX(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getVelocityX(self); } KOALA_INTEROP_1(GestureEvent_getVelocityX, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setVelocityX(Ark_NativePointer thisPtr, KInteropNumber velocityX) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setVelocityX(self, (const Ark_Number*) (&velocityX)); } KOALA_INTEROP_V2(GestureEvent_setVelocityX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getVelocityY(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getVelocityY(self); } KOALA_INTEROP_1(GestureEvent_getVelocityY, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setVelocityY(Ark_NativePointer thisPtr, KInteropNumber velocityY) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setVelocityY(self, (const Ark_Number*) (&velocityY)); } KOALA_INTEROP_V2(GestureEvent_setVelocityY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_GestureEvent_getVelocity(Ark_NativePointer thisPtr) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureEventAccessor()->getVelocity(self); } KOALA_INTEROP_1(GestureEvent_getVelocity, Ark_Int32, Ark_NativePointer) void impl_GestureEvent_setVelocity(Ark_NativePointer thisPtr, KInteropNumber velocity) { - GestureEventPeer* self = reinterpret_cast(thisPtr); + Ark_GestureEvent self = reinterpret_cast(thisPtr); GetAccessors()->getGestureEventAccessor()->setVelocity(self, (const Ark_Number*) (&velocity)); } KOALA_INTEROP_V2(GestureEvent_setVelocity, Ark_NativePointer, KInteropNumber) @@ -20440,25 +20516,25 @@ Ark_NativePointer impl_PanGestureOptions_getFinalizer() { } KOALA_INTEROP_0(PanGestureOptions_getFinalizer, Ark_NativePointer) void impl_PanGestureOptions_setDirection(Ark_NativePointer thisPtr, Ark_Int32 value) { - PanGestureOptionsPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureOptions self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureOptionsAccessor()->setDirection(self, static_cast(value)); } KOALA_INTEROP_V2(PanGestureOptions_setDirection, Ark_NativePointer, Ark_Int32) void impl_PanGestureOptions_setDistance(Ark_NativePointer thisPtr, KInteropNumber value) { - PanGestureOptionsPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureOptions self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureOptionsAccessor()->setDistance(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(PanGestureOptions_setDistance, Ark_NativePointer, KInteropNumber) void impl_PanGestureOptions_setFingers(Ark_NativePointer thisPtr, KInteropNumber value) { - PanGestureOptionsPeer* self = reinterpret_cast(thisPtr); + Ark_PanGestureOptions self = reinterpret_cast(thisPtr); GetAccessors()->getPanGestureOptionsAccessor()->setFingers(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(PanGestureOptions_setFingers, Ark_NativePointer, KInteropNumber) -Ark_NativePointer impl_PanGestureOptions_getDirection(Ark_NativePointer thisPtr) { - PanGestureOptionsPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getPanGestureOptionsAccessor()->getDirection(self); +void impl_PanGestureOptions_getDirection(Ark_NativePointer thisPtr) { + Ark_PanGestureOptions self = reinterpret_cast(thisPtr); + GetAccessors()->getPanGestureOptionsAccessor()->getDirection(self); } -KOALA_INTEROP_1(PanGestureOptions_getDirection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(PanGestureOptions_getDirection, Ark_NativePointer) Ark_NativePointer impl_ScrollableTargetInfo_ctor() { return GetAccessors()->getScrollableTargetInfoAccessor()->ctor(); } @@ -20468,12 +20544,12 @@ Ark_NativePointer impl_ScrollableTargetInfo_getFinalizer() { } KOALA_INTEROP_0(ScrollableTargetInfo_getFinalizer, Ark_NativePointer) Ark_Boolean impl_ScrollableTargetInfo_isBegin(Ark_NativePointer thisPtr) { - ScrollableTargetInfoPeer* self = reinterpret_cast(thisPtr); + Ark_ScrollableTargetInfo self = reinterpret_cast(thisPtr); return GetAccessors()->getScrollableTargetInfoAccessor()->isBegin(self); } KOALA_INTEROP_1(ScrollableTargetInfo_isBegin, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_ScrollableTargetInfo_isEnd(Ark_NativePointer thisPtr) { - ScrollableTargetInfoPeer* self = reinterpret_cast(thisPtr); + Ark_ScrollableTargetInfo self = reinterpret_cast(thisPtr); return GetAccessors()->getScrollableTargetInfoAccessor()->isEnd(self); } KOALA_INTEROP_1(ScrollableTargetInfo_isEnd, Ark_Boolean, Ark_NativePointer) @@ -20486,7 +20562,7 @@ Ark_NativePointer impl_EventTargetInfo_getFinalizer() { } KOALA_INTEROP_0(EventTargetInfo_getFinalizer, Ark_NativePointer) void impl_EventTargetInfo_getId(Ark_NativePointer thisPtr) { - EventTargetInfoPeer* self = reinterpret_cast(thisPtr); + Ark_EventTargetInfo self = reinterpret_cast(thisPtr); GetAccessors()->getEventTargetInfoAccessor()->getId(self); } KOALA_INTEROP_V1(EventTargetInfo_getId, Ark_NativePointer) @@ -20499,42 +20575,42 @@ Ark_NativePointer impl_GestureRecognizer_getFinalizer() { } KOALA_INTEROP_0(GestureRecognizer_getFinalizer, Ark_NativePointer) void impl_GestureRecognizer_getTag(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); GetAccessors()->getGestureRecognizerAccessor()->getTag(self); } KOALA_INTEROP_V1(GestureRecognizer_getTag, Ark_NativePointer) -Ark_NativePointer impl_GestureRecognizer_getType(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getGestureRecognizerAccessor()->getType(self); +void impl_GestureRecognizer_getType(Ark_NativePointer thisPtr) { + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); + GetAccessors()->getGestureRecognizerAccessor()->getType(self); } -KOALA_INTEROP_1(GestureRecognizer_getType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(GestureRecognizer_getType, Ark_NativePointer) Ark_Boolean impl_GestureRecognizer_isBuiltIn(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureRecognizerAccessor()->isBuiltIn(self); } KOALA_INTEROP_1(GestureRecognizer_isBuiltIn, Ark_Boolean, Ark_NativePointer) void impl_GestureRecognizer_setEnabled(Ark_NativePointer thisPtr, Ark_Boolean isEnabled) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); GetAccessors()->getGestureRecognizerAccessor()->setEnabled(self, isEnabled); } KOALA_INTEROP_V2(GestureRecognizer_setEnabled, Ark_NativePointer, Ark_Boolean) Ark_Boolean impl_GestureRecognizer_isEnabled(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureRecognizerAccessor()->isEnabled(self); } KOALA_INTEROP_1(GestureRecognizer_isEnabled, Ark_Boolean, Ark_NativePointer) -Ark_NativePointer impl_GestureRecognizer_getState(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getGestureRecognizerAccessor()->getState(self); +void impl_GestureRecognizer_getState(Ark_NativePointer thisPtr) { + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); + GetAccessors()->getGestureRecognizerAccessor()->getState(self); } -KOALA_INTEROP_1(GestureRecognizer_getState, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(GestureRecognizer_getState, Ark_NativePointer) Ark_NativePointer impl_GestureRecognizer_getEventTargetInfo(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureRecognizerAccessor()->getEventTargetInfo(self); } KOALA_INTEROP_1(GestureRecognizer_getEventTargetInfo, Ark_NativePointer, Ark_NativePointer) Ark_Boolean impl_GestureRecognizer_isValid(Ark_NativePointer thisPtr) { - GestureRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_GestureRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getGestureRecognizerAccessor()->isValid(self); } KOALA_INTEROP_1(GestureRecognizer_isValid, Ark_Boolean, Ark_NativePointer) @@ -20547,7 +20623,7 @@ Ark_NativePointer impl_PanRecognizer_getFinalizer() { } KOALA_INTEROP_0(PanRecognizer_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_PanRecognizer_getPanGestureOptions(Ark_NativePointer thisPtr) { - PanRecognizerPeer* self = reinterpret_cast(thisPtr); + Ark_PanRecognizer self = reinterpret_cast(thisPtr); return GetAccessors()->getPanRecognizerAccessor()->getPanGestureOptions(self); } KOALA_INTEROP_1(PanRecognizer_getPanGestureOptions, Ark_NativePointer, Ark_NativePointer) @@ -20559,11 +20635,13 @@ Ark_NativePointer impl_ImageAnalyzerController_getFinalizer() { return GetAccessors()->getImageAnalyzerControllerAccessor()->getFinalizer(); } KOALA_INTEROP_0(ImageAnalyzerController_getFinalizer, Ark_NativePointer) -void impl_ImageAnalyzerController_getImageAnalyzerSupportTypes(Ark_NativePointer thisPtr) { - ImageAnalyzerControllerPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getImageAnalyzerControllerAccessor()->getImageAnalyzerSupportTypes(self); +Ark_NativePointer impl_ImageAnalyzerController_getImageAnalyzerSupportTypes(Ark_NativePointer thisPtr) { + Ark_ImageAnalyzerController self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getImageAnalyzerControllerAccessor()->getImageAnalyzerSupportTypes(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(ImageAnalyzerController_getImageAnalyzerSupportTypes, Ark_NativePointer) +KOALA_INTEROP_1(ImageAnalyzerController_getImageAnalyzerSupportTypes, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_ListScroller_ctor() { return GetAccessors()->getListScrollerAccessor()->ctor(); } @@ -20572,13 +20650,15 @@ Ark_NativePointer impl_ListScroller_getFinalizer() { return GetAccessors()->getListScrollerAccessor()->getFinalizer(); } KOALA_INTEROP_0(ListScroller_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ListScroller_getItemRectInGroup(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber indexInGroup) { - ListScrollerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getListScrollerAccessor()->getItemRectInGroup(self, (const Ark_Number*) (&index), (const Ark_Number*) (&indexInGroup)); +KInteropReturnBuffer impl_ListScroller_getItemRectInGroup(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber indexInGroup) { + Ark_ListScroller self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRectResult(GetAccessors()->getListScrollerAccessor()->getItemRectInGroup(self, (const Ark_Number*) (&index), (const Ark_Number*) (&indexInGroup))); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(ListScroller_getItemRectInGroup, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber) +KOALA_INTEROP_3(ListScroller_getItemRectInGroup, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_ListScroller_scrollToItemInGroup(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber indexInGroup, uint8_t* thisArray, int32_t thisLength) { - ListScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_ListScroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto smooth_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean smooth_value_buf = {}; @@ -20600,7 +20680,7 @@ void impl_ListScroller_scrollToItemInGroup(Ark_NativePointer thisPtr, KInteropNu } KOALA_INTEROP_V5(ListScroller_scrollToItemInGroup, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_ListScroller_closeAllSwipeActions(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ListScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_ListScroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_CloseSwipeActionOptions options_value_buf = {}; @@ -20613,11 +20693,13 @@ void impl_ListScroller_closeAllSwipeActions(Ark_NativePointer thisPtr, uint8_t* GetAccessors()->getListScrollerAccessor()->closeAllSwipeActions(self, (const Opt_CloseSwipeActionOptions*)&options_value); } KOALA_INTEROP_V3(ListScroller_closeAllSwipeActions, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_ListScroller_getVisibleListContentInfo(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - ListScrollerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getListScrollerAccessor()->getVisibleListContentInfo(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); +KInteropReturnBuffer impl_ListScroller_getVisibleListContentInfo(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { + Ark_ListScroller self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeVisibleListContentInfo(GetAccessors()->getListScrollerAccessor()->getVisibleListContentInfo(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y))); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(ListScroller_getVisibleListContentInfo, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber) +KOALA_INTEROP_3(ListScroller_getVisibleListContentInfo, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber, KInteropNumber) Ark_NativePointer impl_Matrix2D_ctor() { return GetAccessors()->getMatrix2DAccessor()->ctor(); } @@ -20627,17 +20709,17 @@ Ark_NativePointer impl_Matrix2D_getFinalizer() { } KOALA_INTEROP_0(Matrix2D_getFinalizer, Ark_NativePointer) Ark_NativePointer impl_Matrix2D_identity(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->identity(self); } KOALA_INTEROP_1(Matrix2D_identity, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_Matrix2D_invert(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->invert(self); } KOALA_INTEROP_1(Matrix2D_invert, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_Matrix2D_multiply(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto other_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Matrix2D other_value_buf = {}; @@ -20651,7 +20733,7 @@ Ark_NativePointer impl_Matrix2D_multiply(Ark_NativePointer thisPtr, uint8_t* thi } KOALA_INTEROP_3(Matrix2D_multiply, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Matrix2D_rotate0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto rx_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number rx_value_buf = {}; @@ -20673,7 +20755,7 @@ Ark_NativePointer impl_Matrix2D_rotate0(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_3(Matrix2D_rotate0, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Matrix2D_rotate1(Ark_NativePointer thisPtr, KInteropNumber degree, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto rx_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number rx_value_buf = {}; @@ -20695,7 +20777,7 @@ Ark_NativePointer impl_Matrix2D_rotate1(Ark_NativePointer thisPtr, KInteropNumbe } KOALA_INTEROP_4(Matrix2D_rotate1, Ark_NativePointer, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) Ark_NativePointer impl_Matrix2D_translate(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto tx_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number tx_value_buf = {}; @@ -20717,7 +20799,7 @@ Ark_NativePointer impl_Matrix2D_translate(Ark_NativePointer thisPtr, uint8_t* th } KOALA_INTEROP_3(Matrix2D_translate, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_Matrix2D_scale(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto sx_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number sx_value_buf = {}; @@ -20739,62 +20821,62 @@ Ark_NativePointer impl_Matrix2D_scale(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_3(Matrix2D_scale, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_Matrix2D_getScaleX(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getScaleX(self); } KOALA_INTEROP_1(Matrix2D_getScaleX, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setScaleX(Ark_NativePointer thisPtr, KInteropNumber scaleX) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setScaleX(self, (const Ark_Number*) (&scaleX)); } KOALA_INTEROP_V2(Matrix2D_setScaleX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getRotateY(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getRotateY(self); } KOALA_INTEROP_1(Matrix2D_getRotateY, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setRotateY(Ark_NativePointer thisPtr, KInteropNumber rotateY) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setRotateY(self, (const Ark_Number*) (&rotateY)); } KOALA_INTEROP_V2(Matrix2D_setRotateY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getRotateX(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getRotateX(self); } KOALA_INTEROP_1(Matrix2D_getRotateX, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setRotateX(Ark_NativePointer thisPtr, KInteropNumber rotateX) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setRotateX(self, (const Ark_Number*) (&rotateX)); } KOALA_INTEROP_V2(Matrix2D_setRotateX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getScaleY(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getScaleY(self); } KOALA_INTEROP_1(Matrix2D_getScaleY, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setScaleY(Ark_NativePointer thisPtr, KInteropNumber scaleY) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setScaleY(self, (const Ark_Number*) (&scaleY)); } KOALA_INTEROP_V2(Matrix2D_setScaleY, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getTranslateX(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getTranslateX(self); } KOALA_INTEROP_1(Matrix2D_getTranslateX, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setTranslateX(Ark_NativePointer thisPtr, KInteropNumber translateX) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setTranslateX(self, (const Ark_Number*) (&translateX)); } KOALA_INTEROP_V2(Matrix2D_setTranslateX, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Matrix2D_getTranslateY(Ark_NativePointer thisPtr) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); return GetAccessors()->getMatrix2DAccessor()->getTranslateY(self); } KOALA_INTEROP_1(Matrix2D_getTranslateY, Ark_Int32, Ark_NativePointer) void impl_Matrix2D_setTranslateY(Ark_NativePointer thisPtr, KInteropNumber translateY) { - Matrix2DPeer* self = reinterpret_cast(thisPtr); + Ark_Matrix2D self = reinterpret_cast(thisPtr); GetAccessors()->getMatrix2DAccessor()->setTranslateY(self, (const Ark_Number*) (&translateY)); } KOALA_INTEROP_V2(Matrix2D_setTranslateY, Ark_NativePointer, KInteropNumber) @@ -20806,32 +20888,32 @@ Ark_NativePointer impl_NavDestinationContext_getFinalizer() { return GetAccessors()->getNavDestinationContextAccessor()->getFinalizer(); } KOALA_INTEROP_0(NavDestinationContext_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_NavDestinationContext_getConfigInRouteMap(Ark_NativePointer thisPtr) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getNavDestinationContextAccessor()->getConfigInRouteMap(self); +void impl_NavDestinationContext_getConfigInRouteMap(Ark_NativePointer thisPtr) { + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); + GetAccessors()->getNavDestinationContextAccessor()->getConfigInRouteMap(self); } -KOALA_INTEROP_1(NavDestinationContext_getConfigInRouteMap, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(NavDestinationContext_getConfigInRouteMap, Ark_NativePointer) void impl_NavDestinationContext_setPathInfo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo pathInfo_value = static_cast(thisDeserializer.readNavPathInfo());; GetAccessors()->getNavDestinationContextAccessor()->setPathInfo(self, pathInfo_value); } KOALA_INTEROP_V3(NavDestinationContext_setPathInfo, Ark_NativePointer, uint8_t*, int32_t) void impl_NavDestinationContext_setPathStack(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathStack pathStack_value = static_cast(thisDeserializer.readNavPathStack());; GetAccessors()->getNavDestinationContextAccessor()->setPathStack(self, pathStack_value); } KOALA_INTEROP_V3(NavDestinationContext_setPathStack, Ark_NativePointer, uint8_t*, int32_t) void impl_NavDestinationContext_getNavDestinationId(Ark_NativePointer thisPtr) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); GetAccessors()->getNavDestinationContextAccessor()->getNavDestinationId(self); } KOALA_INTEROP_V1(NavDestinationContext_getNavDestinationId, Ark_NativePointer) void impl_NavDestinationContext_setNavDestinationId(Ark_NativePointer thisPtr, const KStringPtr& navDestinationId) { - NavDestinationContextPeer* self = reinterpret_cast(thisPtr); + Ark_NavDestinationContext self = reinterpret_cast(thisPtr); GetAccessors()->getNavDestinationContextAccessor()->setNavDestinationId(self, (const Ark_String*) (&navDestinationId)); } KOALA_INTEROP_V2(NavDestinationContext_setNavDestinationId, Ark_NativePointer, KStringPtr) @@ -20862,43 +20944,43 @@ Ark_NativePointer impl_NavPathInfo_getFinalizer() { } KOALA_INTEROP_0(NavPathInfo_getFinalizer, Ark_NativePointer) void impl_NavPathInfo_getName(Ark_NativePointer thisPtr) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathInfoAccessor()->getName(self); } KOALA_INTEROP_V1(NavPathInfo_getName, Ark_NativePointer) void impl_NavPathInfo_setName(Ark_NativePointer thisPtr, const KStringPtr& name) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathInfoAccessor()->setName(self, (const Ark_String*) (&name)); } KOALA_INTEROP_V2(NavPathInfo_setName, Ark_NativePointer, KStringPtr) void impl_NavPathInfo_setParam(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Any"));; GetAccessors()->getNavPathInfoAccessor()->setParam(self, (const Ark_CustomObject*)¶m_value); } KOALA_INTEROP_V3(NavPathInfo_setParam, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_NavPathInfo_getOnPop(Ark_NativePointer thisPtr) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); [[maybe_unused]] const auto &value = GetAccessors()->getNavPathInfoAccessor()->getOnPop(self); // TODO: Value serialization needs to be implemented return {}; } KOALA_INTEROP_1(NavPathInfo_getOnPop, Ark_NativePointer, Ark_NativePointer) void impl_NavPathInfo_setOnPop(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_PopInfo_Void onPop_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_PopInfo_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_PopInfo_Void))))};; GetAccessors()->getNavPathInfoAccessor()->setOnPop(self, (const Callback_PopInfo_Void*)&onPop_value); } KOALA_INTEROP_V3(NavPathInfo_setOnPop, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_NavPathInfo_getIsEntry(Ark_NativePointer thisPtr) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); return GetAccessors()->getNavPathInfoAccessor()->getIsEntry(self); } KOALA_INTEROP_1(NavPathInfo_getIsEntry, Ark_Boolean, Ark_NativePointer) void impl_NavPathInfo_setIsEntry(Ark_NativePointer thisPtr, Ark_Boolean isEntry) { - NavPathInfoPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathInfo self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathInfoAccessor()->setIsEntry(self, isEntry); } KOALA_INTEROP_V2(NavPathInfo_setIsEntry, Ark_NativePointer, Ark_Boolean) @@ -20911,7 +20993,7 @@ Ark_NativePointer impl_NavPathStack_getFinalizer() { } KOALA_INTEROP_0(NavPathStack_getFinalizer, Ark_NativePointer) void impl_NavPathStack_pushPath0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20926,7 +21008,7 @@ void impl_NavPathStack_pushPath0(Ark_NativePointer thisPtr, uint8_t* thisArray, } KOALA_INTEROP_V3(NavPathStack_pushPath0, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_pushPath1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20941,7 +21023,7 @@ void impl_NavPathStack_pushPath1(Ark_NativePointer thisPtr, uint8_t* thisArray, } KOALA_INTEROP_V3(NavPathStack_pushPath1, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_pushDestination0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20957,7 +21039,7 @@ void impl_NavPathStack_pushDestination0(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_V3(NavPathStack_pushDestination0, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_pushDestination1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20973,7 +21055,7 @@ void impl_NavPathStack_pushDestination1(Ark_NativePointer thisPtr, uint8_t* this } KOALA_INTEROP_V3(NavPathStack_pushDestination1, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_pushPathByName0(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Any"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -20988,7 +21070,7 @@ void impl_NavPathStack_pushPathByName0(Ark_NativePointer thisPtr, const KStringP } KOALA_INTEROP_V4(NavPathStack_pushPathByName0, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_pushPathByName1(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Object"));; Callback_PopInfo_Void onPop_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_PopInfo_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_PopInfo_Void))))};; @@ -21004,7 +21086,7 @@ void impl_NavPathStack_pushPathByName1(Ark_NativePointer thisPtr, const KStringP } KOALA_INTEROP_V4(NavPathStack_pushPathByName1, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_pushDestinationByName0(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21020,7 +21102,7 @@ void impl_NavPathStack_pushDestinationByName0(Ark_NativePointer thisPtr, const K } KOALA_INTEROP_V4(NavPathStack_pushDestinationByName0, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_pushDestinationByName1(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Object"));; Callback_PopInfo_Void onPop_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_PopInfo_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_PopInfo_Void))))};; @@ -21037,7 +21119,7 @@ void impl_NavPathStack_pushDestinationByName1(Ark_NativePointer thisPtr, const K } KOALA_INTEROP_V4(NavPathStack_pushDestinationByName1, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_replacePath0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21052,7 +21134,7 @@ void impl_NavPathStack_replacePath0(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V3(NavPathStack_replacePath0, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_replacePath1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21067,7 +21149,7 @@ void impl_NavPathStack_replacePath1(Ark_NativePointer thisPtr, uint8_t* thisArra } KOALA_INTEROP_V3(NavPathStack_replacePath1, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_replaceDestination(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavPathInfo info_value = static_cast(thisDeserializer.readNavPathInfo());; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21083,7 +21165,7 @@ void impl_NavPathStack_replaceDestination(Ark_NativePointer thisPtr, uint8_t* th } KOALA_INTEROP_V3(NavPathStack_replaceDestination, Ark_NativePointer, uint8_t*, int32_t) void impl_NavPathStack_replacePathByName(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject param_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21098,7 +21180,7 @@ void impl_NavPathStack_replacePathByName(Ark_NativePointer thisPtr, const KStrin } KOALA_INTEROP_V4(NavPathStack_replacePathByName, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_removeByIndexes(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 indexes_value_buf_length = thisDeserializer.readInt32(); Array_Number indexes_value_buf = {}; @@ -21112,17 +21194,17 @@ Ark_Int32 impl_NavPathStack_removeByIndexes(Ark_NativePointer thisPtr, uint8_t* } KOALA_INTEROP_3(NavPathStack_removeByIndexes, Ark_Int32, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_removeByName(Ark_NativePointer thisPtr, const KStringPtr& name) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); return GetAccessors()->getNavPathStackAccessor()->removeByName(self, (const Ark_String*) (&name)); } KOALA_INTEROP_2(NavPathStack_removeByName, Ark_Int32, Ark_NativePointer, KStringPtr) Ark_Boolean impl_NavPathStack_removeByNavDestinationId(Ark_NativePointer thisPtr, const KStringPtr& navDestinationId) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); return GetAccessors()->getNavPathStackAccessor()->removeByNavDestinationId(self, (const Ark_String*) (&navDestinationId)); } KOALA_INTEROP_2(NavPathStack_removeByNavDestinationId, Ark_Boolean, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_NavPathStack_pop0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); +void impl_NavPathStack_pop0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21132,11 +21214,11 @@ Ark_NativePointer impl_NavPathStack_pop0(Ark_NativePointer thisPtr, uint8_t* thi animated_value_buf.value = thisDeserializer.readBoolean(); } Opt_Boolean animated_value = animated_value_buf;; - return GetAccessors()->getNavPathStackAccessor()->pop0(self, (const Opt_Boolean*)&animated_value); + GetAccessors()->getNavPathStackAccessor()->pop0(self, (const Opt_Boolean*)&animated_value); } -KOALA_INTEROP_3(NavPathStack_pop0, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_NavPathStack_pop1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); +KOALA_INTEROP_V3(NavPathStack_pop0, Ark_NativePointer, uint8_t*, int32_t) +void impl_NavPathStack_pop1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject result_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21147,11 +21229,11 @@ Ark_NativePointer impl_NavPathStack_pop1(Ark_NativePointer thisPtr, uint8_t* thi animated_value_buf.value = thisDeserializer.readBoolean(); } Opt_Boolean animated_value = animated_value_buf;; - return GetAccessors()->getNavPathStackAccessor()->pop1(self, (const Ark_CustomObject*)&result_value, (const Opt_Boolean*)&animated_value); + GetAccessors()->getNavPathStackAccessor()->pop1(self, (const Ark_CustomObject*)&result_value, (const Opt_Boolean*)&animated_value); } -KOALA_INTEROP_3(NavPathStack_pop1, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(NavPathStack_pop1, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_popToName0(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21165,7 +21247,7 @@ Ark_Int32 impl_NavPathStack_popToName0(Ark_NativePointer thisPtr, const KStringP } KOALA_INTEROP_4(NavPathStack_popToName0, Ark_Int32, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_popToName1(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject result_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21180,7 +21262,7 @@ Ark_Int32 impl_NavPathStack_popToName1(Ark_NativePointer thisPtr, const KStringP } KOALA_INTEROP_4(NavPathStack_popToName1, Ark_Int32, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_popToIndex0(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21194,7 +21276,7 @@ void impl_NavPathStack_popToIndex0(Ark_NativePointer thisPtr, KInteropNumber ind } KOALA_INTEROP_V4(NavPathStack_popToIndex0, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_NavPathStack_popToIndex1(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomObject result_value = static_cast(thisDeserializer.readCustomObject("Object"));; const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21209,7 +21291,7 @@ void impl_NavPathStack_popToIndex1(Ark_NativePointer thisPtr, KInteropNumber ind } KOALA_INTEROP_V4(NavPathStack_popToIndex1, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) Ark_Int32 impl_NavPathStack_moveToTop(Ark_NativePointer thisPtr, const KStringPtr& name, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21223,7 +21305,7 @@ Ark_Int32 impl_NavPathStack_moveToTop(Ark_NativePointer thisPtr, const KStringPt } KOALA_INTEROP_4(NavPathStack_moveToTop, Ark_Int32, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_NavPathStack_moveIndexToTop(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21237,7 +21319,7 @@ void impl_NavPathStack_moveIndexToTop(Ark_NativePointer thisPtr, KInteropNumber } KOALA_INTEROP_V4(NavPathStack_moveIndexToTop, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_NavPathStack_clear(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto animated_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean animated_value_buf = {}; @@ -21250,43 +21332,49 @@ void impl_NavPathStack_clear(Ark_NativePointer thisPtr, uint8_t* thisArray, int3 GetAccessors()->getNavPathStackAccessor()->clear(self, (const Opt_Boolean*)&animated_value); } KOALA_INTEROP_V3(NavPathStack_clear, Ark_NativePointer, uint8_t*, int32_t) -void impl_NavPathStack_getAllPathName(Ark_NativePointer thisPtr) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavPathStackAccessor()->getAllPathName(self); +Ark_NativePointer impl_NavPathStack_getAllPathName(Ark_NativePointer thisPtr) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getNavPathStackAccessor()->getAllPathName(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(NavPathStack_getAllPathName, Ark_NativePointer) +KOALA_INTEROP_1(NavPathStack_getAllPathName, Ark_NativePointer, Ark_NativePointer) void impl_NavPathStack_getParamByIndex(Ark_NativePointer thisPtr, KInteropNumber index) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathStackAccessor()->getParamByIndex(self, (const Ark_Number*) (&index)); } KOALA_INTEROP_V2(NavPathStack_getParamByIndex, Ark_NativePointer, KInteropNumber) -void impl_NavPathStack_getParamByName(Ark_NativePointer thisPtr, const KStringPtr& name) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavPathStackAccessor()->getParamByName(self, (const Ark_String*) (&name)); +Ark_NativePointer impl_NavPathStack_getParamByName(Ark_NativePointer thisPtr, const KStringPtr& name) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getNavPathStackAccessor()->getParamByName(self, (const Ark_String*) (&name)); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V2(NavPathStack_getParamByName, Ark_NativePointer, KStringPtr) -void impl_NavPathStack_getIndexByName(Ark_NativePointer thisPtr, const KStringPtr& name) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getNavPathStackAccessor()->getIndexByName(self, (const Ark_String*) (&name)); +KOALA_INTEROP_2(NavPathStack_getParamByName, Ark_NativePointer, Ark_NativePointer, KStringPtr) +Ark_NativePointer impl_NavPathStack_getIndexByName(Ark_NativePointer thisPtr, const KStringPtr& name) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getNavPathStackAccessor()->getIndexByName(self, (const Ark_String*) (&name)); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V2(NavPathStack_getIndexByName, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_NavPathStack_getParent(Ark_NativePointer thisPtr) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getNavPathStackAccessor()->getParent(self); +KOALA_INTEROP_2(NavPathStack_getIndexByName, Ark_NativePointer, Ark_NativePointer, KStringPtr) +void impl_NavPathStack_getParent(Ark_NativePointer thisPtr) { + Ark_NavPathStack self = reinterpret_cast(thisPtr); + GetAccessors()->getNavPathStackAccessor()->getParent(self); } -KOALA_INTEROP_1(NavPathStack_getParent, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(NavPathStack_getParent, Ark_NativePointer) Ark_Int32 impl_NavPathStack_size(Ark_NativePointer thisPtr) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); return GetAccessors()->getNavPathStackAccessor()->size(self); } KOALA_INTEROP_1(NavPathStack_size, Ark_Int32, Ark_NativePointer) void impl_NavPathStack_disableAnimation(Ark_NativePointer thisPtr, Ark_Boolean value) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); GetAccessors()->getNavPathStackAccessor()->disableAnimation(self, value); } KOALA_INTEROP_V2(NavPathStack_disableAnimation, Ark_NativePointer, Ark_Boolean) void impl_NavPathStack_setInterception(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavPathStackPeer* self = reinterpret_cast(thisPtr); + Ark_NavPathStack self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavigationInterception interception_value = thisDeserializer.readNavigationInterception();; GetAccessors()->getNavPathStackAccessor()->setInterception(self, (const Ark_NavigationInterception*)&interception_value); @@ -21301,41 +21389,41 @@ Ark_NativePointer impl_NavigationTransitionProxy_getFinalizer() { } KOALA_INTEROP_0(NavigationTransitionProxy_getFinalizer, Ark_NativePointer) void impl_NavigationTransitionProxy_finishTransition(Ark_NativePointer thisPtr) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getNavigationTransitionProxyAccessor()->finishTransition(self); } KOALA_INTEROP_V1(NavigationTransitionProxy_finishTransition, Ark_NativePointer) void impl_NavigationTransitionProxy_cancelTransition(Ark_NativePointer thisPtr) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getNavigationTransitionProxyAccessor()->cancelTransition(self); } KOALA_INTEROP_V1(NavigationTransitionProxy_cancelTransition, Ark_NativePointer) void impl_NavigationTransitionProxy_updateTransition(Ark_NativePointer thisPtr, KInteropNumber progress) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getNavigationTransitionProxyAccessor()->updateTransition(self, (const Ark_Number*) (&progress)); } KOALA_INTEROP_V2(NavigationTransitionProxy_updateTransition, Ark_NativePointer, KInteropNumber) void impl_NavigationTransitionProxy_setFrom(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavContentInfo from_value = thisDeserializer.readNavContentInfo();; GetAccessors()->getNavigationTransitionProxyAccessor()->setFrom(self, (const Ark_NavContentInfo*)&from_value); } KOALA_INTEROP_V3(NavigationTransitionProxy_setFrom, Ark_NativePointer, uint8_t*, int32_t) void impl_NavigationTransitionProxy_setTo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_NavContentInfo to_value = thisDeserializer.readNavContentInfo();; GetAccessors()->getNavigationTransitionProxyAccessor()->setTo(self, (const Ark_NavContentInfo*)&to_value); } KOALA_INTEROP_V3(NavigationTransitionProxy_setTo, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_NavigationTransitionProxy_getIsInteractive(Ark_NativePointer thisPtr) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getNavigationTransitionProxyAccessor()->getIsInteractive(self); } KOALA_INTEROP_1(NavigationTransitionProxy_getIsInteractive, Ark_Boolean, Ark_NativePointer) void impl_NavigationTransitionProxy_setIsInteractive(Ark_NativePointer thisPtr, Ark_Boolean isInteractive) { - NavigationTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_NavigationTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getNavigationTransitionProxyAccessor()->setIsInteractive(self, isInteractive); } KOALA_INTEROP_V2(NavigationTransitionProxy_setIsInteractive, Ark_NativePointer, Ark_Boolean) @@ -21348,12 +21436,12 @@ Ark_NativePointer impl_PatternLockController_getFinalizer() { } KOALA_INTEROP_0(PatternLockController_getFinalizer, Ark_NativePointer) void impl_PatternLockController_reset(Ark_NativePointer thisPtr) { - PatternLockControllerPeer* self = reinterpret_cast(thisPtr); + Ark_PatternLockController self = reinterpret_cast(thisPtr); GetAccessors()->getPatternLockControllerAccessor()->reset(self); } KOALA_INTEROP_V1(PatternLockController_reset, Ark_NativePointer) void impl_PatternLockController_setChallengeResult(Ark_NativePointer thisPtr, Ark_Int32 result) { - PatternLockControllerPeer* self = reinterpret_cast(thisPtr); + Ark_PatternLockController self = reinterpret_cast(thisPtr); GetAccessors()->getPatternLockControllerAccessor()->setChallengeResult(self, static_cast(result)); } KOALA_INTEROP_V2(PatternLockController_setChallengeResult, Ark_NativePointer, Ark_Int32) @@ -21366,34 +21454,36 @@ Ark_NativePointer impl_RichEditorBaseController_getFinalizer() { } KOALA_INTEROP_0(RichEditorBaseController_getFinalizer, Ark_NativePointer) Ark_Int32 impl_RichEditorBaseController_getCaretOffset(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorBaseControllerAccessor()->getCaretOffset(self); } KOALA_INTEROP_1(RichEditorBaseController_getCaretOffset, Ark_Int32, Ark_NativePointer) Ark_Boolean impl_RichEditorBaseController_setCaretOffset(Ark_NativePointer thisPtr, KInteropNumber offset) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorBaseControllerAccessor()->setCaretOffset(self, (const Ark_Number*) (&offset)); } KOALA_INTEROP_2(RichEditorBaseController_setCaretOffset, Ark_Boolean, Ark_NativePointer, KInteropNumber) void impl_RichEditorBaseController_closeSelectionMenu(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); GetAccessors()->getRichEditorBaseControllerAccessor()->closeSelectionMenu(self); } KOALA_INTEROP_V1(RichEditorBaseController_closeSelectionMenu, Ark_NativePointer) -Ark_NativePointer impl_RichEditorBaseController_getTypingStyle(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getRichEditorBaseControllerAccessor()->getTypingStyle(self); +KInteropReturnBuffer impl_RichEditorBaseController_getTypingStyle(Ark_NativePointer thisPtr) { + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRichEditorTextStyle(GetAccessors()->getRichEditorBaseControllerAccessor()->getTypingStyle(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(RichEditorBaseController_getTypingStyle, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(RichEditorBaseController_getTypingStyle, KInteropReturnBuffer, Ark_NativePointer) void impl_RichEditorBaseController_setTypingStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_RichEditorTextStyle value_value = thisDeserializer.readRichEditorTextStyle();; GetAccessors()->getRichEditorBaseControllerAccessor()->setTypingStyle(self, (const Ark_RichEditorTextStyle*)&value_value); } KOALA_INTEROP_V3(RichEditorBaseController_setTypingStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_RichEditorBaseController_setSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -21407,25 +21497,27 @@ void impl_RichEditorBaseController_setSelection(Ark_NativePointer thisPtr, KInte } KOALA_INTEROP_V5(RichEditorBaseController_setSelection, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) Ark_Boolean impl_RichEditorBaseController_isEditing(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorBaseControllerAccessor()->isEditing(self); } KOALA_INTEROP_1(RichEditorBaseController_isEditing, Ark_Boolean, Ark_NativePointer) void impl_RichEditorBaseController_stopEditing(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); GetAccessors()->getRichEditorBaseControllerAccessor()->stopEditing(self); } KOALA_INTEROP_V1(RichEditorBaseController_stopEditing, Ark_NativePointer) Ark_NativePointer impl_RichEditorBaseController_getLayoutManager(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorBaseControllerAccessor()->getLayoutManager(self); } KOALA_INTEROP_1(RichEditorBaseController_getLayoutManager, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_RichEditorBaseController_getPreviewText(Ark_NativePointer thisPtr) { - RichEditorBaseControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getRichEditorBaseControllerAccessor()->getPreviewText(self); +KInteropReturnBuffer impl_RichEditorBaseController_getPreviewText(Ark_NativePointer thisPtr) { + Ark_RichEditorBaseController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writePreviewText(GetAccessors()->getRichEditorBaseControllerAccessor()->getPreviewText(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(RichEditorBaseController_getPreviewText, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(RichEditorBaseController_getPreviewText, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_RichEditorController_ctor() { return GetAccessors()->getRichEditorControllerAccessor()->ctor(); } @@ -21435,7 +21527,7 @@ Ark_NativePointer impl_RichEditorController_getFinalizer() { } KOALA_INTEROP_0(RichEditorController_getFinalizer, Ark_NativePointer) Ark_Int32 impl_RichEditorController_addTextSpan(Ark_NativePointer thisPtr, const KStringPtr& value, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_RichEditorTextSpanOptions options_value_buf = {}; @@ -21449,7 +21541,7 @@ Ark_Int32 impl_RichEditorController_addTextSpan(Ark_NativePointer thisPtr, const } KOALA_INTEROP_4(RichEditorController_addTextSpan, Ark_Int32, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) Ark_Int32 impl_RichEditorController_addImageSpan(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_PixelMap_ResourceStr value_value_buf = {}; @@ -21492,7 +21584,7 @@ Ark_Int32 impl_RichEditorController_addImageSpan(Ark_NativePointer thisPtr, uint } KOALA_INTEROP_3(RichEditorController_addImageSpan, Ark_Int32, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_RichEditorController_addBuilderSpan(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); CustomNodeBuilder value_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CustomNodeBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CustomNodeBuilder))))};; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21507,7 +21599,7 @@ Ark_Int32 impl_RichEditorController_addBuilderSpan(Ark_NativePointer thisPtr, ui } KOALA_INTEROP_3(RichEditorController_addBuilderSpan, Ark_Int32, Ark_NativePointer, uint8_t*, int32_t) Ark_Int32 impl_RichEditorController_addSymbolSpan(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Resource value_value = thisDeserializer.readResource();; const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); @@ -21522,7 +21614,7 @@ Ark_Int32 impl_RichEditorController_addSymbolSpan(Ark_NativePointer thisPtr, uin } KOALA_INTEROP_3(RichEditorController_addSymbolSpan, Ark_Int32, Ark_NativePointer, uint8_t*, int32_t) void impl_RichEditorController_updateSpanStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 value_value_buf_selector = thisDeserializer.readInt8(); Ark_Type_RichEditorController_updateSpanStyle_value value_value_buf = {}; @@ -21547,14 +21639,14 @@ void impl_RichEditorController_updateSpanStyle(Ark_NativePointer thisPtr, uint8_ } KOALA_INTEROP_V3(RichEditorController_updateSpanStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_RichEditorController_updateParagraphStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_RichEditorParagraphStyleOptions value_value = thisDeserializer.readRichEditorParagraphStyleOptions();; GetAccessors()->getRichEditorControllerAccessor()->updateParagraphStyle(self, (const Ark_RichEditorParagraphStyleOptions*)&value_value); } KOALA_INTEROP_V3(RichEditorController_updateParagraphStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_RichEditorController_deleteSpans(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_RichEditorRange value_value_buf = {}; @@ -21567,8 +21659,8 @@ void impl_RichEditorController_deleteSpans(Ark_NativePointer thisPtr, uint8_t* t GetAccessors()->getRichEditorControllerAccessor()->deleteSpans(self, (const Opt_RichEditorRange*)&value_value); } KOALA_INTEROP_V3(RichEditorController_deleteSpans, Ark_NativePointer, uint8_t*, int32_t) -void impl_RichEditorController_getSpans(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); +Ark_NativePointer impl_RichEditorController_getSpans(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_RichEditorRange value_value_buf = {}; @@ -21578,11 +21670,13 @@ void impl_RichEditorController_getSpans(Ark_NativePointer thisPtr, uint8_t* this value_value_buf.value = thisDeserializer.readRichEditorRange(); } Opt_RichEditorRange value_value = value_value_buf;; - GetAccessors()->getRichEditorControllerAccessor()->getSpans(self, (const Opt_RichEditorRange*)&value_value); + [[maybe_unused]] const auto &value = GetAccessors()->getRichEditorControllerAccessor()->getSpans(self, (const Opt_RichEditorRange*)&value_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V3(RichEditorController_getSpans, Ark_NativePointer, uint8_t*, int32_t) -void impl_RichEditorController_getParagraphs(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); +KOALA_INTEROP_3(RichEditorController_getSpans, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +Ark_NativePointer impl_RichEditorController_getParagraphs(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto value_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_RichEditorRange value_value_buf = {}; @@ -21592,23 +21686,29 @@ void impl_RichEditorController_getParagraphs(Ark_NativePointer thisPtr, uint8_t* value_value_buf.value = thisDeserializer.readRichEditorRange(); } Opt_RichEditorRange value_value = value_value_buf;; - GetAccessors()->getRichEditorControllerAccessor()->getParagraphs(self, (const Opt_RichEditorRange*)&value_value); + [[maybe_unused]] const auto &value = GetAccessors()->getRichEditorControllerAccessor()->getParagraphs(self, (const Opt_RichEditorRange*)&value_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V3(RichEditorController_getParagraphs, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_RichEditorController_getSelection(Ark_NativePointer thisPtr) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getRichEditorControllerAccessor()->getSelection(self); +KOALA_INTEROP_3(RichEditorController_getParagraphs, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KInteropReturnBuffer impl_RichEditorController_getSelection(Ark_NativePointer thisPtr) { + Ark_RichEditorController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRichEditorSelection(GetAccessors()->getRichEditorControllerAccessor()->getSelection(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(RichEditorController_getSelection, Ark_NativePointer, Ark_NativePointer) -void impl_RichEditorController_fromStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); +KOALA_INTEROP_1(RichEditorController_getSelection, KInteropReturnBuffer, Ark_NativePointer) +Ark_NativePointer impl_RichEditorController_fromStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString value_value = static_cast(thisDeserializer.readStyledString());; - GetAccessors()->getRichEditorControllerAccessor()->fromStyledString(self, value_value); + [[maybe_unused]] const auto &value = GetAccessors()->getRichEditorControllerAccessor()->fromStyledString(self, value_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V3(RichEditorController_fromStyledString, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_3(RichEditorController_fromStyledString, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_RichEditorController_toStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_RichEditorRange value_value = thisDeserializer.readRichEditorRange();; return GetAccessors()->getRichEditorControllerAccessor()->toStyledString(self, (const Ark_RichEditorRange*)&value_value); @@ -21623,24 +21723,26 @@ Ark_NativePointer impl_RichEditorStyledStringController_getFinalizer() { } KOALA_INTEROP_0(RichEditorStyledStringController_getFinalizer, Ark_NativePointer) void impl_RichEditorStyledStringController_setStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorStyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorStyledStringController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString styledString_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getRichEditorStyledStringControllerAccessor()->setStyledString(self, styledString_value); } KOALA_INTEROP_V3(RichEditorStyledStringController_setStyledString, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_RichEditorStyledStringController_getStyledString(Ark_NativePointer thisPtr) { - RichEditorStyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorStyledStringController self = reinterpret_cast(thisPtr); return GetAccessors()->getRichEditorStyledStringControllerAccessor()->getStyledString(self); } KOALA_INTEROP_1(RichEditorStyledStringController_getStyledString, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_RichEditorStyledStringController_getSelection(Ark_NativePointer thisPtr) { - RichEditorStyledStringControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getRichEditorStyledStringControllerAccessor()->getSelection(self); +KInteropReturnBuffer impl_RichEditorStyledStringController_getSelection(Ark_NativePointer thisPtr) { + Ark_RichEditorStyledStringController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRichEditorRange(GetAccessors()->getRichEditorStyledStringControllerAccessor()->getSelection(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(RichEditorStyledStringController_getSelection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(RichEditorStyledStringController_getSelection, KInteropReturnBuffer, Ark_NativePointer) void impl_RichEditorStyledStringController_onContentChanged(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - RichEditorStyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_RichEditorStyledStringController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledStringChangedListener listener_value = thisDeserializer.readStyledStringChangedListener();; GetAccessors()->getRichEditorStyledStringControllerAccessor()->onContentChanged(self, (const Ark_StyledStringChangedListener*)&listener_value); @@ -21655,14 +21757,14 @@ Ark_NativePointer impl_Scroller_getFinalizer() { } KOALA_INTEROP_0(Scroller_getFinalizer, Ark_NativePointer) void impl_Scroller_scrollTo(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ScrollOptions options_value = thisDeserializer.readScrollOptions();; GetAccessors()->getScrollerAccessor()->scrollTo(self, (const Ark_ScrollOptions*)&options_value); } KOALA_INTEROP_V3(Scroller_scrollTo, Ark_NativePointer, uint8_t*, int32_t) void impl_Scroller_scrollEdge(Ark_NativePointer thisPtr, Ark_Int32 value, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_ScrollEdgeOptions options_value_buf = {}; @@ -21676,19 +21778,19 @@ void impl_Scroller_scrollEdge(Ark_NativePointer thisPtr, Ark_Int32 value, uint8_ } KOALA_INTEROP_V4(Scroller_scrollEdge, Ark_NativePointer, Ark_Int32, uint8_t*, int32_t) void impl_Scroller_fling(Ark_NativePointer thisPtr, KInteropNumber velocity) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); GetAccessors()->getScrollerAccessor()->fling(self, (const Ark_Number*) (&velocity)); } KOALA_INTEROP_V2(Scroller_fling, Ark_NativePointer, KInteropNumber) void impl_Scroller_scrollPage0(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ScrollPageOptions value_value = thisDeserializer.readScrollPageOptions();; GetAccessors()->getScrollerAccessor()->scrollPage0(self, (const Ark_ScrollPageOptions*)&value_value); } KOALA_INTEROP_V3(Scroller_scrollPage0, Ark_NativePointer, uint8_t*, int32_t) void impl_Scroller_scrollPage1(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Boolean_next_Axis_direction value_value_buf = {}; value_value_buf.next = thisDeserializer.readBoolean(); @@ -21704,13 +21806,15 @@ void impl_Scroller_scrollPage1(Ark_NativePointer thisPtr, uint8_t* thisArray, in GetAccessors()->getScrollerAccessor()->scrollPage1(self, (const Ark_Literal_Boolean_next_Axis_direction*)&value_value); } KOALA_INTEROP_V3(Scroller_scrollPage1, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_Scroller_currentOffset(Ark_NativePointer thisPtr) { - ScrollerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getScrollerAccessor()->currentOffset(self); +KInteropReturnBuffer impl_Scroller_currentOffset(Ark_NativePointer thisPtr) { + Ark_Scroller self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeOffsetResult(GetAccessors()->getScrollerAccessor()->currentOffset(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(Scroller_currentOffset, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(Scroller_currentOffset, KInteropReturnBuffer, Ark_NativePointer) void impl_Scroller_scrollToIndex(Ark_NativePointer thisPtr, KInteropNumber value, uint8_t* thisArray, int32_t thisLength) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto smooth_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean smooth_value_buf = {}; @@ -21740,22 +21844,24 @@ void impl_Scroller_scrollToIndex(Ark_NativePointer thisPtr, KInteropNumber value } KOALA_INTEROP_V4(Scroller_scrollToIndex, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_Scroller_scrollBy(Ark_NativePointer thisPtr, const KLength& dx, const KLength& dy) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); GetAccessors()->getScrollerAccessor()->scrollBy(self, (const Ark_Length*)&dx, (const Ark_Length*)&dy); } KOALA_INTEROP_V3(Scroller_scrollBy, Ark_NativePointer, KLength, KLength) Ark_Boolean impl_Scroller_isAtEnd(Ark_NativePointer thisPtr) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); return GetAccessors()->getScrollerAccessor()->isAtEnd(self); } KOALA_INTEROP_1(Scroller_isAtEnd, Ark_Boolean, Ark_NativePointer) -Ark_NativePointer impl_Scroller_getItemRect(Ark_NativePointer thisPtr, KInteropNumber index) { - ScrollerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getScrollerAccessor()->getItemRect(self, (const Ark_Number*) (&index)); +KInteropReturnBuffer impl_Scroller_getItemRect(Ark_NativePointer thisPtr, KInteropNumber index) { + Ark_Scroller self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeRectResult(GetAccessors()->getScrollerAccessor()->getItemRect(self, (const Ark_Number*) (&index))); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_2(Scroller_getItemRect, Ark_NativePointer, Ark_NativePointer, KInteropNumber) +KOALA_INTEROP_2(Scroller_getItemRect, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_Scroller_getItemIndex(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - ScrollerPeer* self = reinterpret_cast(thisPtr); + Ark_Scroller self = reinterpret_cast(thisPtr); return GetAccessors()->getScrollerAccessor()->getItemIndex(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); } KOALA_INTEROP_3(Scroller_getItemIndex, Ark_Int32, Ark_NativePointer, KInteropNumber, KInteropNumber) @@ -21768,17 +21874,17 @@ Ark_NativePointer impl_SearchController_getFinalizer() { } KOALA_INTEROP_0(SearchController_getFinalizer, Ark_NativePointer) void impl_SearchController_caretPosition(Ark_NativePointer thisPtr, KInteropNumber value) { - SearchControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SearchController self = reinterpret_cast(thisPtr); GetAccessors()->getSearchControllerAccessor()->caretPosition(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(SearchController_caretPosition, Ark_NativePointer, KInteropNumber) void impl_SearchController_stopEditing(Ark_NativePointer thisPtr) { - SearchControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SearchController self = reinterpret_cast(thisPtr); GetAccessors()->getSearchControllerAccessor()->stopEditing(self); } KOALA_INTEROP_V1(SearchController_stopEditing, Ark_NativePointer) void impl_SearchController_setTextSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - SearchControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SearchController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -21800,17 +21906,17 @@ Ark_NativePointer impl_SwiperController_getFinalizer() { } KOALA_INTEROP_0(SwiperController_getFinalizer, Ark_NativePointer) void impl_SwiperController_showNext(Ark_NativePointer thisPtr) { - SwiperControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperController self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperControllerAccessor()->showNext(self); } KOALA_INTEROP_V1(SwiperController_showNext, Ark_NativePointer) void impl_SwiperController_showPrevious(Ark_NativePointer thisPtr) { - SwiperControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperController self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperControllerAccessor()->showPrevious(self); } KOALA_INTEROP_V1(SwiperController_showPrevious, Ark_NativePointer) void impl_SwiperController_changeIndex(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - SwiperControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto useAnimation_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean useAnimation_value_buf = {}; @@ -21824,7 +21930,7 @@ void impl_SwiperController_changeIndex(Ark_NativePointer thisPtr, KInteropNumber } KOALA_INTEROP_V4(SwiperController_changeIndex, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_SwiperController_finishAnimation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - SwiperControllerPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_VoidCallback callback__value_buf = {}; @@ -21846,47 +21952,47 @@ Ark_NativePointer impl_SwiperContentTransitionProxy_getFinalizer() { } KOALA_INTEROP_0(SwiperContentTransitionProxy_getFinalizer, Ark_NativePointer) void impl_SwiperContentTransitionProxy_finishTransition(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->finishTransition(self); } KOALA_INTEROP_V1(SwiperContentTransitionProxy_finishTransition, Ark_NativePointer) Ark_Int32 impl_SwiperContentTransitionProxy_getSelectedIndex(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getSwiperContentTransitionProxyAccessor()->getSelectedIndex(self); } KOALA_INTEROP_1(SwiperContentTransitionProxy_getSelectedIndex, Ark_Int32, Ark_NativePointer) void impl_SwiperContentTransitionProxy_setSelectedIndex(Ark_NativePointer thisPtr, KInteropNumber selectedIndex) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->setSelectedIndex(self, (const Ark_Number*) (&selectedIndex)); } KOALA_INTEROP_V2(SwiperContentTransitionProxy_setSelectedIndex, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_SwiperContentTransitionProxy_getIndex(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getSwiperContentTransitionProxyAccessor()->getIndex(self); } KOALA_INTEROP_1(SwiperContentTransitionProxy_getIndex, Ark_Int32, Ark_NativePointer) void impl_SwiperContentTransitionProxy_setIndex(Ark_NativePointer thisPtr, KInteropNumber index) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->setIndex(self, (const Ark_Number*) (&index)); } KOALA_INTEROP_V2(SwiperContentTransitionProxy_setIndex, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_SwiperContentTransitionProxy_getPosition(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getSwiperContentTransitionProxyAccessor()->getPosition(self); } KOALA_INTEROP_1(SwiperContentTransitionProxy_getPosition, Ark_Int32, Ark_NativePointer) void impl_SwiperContentTransitionProxy_setPosition(Ark_NativePointer thisPtr, KInteropNumber position) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->setPosition(self, (const Ark_Number*) (&position)); } KOALA_INTEROP_V2(SwiperContentTransitionProxy_setPosition, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_SwiperContentTransitionProxy_getMainAxisLength(Ark_NativePointer thisPtr) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getSwiperContentTransitionProxyAccessor()->getMainAxisLength(self); } KOALA_INTEROP_1(SwiperContentTransitionProxy_getMainAxisLength, Ark_Int32, Ark_NativePointer) void impl_SwiperContentTransitionProxy_setMainAxisLength(Ark_NativePointer thisPtr, KInteropNumber mainAxisLength) { - SwiperContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_SwiperContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getSwiperContentTransitionProxyAccessor()->setMainAxisLength(self, (const Ark_Number*) (&mainAxisLength)); } KOALA_INTEROP_V2(SwiperContentTransitionProxy_setMainAxisLength, Ark_NativePointer, KInteropNumber) @@ -21899,17 +22005,17 @@ Ark_NativePointer impl_IndicatorComponentController_getFinalizer() { } KOALA_INTEROP_0(IndicatorComponentController_getFinalizer, Ark_NativePointer) void impl_IndicatorComponentController_showNext(Ark_NativePointer thisPtr) { - IndicatorComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_IndicatorComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getIndicatorComponentControllerAccessor()->showNext(self); } KOALA_INTEROP_V1(IndicatorComponentController_showNext, Ark_NativePointer) void impl_IndicatorComponentController_showPrevious(Ark_NativePointer thisPtr) { - IndicatorComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_IndicatorComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getIndicatorComponentControllerAccessor()->showPrevious(self); } KOALA_INTEROP_V1(IndicatorComponentController_showPrevious, Ark_NativePointer) void impl_IndicatorComponentController_changeIndex(Ark_NativePointer thisPtr, KInteropNumber index, uint8_t* thisArray, int32_t thisLength) { - IndicatorComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_IndicatorComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto useAnimation_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Boolean useAnimation_value_buf = {}; @@ -21947,23 +22053,23 @@ Ark_NativePointer impl_ScaleSymbolEffect_getFinalizer() { return GetAccessors()->getScaleSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(ScaleSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ScaleSymbolEffect_getScope(Ark_NativePointer thisPtr) { - ScaleSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getScaleSymbolEffectAccessor()->getScope(self); +void impl_ScaleSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_ScaleSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getScaleSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(ScaleSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ScaleSymbolEffect_getScope, Ark_NativePointer) void impl_ScaleSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - ScaleSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_ScaleSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getScaleSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(ScaleSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) -Ark_NativePointer impl_ScaleSymbolEffect_getDirection(Ark_NativePointer thisPtr) { - ScaleSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getScaleSymbolEffectAccessor()->getDirection(self); +void impl_ScaleSymbolEffect_getDirection(Ark_NativePointer thisPtr) { + Ark_ScaleSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getScaleSymbolEffectAccessor()->getDirection(self); } -KOALA_INTEROP_1(ScaleSymbolEffect_getDirection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ScaleSymbolEffect_getDirection, Ark_NativePointer) void impl_ScaleSymbolEffect_setDirection(Ark_NativePointer thisPtr, Ark_Int32 direction) { - ScaleSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_ScaleSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getScaleSymbolEffectAccessor()->setDirection(self, static_cast(direction)); } KOALA_INTEROP_V2(ScaleSymbolEffect_setDirection, Ark_NativePointer, Ark_Int32) @@ -21984,13 +22090,13 @@ Ark_NativePointer impl_HierarchicalSymbolEffect_getFinalizer() { return GetAccessors()->getHierarchicalSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(HierarchicalSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_HierarchicalSymbolEffect_getFillStyle(Ark_NativePointer thisPtr) { - HierarchicalSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getHierarchicalSymbolEffectAccessor()->getFillStyle(self); +void impl_HierarchicalSymbolEffect_getFillStyle(Ark_NativePointer thisPtr) { + Ark_HierarchicalSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getHierarchicalSymbolEffectAccessor()->getFillStyle(self); } -KOALA_INTEROP_1(HierarchicalSymbolEffect_getFillStyle, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(HierarchicalSymbolEffect_getFillStyle, Ark_NativePointer) void impl_HierarchicalSymbolEffect_setFillStyle(Ark_NativePointer thisPtr, Ark_Int32 fillStyle) { - HierarchicalSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_HierarchicalSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getHierarchicalSymbolEffectAccessor()->setFillStyle(self, static_cast(fillStyle)); } KOALA_INTEROP_V2(HierarchicalSymbolEffect_setFillStyle, Ark_NativePointer, Ark_Int32) @@ -22011,13 +22117,13 @@ Ark_NativePointer impl_AppearSymbolEffect_getFinalizer() { return GetAccessors()->getAppearSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(AppearSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_AppearSymbolEffect_getScope(Ark_NativePointer thisPtr) { - AppearSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getAppearSymbolEffectAccessor()->getScope(self); +void impl_AppearSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_AppearSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getAppearSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(AppearSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(AppearSymbolEffect_getScope, Ark_NativePointer) void impl_AppearSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - AppearSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_AppearSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getAppearSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(AppearSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) @@ -22038,13 +22144,13 @@ Ark_NativePointer impl_DisappearSymbolEffect_getFinalizer() { return GetAccessors()->getDisappearSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(DisappearSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_DisappearSymbolEffect_getScope(Ark_NativePointer thisPtr) { - DisappearSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDisappearSymbolEffectAccessor()->getScope(self); +void impl_DisappearSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_DisappearSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getDisappearSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(DisappearSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(DisappearSymbolEffect_getScope, Ark_NativePointer) void impl_DisappearSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - DisappearSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_DisappearSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getDisappearSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(DisappearSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) @@ -22073,23 +22179,23 @@ Ark_NativePointer impl_BounceSymbolEffect_getFinalizer() { return GetAccessors()->getBounceSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(BounceSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_BounceSymbolEffect_getScope(Ark_NativePointer thisPtr) { - BounceSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getBounceSymbolEffectAccessor()->getScope(self); +void impl_BounceSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_BounceSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getBounceSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(BounceSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(BounceSymbolEffect_getScope, Ark_NativePointer) void impl_BounceSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - BounceSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_BounceSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getBounceSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(BounceSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) -Ark_NativePointer impl_BounceSymbolEffect_getDirection(Ark_NativePointer thisPtr) { - BounceSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getBounceSymbolEffectAccessor()->getDirection(self); +void impl_BounceSymbolEffect_getDirection(Ark_NativePointer thisPtr) { + Ark_BounceSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getBounceSymbolEffectAccessor()->getDirection(self); } -KOALA_INTEROP_1(BounceSymbolEffect_getDirection, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(BounceSymbolEffect_getDirection, Ark_NativePointer) void impl_BounceSymbolEffect_setDirection(Ark_NativePointer thisPtr, Ark_Int32 direction) { - BounceSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_BounceSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getBounceSymbolEffectAccessor()->setDirection(self, static_cast(direction)); } KOALA_INTEROP_V2(BounceSymbolEffect_setDirection, Ark_NativePointer, Ark_Int32) @@ -22110,13 +22216,13 @@ Ark_NativePointer impl_ReplaceSymbolEffect_getFinalizer() { return GetAccessors()->getReplaceSymbolEffectAccessor()->getFinalizer(); } KOALA_INTEROP_0(ReplaceSymbolEffect_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ReplaceSymbolEffect_getScope(Ark_NativePointer thisPtr) { - ReplaceSymbolEffectPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getReplaceSymbolEffectAccessor()->getScope(self); +void impl_ReplaceSymbolEffect_getScope(Ark_NativePointer thisPtr) { + Ark_ReplaceSymbolEffect self = reinterpret_cast(thisPtr); + GetAccessors()->getReplaceSymbolEffectAccessor()->getScope(self); } -KOALA_INTEROP_1(ReplaceSymbolEffect_getScope, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ReplaceSymbolEffect_getScope, Ark_NativePointer) void impl_ReplaceSymbolEffect_setScope(Ark_NativePointer thisPtr, Ark_Int32 scope) { - ReplaceSymbolEffectPeer* self = reinterpret_cast(thisPtr); + Ark_ReplaceSymbolEffect self = reinterpret_cast(thisPtr); GetAccessors()->getReplaceSymbolEffectAccessor()->setScope(self, static_cast(scope)); } KOALA_INTEROP_V2(ReplaceSymbolEffect_setScope, Ark_NativePointer, Ark_Int32) @@ -22129,12 +22235,12 @@ Ark_NativePointer impl_TabsController_getFinalizer() { } KOALA_INTEROP_0(TabsController_getFinalizer, Ark_NativePointer) void impl_TabsController_changeIndex(Ark_NativePointer thisPtr, KInteropNumber value) { - TabsControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TabsController self = reinterpret_cast(thisPtr); GetAccessors()->getTabsControllerAccessor()->changeIndex(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(TabsController_changeIndex, Ark_NativePointer, KInteropNumber) void impl_TabsController_preloadItems(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TabsControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TabsController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto indices_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Array_Number indices_value_buf = {}; @@ -22156,14 +22262,14 @@ void impl_TabsController_preloadItems(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_V3(TabsController_preloadItems, Ark_NativePointer, uint8_t*, int32_t) void impl_TabsController_setTabBarTranslate(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TabsControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TabsController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TranslateOptions translate_value = thisDeserializer.readTranslateOptions();; GetAccessors()->getTabsControllerAccessor()->setTabBarTranslate(self, (const Ark_TranslateOptions*)&translate_value); } KOALA_INTEROP_V3(TabsController_setTabBarTranslate, Ark_NativePointer, uint8_t*, int32_t) void impl_TabsController_setTabBarOpacity(Ark_NativePointer thisPtr, KInteropNumber opacity) { - TabsControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TabsController self = reinterpret_cast(thisPtr); GetAccessors()->getTabsControllerAccessor()->setTabBarOpacity(self, (const Ark_Number*) (&opacity)); } KOALA_INTEROP_V2(TabsController_setTabBarOpacity, Ark_NativePointer, KInteropNumber) @@ -22176,27 +22282,27 @@ Ark_NativePointer impl_TabContentTransitionProxy_getFinalizer() { } KOALA_INTEROP_0(TabContentTransitionProxy_getFinalizer, Ark_NativePointer) void impl_TabContentTransitionProxy_finishTransition(Ark_NativePointer thisPtr) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getTabContentTransitionProxyAccessor()->finishTransition(self); } KOALA_INTEROP_V1(TabContentTransitionProxy_finishTransition, Ark_NativePointer) Ark_Int32 impl_TabContentTransitionProxy_getFrom(Ark_NativePointer thisPtr) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getTabContentTransitionProxyAccessor()->getFrom(self); } KOALA_INTEROP_1(TabContentTransitionProxy_getFrom, Ark_Int32, Ark_NativePointer) void impl_TabContentTransitionProxy_setFrom(Ark_NativePointer thisPtr, KInteropNumber from) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getTabContentTransitionProxyAccessor()->setFrom(self, (const Ark_Number*) (&from)); } KOALA_INTEROP_V2(TabContentTransitionProxy_setFrom, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_TabContentTransitionProxy_getTo(Ark_NativePointer thisPtr) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); return GetAccessors()->getTabContentTransitionProxyAccessor()->getTo(self); } KOALA_INTEROP_1(TabContentTransitionProxy_getTo, Ark_Int32, Ark_NativePointer) void impl_TabContentTransitionProxy_setTo(Ark_NativePointer thisPtr, KInteropNumber to) { - TabContentTransitionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_TabContentTransitionProxy self = reinterpret_cast(thisPtr); GetAccessors()->getTabContentTransitionProxyAccessor()->setTo(self, (const Ark_Number*) (&to)); } KOALA_INTEROP_V2(TabContentTransitionProxy_setTo, Ark_NativePointer, KInteropNumber) @@ -22209,19 +22315,19 @@ Ark_NativePointer impl_TextController_getFinalizer() { } KOALA_INTEROP_0(TextController_getFinalizer, Ark_NativePointer) void impl_TextController_closeSelectionMenu(Ark_NativePointer thisPtr) { - TextControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextController self = reinterpret_cast(thisPtr); GetAccessors()->getTextControllerAccessor()->closeSelectionMenu(self); } KOALA_INTEROP_V1(TextController_closeSelectionMenu, Ark_NativePointer) void impl_TextController_setStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TextControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString value_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getTextControllerAccessor()->setStyledString(self, value_value); } KOALA_INTEROP_V3(TextController_setStyledString, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_TextController_getLayoutManager(Ark_NativePointer thisPtr) { - TextControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextController self = reinterpret_cast(thisPtr); return GetAccessors()->getTextControllerAccessor()->getLayoutManager(self); } KOALA_INTEROP_1(TextController_getLayoutManager, Ark_NativePointer, Ark_NativePointer) @@ -22234,12 +22340,12 @@ Ark_NativePointer impl_TextAreaController_getFinalizer() { } KOALA_INTEROP_0(TextAreaController_getFinalizer, Ark_NativePointer) void impl_TextAreaController_caretPosition(Ark_NativePointer thisPtr, KInteropNumber value) { - TextAreaControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextAreaController self = reinterpret_cast(thisPtr); GetAccessors()->getTextAreaControllerAccessor()->caretPosition(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(TextAreaController_caretPosition, Ark_NativePointer, KInteropNumber) void impl_TextAreaController_setTextSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - TextAreaControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextAreaController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -22253,7 +22359,7 @@ void impl_TextAreaController_setTextSelection(Ark_NativePointer thisPtr, KIntero } KOALA_INTEROP_V5(TextAreaController_setTextSelection, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_TextAreaController_stopEditing(Ark_NativePointer thisPtr) { - TextAreaControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextAreaController self = reinterpret_cast(thisPtr); GetAccessors()->getTextAreaControllerAccessor()->stopEditing(self); } KOALA_INTEROP_V1(TextAreaController_stopEditing, Ark_NativePointer) @@ -22266,12 +22372,12 @@ Ark_NativePointer impl_TextClockController_getFinalizer() { } KOALA_INTEROP_0(TextClockController_getFinalizer, Ark_NativePointer) void impl_TextClockController_start(Ark_NativePointer thisPtr) { - TextClockControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextClockController self = reinterpret_cast(thisPtr); GetAccessors()->getTextClockControllerAccessor()->start(self); } KOALA_INTEROP_V1(TextClockController_start, Ark_NativePointer) void impl_TextClockController_stop(Ark_NativePointer thisPtr) { - TextClockControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextClockController self = reinterpret_cast(thisPtr); GetAccessors()->getTextClockControllerAccessor()->stop(self); } KOALA_INTEROP_V1(TextClockController_stop, Ark_NativePointer) @@ -22284,7 +22390,7 @@ Ark_NativePointer impl_TextBaseController_getFinalizer() { } KOALA_INTEROP_0(TextBaseController_getFinalizer, Ark_NativePointer) void impl_TextBaseController_setSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - TextBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextBaseController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -22298,12 +22404,12 @@ void impl_TextBaseController_setSelection(Ark_NativePointer thisPtr, KInteropNum } KOALA_INTEROP_V5(TextBaseController_setSelection, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_TextBaseController_closeSelectionMenu(Ark_NativePointer thisPtr) { - TextBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextBaseController self = reinterpret_cast(thisPtr); GetAccessors()->getTextBaseControllerAccessor()->closeSelectionMenu(self); } KOALA_INTEROP_V1(TextBaseController_closeSelectionMenu, Ark_NativePointer) Ark_NativePointer impl_TextBaseController_getLayoutManager(Ark_NativePointer thisPtr) { - TextBaseControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextBaseController self = reinterpret_cast(thisPtr); return GetAccessors()->getTextBaseControllerAccessor()->getLayoutManager(self); } KOALA_INTEROP_1(TextBaseController_getLayoutManager, Ark_NativePointer, Ark_NativePointer) @@ -22316,30 +22422,32 @@ Ark_NativePointer impl_TextEditControllerEx_getFinalizer() { } KOALA_INTEROP_0(TextEditControllerEx_getFinalizer, Ark_NativePointer) Ark_Boolean impl_TextEditControllerEx_isEditing(Ark_NativePointer thisPtr) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); return GetAccessors()->getTextEditControllerExAccessor()->isEditing(self); } KOALA_INTEROP_1(TextEditControllerEx_isEditing, Ark_Boolean, Ark_NativePointer) void impl_TextEditControllerEx_stopEditing(Ark_NativePointer thisPtr) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); GetAccessors()->getTextEditControllerExAccessor()->stopEditing(self); } KOALA_INTEROP_V1(TextEditControllerEx_stopEditing, Ark_NativePointer) Ark_Boolean impl_TextEditControllerEx_setCaretOffset(Ark_NativePointer thisPtr, KInteropNumber offset) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); return GetAccessors()->getTextEditControllerExAccessor()->setCaretOffset(self, (const Ark_Number*) (&offset)); } KOALA_INTEROP_2(TextEditControllerEx_setCaretOffset, Ark_Boolean, Ark_NativePointer, KInteropNumber) Ark_Int32 impl_TextEditControllerEx_getCaretOffset(Ark_NativePointer thisPtr) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); return GetAccessors()->getTextEditControllerExAccessor()->getCaretOffset(self); } KOALA_INTEROP_1(TextEditControllerEx_getCaretOffset, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_TextEditControllerEx_getPreviewText(Ark_NativePointer thisPtr) { - TextEditControllerExPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTextEditControllerExAccessor()->getPreviewText(self); +KInteropReturnBuffer impl_TextEditControllerEx_getPreviewText(Ark_NativePointer thisPtr) { + Ark_TextEditControllerEx self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writePreviewText(GetAccessors()->getTextEditControllerExAccessor()->getPreviewText(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(TextEditControllerEx_getPreviewText, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(TextEditControllerEx_getPreviewText, KInteropReturnBuffer, Ark_NativePointer) Ark_NativePointer impl_StyledStringController_ctor() { return GetAccessors()->getStyledStringControllerAccessor()->ctor(); } @@ -22349,14 +22457,14 @@ Ark_NativePointer impl_StyledStringController_getFinalizer() { } KOALA_INTEROP_0(StyledStringController_getFinalizer, Ark_NativePointer) void impl_StyledStringController_setStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - StyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_StyledStringController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString styledString_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getStyledStringControllerAccessor()->setStyledString(self, styledString_value); } KOALA_INTEROP_V3(StyledStringController_setStyledString, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_StyledStringController_getStyledString(Ark_NativePointer thisPtr) { - StyledStringControllerPeer* self = reinterpret_cast(thisPtr); + Ark_StyledStringController self = reinterpret_cast(thisPtr); return GetAccessors()->getStyledStringControllerAccessor()->getStyledString(self); } KOALA_INTEROP_1(StyledStringController_getStyledString, Ark_NativePointer, Ark_NativePointer) @@ -22369,27 +22477,33 @@ Ark_NativePointer impl_LayoutManager_getFinalizer() { } KOALA_INTEROP_0(LayoutManager_getFinalizer, Ark_NativePointer) Ark_Int32 impl_LayoutManager_getLineCount(Ark_NativePointer thisPtr) { - LayoutManagerPeer* self = reinterpret_cast(thisPtr); + Ark_LayoutManager self = reinterpret_cast(thisPtr); return GetAccessors()->getLayoutManagerAccessor()->getLineCount(self); } KOALA_INTEROP_1(LayoutManager_getLineCount, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_LayoutManager_getGlyphPositionAtCoordinate(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { - LayoutManagerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getLayoutManagerAccessor()->getGlyphPositionAtCoordinate(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y)); -} -KOALA_INTEROP_3(LayoutManager_getGlyphPositionAtCoordinate, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber) -Ark_NativePointer impl_LayoutManager_getLineMetrics(Ark_NativePointer thisPtr, KInteropNumber lineNumber) { - LayoutManagerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getLayoutManagerAccessor()->getLineMetrics(self, (const Ark_Number*) (&lineNumber)); -} -KOALA_INTEROP_2(LayoutManager_getLineMetrics, Ark_NativePointer, Ark_NativePointer, KInteropNumber) -void impl_LayoutManager_getRectsForRange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, Ark_Int32 widthStyle, Ark_Int32 heightStyle) { - LayoutManagerPeer* self = reinterpret_cast(thisPtr); +KInteropReturnBuffer impl_LayoutManager_getGlyphPositionAtCoordinate(Ark_NativePointer thisPtr, KInteropNumber x, KInteropNumber y) { + Ark_LayoutManager self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writePositionWithAffinity(GetAccessors()->getLayoutManagerAccessor()->getGlyphPositionAtCoordinate(self, (const Ark_Number*) (&x), (const Ark_Number*) (&y))); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_3(LayoutManager_getGlyphPositionAtCoordinate, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber, KInteropNumber) +KInteropReturnBuffer impl_LayoutManager_getLineMetrics(Ark_NativePointer thisPtr, KInteropNumber lineNumber) { + Ark_LayoutManager self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeLineMetrics(GetAccessors()->getLayoutManagerAccessor()->getLineMetrics(self, (const Ark_Number*) (&lineNumber))); + return _retSerializer.toReturnBuffer(); +} +KOALA_INTEROP_2(LayoutManager_getLineMetrics, KInteropReturnBuffer, Ark_NativePointer, KInteropNumber) +Ark_NativePointer impl_LayoutManager_getRectsForRange(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength, Ark_Int32 widthStyle, Ark_Int32 heightStyle) { + Ark_LayoutManager self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TextRange range_value = thisDeserializer.readTextRange();; - GetAccessors()->getLayoutManagerAccessor()->getRectsForRange(self, (const Ark_TextRange*)&range_value, static_cast(widthStyle), static_cast(heightStyle)); + [[maybe_unused]] const auto &value = GetAccessors()->getLayoutManagerAccessor()->getRectsForRange(self, (const Ark_TextRange*)&range_value, static_cast(widthStyle), static_cast(heightStyle)); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V5(LayoutManager_getRectsForRange, Ark_NativePointer, uint8_t*, int32_t, Ark_Int32, Ark_Int32) +KOALA_INTEROP_5(LayoutManager_getRectsForRange, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t, Ark_Int32, Ark_Int32) Ark_NativePointer impl_TextMenuItemId_ctor() { return GetAccessors()->getTextMenuItemIdAccessor()->ctor(); } @@ -22419,7 +22533,7 @@ Ark_NativePointer impl_TextMenuItemId_of(uint8_t* thisArray, int32_t thisLength) } KOALA_INTEROP_2(TextMenuItemId_of, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_TextMenuItemId_equals(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - TextMenuItemIdPeer* self = reinterpret_cast(thisPtr); + Ark_TextMenuItemId self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TextMenuItemId id_value = static_cast(thisDeserializer.readTextMenuItemId());; return GetAccessors()->getTextMenuItemIdAccessor()->equals(self, id_value); @@ -22433,8 +22547,8 @@ Ark_NativePointer impl_EditMenuOptions_getFinalizer() { return GetAccessors()->getEditMenuOptionsAccessor()->getFinalizer(); } KOALA_INTEROP_0(EditMenuOptions_getFinalizer, Ark_NativePointer) -void impl_EditMenuOptions_onCreateMenu(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - EditMenuOptionsPeer* self = reinterpret_cast(thisPtr); +Ark_NativePointer impl_EditMenuOptions_onCreateMenu(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_EditMenuOptions self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 menuItems_value_buf_length = thisDeserializer.readInt32(); Array_TextMenuItem menuItems_value_buf = {}; @@ -22444,11 +22558,13 @@ void impl_EditMenuOptions_onCreateMenu(Ark_NativePointer thisPtr, uint8_t* thisA menuItems_value_buf.array[menuItems_value_buf_i] = thisDeserializer.readTextMenuItem(); } Array_TextMenuItem menuItems_value = menuItems_value_buf;; - GetAccessors()->getEditMenuOptionsAccessor()->onCreateMenu(self, (const Array_TextMenuItem*)&menuItems_value); + [[maybe_unused]] const auto &value = GetAccessors()->getEditMenuOptionsAccessor()->onCreateMenu(self, (const Array_TextMenuItem*)&menuItems_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V3(EditMenuOptions_onCreateMenu, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_3(EditMenuOptions_onCreateMenu, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_EditMenuOptions_onMenuItemClick(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - EditMenuOptionsPeer* self = reinterpret_cast(thisPtr); + Ark_EditMenuOptions self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_TextMenuItem menuItem_value = thisDeserializer.readTextMenuItem();; Ark_TextRange range_value = thisDeserializer.readTextRange();; @@ -22464,17 +22580,17 @@ Ark_NativePointer impl_SubmitEvent_getFinalizer() { } KOALA_INTEROP_0(SubmitEvent_getFinalizer, Ark_NativePointer) void impl_SubmitEvent_keepEditableState(Ark_NativePointer thisPtr) { - SubmitEventPeer* self = reinterpret_cast(thisPtr); + Ark_SubmitEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSubmitEventAccessor()->keepEditableState(self); } KOALA_INTEROP_V1(SubmitEvent_keepEditableState, Ark_NativePointer) void impl_SubmitEvent_getText(Ark_NativePointer thisPtr) { - SubmitEventPeer* self = reinterpret_cast(thisPtr); + Ark_SubmitEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSubmitEventAccessor()->getText(self); } KOALA_INTEROP_V1(SubmitEvent_getText, Ark_NativePointer) void impl_SubmitEvent_setText(Ark_NativePointer thisPtr, const KStringPtr& text) { - SubmitEventPeer* self = reinterpret_cast(thisPtr); + Ark_SubmitEvent self = reinterpret_cast(thisPtr); GetAccessors()->getSubmitEventAccessor()->setText(self, (const Ark_String*) (&text)); } KOALA_INTEROP_V2(SubmitEvent_setText, Ark_NativePointer, KStringPtr) @@ -22487,12 +22603,12 @@ Ark_NativePointer impl_TextInputController_getFinalizer() { } KOALA_INTEROP_0(TextInputController_getFinalizer, Ark_NativePointer) void impl_TextInputController_caretPosition(Ark_NativePointer thisPtr, KInteropNumber value) { - TextInputControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextInputController self = reinterpret_cast(thisPtr); GetAccessors()->getTextInputControllerAccessor()->caretPosition(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(TextInputController_caretPosition, Ark_NativePointer, KInteropNumber) void impl_TextInputController_setTextSelection(Ark_NativePointer thisPtr, KInteropNumber selectionStart, KInteropNumber selectionEnd, uint8_t* thisArray, int32_t thisLength) { - TextInputControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextInputController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_SelectionOptions options_value_buf = {}; @@ -22506,7 +22622,7 @@ void impl_TextInputController_setTextSelection(Ark_NativePointer thisPtr, KInter } KOALA_INTEROP_V5(TextInputController_setTextSelection, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_TextInputController_stopEditing(Ark_NativePointer thisPtr) { - TextInputControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextInputController self = reinterpret_cast(thisPtr); GetAccessors()->getTextInputControllerAccessor()->stopEditing(self); } KOALA_INTEROP_V1(TextInputController_stopEditing, Ark_NativePointer) @@ -22540,17 +22656,17 @@ Ark_NativePointer impl_TextTimerController_getFinalizer() { } KOALA_INTEROP_0(TextTimerController_getFinalizer, Ark_NativePointer) void impl_TextTimerController_start(Ark_NativePointer thisPtr) { - TextTimerControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextTimerController self = reinterpret_cast(thisPtr); GetAccessors()->getTextTimerControllerAccessor()->start(self); } KOALA_INTEROP_V1(TextTimerController_start, Ark_NativePointer) void impl_TextTimerController_pause(Ark_NativePointer thisPtr) { - TextTimerControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextTimerController self = reinterpret_cast(thisPtr); GetAccessors()->getTextTimerControllerAccessor()->pause(self); } KOALA_INTEROP_V1(TextTimerController_pause, Ark_NativePointer) void impl_TextTimerController_reset(Ark_NativePointer thisPtr) { - TextTimerControllerPeer* self = reinterpret_cast(thisPtr); + Ark_TextTimerController self = reinterpret_cast(thisPtr); GetAccessors()->getTextTimerControllerAccessor()->reset(self); } KOALA_INTEROP_V1(TextTimerController_reset, Ark_NativePointer) @@ -22601,42 +22717,42 @@ Ark_NativePointer impl_VideoController_getFinalizer() { } KOALA_INTEROP_0(VideoController_getFinalizer, Ark_NativePointer) void impl_VideoController_start(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->start(self); } KOALA_INTEROP_V1(VideoController_start, Ark_NativePointer) void impl_VideoController_pause(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->pause(self); } KOALA_INTEROP_V1(VideoController_pause, Ark_NativePointer) void impl_VideoController_stop(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->stop(self); } KOALA_INTEROP_V1(VideoController_stop, Ark_NativePointer) void impl_VideoController_setCurrentTime0(Ark_NativePointer thisPtr, KInteropNumber value) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->setCurrentTime0(self, (const Ark_Number*) (&value)); } KOALA_INTEROP_V2(VideoController_setCurrentTime0, Ark_NativePointer, KInteropNumber) void impl_VideoController_requestFullscreen(Ark_NativePointer thisPtr, Ark_Boolean value) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->requestFullscreen(self, value); } KOALA_INTEROP_V2(VideoController_requestFullscreen, Ark_NativePointer, Ark_Boolean) void impl_VideoController_exitFullscreen(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->exitFullscreen(self); } KOALA_INTEROP_V1(VideoController_exitFullscreen, Ark_NativePointer) void impl_VideoController_setCurrentTime1(Ark_NativePointer thisPtr, KInteropNumber value, Ark_Int32 seekMode) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->setCurrentTime1(self, (const Ark_Number*) (&value), static_cast(seekMode)); } KOALA_INTEROP_V3(VideoController_setCurrentTime1, Ark_NativePointer, KInteropNumber, Ark_Int32) void impl_VideoController_reset(Ark_NativePointer thisPtr) { - VideoControllerPeer* self = reinterpret_cast(thisPtr); + Ark_VideoController self = reinterpret_cast(thisPtr); GetAccessors()->getVideoControllerAccessor()->reset(self); } KOALA_INTEROP_V1(VideoController_reset, Ark_NativePointer) @@ -22649,27 +22765,27 @@ Ark_NativePointer impl_WebKeyboardController_getFinalizer() { } KOALA_INTEROP_0(WebKeyboardController_getFinalizer, Ark_NativePointer) void impl_WebKeyboardController_insertText(Ark_NativePointer thisPtr, const KStringPtr& text) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->insertText(self, (const Ark_String*) (&text)); } KOALA_INTEROP_V2(WebKeyboardController_insertText, Ark_NativePointer, KStringPtr) void impl_WebKeyboardController_deleteForward(Ark_NativePointer thisPtr, KInteropNumber length) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->deleteForward(self, (const Ark_Number*) (&length)); } KOALA_INTEROP_V2(WebKeyboardController_deleteForward, Ark_NativePointer, KInteropNumber) void impl_WebKeyboardController_deleteBackward(Ark_NativePointer thisPtr, KInteropNumber length) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->deleteBackward(self, (const Ark_Number*) (&length)); } KOALA_INTEROP_V2(WebKeyboardController_deleteBackward, Ark_NativePointer, KInteropNumber) void impl_WebKeyboardController_sendFunctionKey(Ark_NativePointer thisPtr, KInteropNumber key) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->sendFunctionKey(self, (const Ark_Number*) (&key)); } KOALA_INTEROP_V2(WebKeyboardController_sendFunctionKey, Ark_NativePointer, KInteropNumber) void impl_WebKeyboardController_close(Ark_NativePointer thisPtr) { - WebKeyboardControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebKeyboardController self = reinterpret_cast(thisPtr); GetAccessors()->getWebKeyboardControllerAccessor()->close(self); } KOALA_INTEROP_V1(WebKeyboardController_close, Ark_NativePointer) @@ -22682,7 +22798,7 @@ Ark_NativePointer impl_FullScreenExitHandler_getFinalizer() { } KOALA_INTEROP_0(FullScreenExitHandler_getFinalizer, Ark_NativePointer) void impl_FullScreenExitHandler_exitFullScreen(Ark_NativePointer thisPtr) { - FullScreenExitHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_FullScreenExitHandler self = reinterpret_cast(thisPtr); GetAccessors()->getFullScreenExitHandlerAccessor()->exitFullScreen(self); } KOALA_INTEROP_V1(FullScreenExitHandler_exitFullScreen, Ark_NativePointer) @@ -22695,22 +22811,24 @@ Ark_NativePointer impl_FileSelectorParam_getFinalizer() { } KOALA_INTEROP_0(FileSelectorParam_getFinalizer, Ark_NativePointer) void impl_FileSelectorParam_getTitle(Ark_NativePointer thisPtr) { - FileSelectorParamPeer* self = reinterpret_cast(thisPtr); + Ark_FileSelectorParam self = reinterpret_cast(thisPtr); GetAccessors()->getFileSelectorParamAccessor()->getTitle(self); } KOALA_INTEROP_V1(FileSelectorParam_getTitle, Ark_NativePointer) -Ark_NativePointer impl_FileSelectorParam_getMode(Ark_NativePointer thisPtr) { - FileSelectorParamPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getFileSelectorParamAccessor()->getMode(self); -} -KOALA_INTEROP_1(FileSelectorParam_getMode, Ark_NativePointer, Ark_NativePointer) -void impl_FileSelectorParam_getAcceptType(Ark_NativePointer thisPtr) { - FileSelectorParamPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getFileSelectorParamAccessor()->getAcceptType(self); +void impl_FileSelectorParam_getMode(Ark_NativePointer thisPtr) { + Ark_FileSelectorParam self = reinterpret_cast(thisPtr); + GetAccessors()->getFileSelectorParamAccessor()->getMode(self); +} +KOALA_INTEROP_V1(FileSelectorParam_getMode, Ark_NativePointer) +Ark_NativePointer impl_FileSelectorParam_getAcceptType(Ark_NativePointer thisPtr) { + Ark_FileSelectorParam self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getFileSelectorParamAccessor()->getAcceptType(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(FileSelectorParam_getAcceptType, Ark_NativePointer) +KOALA_INTEROP_1(FileSelectorParam_getAcceptType, Ark_NativePointer, Ark_NativePointer) Ark_Boolean impl_FileSelectorParam_isCapture(Ark_NativePointer thisPtr) { - FileSelectorParamPeer* self = reinterpret_cast(thisPtr); + Ark_FileSelectorParam self = reinterpret_cast(thisPtr); return GetAccessors()->getFileSelectorParamAccessor()->isCapture(self); } KOALA_INTEROP_1(FileSelectorParam_isCapture, Ark_Boolean, Ark_NativePointer) @@ -22723,17 +22841,17 @@ Ark_NativePointer impl_JsResult_getFinalizer() { } KOALA_INTEROP_0(JsResult_getFinalizer, Ark_NativePointer) void impl_JsResult_handleCancel(Ark_NativePointer thisPtr) { - JsResultPeer* self = reinterpret_cast(thisPtr); + Ark_JsResult self = reinterpret_cast(thisPtr); GetAccessors()->getJsResultAccessor()->handleCancel(self); } KOALA_INTEROP_V1(JsResult_handleCancel, Ark_NativePointer) void impl_JsResult_handleConfirm(Ark_NativePointer thisPtr) { - JsResultPeer* self = reinterpret_cast(thisPtr); + Ark_JsResult self = reinterpret_cast(thisPtr); GetAccessors()->getJsResultAccessor()->handleConfirm(self); } KOALA_INTEROP_V1(JsResult_handleConfirm, Ark_NativePointer) void impl_JsResult_handlePromptConfirm(Ark_NativePointer thisPtr, const KStringPtr& result) { - JsResultPeer* self = reinterpret_cast(thisPtr); + Ark_JsResult self = reinterpret_cast(thisPtr); GetAccessors()->getJsResultAccessor()->handlePromptConfirm(self, (const Ark_String*) (&result)); } KOALA_INTEROP_V2(JsResult_handlePromptConfirm, Ark_NativePointer, KStringPtr) @@ -22746,7 +22864,7 @@ Ark_NativePointer impl_FileSelectorResult_getFinalizer() { } KOALA_INTEROP_0(FileSelectorResult_getFinalizer, Ark_NativePointer) void impl_FileSelectorResult_handleFileList(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - FileSelectorResultPeer* self = reinterpret_cast(thisPtr); + Ark_FileSelectorResult self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 fileList_value_buf_length = thisDeserializer.readInt32(); Array_String fileList_value_buf = {}; @@ -22768,17 +22886,17 @@ Ark_NativePointer impl_HttpAuthHandler_getFinalizer() { } KOALA_INTEROP_0(HttpAuthHandler_getFinalizer, Ark_NativePointer) Ark_Boolean impl_HttpAuthHandler_confirm(Ark_NativePointer thisPtr, const KStringPtr& userName, const KStringPtr& password) { - HttpAuthHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_HttpAuthHandler self = reinterpret_cast(thisPtr); return GetAccessors()->getHttpAuthHandlerAccessor()->confirm(self, (const Ark_String*) (&userName), (const Ark_String*) (&password)); } KOALA_INTEROP_3(HttpAuthHandler_confirm, Ark_Boolean, Ark_NativePointer, KStringPtr, KStringPtr) void impl_HttpAuthHandler_cancel(Ark_NativePointer thisPtr) { - HttpAuthHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_HttpAuthHandler self = reinterpret_cast(thisPtr); GetAccessors()->getHttpAuthHandlerAccessor()->cancel(self); } KOALA_INTEROP_V1(HttpAuthHandler_cancel, Ark_NativePointer) Ark_Boolean impl_HttpAuthHandler_isHttpAuthInfoSaved(Ark_NativePointer thisPtr) { - HttpAuthHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_HttpAuthHandler self = reinterpret_cast(thisPtr); return GetAccessors()->getHttpAuthHandlerAccessor()->isHttpAuthInfoSaved(self); } KOALA_INTEROP_1(HttpAuthHandler_isHttpAuthInfoSaved, Ark_Boolean, Ark_NativePointer) @@ -22791,12 +22909,12 @@ Ark_NativePointer impl_SslErrorHandler_getFinalizer() { } KOALA_INTEROP_0(SslErrorHandler_getFinalizer, Ark_NativePointer) void impl_SslErrorHandler_handleConfirm(Ark_NativePointer thisPtr) { - SslErrorHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_SslErrorHandler self = reinterpret_cast(thisPtr); GetAccessors()->getSslErrorHandlerAccessor()->handleConfirm(self); } KOALA_INTEROP_V1(SslErrorHandler_handleConfirm, Ark_NativePointer) void impl_SslErrorHandler_handleCancel(Ark_NativePointer thisPtr) { - SslErrorHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_SslErrorHandler self = reinterpret_cast(thisPtr); GetAccessors()->getSslErrorHandlerAccessor()->handleCancel(self); } KOALA_INTEROP_V1(SslErrorHandler_handleCancel, Ark_NativePointer) @@ -22809,22 +22927,22 @@ Ark_NativePointer impl_ClientAuthenticationHandler_getFinalizer() { } KOALA_INTEROP_0(ClientAuthenticationHandler_getFinalizer, Ark_NativePointer) void impl_ClientAuthenticationHandler_confirm0(Ark_NativePointer thisPtr, const KStringPtr& priKeyFile, const KStringPtr& certChainFile) { - ClientAuthenticationHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ClientAuthenticationHandler self = reinterpret_cast(thisPtr); GetAccessors()->getClientAuthenticationHandlerAccessor()->confirm0(self, (const Ark_String*) (&priKeyFile), (const Ark_String*) (&certChainFile)); } KOALA_INTEROP_V3(ClientAuthenticationHandler_confirm0, Ark_NativePointer, KStringPtr, KStringPtr) void impl_ClientAuthenticationHandler_confirm1(Ark_NativePointer thisPtr, const KStringPtr& authUri) { - ClientAuthenticationHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ClientAuthenticationHandler self = reinterpret_cast(thisPtr); GetAccessors()->getClientAuthenticationHandlerAccessor()->confirm1(self, (const Ark_String*) (&authUri)); } KOALA_INTEROP_V2(ClientAuthenticationHandler_confirm1, Ark_NativePointer, KStringPtr) void impl_ClientAuthenticationHandler_cancel(Ark_NativePointer thisPtr) { - ClientAuthenticationHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ClientAuthenticationHandler self = reinterpret_cast(thisPtr); GetAccessors()->getClientAuthenticationHandlerAccessor()->cancel(self); } KOALA_INTEROP_V1(ClientAuthenticationHandler_cancel, Ark_NativePointer) void impl_ClientAuthenticationHandler_ignore(Ark_NativePointer thisPtr) { - ClientAuthenticationHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ClientAuthenticationHandler self = reinterpret_cast(thisPtr); GetAccessors()->getClientAuthenticationHandlerAccessor()->ignore(self); } KOALA_INTEROP_V1(ClientAuthenticationHandler_ignore, Ark_NativePointer) @@ -22837,22 +22955,24 @@ Ark_NativePointer impl_PermissionRequest_getFinalizer() { } KOALA_INTEROP_0(PermissionRequest_getFinalizer, Ark_NativePointer) void impl_PermissionRequest_deny(Ark_NativePointer thisPtr) { - PermissionRequestPeer* self = reinterpret_cast(thisPtr); + Ark_PermissionRequest self = reinterpret_cast(thisPtr); GetAccessors()->getPermissionRequestAccessor()->deny(self); } KOALA_INTEROP_V1(PermissionRequest_deny, Ark_NativePointer) void impl_PermissionRequest_getOrigin(Ark_NativePointer thisPtr) { - PermissionRequestPeer* self = reinterpret_cast(thisPtr); + Ark_PermissionRequest self = reinterpret_cast(thisPtr); GetAccessors()->getPermissionRequestAccessor()->getOrigin(self); } KOALA_INTEROP_V1(PermissionRequest_getOrigin, Ark_NativePointer) -void impl_PermissionRequest_getAccessibleResource(Ark_NativePointer thisPtr) { - PermissionRequestPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getPermissionRequestAccessor()->getAccessibleResource(self); +Ark_NativePointer impl_PermissionRequest_getAccessibleResource(Ark_NativePointer thisPtr) { + Ark_PermissionRequest self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getPermissionRequestAccessor()->getAccessibleResource(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(PermissionRequest_getAccessibleResource, Ark_NativePointer) +KOALA_INTEROP_1(PermissionRequest_getAccessibleResource, Ark_NativePointer, Ark_NativePointer) void impl_PermissionRequest_grant(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - PermissionRequestPeer* self = reinterpret_cast(thisPtr); + Ark_PermissionRequest self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 resources_value_buf_length = thisDeserializer.readInt32(); Array_String resources_value_buf = {}; @@ -22874,19 +22994,19 @@ Ark_NativePointer impl_ScreenCaptureHandler_getFinalizer() { } KOALA_INTEROP_0(ScreenCaptureHandler_getFinalizer, Ark_NativePointer) void impl_ScreenCaptureHandler_getOrigin(Ark_NativePointer thisPtr) { - ScreenCaptureHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ScreenCaptureHandler self = reinterpret_cast(thisPtr); GetAccessors()->getScreenCaptureHandlerAccessor()->getOrigin(self); } KOALA_INTEROP_V1(ScreenCaptureHandler_getOrigin, Ark_NativePointer) void impl_ScreenCaptureHandler_grant(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ScreenCaptureHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ScreenCaptureHandler self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ScreenCaptureConfig config_value = thisDeserializer.readScreenCaptureConfig();; GetAccessors()->getScreenCaptureHandlerAccessor()->grant(self, (const Ark_ScreenCaptureConfig*)&config_value); } KOALA_INTEROP_V3(ScreenCaptureHandler_grant, Ark_NativePointer, uint8_t*, int32_t) void impl_ScreenCaptureHandler_deny(Ark_NativePointer thisPtr) { - ScreenCaptureHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ScreenCaptureHandler self = reinterpret_cast(thisPtr); GetAccessors()->getScreenCaptureHandlerAccessor()->deny(self); } KOALA_INTEROP_V1(ScreenCaptureHandler_deny, Ark_NativePointer) @@ -22899,12 +23019,12 @@ Ark_NativePointer impl_DataResubmissionHandler_getFinalizer() { } KOALA_INTEROP_0(DataResubmissionHandler_getFinalizer, Ark_NativePointer) void impl_DataResubmissionHandler_resend(Ark_NativePointer thisPtr) { - DataResubmissionHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_DataResubmissionHandler self = reinterpret_cast(thisPtr); GetAccessors()->getDataResubmissionHandlerAccessor()->resend(self); } KOALA_INTEROP_V1(DataResubmissionHandler_resend, Ark_NativePointer) void impl_DataResubmissionHandler_cancel(Ark_NativePointer thisPtr) { - DataResubmissionHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_DataResubmissionHandler self = reinterpret_cast(thisPtr); GetAccessors()->getDataResubmissionHandlerAccessor()->cancel(self); } KOALA_INTEROP_V1(DataResubmissionHandler_cancel, Ark_NativePointer) @@ -22917,7 +23037,7 @@ Ark_NativePointer impl_ControllerHandler_getFinalizer() { } KOALA_INTEROP_0(ControllerHandler_getFinalizer, Ark_NativePointer) void impl_ControllerHandler_setWebController(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - ControllerHandlerPeer* self = reinterpret_cast(thisPtr); + Ark_ControllerHandler self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_WebviewController controller_value = static_cast(thisDeserializer.readWebviewController());; GetAccessors()->getControllerHandlerAccessor()->setWebController(self, controller_value); @@ -22932,72 +23052,72 @@ Ark_NativePointer impl_WebContextMenuParam_getFinalizer() { } KOALA_INTEROP_0(WebContextMenuParam_getFinalizer, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_x(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->x(self); } KOALA_INTEROP_1(WebContextMenuParam_x, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_y(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->y(self); } KOALA_INTEROP_1(WebContextMenuParam_y, Ark_Int32, Ark_NativePointer) void impl_WebContextMenuParam_getLinkUrl(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuParamAccessor()->getLinkUrl(self); } KOALA_INTEROP_V1(WebContextMenuParam_getLinkUrl, Ark_NativePointer) void impl_WebContextMenuParam_getUnfilteredLinkUrl(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuParamAccessor()->getUnfilteredLinkUrl(self); } KOALA_INTEROP_V1(WebContextMenuParam_getUnfilteredLinkUrl, Ark_NativePointer) void impl_WebContextMenuParam_getSourceUrl(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuParamAccessor()->getSourceUrl(self); } KOALA_INTEROP_V1(WebContextMenuParam_getSourceUrl, Ark_NativePointer) Ark_Boolean impl_WebContextMenuParam_existsImageContents(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->existsImageContents(self); } KOALA_INTEROP_1(WebContextMenuParam_existsImageContents, Ark_Boolean, Ark_NativePointer) -Ark_NativePointer impl_WebContextMenuParam_getMediaType(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebContextMenuParamAccessor()->getMediaType(self); +void impl_WebContextMenuParam_getMediaType(Ark_NativePointer thisPtr) { + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); + GetAccessors()->getWebContextMenuParamAccessor()->getMediaType(self); } -KOALA_INTEROP_1(WebContextMenuParam_getMediaType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(WebContextMenuParam_getMediaType, Ark_NativePointer) void impl_WebContextMenuParam_getSelectionText(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuParamAccessor()->getSelectionText(self); } KOALA_INTEROP_V1(WebContextMenuParam_getSelectionText, Ark_NativePointer) -Ark_NativePointer impl_WebContextMenuParam_getSourceType(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebContextMenuParamAccessor()->getSourceType(self); +void impl_WebContextMenuParam_getSourceType(Ark_NativePointer thisPtr) { + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); + GetAccessors()->getWebContextMenuParamAccessor()->getSourceType(self); } -KOALA_INTEROP_1(WebContextMenuParam_getSourceType, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_WebContextMenuParam_getInputFieldType(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebContextMenuParamAccessor()->getInputFieldType(self); +KOALA_INTEROP_V1(WebContextMenuParam_getSourceType, Ark_NativePointer) +void impl_WebContextMenuParam_getInputFieldType(Ark_NativePointer thisPtr) { + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); + GetAccessors()->getWebContextMenuParamAccessor()->getInputFieldType(self); } -KOALA_INTEROP_1(WebContextMenuParam_getInputFieldType, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(WebContextMenuParam_getInputFieldType, Ark_NativePointer) Ark_Boolean impl_WebContextMenuParam_isEditable(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->isEditable(self); } KOALA_INTEROP_1(WebContextMenuParam_isEditable, Ark_Boolean, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_getEditStateFlags(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->getEditStateFlags(self); } KOALA_INTEROP_1(WebContextMenuParam_getEditStateFlags, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_getPreviewWidth(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->getPreviewWidth(self); } KOALA_INTEROP_1(WebContextMenuParam_getPreviewWidth, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_WebContextMenuParam_getPreviewHeight(Ark_NativePointer thisPtr) { - WebContextMenuParamPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuParam self = reinterpret_cast(thisPtr); return GetAccessors()->getWebContextMenuParamAccessor()->getPreviewHeight(self); } KOALA_INTEROP_1(WebContextMenuParam_getPreviewHeight, Ark_Int32, Ark_NativePointer) @@ -23010,32 +23130,32 @@ Ark_NativePointer impl_WebContextMenuResult_getFinalizer() { } KOALA_INTEROP_0(WebContextMenuResult_getFinalizer, Ark_NativePointer) void impl_WebContextMenuResult_closeContextMenu(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->closeContextMenu(self); } KOALA_INTEROP_V1(WebContextMenuResult_closeContextMenu, Ark_NativePointer) void impl_WebContextMenuResult_copyImage(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->copyImage(self); } KOALA_INTEROP_V1(WebContextMenuResult_copyImage, Ark_NativePointer) void impl_WebContextMenuResult_copy(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->copy(self); } KOALA_INTEROP_V1(WebContextMenuResult_copy, Ark_NativePointer) void impl_WebContextMenuResult_paste(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->paste(self); } KOALA_INTEROP_V1(WebContextMenuResult_paste, Ark_NativePointer) void impl_WebContextMenuResult_cut(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->cut(self); } KOALA_INTEROP_V1(WebContextMenuResult_cut, Ark_NativePointer) void impl_WebContextMenuResult_selectAll(Ark_NativePointer thisPtr) { - WebContextMenuResultPeer* self = reinterpret_cast(thisPtr); + Ark_WebContextMenuResult self = reinterpret_cast(thisPtr); GetAccessors()->getWebContextMenuResultAccessor()->selectAll(self); } KOALA_INTEROP_V1(WebContextMenuResult_selectAll, Ark_NativePointer) @@ -23048,25 +23168,25 @@ Ark_NativePointer impl_ConsoleMessage_getFinalizer() { } KOALA_INTEROP_0(ConsoleMessage_getFinalizer, Ark_NativePointer) void impl_ConsoleMessage_getMessage(Ark_NativePointer thisPtr) { - ConsoleMessagePeer* self = reinterpret_cast(thisPtr); + Ark_ConsoleMessage self = reinterpret_cast(thisPtr); GetAccessors()->getConsoleMessageAccessor()->getMessage(self); } KOALA_INTEROP_V1(ConsoleMessage_getMessage, Ark_NativePointer) void impl_ConsoleMessage_getSourceId(Ark_NativePointer thisPtr) { - ConsoleMessagePeer* self = reinterpret_cast(thisPtr); + Ark_ConsoleMessage self = reinterpret_cast(thisPtr); GetAccessors()->getConsoleMessageAccessor()->getSourceId(self); } KOALA_INTEROP_V1(ConsoleMessage_getSourceId, Ark_NativePointer) Ark_Int32 impl_ConsoleMessage_getLineNumber(Ark_NativePointer thisPtr) { - ConsoleMessagePeer* self = reinterpret_cast(thisPtr); + Ark_ConsoleMessage self = reinterpret_cast(thisPtr); return GetAccessors()->getConsoleMessageAccessor()->getLineNumber(self); } KOALA_INTEROP_1(ConsoleMessage_getLineNumber, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_ConsoleMessage_getMessageLevel(Ark_NativePointer thisPtr) { - ConsoleMessagePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getConsoleMessageAccessor()->getMessageLevel(self); +void impl_ConsoleMessage_getMessageLevel(Ark_NativePointer thisPtr) { + Ark_ConsoleMessage self = reinterpret_cast(thisPtr); + GetAccessors()->getConsoleMessageAccessor()->getMessageLevel(self); } -KOALA_INTEROP_1(ConsoleMessage_getMessageLevel, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ConsoleMessage_getMessageLevel, Ark_NativePointer) Ark_NativePointer impl_WebResourceRequest_ctor() { return GetAccessors()->getWebResourceRequestAccessor()->ctor(); } @@ -23075,33 +23195,35 @@ Ark_NativePointer impl_WebResourceRequest_getFinalizer() { return GetAccessors()->getWebResourceRequestAccessor()->getFinalizer(); } KOALA_INTEROP_0(WebResourceRequest_getFinalizer, Ark_NativePointer) -void impl_WebResourceRequest_getRequestHeader(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getWebResourceRequestAccessor()->getRequestHeader(self); +Ark_NativePointer impl_WebResourceRequest_getRequestHeader(Ark_NativePointer thisPtr) { + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getWebResourceRequestAccessor()->getRequestHeader(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(WebResourceRequest_getRequestHeader, Ark_NativePointer) +KOALA_INTEROP_1(WebResourceRequest_getRequestHeader, Ark_NativePointer, Ark_NativePointer) void impl_WebResourceRequest_getRequestUrl(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceRequestAccessor()->getRequestUrl(self); } KOALA_INTEROP_V1(WebResourceRequest_getRequestUrl, Ark_NativePointer) Ark_Boolean impl_WebResourceRequest_isRequestGesture(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceRequestAccessor()->isRequestGesture(self); } KOALA_INTEROP_1(WebResourceRequest_isRequestGesture, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_WebResourceRequest_isMainFrame(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceRequestAccessor()->isMainFrame(self); } KOALA_INTEROP_1(WebResourceRequest_isMainFrame, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_WebResourceRequest_isRedirect(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceRequestAccessor()->isRedirect(self); } KOALA_INTEROP_1(WebResourceRequest_isRedirect, Ark_Boolean, Ark_NativePointer) void impl_WebResourceRequest_getRequestMethod(Ark_NativePointer thisPtr) { - WebResourceRequestPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceRequest self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceRequestAccessor()->getRequestMethod(self); } KOALA_INTEROP_V1(WebResourceRequest_getRequestMethod, Ark_NativePointer) @@ -23114,42 +23236,44 @@ Ark_NativePointer impl_WebResourceResponse_getFinalizer() { } KOALA_INTEROP_0(WebResourceResponse_getFinalizer, Ark_NativePointer) void impl_WebResourceResponse_getResponseData(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->getResponseData(self); } KOALA_INTEROP_V1(WebResourceResponse_getResponseData, Ark_NativePointer) -Ark_NativePointer impl_WebResourceResponse_getResponseDataEx(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebResourceResponseAccessor()->getResponseDataEx(self); +void impl_WebResourceResponse_getResponseDataEx(Ark_NativePointer thisPtr) { + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); + GetAccessors()->getWebResourceResponseAccessor()->getResponseDataEx(self); } -KOALA_INTEROP_1(WebResourceResponse_getResponseDataEx, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(WebResourceResponse_getResponseDataEx, Ark_NativePointer) void impl_WebResourceResponse_getResponseEncoding(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->getResponseEncoding(self); } KOALA_INTEROP_V1(WebResourceResponse_getResponseEncoding, Ark_NativePointer) void impl_WebResourceResponse_getResponseMimeType(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->getResponseMimeType(self); } KOALA_INTEROP_V1(WebResourceResponse_getResponseMimeType, Ark_NativePointer) void impl_WebResourceResponse_getReasonMessage(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->getReasonMessage(self); } KOALA_INTEROP_V1(WebResourceResponse_getReasonMessage, Ark_NativePointer) -void impl_WebResourceResponse_getResponseHeader(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getWebResourceResponseAccessor()->getResponseHeader(self); +Ark_NativePointer impl_WebResourceResponse_getResponseHeader(Ark_NativePointer thisPtr) { + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getWebResourceResponseAccessor()->getResponseHeader(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(WebResourceResponse_getResponseHeader, Ark_NativePointer) +KOALA_INTEROP_1(WebResourceResponse_getResponseHeader, Ark_NativePointer, Ark_NativePointer) Ark_Int32 impl_WebResourceResponse_getResponseCode(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceResponseAccessor()->getResponseCode(self); } KOALA_INTEROP_1(WebResourceResponse_getResponseCode, Ark_Int32, Ark_NativePointer) void impl_WebResourceResponse_setResponseData(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int8 data_value_buf_selector = thisDeserializer.readInt8(); Ark_Union_String_Number_Resource_Buffer data_value_buf = {}; @@ -23178,22 +23302,22 @@ void impl_WebResourceResponse_setResponseData(Ark_NativePointer thisPtr, uint8_t } KOALA_INTEROP_V3(WebResourceResponse_setResponseData, Ark_NativePointer, uint8_t*, int32_t) void impl_WebResourceResponse_setResponseEncoding(Ark_NativePointer thisPtr, const KStringPtr& encoding) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setResponseEncoding(self, (const Ark_String*) (&encoding)); } KOALA_INTEROP_V2(WebResourceResponse_setResponseEncoding, Ark_NativePointer, KStringPtr) void impl_WebResourceResponse_setResponseMimeType(Ark_NativePointer thisPtr, const KStringPtr& mimeType) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setResponseMimeType(self, (const Ark_String*) (&mimeType)); } KOALA_INTEROP_V2(WebResourceResponse_setResponseMimeType, Ark_NativePointer, KStringPtr) void impl_WebResourceResponse_setReasonMessage(Ark_NativePointer thisPtr, const KStringPtr& reason) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setReasonMessage(self, (const Ark_String*) (&reason)); } KOALA_INTEROP_V2(WebResourceResponse_setReasonMessage, Ark_NativePointer, KStringPtr) void impl_WebResourceResponse_setResponseHeader(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 header_value_buf_length = thisDeserializer.readInt32(); Array_Header header_value_buf = {}; @@ -23207,17 +23331,17 @@ void impl_WebResourceResponse_setResponseHeader(Ark_NativePointer thisPtr, uint8 } KOALA_INTEROP_V3(WebResourceResponse_setResponseHeader, Ark_NativePointer, uint8_t*, int32_t) void impl_WebResourceResponse_setResponseCode(Ark_NativePointer thisPtr, KInteropNumber code) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setResponseCode(self, (const Ark_Number*) (&code)); } KOALA_INTEROP_V2(WebResourceResponse_setResponseCode, Ark_NativePointer, KInteropNumber) void impl_WebResourceResponse_setResponseIsReady(Ark_NativePointer thisPtr, Ark_Boolean IsReady) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceResponseAccessor()->setResponseIsReady(self, IsReady); } KOALA_INTEROP_V2(WebResourceResponse_setResponseIsReady, Ark_NativePointer, Ark_Boolean) Ark_Boolean impl_WebResourceResponse_getResponseIsReady(Ark_NativePointer thisPtr) { - WebResourceResponsePeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceResponse self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceResponseAccessor()->getResponseIsReady(self); } KOALA_INTEROP_1(WebResourceResponse_getResponseIsReady, Ark_Boolean, Ark_NativePointer) @@ -23230,12 +23354,12 @@ Ark_NativePointer impl_WebResourceError_getFinalizer() { } KOALA_INTEROP_0(WebResourceError_getFinalizer, Ark_NativePointer) void impl_WebResourceError_getErrorInfo(Ark_NativePointer thisPtr) { - WebResourceErrorPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceError self = reinterpret_cast(thisPtr); GetAccessors()->getWebResourceErrorAccessor()->getErrorInfo(self); } KOALA_INTEROP_V1(WebResourceError_getErrorInfo, Ark_NativePointer) Ark_Int32 impl_WebResourceError_getErrorCode(Ark_NativePointer thisPtr) { - WebResourceErrorPeer* self = reinterpret_cast(thisPtr); + Ark_WebResourceError self = reinterpret_cast(thisPtr); return GetAccessors()->getWebResourceErrorAccessor()->getErrorCode(self); } KOALA_INTEROP_1(WebResourceError_getErrorCode, Ark_Int32, Ark_NativePointer) @@ -23248,7 +23372,7 @@ Ark_NativePointer impl_JsGeolocation_getFinalizer() { } KOALA_INTEROP_0(JsGeolocation_getFinalizer, Ark_NativePointer) void impl_JsGeolocation_invoke(Ark_NativePointer thisPtr, const KStringPtr& origin, Ark_Boolean allow, Ark_Boolean retain) { - JsGeolocationPeer* self = reinterpret_cast(thisPtr); + Ark_JsGeolocation self = reinterpret_cast(thisPtr); GetAccessors()->getJsGeolocationAccessor()->invoke(self, (const Ark_String*) (&origin), allow, retain); } KOALA_INTEROP_V4(JsGeolocation_invoke, Ark_NativePointer, KStringPtr, Ark_Boolean, Ark_Boolean) @@ -23261,12 +23385,12 @@ Ark_NativePointer impl_WebCookie_getFinalizer() { } KOALA_INTEROP_0(WebCookie_getFinalizer, Ark_NativePointer) void impl_WebCookie_setCookie(Ark_NativePointer thisPtr) { - WebCookiePeer* self = reinterpret_cast(thisPtr); + Ark_WebCookie self = reinterpret_cast(thisPtr); GetAccessors()->getWebCookieAccessor()->setCookie(self); } KOALA_INTEROP_V1(WebCookie_setCookie, Ark_NativePointer) void impl_WebCookie_saveCookie(Ark_NativePointer thisPtr) { - WebCookiePeer* self = reinterpret_cast(thisPtr); + Ark_WebCookie self = reinterpret_cast(thisPtr); GetAccessors()->getWebCookieAccessor()->saveCookie(self); } KOALA_INTEROP_V1(WebCookie_saveCookie, Ark_NativePointer) @@ -23279,7 +23403,7 @@ Ark_NativePointer impl_EventResult_getFinalizer() { } KOALA_INTEROP_0(EventResult_getFinalizer, Ark_NativePointer) void impl_EventResult_setGestureEventResult(Ark_NativePointer thisPtr, Ark_Boolean result) { - EventResultPeer* self = reinterpret_cast(thisPtr); + Ark_EventResult self = reinterpret_cast(thisPtr); GetAccessors()->getEventResultAccessor()->setGestureEventResult(self, result); } KOALA_INTEROP_V2(EventResult_setGestureEventResult, Ark_NativePointer, Ark_Boolean) @@ -23292,27 +23416,27 @@ Ark_NativePointer impl_WebController_getFinalizer() { } KOALA_INTEROP_0(WebController_getFinalizer, Ark_NativePointer) void impl_WebController_onInactive(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->onInactive(self); } KOALA_INTEROP_V1(WebController_onInactive, Ark_NativePointer) void impl_WebController_onActive(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->onActive(self); } KOALA_INTEROP_V1(WebController_onActive, Ark_NativePointer) void impl_WebController_zoom(Ark_NativePointer thisPtr, KInteropNumber factor) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->zoom(self, (const Ark_Number*) (&factor)); } KOALA_INTEROP_V2(WebController_zoom, Ark_NativePointer, KInteropNumber) void impl_WebController_clearHistory(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->clearHistory(self); } KOALA_INTEROP_V1(WebController_clearHistory, Ark_NativePointer) void impl_WebController_runJavaScript(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_String_script_Callback_String_Void_callback_ options_value_buf = {}; options_value_buf.script = static_cast(thisDeserializer.readString()); @@ -23329,7 +23453,7 @@ void impl_WebController_runJavaScript(Ark_NativePointer thisPtr, uint8_t* thisAr } KOALA_INTEROP_V3(WebController_runJavaScript, Ark_NativePointer, uint8_t*, int32_t) void impl_WebController_loadData(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_String_baseUrl_data_encoding_historyUrl_mimeType options_value_buf = {}; options_value_buf.data = static_cast(thisDeserializer.readString()); @@ -23356,7 +23480,7 @@ void impl_WebController_loadData(Ark_NativePointer thisPtr, uint8_t* thisArray, } KOALA_INTEROP_V3(WebController_loadData, Ark_NativePointer, uint8_t*, int32_t) void impl_WebController_loadUrl(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Union_String_Resource_url_Array_Header_headers options_value_buf = {}; const Ark_Int8 options_value_buf_url_buf_selector = thisDeserializer.readInt8(); @@ -23394,17 +23518,17 @@ void impl_WebController_loadUrl(Ark_NativePointer thisPtr, uint8_t* thisArray, i } KOALA_INTEROP_V3(WebController_loadUrl, Ark_NativePointer, uint8_t*, int32_t) void impl_WebController_refresh(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->refresh(self); } KOALA_INTEROP_V1(WebController_refresh, Ark_NativePointer) void impl_WebController_stop(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->stop(self); } KOALA_INTEROP_V1(WebController_stop, Ark_NativePointer) void impl_WebController_registerJavaScriptProxy(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Object_object__String_name_Array_String_methodList options_value_buf = {}; options_value_buf.object_ = static_cast(thisDeserializer.readCustomObject("Object")); @@ -23422,47 +23546,47 @@ void impl_WebController_registerJavaScriptProxy(Ark_NativePointer thisPtr, uint8 } KOALA_INTEROP_V3(WebController_registerJavaScriptProxy, Ark_NativePointer, uint8_t*, int32_t) void impl_WebController_deleteJavaScriptRegister(Ark_NativePointer thisPtr, const KStringPtr& name) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->deleteJavaScriptRegister(self, (const Ark_String*) (&name)); } KOALA_INTEROP_V2(WebController_deleteJavaScriptRegister, Ark_NativePointer, KStringPtr) -Ark_NativePointer impl_WebController_getHitTest(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getWebControllerAccessor()->getHitTest(self); +void impl_WebController_getHitTest(Ark_NativePointer thisPtr) { + Ark_WebController self = reinterpret_cast(thisPtr); + GetAccessors()->getWebControllerAccessor()->getHitTest(self); } -KOALA_INTEROP_1(WebController_getHitTest, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(WebController_getHitTest, Ark_NativePointer) void impl_WebController_requestFocus(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->requestFocus(self); } KOALA_INTEROP_V1(WebController_requestFocus, Ark_NativePointer) Ark_Boolean impl_WebController_accessBackward(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); return GetAccessors()->getWebControllerAccessor()->accessBackward(self); } KOALA_INTEROP_1(WebController_accessBackward, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_WebController_accessForward(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); return GetAccessors()->getWebControllerAccessor()->accessForward(self); } KOALA_INTEROP_1(WebController_accessForward, Ark_Boolean, Ark_NativePointer) Ark_Boolean impl_WebController_accessStep(Ark_NativePointer thisPtr, KInteropNumber step) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); return GetAccessors()->getWebControllerAccessor()->accessStep(self, (const Ark_Number*) (&step)); } KOALA_INTEROP_2(WebController_accessStep, Ark_Boolean, Ark_NativePointer, KInteropNumber) void impl_WebController_backward(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->backward(self); } KOALA_INTEROP_V1(WebController_backward, Ark_NativePointer) void impl_WebController_forward(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); GetAccessors()->getWebControllerAccessor()->forward(self); } KOALA_INTEROP_V1(WebController_forward, Ark_NativePointer) Ark_NativePointer impl_WebController_getCookieManager(Ark_NativePointer thisPtr) { - WebControllerPeer* self = reinterpret_cast(thisPtr); + Ark_WebController self = reinterpret_cast(thisPtr); return GetAccessors()->getWebControllerAccessor()->getCookieManager(self); } KOALA_INTEROP_1(WebController_getCookieManager, Ark_NativePointer, Ark_NativePointer) @@ -23475,17 +23599,17 @@ Ark_NativePointer impl_XComponentController_getFinalizer() { } KOALA_INTEROP_0(XComponentController_getFinalizer, Ark_NativePointer) void impl_XComponentController_getXComponentSurfaceId(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceId(self); } KOALA_INTEROP_V1(XComponentController_getXComponentSurfaceId, Ark_NativePointer) -Ark_NativePointer impl_XComponentController_getXComponentContext(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getXComponentControllerAccessor()->getXComponentContext(self); +void impl_XComponentController_getXComponentContext(Ark_NativePointer thisPtr) { + Ark_XComponentController self = reinterpret_cast(thisPtr); + GetAccessors()->getXComponentControllerAccessor()->getXComponentContext(self); } -KOALA_INTEROP_1(XComponentController_getXComponentContext, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(XComponentController_getXComponentContext, Ark_NativePointer) void impl_XComponentController_setXComponentSurfaceSize(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_Literal_Number_surfaceHeight_surfaceWidth value_value_buf = {}; value_value_buf.surfaceWidth = static_cast(thisDeserializer.readNumber()); @@ -23495,48 +23619,52 @@ void impl_XComponentController_setXComponentSurfaceSize(Ark_NativePointer thisPt } KOALA_INTEROP_V3(XComponentController_setXComponentSurfaceSize, Ark_NativePointer, uint8_t*, int32_t) void impl_XComponentController_setXComponentSurfaceRect(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SurfaceRect rect_value = thisDeserializer.readSurfaceRect();; GetAccessors()->getXComponentControllerAccessor()->setXComponentSurfaceRect(self, (const Ark_SurfaceRect*)&rect_value); } KOALA_INTEROP_V3(XComponentController_setXComponentSurfaceRect, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_XComponentController_getXComponentSurfaceRect(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceRect(self); +KInteropReturnBuffer impl_XComponentController_getXComponentSurfaceRect(Ark_NativePointer thisPtr) { + Ark_XComponentController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeSurfaceRect(GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceRect(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(XComponentController_getXComponentSurfaceRect, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(XComponentController_getXComponentSurfaceRect, KInteropReturnBuffer, Ark_NativePointer) void impl_XComponentController_setXComponentSurfaceRotation(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SurfaceRotationOptions rotationOptions_value = thisDeserializer.readSurfaceRotationOptions();; GetAccessors()->getXComponentControllerAccessor()->setXComponentSurfaceRotation(self, (const Ark_SurfaceRotationOptions*)&rotationOptions_value); } KOALA_INTEROP_V3(XComponentController_setXComponentSurfaceRotation, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_XComponentController_getXComponentSurfaceRotation(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceRotation(self); +KInteropReturnBuffer impl_XComponentController_getXComponentSurfaceRotation(Ark_NativePointer thisPtr) { + Ark_XComponentController self = reinterpret_cast(thisPtr); + Serializer _retSerializer {}; + _retSerializer.writeSurfaceRotationOptions(GetAccessors()->getXComponentControllerAccessor()->getXComponentSurfaceRotation(self)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_1(XComponentController_getXComponentSurfaceRotation, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_1(XComponentController_getXComponentSurfaceRotation, KInteropReturnBuffer, Ark_NativePointer) void impl_XComponentController_onSurfaceCreated(Ark_NativePointer thisPtr, const KStringPtr& surfaceId) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getXComponentControllerAccessor()->onSurfaceCreated(self, (const Ark_String*) (&surfaceId)); } KOALA_INTEROP_V2(XComponentController_onSurfaceCreated, Ark_NativePointer, KStringPtr) void impl_XComponentController_onSurfaceChanged(Ark_NativePointer thisPtr, const KStringPtr& surfaceId, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SurfaceRect rect_value = thisDeserializer.readSurfaceRect();; GetAccessors()->getXComponentControllerAccessor()->onSurfaceChanged(self, (const Ark_String*) (&surfaceId), (const Ark_SurfaceRect*)&rect_value); } KOALA_INTEROP_V4(XComponentController_onSurfaceChanged, Ark_NativePointer, KStringPtr, uint8_t*, int32_t) void impl_XComponentController_onSurfaceDestroyed(Ark_NativePointer thisPtr, const KStringPtr& surfaceId) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getXComponentControllerAccessor()->onSurfaceDestroyed(self, (const Ark_String*) (&surfaceId)); } KOALA_INTEROP_V2(XComponentController_onSurfaceDestroyed, Ark_NativePointer, KStringPtr) void impl_XComponentController_startImageAnalyzer(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_ImageAnalyzerConfig config_value = thisDeserializer.readImageAnalyzerConfig();; Callback_Opt_Array_String_Void outputArgumentForReturningPromise_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Opt_Array_String_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Opt_Array_String_Void))))};; @@ -23544,7 +23672,7 @@ void impl_XComponentController_startImageAnalyzer(Ark_NativePointer thisPtr, uin } KOALA_INTEROP_V3(XComponentController_startImageAnalyzer, Ark_NativePointer, uint8_t*, int32_t) void impl_XComponentController_stopImageAnalyzer(Ark_NativePointer thisPtr) { - XComponentControllerPeer* self = reinterpret_cast(thisPtr); + Ark_XComponentController self = reinterpret_cast(thisPtr); GetAccessors()->getXComponentControllerAccessor()->stopImageAnalyzer(self); } KOALA_INTEROP_V1(XComponentController_stopImageAnalyzer, Ark_NativePointer) @@ -23557,7 +23685,7 @@ Ark_NativePointer impl_WaterFlowSections_getFinalizer() { } KOALA_INTEROP_0(WaterFlowSections_getFinalizer, Ark_NativePointer) Ark_Boolean impl_WaterFlowSections_splice(Ark_NativePointer thisPtr, KInteropNumber start, uint8_t* thisArray, int32_t thisLength) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto deleteCount_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number deleteCount_value_buf = {}; @@ -23586,26 +23714,28 @@ Ark_Boolean impl_WaterFlowSections_splice(Ark_NativePointer thisPtr, KInteropNum } KOALA_INTEROP_4(WaterFlowSections_splice, Ark_Boolean, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) Ark_Boolean impl_WaterFlowSections_push(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SectionOptions section_value = thisDeserializer.readSectionOptions();; return GetAccessors()->getWaterFlowSectionsAccessor()->push(self, (const Ark_SectionOptions*)§ion_value); } KOALA_INTEROP_3(WaterFlowSections_push, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) Ark_Boolean impl_WaterFlowSections_update(Ark_NativePointer thisPtr, KInteropNumber sectionIndex, uint8_t* thisArray, int32_t thisLength) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SectionOptions section_value = thisDeserializer.readSectionOptions();; return GetAccessors()->getWaterFlowSectionsAccessor()->update(self, (const Ark_Number*) (§ionIndex), (const Ark_SectionOptions*)§ion_value); } KOALA_INTEROP_4(WaterFlowSections_update, Ark_Boolean, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) -void impl_WaterFlowSections_values(Ark_NativePointer thisPtr) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); - GetAccessors()->getWaterFlowSectionsAccessor()->values(self); +Ark_NativePointer impl_WaterFlowSections_values(Ark_NativePointer thisPtr) { + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getWaterFlowSectionsAccessor()->values(self); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V1(WaterFlowSections_values, Ark_NativePointer) +KOALA_INTEROP_1(WaterFlowSections_values, Ark_NativePointer, Ark_NativePointer) Ark_Int32 impl_WaterFlowSections_length(Ark_NativePointer thisPtr) { - WaterFlowSectionsPeer* self = reinterpret_cast(thisPtr); + Ark_WaterFlowSections self = reinterpret_cast(thisPtr); return GetAccessors()->getWaterFlowSectionsAccessor()->length(self); } KOALA_INTEROP_1(WaterFlowSections_length, Ark_Int32, Ark_NativePointer) @@ -23618,7 +23748,7 @@ Ark_NativePointer impl_UIExtensionProxy_getFinalizer() { } KOALA_INTEROP_0(UIExtensionProxy_getFinalizer, Ark_NativePointer) void impl_UIExtensionProxy_send(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 data_value_buf_size = thisDeserializer.readInt32(); Map_String_CustomObject data_value_buf = {}; @@ -23633,8 +23763,8 @@ void impl_UIExtensionProxy_send(Ark_NativePointer thisPtr, uint8_t* thisArray, i GetAccessors()->getUIExtensionProxyAccessor()->send(self, (const Map_String_CustomObject*)&data_value); } KOALA_INTEROP_V3(UIExtensionProxy_send, Ark_NativePointer, uint8_t*, int32_t) -Ark_NativePointer impl_UIExtensionProxy_sendSync(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); +void impl_UIExtensionProxy_sendSync(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const Ark_Int32 data_value_buf_size = thisDeserializer.readInt32(); Map_String_CustomObject data_value_buf = {}; @@ -23646,25 +23776,25 @@ Ark_NativePointer impl_UIExtensionProxy_sendSync(Ark_NativePointer thisPtr, uint data_value_buf.values[data_value_buf_i] = data_value_buf_value; } Map_String_CustomObject data_value = data_value_buf;; - return GetAccessors()->getUIExtensionProxyAccessor()->sendSync(self, (const Map_String_CustomObject*)&data_value); + GetAccessors()->getUIExtensionProxyAccessor()->sendSync(self, (const Map_String_CustomObject*)&data_value); } -KOALA_INTEROP_3(UIExtensionProxy_sendSync, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_V3(UIExtensionProxy_sendSync, Ark_NativePointer, uint8_t*, int32_t) void impl_UIExtensionProxy_onAsyncReceiverRegister(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_UIExtensionProxy_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_UIExtensionProxy_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_UIExtensionProxy_Void))))};; GetAccessors()->getUIExtensionProxyAccessor()->onAsyncReceiverRegister(self, (const Callback_UIExtensionProxy_Void*)&callback__value); } KOALA_INTEROP_V3(UIExtensionProxy_onAsyncReceiverRegister, Ark_NativePointer, uint8_t*, int32_t) void impl_UIExtensionProxy_onSyncReceiverRegister(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Callback_UIExtensionProxy_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_UIExtensionProxy_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_UIExtensionProxy_Void))))};; GetAccessors()->getUIExtensionProxyAccessor()->onSyncReceiverRegister(self, (const Callback_UIExtensionProxy_Void*)&callback__value); } KOALA_INTEROP_V3(UIExtensionProxy_onSyncReceiverRegister, Ark_NativePointer, uint8_t*, int32_t) void impl_UIExtensionProxy_offAsyncReceiverRegister(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_UIExtensionProxy_Void callback__value_buf = {}; @@ -23678,7 +23808,7 @@ void impl_UIExtensionProxy_offAsyncReceiverRegister(Ark_NativePointer thisPtr, u } KOALA_INTEROP_V3(UIExtensionProxy_offAsyncReceiverRegister, Ark_NativePointer, uint8_t*, int32_t) void impl_UIExtensionProxy_offSyncReceiverRegister(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - UIExtensionProxyPeer* self = reinterpret_cast(thisPtr); + Ark_UIExtensionProxy self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto callback__value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Callback_UIExtensionProxy_Void callback__value_buf = {}; @@ -23735,12 +23865,12 @@ Ark_NativePointer impl_StyledString_getFinalizer() { } KOALA_INTEROP_0(StyledString_getFinalizer, Ark_NativePointer) void impl_StyledString_getString(Ark_NativePointer thisPtr) { - StyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_StyledString self = reinterpret_cast(thisPtr); GetAccessors()->getStyledStringAccessor()->getString(self); } KOALA_INTEROP_V1(StyledString_getString, Ark_NativePointer) -void impl_StyledString_getStyles(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, uint8_t* thisArray, int32_t thisLength) { - StyledStringPeer* self = reinterpret_cast(thisPtr); +Ark_NativePointer impl_StyledString_getStyles(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, uint8_t* thisArray, int32_t thisLength) { + Ark_StyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto styledKey_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_StyledStringKey styledKey_value_buf = {}; @@ -23750,18 +23880,20 @@ void impl_StyledString_getStyles(Ark_NativePointer thisPtr, KInteropNumber start styledKey_value_buf.value = static_cast(thisDeserializer.readInt32()); } Opt_StyledStringKey styledKey_value = styledKey_value_buf;; - GetAccessors()->getStyledStringAccessor()->getStyles(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), (const Opt_StyledStringKey*)&styledKey_value); + [[maybe_unused]] const auto &value = GetAccessors()->getStyledStringAccessor()->getStyles(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), (const Opt_StyledStringKey*)&styledKey_value); + // TODO: Value serialization needs to be implemented + return {}; } -KOALA_INTEROP_V5(StyledString_getStyles, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) +KOALA_INTEROP_5(StyledString_getStyles, Ark_NativePointer, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) Ark_Boolean impl_StyledString_equals(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - StyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_StyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; return GetAccessors()->getStyledStringAccessor()->equals(self, other_value); } KOALA_INTEROP_3(StyledString_equals, Ark_Boolean, Ark_NativePointer, uint8_t*, int32_t) Ark_NativePointer impl_StyledString_subStyledString(Ark_NativePointer thisPtr, KInteropNumber start, uint8_t* thisArray, int32_t thisLength) { - StyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_StyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto length_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_Number length_value_buf = {}; @@ -23800,7 +23932,7 @@ void impl_StyledString_unmarshalling(uint8_t* thisArray, int32_t thisLength) { } KOALA_INTEROP_V2(StyledString_unmarshalling, uint8_t*, int32_t) Ark_Int32 impl_StyledString_getLength(Ark_NativePointer thisPtr) { - StyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_StyledString self = reinterpret_cast(thisPtr); return GetAccessors()->getStyledStringAccessor()->getLength(self); } KOALA_INTEROP_1(StyledString_getLength, Ark_Int32, Ark_NativePointer) @@ -23822,25 +23954,25 @@ Ark_NativePointer impl_TextStyle_styled_string_getFinalizer() { } KOALA_INTEROP_0(TextStyle_styled_string_getFinalizer, Ark_NativePointer) void impl_TextStyle_styled_string_getFontFamily(Ark_NativePointer thisPtr) { - TextStyle_styled_stringPeer* self = reinterpret_cast(thisPtr); + Ark_TextStyle_styled_string self = reinterpret_cast(thisPtr); GetAccessors()->getTextStyle_styled_stringAccessor()->getFontFamily(self); } KOALA_INTEROP_V1(TextStyle_styled_string_getFontFamily, Ark_NativePointer) Ark_Int32 impl_TextStyle_styled_string_getFontSize(Ark_NativePointer thisPtr) { - TextStyle_styled_stringPeer* self = reinterpret_cast(thisPtr); + Ark_TextStyle_styled_string self = reinterpret_cast(thisPtr); return GetAccessors()->getTextStyle_styled_stringAccessor()->getFontSize(self); } KOALA_INTEROP_1(TextStyle_styled_string_getFontSize, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_TextStyle_styled_string_getFontWeight(Ark_NativePointer thisPtr) { - TextStyle_styled_stringPeer* self = reinterpret_cast(thisPtr); + Ark_TextStyle_styled_string self = reinterpret_cast(thisPtr); return GetAccessors()->getTextStyle_styled_stringAccessor()->getFontWeight(self); } KOALA_INTEROP_1(TextStyle_styled_string_getFontWeight, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_TextStyle_styled_string_getFontStyle(Ark_NativePointer thisPtr) { - TextStyle_styled_stringPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getTextStyle_styled_stringAccessor()->getFontStyle(self); +void impl_TextStyle_styled_string_getFontStyle(Ark_NativePointer thisPtr) { + Ark_TextStyle_styled_string self = reinterpret_cast(thisPtr); + GetAccessors()->getTextStyle_styled_stringAccessor()->getFontStyle(self); } -KOALA_INTEROP_1(TextStyle_styled_string_getFontStyle, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(TextStyle_styled_string_getFontStyle, Ark_NativePointer) Ark_NativePointer impl_DecorationStyle_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_DecorationStyleInterface value_value = thisDeserializer.readDecorationStyleInterface();; @@ -23851,16 +23983,16 @@ Ark_NativePointer impl_DecorationStyle_getFinalizer() { return GetAccessors()->getDecorationStyleAccessor()->getFinalizer(); } KOALA_INTEROP_0(DecorationStyle_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_DecorationStyle_getType(Ark_NativePointer thisPtr) { - DecorationStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDecorationStyleAccessor()->getType(self); +void impl_DecorationStyle_getType(Ark_NativePointer thisPtr) { + Ark_DecorationStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getDecorationStyleAccessor()->getType(self); } -KOALA_INTEROP_1(DecorationStyle_getType, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_DecorationStyle_getStyle(Ark_NativePointer thisPtr) { - DecorationStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getDecorationStyleAccessor()->getStyle(self); +KOALA_INTEROP_V1(DecorationStyle_getType, Ark_NativePointer) +void impl_DecorationStyle_getStyle(Ark_NativePointer thisPtr) { + Ark_DecorationStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getDecorationStyleAccessor()->getStyle(self); } -KOALA_INTEROP_1(DecorationStyle_getStyle, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(DecorationStyle_getStyle, Ark_NativePointer) Ark_NativePointer impl_BaselineOffsetStyle_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_LengthMetrics value_value = static_cast(thisDeserializer.readLengthMetrics());; @@ -23872,7 +24004,7 @@ Ark_NativePointer impl_BaselineOffsetStyle_getFinalizer() { } KOALA_INTEROP_0(BaselineOffsetStyle_getFinalizer, Ark_NativePointer) Ark_Int32 impl_BaselineOffsetStyle_getBaselineOffset(Ark_NativePointer thisPtr) { - BaselineOffsetStylePeer* self = reinterpret_cast(thisPtr); + Ark_BaselineOffsetStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getBaselineOffsetStyleAccessor()->getBaselineOffset(self); } KOALA_INTEROP_1(BaselineOffsetStyle_getBaselineOffset, Ark_Int32, Ark_NativePointer) @@ -23887,7 +24019,7 @@ Ark_NativePointer impl_LetterSpacingStyle_getFinalizer() { } KOALA_INTEROP_0(LetterSpacingStyle_getFinalizer, Ark_NativePointer) Ark_Int32 impl_LetterSpacingStyle_getLetterSpacing(Ark_NativePointer thisPtr) { - LetterSpacingStylePeer* self = reinterpret_cast(thisPtr); + Ark_LetterSpacingStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getLetterSpacingStyleAccessor()->getLetterSpacing(self); } KOALA_INTEROP_1(LetterSpacingStyle_getLetterSpacing, Ark_Int32, Ark_NativePointer) @@ -23922,6 +24054,13 @@ Ark_NativePointer impl_TextShadowStyle_getFinalizer() { return GetAccessors()->getTextShadowStyleAccessor()->getFinalizer(); } KOALA_INTEROP_0(TextShadowStyle_getFinalizer, Ark_NativePointer) +Ark_NativePointer impl_TextShadowStyle_getTextShadow(Ark_NativePointer thisPtr) { + Ark_TextShadowStyle self = reinterpret_cast(thisPtr); + [[maybe_unused]] const auto &value = GetAccessors()->getTextShadowStyleAccessor()->getTextShadow(self); + // TODO: Value serialization needs to be implemented + return {}; +} +KOALA_INTEROP_1(TextShadowStyle_getTextShadow, Ark_NativePointer, Ark_NativePointer) Ark_NativePointer impl_BackgroundColorStyle_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_TextBackgroundStyle textBackgroundStyle_value = thisDeserializer.readTextBackgroundStyle();; @@ -23966,31 +24105,31 @@ Ark_NativePointer impl_ParagraphStyle_getFinalizer() { return GetAccessors()->getParagraphStyleAccessor()->getFinalizer(); } KOALA_INTEROP_0(ParagraphStyle_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ParagraphStyle_getTextAlign(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getParagraphStyleAccessor()->getTextAlign(self); +void impl_ParagraphStyle_getTextAlign(Ark_NativePointer thisPtr) { + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getParagraphStyleAccessor()->getTextAlign(self); } -KOALA_INTEROP_1(ParagraphStyle_getTextAlign, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ParagraphStyle_getTextAlign, Ark_NativePointer) Ark_Int32 impl_ParagraphStyle_getTextIndent(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getParagraphStyleAccessor()->getTextIndent(self); } KOALA_INTEROP_1(ParagraphStyle_getTextIndent, Ark_Int32, Ark_NativePointer) Ark_Int32 impl_ParagraphStyle_getMaxLines(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getParagraphStyleAccessor()->getMaxLines(self); } KOALA_INTEROP_1(ParagraphStyle_getMaxLines, Ark_Int32, Ark_NativePointer) -Ark_NativePointer impl_ParagraphStyle_getOverflow(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getParagraphStyleAccessor()->getOverflow(self); +void impl_ParagraphStyle_getOverflow(Ark_NativePointer thisPtr) { + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getParagraphStyleAccessor()->getOverflow(self); } -KOALA_INTEROP_1(ParagraphStyle_getOverflow, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_ParagraphStyle_getWordBreak(Ark_NativePointer thisPtr) { - ParagraphStylePeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getParagraphStyleAccessor()->getWordBreak(self); +KOALA_INTEROP_V1(ParagraphStyle_getOverflow, Ark_NativePointer) +void impl_ParagraphStyle_getWordBreak(Ark_NativePointer thisPtr) { + Ark_ParagraphStyle self = reinterpret_cast(thisPtr); + GetAccessors()->getParagraphStyleAccessor()->getWordBreak(self); } -KOALA_INTEROP_1(ParagraphStyle_getWordBreak, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ParagraphStyle_getWordBreak, Ark_NativePointer) Ark_NativePointer impl_LineHeightStyle_ctor(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Ark_LengthMetrics lineHeight_value = static_cast(thisDeserializer.readLengthMetrics());; @@ -24002,7 +24141,7 @@ Ark_NativePointer impl_LineHeightStyle_getFinalizer() { } KOALA_INTEROP_0(LineHeightStyle_getFinalizer, Ark_NativePointer) Ark_Int32 impl_LineHeightStyle_getLineHeight(Ark_NativePointer thisPtr) { - LineHeightStylePeer* self = reinterpret_cast(thisPtr); + Ark_LineHeightStyle self = reinterpret_cast(thisPtr); return GetAccessors()->getLineHeightStyleAccessor()->getLineHeight(self); } KOALA_INTEROP_1(LineHeightStyle_getLineHeight, Ark_Int32, Ark_NativePointer) @@ -24015,7 +24154,7 @@ Ark_NativePointer impl_UrlStyle_getFinalizer() { } KOALA_INTEROP_0(UrlStyle_getFinalizer, Ark_NativePointer) void impl_UrlStyle_getUrl(Ark_NativePointer thisPtr) { - UrlStylePeer* self = reinterpret_cast(thisPtr); + Ark_UrlStyle self = reinterpret_cast(thisPtr); GetAccessors()->getUrlStyleAccessor()->getUrl(self); } KOALA_INTEROP_V1(UrlStyle_getUrl, Ark_NativePointer) @@ -24028,65 +24167,65 @@ Ark_NativePointer impl_MutableStyledString_getFinalizer() { } KOALA_INTEROP_0(MutableStyledString_getFinalizer, Ark_NativePointer) void impl_MutableStyledString_replaceString(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, const KStringPtr& other) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->replaceString(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), (const Ark_String*) (&other)); } KOALA_INTEROP_V4(MutableStyledString_replaceString, Ark_NativePointer, KInteropNumber, KInteropNumber, KStringPtr) void impl_MutableStyledString_insertString(Ark_NativePointer thisPtr, KInteropNumber start, const KStringPtr& other) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->insertString(self, (const Ark_Number*) (&start), (const Ark_String*) (&other)); } KOALA_INTEROP_V3(MutableStyledString_insertString, Ark_NativePointer, KInteropNumber, KStringPtr) void impl_MutableStyledString_removeString(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->removeString(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length)); } KOALA_INTEROP_V3(MutableStyledString_removeString, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_MutableStyledString_replaceStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SpanStyle spanStyle_value = thisDeserializer.readSpanStyle();; GetAccessors()->getMutableStyledStringAccessor()->replaceStyle(self, (const Ark_SpanStyle*)&spanStyle_value); } KOALA_INTEROP_V3(MutableStyledString_replaceStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_MutableStyledString_setStyle(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_SpanStyle spanStyle_value = thisDeserializer.readSpanStyle();; GetAccessors()->getMutableStyledStringAccessor()->setStyle(self, (const Ark_SpanStyle*)&spanStyle_value); } KOALA_INTEROP_V3(MutableStyledString_setStyle, Ark_NativePointer, uint8_t*, int32_t) void impl_MutableStyledString_removeStyle(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, Ark_Int32 styledKey) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->removeStyle(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), static_cast(styledKey)); } KOALA_INTEROP_V4(MutableStyledString_removeStyle, Ark_NativePointer, KInteropNumber, KInteropNumber, Ark_Int32) void impl_MutableStyledString_removeStyles(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->removeStyles(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length)); } KOALA_INTEROP_V3(MutableStyledString_removeStyles, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_MutableStyledString_clearStyles(Ark_NativePointer thisPtr) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); GetAccessors()->getMutableStyledStringAccessor()->clearStyles(self); } KOALA_INTEROP_V1(MutableStyledString_clearStyles, Ark_NativePointer) void impl_MutableStyledString_replaceStyledString(Ark_NativePointer thisPtr, KInteropNumber start, KInteropNumber length, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getMutableStyledStringAccessor()->replaceStyledString(self, (const Ark_Number*) (&start), (const Ark_Number*) (&length), other_value); } KOALA_INTEROP_V5(MutableStyledString_replaceStyledString, Ark_NativePointer, KInteropNumber, KInteropNumber, uint8_t*, int32_t) void impl_MutableStyledString_insertStyledString(Ark_NativePointer thisPtr, KInteropNumber start, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getMutableStyledStringAccessor()->insertStyledString(self, (const Ark_Number*) (&start), other_value); } KOALA_INTEROP_V4(MutableStyledString_insertStyledString, Ark_NativePointer, KInteropNumber, uint8_t*, int32_t) void impl_MutableStyledString_appendStyledString(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - MutableStyledStringPeer* self = reinterpret_cast(thisPtr); + Ark_MutableStyledString self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_StyledString other_value = static_cast(thisDeserializer.readStyledString());; GetAccessors()->getMutableStyledStringAccessor()->appendStyledString(self, other_value); @@ -24102,16 +24241,16 @@ Ark_NativePointer impl_ImageAttachment_getFinalizer() { return GetAccessors()->getImageAttachmentAccessor()->getFinalizer(); } KOALA_INTEROP_0(ImageAttachment_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_ImageAttachment_getVerticalAlign(Ark_NativePointer thisPtr) { - ImageAttachmentPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getImageAttachmentAccessor()->getVerticalAlign(self); +void impl_ImageAttachment_getVerticalAlign(Ark_NativePointer thisPtr) { + Ark_ImageAttachment self = reinterpret_cast(thisPtr); + GetAccessors()->getImageAttachmentAccessor()->getVerticalAlign(self); } -KOALA_INTEROP_1(ImageAttachment_getVerticalAlign, Ark_NativePointer, Ark_NativePointer) -Ark_NativePointer impl_ImageAttachment_getObjectFit(Ark_NativePointer thisPtr) { - ImageAttachmentPeer* self = reinterpret_cast(thisPtr); - return GetAccessors()->getImageAttachmentAccessor()->getObjectFit(self); +KOALA_INTEROP_V1(ImageAttachment_getVerticalAlign, Ark_NativePointer) +void impl_ImageAttachment_getObjectFit(Ark_NativePointer thisPtr) { + Ark_ImageAttachment self = reinterpret_cast(thisPtr); + GetAccessors()->getImageAttachmentAccessor()->getObjectFit(self); } -KOALA_INTEROP_1(ImageAttachment_getObjectFit, Ark_NativePointer, Ark_NativePointer) +KOALA_INTEROP_V1(ImageAttachment_getObjectFit, Ark_NativePointer) Ark_NativePointer impl_CustomSpan_ctor() { return GetAccessors()->getCustomSpanAccessor()->ctor(); } @@ -24120,15 +24259,17 @@ Ark_NativePointer impl_CustomSpan_getFinalizer() { return GetAccessors()->getCustomSpanAccessor()->getFinalizer(); } KOALA_INTEROP_0(CustomSpan_getFinalizer, Ark_NativePointer) -Ark_NativePointer impl_CustomSpan_onMeasure(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CustomSpanPeer* self = reinterpret_cast(thisPtr); +KInteropReturnBuffer impl_CustomSpan_onMeasure(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { + Ark_CustomSpan self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_CustomSpanMeasureInfo measureInfo_value = thisDeserializer.readCustomSpanMeasureInfo();; - return GetAccessors()->getCustomSpanAccessor()->onMeasure(self, (const Ark_CustomSpanMeasureInfo*)&measureInfo_value); + Serializer _retSerializer {}; + _retSerializer.writeCustomSpanMetrics(GetAccessors()->getCustomSpanAccessor()->onMeasure(self, (const Ark_CustomSpanMeasureInfo*)&measureInfo_value)); + return _retSerializer.toReturnBuffer(); } -KOALA_INTEROP_3(CustomSpan_onMeasure, Ark_NativePointer, Ark_NativePointer, uint8_t*, int32_t) +KOALA_INTEROP_3(CustomSpan_onMeasure, KInteropReturnBuffer, Ark_NativePointer, uint8_t*, int32_t) void impl_CustomSpan_onDraw(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - CustomSpanPeer* self = reinterpret_cast(thisPtr); + Ark_CustomSpan self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); Ark_DrawContext context_value = thisDeserializer.readDrawContext();; Ark_CustomSpanDrawInfo drawInfo_value = thisDeserializer.readCustomSpanDrawInfo();; @@ -24136,7 +24277,7 @@ void impl_CustomSpan_onDraw(Ark_NativePointer thisPtr, uint8_t* thisArray, int32 } KOALA_INTEROP_V3(CustomSpan_onDraw, Ark_NativePointer, uint8_t*, int32_t) void impl_CustomSpan_invalidate(Ark_NativePointer thisPtr) { - CustomSpanPeer* self = reinterpret_cast(thisPtr); + Ark_CustomSpan self = reinterpret_cast(thisPtr); GetAccessors()->getCustomSpanAccessor()->invalidate(self); } KOALA_INTEROP_V1(CustomSpan_invalidate, Ark_NativePointer) @@ -24149,12 +24290,12 @@ Ark_NativePointer impl_LinearIndicatorController_getFinalizer() { } KOALA_INTEROP_0(LinearIndicatorController_getFinalizer, Ark_NativePointer) void impl_LinearIndicatorController_setProgress(Ark_NativePointer thisPtr, KInteropNumber index, KInteropNumber progress) { - LinearIndicatorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_LinearIndicatorController self = reinterpret_cast(thisPtr); GetAccessors()->getLinearIndicatorControllerAccessor()->setProgress(self, (const Ark_Number*) (&index), (const Ark_Number*) (&progress)); } KOALA_INTEROP_V3(LinearIndicatorController_setProgress, Ark_NativePointer, KInteropNumber, KInteropNumber) void impl_LinearIndicatorController_start(Ark_NativePointer thisPtr, uint8_t* thisArray, int32_t thisLength) { - LinearIndicatorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_LinearIndicatorController self = reinterpret_cast(thisPtr); Deserializer thisDeserializer(thisArray, thisLength); const auto options_value_buf_runtimeType = static_cast(thisDeserializer.readInt8()); Opt_LinearIndicatorStartOptions options_value_buf = {}; @@ -24168,34 +24309,22 @@ void impl_LinearIndicatorController_start(Ark_NativePointer thisPtr, uint8_t* th } KOALA_INTEROP_V3(LinearIndicatorController_start, Ark_NativePointer, uint8_t*, int32_t) void impl_LinearIndicatorController_pause(Ark_NativePointer thisPtr) { - LinearIndicatorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_LinearIndicatorController self = reinterpret_cast(thisPtr); GetAccessors()->getLinearIndicatorControllerAccessor()->pause(self); } KOALA_INTEROP_V1(LinearIndicatorController_pause, Ark_NativePointer) void impl_LinearIndicatorController_stop(Ark_NativePointer thisPtr) { - LinearIndicatorControllerPeer* self = reinterpret_cast(thisPtr); + Ark_LinearIndicatorController self = reinterpret_cast(thisPtr); GetAccessors()->getLinearIndicatorControllerAccessor()->stop(self); } KOALA_INTEROP_V1(LinearIndicatorController_stop, Ark_NativePointer) -Ark_NativePointer impl_GlobalScope_inspector_getInspectorNodes() { - return GetAccessors()->getGlobalScope_inspectorAccessor()->getInspectorNodes(); -} -KOALA_INTEROP_0(GlobalScope_inspector_getInspectorNodes, Ark_NativePointer) -Ark_NativePointer impl_GlobalScope_inspector_getInspectorNodeById(KInteropNumber id) { - return GetAccessors()->getGlobalScope_inspectorAccessor()->getInspectorNodeById((const Ark_Number*) (&id)); -} -KOALA_INTEROP_1(GlobalScope_inspector_getInspectorNodeById, Ark_NativePointer, KInteropNumber) -void impl_GlobalScope_inspector_registerVsyncCallback(uint8_t* thisArray, int32_t thisLength) { +void impl_GlobalScope_Profiler_inspector_registerVsyncCallback(uint8_t* thisArray, int32_t thisLength) { Deserializer thisDeserializer(thisArray, thisLength); Callback_String_Void callback__value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_String_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_String_Void))))};; - GetAccessors()->getGlobalScope_inspectorAccessor()->registerVsyncCallback((const Callback_String_Void*)&callback__value); -} -KOALA_INTEROP_V2(GlobalScope_inspector_registerVsyncCallback, uint8_t*, int32_t) -void impl_GlobalScope_inspector_unregisterVsyncCallback() { - GetAccessors()->getGlobalScope_inspectorAccessor()->unregisterVsyncCallback(); + GetAccessors()->getGlobalScope_Profiler_inspectorAccessor()->registerVsyncCallback((const Callback_String_Void*)&callback__value); } -KOALA_INTEROP_V0(GlobalScope_inspector_unregisterVsyncCallback) -void impl_GlobalScope_inspector_setAppBgColor(const KStringPtr& value) { - GetAccessors()->getGlobalScope_inspectorAccessor()->setAppBgColor((const Ark_String*) (&value)); +KOALA_INTEROP_V2(GlobalScope_Profiler_inspector_registerVsyncCallback, uint8_t*, int32_t) +void impl_GlobalScope_Profiler_inspector_unregisterVsyncCallback() { + GetAccessors()->getGlobalScope_Profiler_inspectorAccessor()->unregisterVsyncCallback(); } -KOALA_INTEROP_V1(GlobalScope_inspector_setAppBgColor, KStringPtr) \ No newline at end of file +KOALA_INTEROP_V0(GlobalScope_Profiler_inspector_unregisterVsyncCallback) \ No newline at end of file diff --git a/arkoala/framework/native/src/generated/callback_managed_caller.cc b/arkoala/framework/native/src/generated/callback_managed_caller.cc index 125de7860640c82d41d3c8406324a88a847a9dc8..89d714e31354f1288982e20ea13db4e4f660486b 100644 --- a/arkoala/framework/native/src/generated/callback_managed_caller.cc +++ b/arkoala/framework/native/src/generated/callback_managed_caller.cc @@ -2966,12 +2966,12 @@ void callManagedCallback_ResourceStr_Void(Ark_Int32 resourceId, Ark_ResourceStr argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeResource(value_1); @@ -2986,12 +2986,12 @@ void callManagedCallback_ResourceStr_VoidSync(Ark_VMContext vmContext, Ark_Int32 argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeResource(value_1); @@ -3670,14 +3670,14 @@ void callManagedCallback_Union_CustomBuilder_DragItemInfo_Void(Ark_Int32 resourc argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeCallbackResource(value_0.resource); argsSerializer.writePointer(reinterpret_cast(value_0.call)); argsSerializer.writePointer(reinterpret_cast(value_0.callSync)); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeDragItemInfo(value_1); @@ -3692,14 +3692,14 @@ void callManagedCallback_Union_CustomBuilder_DragItemInfo_VoidSync(Ark_VMContext argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeCallbackResource(value_0.resource); argsSerializer.writePointer(reinterpret_cast(value_0.call)); argsSerializer.writePointer(reinterpret_cast(value_0.callSync)); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeDragItemInfo(value_1); @@ -3716,12 +3716,12 @@ void callManagedCallback_Union_Number_Array_Number_Void(Ark_Int32 resourceId, Ar argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { argsSerializer.writeInt8(0); const auto selected_0 = selected.value0; argsSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { argsSerializer.writeInt8(1); const auto selected_1 = selected.value1; argsSerializer.writeInt32(selected_1.length); @@ -3740,12 +3740,12 @@ void callManagedCallback_Union_Number_Array_Number_VoidSync(Ark_VMContext vmCont argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { argsSerializer.writeInt8(0); const auto selected_0 = selected.value0; argsSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { argsSerializer.writeInt8(1); const auto selected_1 = selected.value1; argsSerializer.writeInt32(selected_1.length); @@ -3766,12 +3766,12 @@ void callManagedCallback_Union_Number_Resource_Void(Ark_Int32 resourceId, Ark_Un argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { argsSerializer.writeInt8(0); const auto selected_0 = selected.value0; argsSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { argsSerializer.writeInt8(1); const auto selected_1 = selected.value1; argsSerializer.writeResource(selected_1); @@ -3786,12 +3786,12 @@ void callManagedCallback_Union_Number_Resource_VoidSync(Ark_VMContext vmContext, argsSerializer.writeInt32(resourceId); Ark_Int32 selected_type = INTEROP_RUNTIME_UNDEFINED; selected_type = selected.selector; - if (((selected_type == 0))) { + if (selected_type == 0) { argsSerializer.writeInt8(0); const auto selected_0 = selected.value0; argsSerializer.writeNumber(selected_0); } - else if (((selected_type == 1))) { + else if (selected_type == 1) { argsSerializer.writeInt8(1); const auto selected_1 = selected.value1; argsSerializer.writeResource(selected_1); @@ -3808,12 +3808,12 @@ void callManagedCallback_Union_String_Array_String_Void(Ark_Int32 resourceId, Ar argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeInt32(value_1.length); @@ -3832,12 +3832,12 @@ void callManagedCallback_Union_String_Array_String_VoidSync(Ark_VMContext vmCont argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeInt32(value_1.length); @@ -4168,24 +4168,24 @@ void callManagedInterceptionShowCallback(Ark_Int32 resourceId, Ark_Union_NavDest argsSerializer.writeInt32(resourceId); Ark_Int32 from_type = INTEROP_RUNTIME_UNDEFINED; from_type = from.selector; - if (((from_type == 0))) { + if (from_type == 0) { argsSerializer.writeInt8(0); const auto from_0 = from.value0; argsSerializer.writeNavDestinationContext(from_0); } - else if (((from_type == 1))) { + else if (from_type == 1) { argsSerializer.writeInt8(1); const auto from_1 = from.value1; argsSerializer.writeString(from_1); } Ark_Int32 to_type = INTEROP_RUNTIME_UNDEFINED; to_type = to.selector; - if (((to_type == 0))) { + if (to_type == 0) { argsSerializer.writeInt8(0); const auto to_0 = to.value0; argsSerializer.writeNavDestinationContext(to_0); } - else if (((to_type == 1))) { + else if (to_type == 1) { argsSerializer.writeInt8(1); const auto to_1 = to.value1; argsSerializer.writeString(to_1); @@ -4202,24 +4202,24 @@ void callManagedInterceptionShowCallbackSync(Ark_VMContext vmContext, Ark_Int32 argsSerializer.writeInt32(resourceId); Ark_Int32 from_type = INTEROP_RUNTIME_UNDEFINED; from_type = from.selector; - if (((from_type == 0))) { + if (from_type == 0) { argsSerializer.writeInt8(0); const auto from_0 = from.value0; argsSerializer.writeNavDestinationContext(from_0); } - else if (((from_type == 1))) { + else if (from_type == 1) { argsSerializer.writeInt8(1); const auto from_1 = from.value1; argsSerializer.writeString(from_1); } Ark_Int32 to_type = INTEROP_RUNTIME_UNDEFINED; to_type = to.selector; - if (((to_type == 0))) { + if (to_type == 0) { argsSerializer.writeInt8(0); const auto to_0 = to.value0; argsSerializer.writeNavDestinationContext(to_0); } - else if (((to_type == 1))) { + else if (to_type == 1) { argsSerializer.writeInt8(1); const auto to_1 = to.value1; argsSerializer.writeString(to_1); @@ -5554,12 +5554,12 @@ void callManagedType_TextPickerAttribute_onChange_callback(Ark_Int32 resourceId, argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeInt32(value_1.length); @@ -5570,12 +5570,12 @@ void callManagedType_TextPickerAttribute_onChange_callback(Ark_Int32 resourceId, } Ark_Int32 index_type = INTEROP_RUNTIME_UNDEFINED; index_type = index.selector; - if (((index_type == 0))) { + if (index_type == 0) { argsSerializer.writeInt8(0); const auto index_0 = index.value0; argsSerializer.writeNumber(index_0); } - else if (((index_type == 1))) { + else if (index_type == 1) { argsSerializer.writeInt8(1); const auto index_1 = index.value1; argsSerializer.writeInt32(index_1.length); @@ -5594,12 +5594,12 @@ void callManagedType_TextPickerAttribute_onChange_callbackSync(Ark_VMContext vmC argsSerializer.writeInt32(resourceId); Ark_Int32 value_type = INTEROP_RUNTIME_UNDEFINED; value_type = value.selector; - if (((value_type == 0))) { + if (value_type == 0) { argsSerializer.writeInt8(0); const auto value_0 = value.value0; argsSerializer.writeString(value_0); } - else if (((value_type == 1))) { + else if (value_type == 1) { argsSerializer.writeInt8(1); const auto value_1 = value.value1; argsSerializer.writeInt32(value_1.length); @@ -5610,12 +5610,12 @@ void callManagedType_TextPickerAttribute_onChange_callbackSync(Ark_VMContext vmC } Ark_Int32 index_type = INTEROP_RUNTIME_UNDEFINED; index_type = index.selector; - if (((index_type == 0))) { + if (index_type == 0) { argsSerializer.writeInt8(0); const auto index_0 = index.value0; argsSerializer.writeNumber(index_0); } - else if (((index_type == 1))) { + else if (index_type == 1) { argsSerializer.writeInt8(1); const auto index_1 = index.value1; argsSerializer.writeInt32(index_1.length); @@ -5680,12 +5680,12 @@ void callManagedType_WebAttribute_onUrlLoadIntercept_callback(Ark_Int32 resource const auto event_value_data = event_value.data; Ark_Int32 event_value_data_type = INTEROP_RUNTIME_UNDEFINED; event_value_data_type = event_value_data.selector; - if (((event_value_data_type == 0))) { + if (event_value_data_type == 0) { argsSerializer.writeInt8(0); const auto event_value_data_0 = event_value_data.value0; argsSerializer.writeString(event_value_data_0); } - else if (((event_value_data_type == 1))) { + else if (event_value_data_type == 1) { argsSerializer.writeInt8(1); const auto event_value_data_1 = event_value_data.value1; argsSerializer.writeWebResourceRequest(event_value_data_1); @@ -5710,12 +5710,12 @@ void callManagedType_WebAttribute_onUrlLoadIntercept_callbackSync(Ark_VMContext const auto event_value_data = event_value.data; Ark_Int32 event_value_data_type = INTEROP_RUNTIME_UNDEFINED; event_value_data_type = event_value_data.selector; - if (((event_value_data_type == 0))) { + if (event_value_data_type == 0) { argsSerializer.writeInt8(0); const auto event_value_data_0 = event_value_data.value0; argsSerializer.writeString(event_value_data_0); } - else if (((event_value_data_type == 1))) { + else if (event_value_data_type == 1) { argsSerializer.writeInt8(1); const auto event_value_data_1 = event_value_data.value1; argsSerializer.writeWebResourceRequest(event_value_data_1); diff --git a/arkoala/framework/native/src/generated/dummy_impl.cc b/arkoala/framework/native/src/generated/dummy_impl.cc index ba44464d1e6c48077b492ab06c9f0218a385a7fe..0991ff11e4f7807c108459fd2b3bfdf52acebf0c 100644 --- a/arkoala/framework/native/src/generated/dummy_impl.cc +++ b/arkoala/framework/native/src/generated/dummy_impl.cc @@ -954,7 +954,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Root", id, flags);; } @@ -970,7 +970,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ComponentRoot", id, flags);; } @@ -986,7 +986,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("AbilityComponent", id, flags);; } @@ -1036,7 +1036,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("AlphabetIndexer", id, flags);; } @@ -1349,7 +1349,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Animator", id, flags);; } @@ -1519,7 +1519,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Badge", id, flags);; } @@ -1557,7 +1557,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Blank", id, flags);; } @@ -1597,7 +1597,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Button", id, flags);; } @@ -1768,7 +1768,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Calendar", id, flags);; } @@ -1928,7 +1928,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("CalendarPicker", id, flags);; } @@ -1991,7 +1991,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Canvas", id, flags);; } @@ -2054,7 +2054,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Checkbox", id, flags);; } @@ -2164,7 +2164,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("CheckboxGroup", id, flags);; } @@ -2264,7 +2264,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Circle", id, flags);; } @@ -2292,7 +2292,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Column", id, flags);; } @@ -2362,7 +2362,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ColumnSplit", id, flags);; } @@ -2410,7 +2410,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("CommonMethod", id, flags);; } @@ -4406,7 +4406,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("CommonShapeMethod", id, flags);; } @@ -4532,7 +4532,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Common", id, flags);; } @@ -4558,7 +4558,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ScrollableCommonMethod", id, flags);; } @@ -4750,7 +4750,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Component3D", id, flags);; } @@ -4853,7 +4853,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ContainerSpan", id, flags);; } @@ -4891,7 +4891,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Counter", id, flags);; } @@ -4959,7 +4959,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("DataPanel", id, flags);; } @@ -5049,7 +5049,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("DatePicker", id, flags);; } @@ -5149,7 +5149,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Divider", id, flags);; } @@ -5217,7 +5217,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("EffectComponent", id, flags);; } @@ -5243,7 +5243,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Ellipse", id, flags);; } @@ -5271,7 +5271,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("EmbeddedComponent", id, flags);; } @@ -5324,7 +5324,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Flex", id, flags);; } @@ -5364,7 +5364,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("FlowItem", id, flags);; } @@ -5390,7 +5390,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("FolderStack", id, flags);; } @@ -5470,7 +5470,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("FormComponent", id, flags);; } @@ -5600,7 +5600,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("FormLink", id, flags);; } @@ -5628,7 +5628,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Gauge", id, flags);; } @@ -5758,7 +5758,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Grid", id, flags);; } @@ -6137,7 +6137,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("GridItem", id, flags);; } @@ -6257,7 +6257,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("GridCol", id, flags);; } @@ -6317,7 +6317,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("GridContainer", id, flags);; } @@ -6345,7 +6345,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("GridRow", id, flags);; } @@ -6395,7 +6395,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Hyperlink", id, flags);; } @@ -6438,7 +6438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Image", id, flags);; } @@ -6741,7 +6741,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ImageAnimator", id, flags);; } @@ -6899,7 +6899,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ImageSpan", id, flags);; } @@ -6989,7 +6989,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Line", id, flags);; } @@ -7039,7 +7039,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("List", id, flags);; } @@ -7438,7 +7438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ListItem", id, flags);; } @@ -7548,7 +7548,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ListItemGroup", id, flags);; } @@ -7598,7 +7598,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("LoadingProgress", id, flags);; } @@ -7656,7 +7656,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("LocationButton", id, flags);; } @@ -7704,7 +7704,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Marquee", id, flags);; } @@ -7824,7 +7824,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("MediaCachedImage", id, flags);; } @@ -7852,7 +7852,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Menu", id, flags);; } @@ -7950,7 +7950,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("MenuItem", id, flags);; } @@ -8060,7 +8060,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("MenuItemGroup", id, flags);; } @@ -8088,7 +8088,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("NavDestination", id, flags);; } @@ -8331,7 +8331,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("NavRouter", id, flags);; } @@ -8389,7 +8389,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Navigator", id, flags);; } @@ -8467,7 +8467,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("NodeContainer", id, flags);; } @@ -8495,7 +8495,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Panel", id, flags);; } @@ -8655,7 +8655,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("PasteButton", id, flags);; } @@ -8703,7 +8703,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Path", id, flags);; } @@ -8743,7 +8743,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("PatternLock", id, flags);; } @@ -8893,7 +8893,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("PluginComponent", id, flags);; } @@ -8943,7 +8943,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Polygon", id, flags);; } @@ -8983,7 +8983,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Polyline", id, flags);; } @@ -9023,7 +9023,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Progress", id, flags);; } @@ -9103,7 +9103,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("QRCode", id, flags);; } @@ -9163,7 +9163,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Radio", id, flags);; } @@ -9243,7 +9243,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Rating", id, flags);; } @@ -9333,7 +9333,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Rect", id, flags);; } @@ -9393,7 +9393,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Refresh", id, flags);; } @@ -9493,7 +9493,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RelativeContainer", id, flags);; } @@ -9551,7 +9551,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RichEditor", id, flags);; } @@ -9896,7 +9896,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RichText", id, flags);; } @@ -9946,7 +9946,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RootScene", id, flags);; } @@ -9974,7 +9974,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Row", id, flags);; } @@ -10044,7 +10044,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RowSplit", id, flags);; } @@ -10082,7 +10082,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SaveButton", id, flags);; } @@ -10130,7 +10130,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Screen", id, flags);; } @@ -10158,7 +10158,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Scroll", id, flags);; } @@ -10381,7 +10381,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("ScrollBar", id, flags);; } @@ -10421,7 +10421,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Search", id, flags);; } @@ -10880,7 +10880,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SecurityComponentMethod", id, flags);; } @@ -11126,7 +11126,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Select", id, flags);; } @@ -11389,7 +11389,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Shape", id, flags);; } @@ -11563,7 +11563,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Slider", id, flags);; } @@ -11816,7 +11816,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("BaseSpan", id, flags);; } @@ -11852,7 +11852,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Span", id, flags);; } @@ -11992,7 +11992,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Stack", id, flags);; } @@ -12042,7 +12042,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Stepper", id, flags);; } @@ -12132,7 +12132,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("StepperItem", id, flags);; } @@ -12190,7 +12190,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Swiper", id, flags);; } @@ -12512,7 +12512,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("IndicatorComponent", id, flags);; } @@ -12602,7 +12602,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SymbolGlyph", id, flags);; } @@ -12708,7 +12708,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SymbolSpan", id, flags);; } @@ -12788,7 +12788,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Tabs", id, flags);; } @@ -13094,7 +13094,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TabContent", id, flags);; } @@ -13162,7 +13162,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Text", id, flags);; } @@ -13643,7 +13643,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextArea", id, flags);; } @@ -14222,7 +14222,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextClock", id, flags);; } @@ -14362,7 +14362,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextInput", id, flags);; } @@ -15061,7 +15061,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextPicker", id, flags);; } @@ -15221,7 +15221,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TextTimer", id, flags);; } @@ -15341,7 +15341,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("TimePicker", id, flags);; } @@ -15461,7 +15461,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Toggle", id, flags);; } @@ -15551,7 +15551,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Video", id, flags);; } @@ -15751,7 +15751,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("Web", id, flags);; } @@ -17003,7 +17003,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("WindowScene", id, flags);; } @@ -17046,7 +17046,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("XComponent", id, flags);; } @@ -17136,7 +17136,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("SideBarContainer", id, flags);; } @@ -17316,7 +17316,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("RemoteWindow", id, flags);; } @@ -17344,7 +17344,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("WaterFlow", id, flags);; } @@ -17527,7 +17527,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("UIExtensionComponent", id, flags);; } @@ -17620,7 +17620,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, flags); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return nullptr] \n"); appendGroupedLog(1, out); return new TreeNode("LinearIndicator", id, flags);; } @@ -20137,7 +20137,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return &modifiersImpl; } namespace AnimationExtenderAccessor { - void DestroyPeerImpl(AnimationExtenderPeer* peer) + void DestroyPeerImpl(Ark_AnimationExtender peer) { if (!needGroupedLog(1)) return; @@ -20148,12 +20148,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_AnimationExtender CtorImpl() { if (!needGroupedLog(1)) - return (AnimationExtenderPeer*) 100; + return (Ark_AnimationExtender) 100; string out("new AnimationExtender("); out.append(") \n"); - out.append("[return (AnimationExtenderPeer*) 100] \n"); + out.append("[return (Ark_AnimationExtender) 100] \n"); appendGroupedLog(1, out); - return (AnimationExtenderPeer*) 100; + return (Ark_AnimationExtender) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20229,7 +20229,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AnimationExtenderAccessor namespace UnifiedDataAccessor { - void DestroyPeerImpl(UnifiedDataPeer* peer) + void DestroyPeerImpl(Ark_UnifiedData peer) { if (!needGroupedLog(1)) return; @@ -20240,12 +20240,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_UnifiedData CtorImpl() { if (!needGroupedLog(1)) - return (UnifiedDataPeer*) 100; + return (Ark_UnifiedData) 100; string out("new UnifiedData("); out.append(") \n"); - out.append("[return (UnifiedDataPeer*) 100] \n"); + out.append("[return (Ark_UnifiedData) 100] \n"); appendGroupedLog(1, out); - return (UnifiedDataPeer*) 100; + return (Ark_UnifiedData) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20257,7 +20257,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean HasTypeImpl(UnifiedDataPeer* peer, + Ark_Boolean HasTypeImpl(Ark_UnifiedData peer, const Ark_String* UnifiedData_type) { if (!needGroupedLog(1)) @@ -20269,19 +20269,70 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void GetTypesImpl(UnifiedDataPeer* peer) + Array_String GetTypesImpl(Ark_UnifiedData peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getTypes("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // UnifiedDataAccessor namespace LazyForEachOpsAccessor { } // LazyForEachOpsAccessor + namespace SystemOpsAccessor { + void DestroyPeerImpl(Ark_SystemOps peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_SystemOps CtorImpl() + { + if (!needGroupedLog(1)) + return (Ark_SystemOps) 100; + string out("new SystemOps("); + out.append(") \n"); + out.append("[return (Ark_SystemOps) 100] \n"); + appendGroupedLog(1, out); + return (Ark_SystemOps) 100; + } + Ark_NativePointer GetFinalizerImpl() + { + if (!needGroupedLog(1)) + return fnPtr(dummyClassFinalizer); + string out("getFinalizer("); + out.append(") \n"); + out.append("[return fnPtr(dummyClassFinalizer)] \n"); + appendGroupedLog(1, out); + return fnPtr(dummyClassFinalizer); + } + Ark_NativePointer StartFrameImpl() + { + if (!needGroupedLog(1)) + return nullptr; + string out("StartFrame("); + out.append(") \n"); + out.append("[return nullptr] \n"); + appendGroupedLog(1, out); + return nullptr; + } + void EndFrameImpl(Ark_NativePointer root) + { + if (!needGroupedLog(1)) + return; + string out("EndFrame("); + WriteToString(&out, root); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // SystemOpsAccessor namespace DrawingCanvasAccessor { - void DestroyPeerImpl(DrawingCanvasPeer* peer) + void DestroyPeerImpl(Ark_DrawingCanvas peer) { if (!needGroupedLog(1)) return; @@ -20292,13 +20343,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DrawingCanvas CtorImpl(Ark_PixelMap pixelmap) { if (!needGroupedLog(1)) - return (DrawingCanvasPeer*) 100; + return (Ark_DrawingCanvas) 100; string out("new DrawingCanvas("); WriteToString(&out, pixelmap); out.append(") \n"); - out.append("[return (DrawingCanvasPeer*) 100] \n"); + out.append("[return (Ark_DrawingCanvas) 100] \n"); appendGroupedLog(1, out); - return (DrawingCanvasPeer*) 100; + return (Ark_DrawingCanvas) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20310,7 +20361,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void DrawRectImpl(DrawingCanvasPeer* peer, + void DrawRectImpl(Ark_DrawingCanvas peer, const Ark_Number* left, const Ark_Number* top, const Ark_Number* right, @@ -20331,7 +20382,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DrawingCanvasAccessor namespace LengthMetricsAccessor { - void DestroyPeerImpl(LengthMetricsPeer* peer) + void DestroyPeerImpl(Ark_LengthMetrics peer) { if (!needGroupedLog(1)) return; @@ -20342,12 +20393,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LengthMetrics CtorImpl() { if (!needGroupedLog(1)) - return (LengthMetricsPeer*) 100; + return (Ark_LengthMetrics) 100; string out("new LengthMetrics("); out.append(") \n"); - out.append("[return (LengthMetricsPeer*) 100] \n"); + out.append("[return (Ark_LengthMetrics) 100] \n"); appendGroupedLog(1, out); - return (LengthMetricsPeer*) 100; + return (Ark_LengthMetrics) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20381,7 +20432,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return (Ark_LengthMetrics) 300; } - Ark_NativePointer GetUnitImpl(LengthMetricsPeer* peer) + Ark_LengthUnit GetUnitImpl(Ark_LengthMetrics peer) { if (!needGroupedLog(1)) return {}; @@ -20391,7 +20442,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetUnitImpl(LengthMetricsPeer* peer, + void SetUnitImpl(Ark_LengthMetrics peer, Ark_LengthUnit unit) { if (!needGroupedLog(1)) @@ -20401,7 +20452,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetValueImpl(LengthMetricsPeer* peer) + Ark_Int32 GetValueImpl(Ark_LengthMetrics peer) { if (!needGroupedLog(1)) return 0; @@ -20411,7 +20462,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetValueImpl(LengthMetricsPeer* peer, + void SetValueImpl(Ark_LengthMetrics peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -20423,7 +20474,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LengthMetricsAccessor namespace WebviewControllerAccessor { - void DestroyPeerImpl(WebviewControllerPeer* peer) + void DestroyPeerImpl(Ark_WebviewController peer) { if (!needGroupedLog(1)) return; @@ -20434,12 +20485,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebviewController CtorImpl() { if (!needGroupedLog(1)) - return (WebviewControllerPeer*) 100; + return (Ark_WebviewController) 100; string out("new WebviewController("); out.append(") \n"); - out.append("[return (WebviewControllerPeer*) 100] \n"); + out.append("[return (Ark_WebviewController) 100] \n"); appendGroupedLog(1, out); - return (WebviewControllerPeer*) 100; + return (Ark_WebviewController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20459,7 +20510,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void LoadUrlImpl(WebviewControllerPeer* peer, + void LoadUrlImpl(Ark_WebviewController peer, const Ark_Union_String_Resource* url, const Opt_Array_WebHeader* headers) { @@ -20474,7 +20525,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebviewControllerAccessor namespace GlobalScope_ohos_arkui_componentSnapshotAccessor { - void DestroyPeerImpl(GlobalScope_ohos_arkui_componentSnapshotPeer* peer) + void DestroyPeerImpl(Ark_GlobalScope_ohos_arkui_componentSnapshot peer) { if (!needGroupedLog(1)) return; @@ -20485,12 +20536,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GlobalScope_ohos_arkui_componentSnapshot CtorImpl() { if (!needGroupedLog(1)) - return (GlobalScope_ohos_arkui_componentSnapshotPeer*) 100; + return (Ark_GlobalScope_ohos_arkui_componentSnapshot) 100; string out("new GlobalScope_ohos_arkui_componentSnapshot("); out.append(") \n"); - out.append("[return (GlobalScope_ohos_arkui_componentSnapshotPeer*) 100] \n"); + out.append("[return (Ark_GlobalScope_ohos_arkui_componentSnapshot) 100] \n"); appendGroupedLog(1, out); - return (GlobalScope_ohos_arkui_componentSnapshotPeer*) 100; + return (Ark_GlobalScope_ohos_arkui_componentSnapshot) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20519,7 +20570,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GlobalScope_ohos_arkui_componentSnapshotAccessor namespace GlobalScope_ohos_arkui_performanceMonitorAccessor { - void DestroyPeerImpl(GlobalScope_ohos_arkui_performanceMonitorPeer* peer) + void DestroyPeerImpl(Ark_GlobalScope_ohos_arkui_performanceMonitor peer) { if (!needGroupedLog(1)) return; @@ -20530,12 +20581,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GlobalScope_ohos_arkui_performanceMonitor CtorImpl() { if (!needGroupedLog(1)) - return (GlobalScope_ohos_arkui_performanceMonitorPeer*) 100; + return (Ark_GlobalScope_ohos_arkui_performanceMonitor) 100; string out("new GlobalScope_ohos_arkui_performanceMonitor("); out.append(") \n"); - out.append("[return (GlobalScope_ohos_arkui_performanceMonitorPeer*) 100] \n"); + out.append("[return (Ark_GlobalScope_ohos_arkui_performanceMonitor) 100] \n"); appendGroupedLog(1, out); - return (GlobalScope_ohos_arkui_performanceMonitorPeer*) 100; + return (Ark_GlobalScope_ohos_arkui_performanceMonitor) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20588,7 +20639,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GlobalScope_ohos_arkui_performanceMonitorAccessor namespace FrameNodeAccessor { - void DestroyPeerImpl(FrameNodePeer* peer) + void DestroyPeerImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return; @@ -20599,13 +20650,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_FrameNode CtorImpl(const Ark_UIContext* uiContext) { if (!needGroupedLog(1)) - return (FrameNodePeer*) 100; + return (Ark_FrameNode) 100; string out("new FrameNode("); WriteToString(&out, uiContext); out.append(") \n"); - out.append("[return (FrameNodePeer*) 100] \n"); + out.append("[return (Ark_FrameNode) 100] \n"); appendGroupedLog(1, out); - return (FrameNodePeer*) 100; + return (Ark_FrameNode) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20617,7 +20668,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean IsModifiableImpl(FrameNodePeer* peer) + Ark_Boolean IsModifiableImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return 0; @@ -20627,7 +20678,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void AppendChildImpl(FrameNodePeer* peer, + void AppendChildImpl(Ark_FrameNode peer, Ark_FrameNode node) { if (!needGroupedLog(1)) @@ -20637,7 +20688,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InsertChildAfterImpl(FrameNodePeer* peer, + void InsertChildAfterImpl(Ark_FrameNode peer, Ark_FrameNode child, Ark_FrameNode sibling) { @@ -20650,7 +20701,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RemoveChildImpl(FrameNodePeer* peer, + void RemoveChildImpl(Ark_FrameNode peer, Ark_FrameNode node) { if (!needGroupedLog(1)) @@ -20660,7 +20711,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearChildrenImpl(FrameNodePeer* peer) + void ClearChildrenImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return; @@ -20668,59 +20719,59 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_FrameNode GetChildImpl(FrameNodePeer* peer, + Ark_FrameNode GetChildImpl(Ark_FrameNode peer, const Ark_Number* index) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getChild("); WriteToString(&out, index); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_FrameNode GetFirstChildImpl(FrameNodePeer* peer) + Ark_FrameNode GetFirstChildImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getFirstChild("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_FrameNode GetNextSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetNextSiblingImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getNextSibling("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_FrameNode GetPreviousSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetPreviousSiblingImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getPreviousSibling("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_FrameNode GetParentImpl(FrameNodePeer* peer) + Ark_FrameNode GetParentImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_FrameNode) 300; string out("getParent("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_FrameNode) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_FrameNode) 300; } - Ark_Int32 GetChildrenCountImpl(FrameNodePeer* peer) + Ark_Int32 GetChildrenCountImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return 0; @@ -20730,7 +20781,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void DisposeImpl(FrameNodePeer* peer) + void DisposeImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return; @@ -20738,7 +20789,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetOpacityImpl(FrameNodePeer* peer) + Ark_Int32 GetOpacityImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return 0; @@ -20748,7 +20799,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetPositionToWindowWithTransformImpl(FrameNodePeer* peer) + Ark_Position GetPositionToWindowWithTransformImpl(Ark_FrameNode peer) { if (!needGroupedLog(1)) return {}; @@ -20760,7 +20811,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FrameNodeAccessor namespace PixelMapAccessor { - void DestroyPeerImpl(PixelMapPeer* peer) + void DestroyPeerImpl(Ark_PixelMap peer) { if (!needGroupedLog(1)) return; @@ -20771,12 +20822,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PixelMap CtorImpl() { if (!needGroupedLog(1)) - return (PixelMapPeer*) 100; + return (Ark_PixelMap) 100; string out("new PixelMap("); out.append(") \n"); - out.append("[return (PixelMapPeer*) 100] \n"); + out.append("[return (Ark_PixelMap) 100] \n"); appendGroupedLog(1, out); - return (PixelMapPeer*) 100; + return (Ark_PixelMap) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20788,7 +20839,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ReadPixelsToBufferSyncImpl(PixelMapPeer* peer, + void ReadPixelsToBufferSyncImpl(Ark_PixelMap peer, const Ark_Buffer* dst) { if (!needGroupedLog(1)) @@ -20798,7 +20849,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void WriteBufferToPixelsImpl(PixelMapPeer* peer, + void WriteBufferToPixelsImpl(Ark_PixelMap peer, const Ark_Buffer* src) { if (!needGroupedLog(1)) @@ -20808,7 +20859,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetIsEditableImpl(PixelMapPeer* peer) + Ark_Boolean GetIsEditableImpl(Ark_PixelMap peer) { if (!needGroupedLog(1)) return 0; @@ -20818,17 +20869,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIsEditableImpl(PixelMapPeer* peer, - Ark_Int32 isEditable) - { - if (!needGroupedLog(1)) - return; - string out("setIsEditable("); - WriteToString(&out, isEditable); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_Int32 GetIsStrideAlignmentImpl(PixelMapPeer* peer) + Ark_Boolean GetIsStrideAlignmentImpl(Ark_PixelMap peer) { if (!needGroupedLog(1)) return 0; @@ -20838,19 +20879,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIsStrideAlignmentImpl(PixelMapPeer* peer, - Ark_Int32 isStrideAlignment) - { - if (!needGroupedLog(1)) - return; - string out("setIsStrideAlignment("); - WriteToString(&out, isStrideAlignment); - out.append(") \n"); - appendGroupedLog(1, out); - } } // PixelMapAccessor namespace NavExtenderAccessor { - void DestroyPeerImpl(NavExtenderPeer* peer) + void DestroyPeerImpl(Ark_NavExtender peer) { if (!needGroupedLog(1)) return; @@ -20861,12 +20892,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NavExtender CtorImpl() { if (!needGroupedLog(1)) - return (NavExtenderPeer*) 100; + return (Ark_NavExtender) 100; string out("new NavExtender("); out.append(") \n"); - out.append("[return (NavExtenderPeer*) 100] \n"); + out.append("[return (Ark_NavExtender) 100] \n"); appendGroupedLog(1, out); - return (NavExtenderPeer*) 100; + return (Ark_NavExtender) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20892,7 +20923,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavExtenderAccessor namespace EventEmulatorAccessor { - void DestroyPeerImpl(EventEmulatorPeer* peer) + void DestroyPeerImpl(Ark_EventEmulator peer) { if (!needGroupedLog(1)) return; @@ -20903,12 +20934,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_EventEmulator CtorImpl() { if (!needGroupedLog(1)) - return (EventEmulatorPeer*) 100; + return (Ark_EventEmulator) 100; string out("new EventEmulator("); out.append(") \n"); - out.append("[return (EventEmulatorPeer*) 100] \n"); + out.append("[return (Ark_EventEmulator) 100] \n"); appendGroupedLog(1, out); - return (EventEmulatorPeer*) 100; + return (Ark_EventEmulator) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20946,7 +20977,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EventEmulatorAccessor namespace ActionSheetAccessor { - void DestroyPeerImpl(ActionSheetPeer* peer) + void DestroyPeerImpl(Ark_ActionSheet peer) { if (!needGroupedLog(1)) return; @@ -20957,12 +20988,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ActionSheet CtorImpl() { if (!needGroupedLog(1)) - return (ActionSheetPeer*) 100; + return (Ark_ActionSheet) 100; string out("new ActionSheet("); out.append(") \n"); - out.append("[return (ActionSheetPeer*) 100] \n"); + out.append("[return (Ark_ActionSheet) 100] \n"); appendGroupedLog(1, out); - return (ActionSheetPeer*) 100; + return (Ark_ActionSheet) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -20985,7 +21016,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ActionSheetAccessor namespace AlertDialogAccessor { - void DestroyPeerImpl(AlertDialogPeer* peer) + void DestroyPeerImpl(Ark_AlertDialog peer) { if (!needGroupedLog(1)) return; @@ -20996,12 +21027,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_AlertDialog CtorImpl() { if (!needGroupedLog(1)) - return (AlertDialogPeer*) 100; + return (Ark_AlertDialog) 100; string out("new AlertDialog("); out.append(") \n"); - out.append("[return (AlertDialogPeer*) 100] \n"); + out.append("[return (Ark_AlertDialog) 100] \n"); appendGroupedLog(1, out); - return (AlertDialogPeer*) 100; + return (Ark_AlertDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21024,7 +21055,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AlertDialogAccessor namespace SpringPropAccessor { - void DestroyPeerImpl(SpringPropPeer* peer) + void DestroyPeerImpl(Ark_SpringProp peer) { if (!needGroupedLog(1)) return; @@ -21037,7 +21068,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* damping) { if (!needGroupedLog(1)) - return (SpringPropPeer*) 100; + return (Ark_SpringProp) 100; string out("new SpringProp("); WriteToString(&out, mass); out.append(", "); @@ -21045,9 +21076,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, damping); out.append(") \n"); - out.append("[return (SpringPropPeer*) 100] \n"); + out.append("[return (Ark_SpringProp) 100] \n"); appendGroupedLog(1, out); - return (SpringPropPeer*) 100; + return (Ark_SpringProp) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21061,7 +21092,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SpringPropAccessor namespace SpringMotionAccessor { - void DestroyPeerImpl(SpringMotionPeer* peer) + void DestroyPeerImpl(Ark_SpringMotion peer) { if (!needGroupedLog(1)) return; @@ -21075,7 +21106,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SpringProp prop) { if (!needGroupedLog(1)) - return (SpringMotionPeer*) 100; + return (Ark_SpringMotion) 100; string out("new SpringMotion("); WriteToString(&out, start); out.append(", "); @@ -21085,9 +21116,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, prop); out.append(") \n"); - out.append("[return (SpringMotionPeer*) 100] \n"); + out.append("[return (Ark_SpringMotion) 100] \n"); appendGroupedLog(1, out); - return (SpringMotionPeer*) 100; + return (Ark_SpringMotion) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21101,7 +21132,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SpringMotionAccessor namespace FrictionMotionAccessor { - void DestroyPeerImpl(FrictionMotionPeer* peer) + void DestroyPeerImpl(Ark_FrictionMotion peer) { if (!needGroupedLog(1)) return; @@ -21114,7 +21145,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* velocity) { if (!needGroupedLog(1)) - return (FrictionMotionPeer*) 100; + return (Ark_FrictionMotion) 100; string out("new FrictionMotion("); WriteToString(&out, friction); out.append(", "); @@ -21122,9 +21153,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, velocity); out.append(") \n"); - out.append("[return (FrictionMotionPeer*) 100] \n"); + out.append("[return (Ark_FrictionMotion) 100] \n"); appendGroupedLog(1, out); - return (FrictionMotionPeer*) 100; + return (Ark_FrictionMotion) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21138,7 +21169,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FrictionMotionAccessor namespace ScrollMotionAccessor { - void DestroyPeerImpl(ScrollMotionPeer* peer) + void DestroyPeerImpl(Ark_ScrollMotion peer) { if (!needGroupedLog(1)) return; @@ -21153,7 +21184,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SpringProp prop) { if (!needGroupedLog(1)) - return (ScrollMotionPeer*) 100; + return (Ark_ScrollMotion) 100; string out("new ScrollMotion("); WriteToString(&out, position); out.append(", "); @@ -21165,9 +21196,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, prop); out.append(") \n"); - out.append("[return (ScrollMotionPeer*) 100] \n"); + out.append("[return (Ark_ScrollMotion) 100] \n"); appendGroupedLog(1, out); - return (ScrollMotionPeer*) 100; + return (Ark_ScrollMotion) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21181,7 +21212,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollMotionAccessor namespace CalendarControllerAccessor { - void DestroyPeerImpl(CalendarControllerPeer* peer) + void DestroyPeerImpl(Ark_CalendarController peer) { if (!needGroupedLog(1)) return; @@ -21192,12 +21223,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CalendarController CtorImpl() { if (!needGroupedLog(1)) - return (CalendarControllerPeer*) 100; + return (Ark_CalendarController) 100; string out("new CalendarController("); out.append(") \n"); - out.append("[return (CalendarControllerPeer*) 100] \n"); + out.append("[return (Ark_CalendarController) 100] \n"); appendGroupedLog(1, out); - return (CalendarControllerPeer*) 100; + return (Ark_CalendarController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21209,7 +21240,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void BackToTodayImpl(CalendarControllerPeer* peer) + void BackToTodayImpl(Ark_CalendarController peer) { if (!needGroupedLog(1)) return; @@ -21217,7 +21248,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GoToImpl(CalendarControllerPeer* peer, + void GoToImpl(Ark_CalendarController peer, const Ark_Literal_Number_day_month_year* value) { if (!needGroupedLog(1)) @@ -21229,7 +21260,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CalendarControllerAccessor namespace CalendarPickerDialogAccessor { - void DestroyPeerImpl(CalendarPickerDialogPeer* peer) + void DestroyPeerImpl(Ark_CalendarPickerDialog peer) { if (!needGroupedLog(1)) return; @@ -21240,12 +21271,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CalendarPickerDialog CtorImpl() { if (!needGroupedLog(1)) - return (CalendarPickerDialogPeer*) 100; + return (Ark_CalendarPickerDialog) 100; string out("new CalendarPickerDialog("); out.append(") \n"); - out.append("[return (CalendarPickerDialogPeer*) 100] \n"); + out.append("[return (Ark_CalendarPickerDialog) 100] \n"); appendGroupedLog(1, out); - return (CalendarPickerDialogPeer*) 100; + return (Ark_CalendarPickerDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21268,7 +21299,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CalendarPickerDialogAccessor namespace CanvasGradientAccessor { - void DestroyPeerImpl(CanvasGradientPeer* peer) + void DestroyPeerImpl(Ark_CanvasGradient peer) { if (!needGroupedLog(1)) return; @@ -21279,12 +21310,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasGradient CtorImpl() { if (!needGroupedLog(1)) - return (CanvasGradientPeer*) 100; + return (Ark_CanvasGradient) 100; string out("new CanvasGradient("); out.append(") \n"); - out.append("[return (CanvasGradientPeer*) 100] \n"); + out.append("[return (Ark_CanvasGradient) 100] \n"); appendGroupedLog(1, out); - return (CanvasGradientPeer*) 100; + return (Ark_CanvasGradient) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21296,7 +21327,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void AddColorStopImpl(CanvasGradientPeer* peer, + void AddColorStopImpl(Ark_CanvasGradient peer, const Ark_Number* offset, const Ark_String* color) { @@ -21311,7 +21342,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasGradientAccessor namespace CanvasPathAccessor { - void DestroyPeerImpl(CanvasPathPeer* peer) + void DestroyPeerImpl(Ark_CanvasPath peer) { if (!needGroupedLog(1)) return; @@ -21322,12 +21353,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasPath CtorImpl() { if (!needGroupedLog(1)) - return (CanvasPathPeer*) 100; + return (Ark_CanvasPath) 100; string out("new CanvasPath("); out.append(") \n"); - out.append("[return (CanvasPathPeer*) 100] \n"); + out.append("[return (Ark_CanvasPath) 100] \n"); appendGroupedLog(1, out); - return (CanvasPathPeer*) 100; + return (Ark_CanvasPath) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21339,7 +21370,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ArcImpl(CanvasPathPeer* peer, + void ArcImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radius, @@ -21364,7 +21395,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ArcToImpl(CanvasPathPeer* peer, + void ArcToImpl(Ark_CanvasPath peer, const Ark_Number* x1, const Ark_Number* y1, const Ark_Number* x2, @@ -21386,7 +21417,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void BezierCurveToImpl(CanvasPathPeer* peer, + void BezierCurveToImpl(Ark_CanvasPath peer, const Ark_Number* cp1x, const Ark_Number* cp1y, const Ark_Number* cp2x, @@ -21411,7 +21442,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClosePathImpl(CanvasPathPeer* peer) + void ClosePathImpl(Ark_CanvasPath peer) { if (!needGroupedLog(1)) return; @@ -21419,7 +21450,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void EllipseImpl(CanvasPathPeer* peer, + void EllipseImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radiusX, @@ -21450,7 +21481,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void LineToImpl(CanvasPathPeer* peer, + void LineToImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y) { @@ -21463,7 +21494,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void MoveToImpl(CanvasPathPeer* peer, + void MoveToImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y) { @@ -21476,7 +21507,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void QuadraticCurveToImpl(CanvasPathPeer* peer, + void QuadraticCurveToImpl(Ark_CanvasPath peer, const Ark_Number* cpx, const Ark_Number* cpy, const Ark_Number* x, @@ -21495,7 +21526,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RectImpl(CanvasPathPeer* peer, + void RectImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -21516,7 +21547,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasPathAccessor namespace Path2DAccessor { - void DestroyPeerImpl(Path2DPeer* peer) + void DestroyPeerImpl(Ark_Path2D peer) { if (!needGroupedLog(1)) return; @@ -21527,12 +21558,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Path2D CtorImpl() { if (!needGroupedLog(1)) - return (Path2DPeer*) 100; + return (Ark_Path2D) 100; string out("new Path2D("); out.append(") \n"); - out.append("[return (Path2DPeer*) 100] \n"); + out.append("[return (Ark_Path2D) 100] \n"); appendGroupedLog(1, out); - return (Path2DPeer*) 100; + return (Ark_Path2D) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21544,7 +21575,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void AddPathImpl(Path2DPeer* peer, + void AddPathImpl(Ark_Path2D peer, Ark_Path2D path, const Opt_Matrix2D* transform) { @@ -21559,7 +21590,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // Path2DAccessor namespace CanvasPatternAccessor { - void DestroyPeerImpl(CanvasPatternPeer* peer) + void DestroyPeerImpl(Ark_CanvasPattern peer) { if (!needGroupedLog(1)) return; @@ -21570,12 +21601,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasPattern CtorImpl() { if (!needGroupedLog(1)) - return (CanvasPatternPeer*) 100; + return (Ark_CanvasPattern) 100; string out("new CanvasPattern("); out.append(") \n"); - out.append("[return (CanvasPatternPeer*) 100] \n"); + out.append("[return (Ark_CanvasPattern) 100] \n"); appendGroupedLog(1, out); - return (CanvasPatternPeer*) 100; + return (Ark_CanvasPattern) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21587,7 +21618,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetTransformImpl(CanvasPatternPeer* peer, + void SetTransformImpl(Ark_CanvasPattern peer, const Opt_Matrix2D* transform) { if (!needGroupedLog(1)) @@ -21599,7 +21630,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasPatternAccessor namespace ImageBitmapAccessor { - void DestroyPeerImpl(ImageBitmapPeer* peer) + void DestroyPeerImpl(Ark_ImageBitmap peer) { if (!needGroupedLog(1)) return; @@ -21610,13 +21641,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ImageBitmap CtorImpl(const Ark_String* src) { if (!needGroupedLog(1)) - return (ImageBitmapPeer*) 100; + return (Ark_ImageBitmap) 100; string out("new ImageBitmap("); WriteToString(&out, src); out.append(") \n"); - out.append("[return (ImageBitmapPeer*) 100] \n"); + out.append("[return (Ark_ImageBitmap) 100] \n"); appendGroupedLog(1, out); - return (ImageBitmapPeer*) 100; + return (Ark_ImageBitmap) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21628,7 +21659,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CloseImpl(ImageBitmapPeer* peer) + void CloseImpl(Ark_ImageBitmap peer) { if (!needGroupedLog(1)) return; @@ -21636,7 +21667,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetHeightImpl(ImageBitmapPeer* peer) + Ark_Int32 GetHeightImpl(Ark_ImageBitmap peer) { if (!needGroupedLog(1)) return 0; @@ -21646,7 +21677,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWidthImpl(ImageBitmapPeer* peer) + Ark_Int32 GetWidthImpl(Ark_ImageBitmap peer) { if (!needGroupedLog(1)) return 0; @@ -21658,7 +21689,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ImageBitmapAccessor namespace ImageDataAccessor { - void DestroyPeerImpl(ImageDataPeer* peer) + void DestroyPeerImpl(Ark_ImageData peer) { if (!needGroupedLog(1)) return; @@ -21671,7 +21702,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Buffer* data) { if (!needGroupedLog(1)) - return (ImageDataPeer*) 100; + return (Ark_ImageData) 100; string out("new ImageData("); WriteToString(&out, width); out.append(", "); @@ -21679,9 +21710,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, data); out.append(") \n"); - out.append("[return (ImageDataPeer*) 100] \n"); + out.append("[return (Ark_ImageData) 100] \n"); appendGroupedLog(1, out); - return (ImageDataPeer*) 100; + return (Ark_ImageData) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21693,7 +21724,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetHeightImpl(ImageDataPeer* peer) + Ark_Int32 GetHeightImpl(Ark_ImageData peer) { if (!needGroupedLog(1)) return 0; @@ -21703,7 +21734,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWidthImpl(ImageDataPeer* peer) + Ark_Int32 GetWidthImpl(Ark_ImageData peer) { if (!needGroupedLog(1)) return 0; @@ -21715,7 +21746,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ImageDataAccessor namespace RenderingContextSettingsAccessor { - void DestroyPeerImpl(RenderingContextSettingsPeer* peer) + void DestroyPeerImpl(Ark_RenderingContextSettings peer) { if (!needGroupedLog(1)) return; @@ -21726,13 +21757,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RenderingContextSettings CtorImpl(const Opt_Boolean* antialias) { if (!needGroupedLog(1)) - return (RenderingContextSettingsPeer*) 100; + return (Ark_RenderingContextSettings) 100; string out("new RenderingContextSettings("); WriteToString(&out, antialias); out.append(") \n"); - out.append("[return (RenderingContextSettingsPeer*) 100] \n"); + out.append("[return (Ark_RenderingContextSettings) 100] \n"); appendGroupedLog(1, out); - return (RenderingContextSettingsPeer*) 100; + return (Ark_RenderingContextSettings) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21744,7 +21775,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetAntialiasImpl(RenderingContextSettingsPeer* peer) + Ark_Boolean GetAntialiasImpl(Ark_RenderingContextSettings peer) { if (!needGroupedLog(1)) return 0; @@ -21754,7 +21785,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAntialiasImpl(RenderingContextSettingsPeer* peer, + void SetAntialiasImpl(Ark_RenderingContextSettings peer, Ark_Boolean antialias) { if (!needGroupedLog(1)) @@ -21766,7 +21797,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // RenderingContextSettingsAccessor namespace CanvasRendererAccessor { - void DestroyPeerImpl(CanvasRendererPeer* peer) + void DestroyPeerImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -21777,12 +21808,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasRenderer CtorImpl() { if (!needGroupedLog(1)) - return (CanvasRendererPeer*) 100; + return (Ark_CanvasRenderer) 100; string out("new CanvasRenderer("); out.append(") \n"); - out.append("[return (CanvasRendererPeer*) 100] \n"); + out.append("[return (Ark_CanvasRenderer) 100] \n"); appendGroupedLog(1, out); - return (CanvasRendererPeer*) 100; + return (Ark_CanvasRenderer) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -21794,7 +21825,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void DrawImage0Impl(CanvasRendererPeer* peer, + void DrawImage0Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy) @@ -21810,7 +21841,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DrawImage1Impl(CanvasRendererPeer* peer, + void DrawImage1Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy, @@ -21832,7 +21863,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DrawImage2Impl(CanvasRendererPeer* peer, + void DrawImage2Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* sx, const Ark_Number* sy, @@ -21866,7 +21897,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void BeginPathImpl(CanvasRendererPeer* peer) + void BeginPathImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -21874,7 +21905,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Clip0Impl(CanvasRendererPeer* peer, + void Clip0Impl(Ark_CanvasRenderer peer, const Opt_String* fillRule) { if (!needGroupedLog(1)) @@ -21884,7 +21915,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Clip1Impl(CanvasRendererPeer* peer, + void Clip1Impl(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule) { @@ -21897,7 +21928,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Fill0Impl(CanvasRendererPeer* peer, + void Fill0Impl(Ark_CanvasRenderer peer, const Opt_String* fillRule) { if (!needGroupedLog(1)) @@ -21907,7 +21938,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Fill1Impl(CanvasRendererPeer* peer, + void Fill1Impl(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule) { @@ -21920,7 +21951,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Stroke0Impl(CanvasRendererPeer* peer) + void Stroke0Impl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -21928,7 +21959,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Stroke1Impl(CanvasRendererPeer* peer, + void Stroke1Impl(Ark_CanvasRenderer peer, Ark_Path2D path) { if (!needGroupedLog(1)) @@ -21938,14 +21969,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_CanvasGradient CreateLinearGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateLinearGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* x1, const Ark_Number* y1) { if (!needGroupedLog(1)) - return {}; + return (Ark_CanvasGradient) 300; string out("createLinearGradient("); WriteToString(&out, x0); out.append(", "); @@ -21955,26 +21986,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, y1); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_CanvasGradient) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_CanvasGradient) 300; } - Ark_CanvasPattern CreatePatternImpl(CanvasRendererPeer* peer, + Opt_CanvasPattern CreatePatternImpl(Ark_CanvasRenderer peer, Ark_ImageBitmap image, const Opt_String* repetition) { if (!needGroupedLog(1)) - return 0; + return {}; string out("createPattern("); WriteToString(&out, image); out.append(", "); WriteToString(&out, repetition); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_CanvasGradient CreateRadialGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateRadialGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* r0, @@ -21983,7 +22014,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* r1) { if (!needGroupedLog(1)) - return {}; + return (Ark_CanvasGradient) 300; string out("createRadialGradient("); WriteToString(&out, x0); out.append(", "); @@ -21997,17 +22028,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, r1); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_CanvasGradient) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_CanvasGradient) 300; } - Ark_CanvasGradient CreateConicGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateConicGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* startAngle, const Ark_Number* x, const Ark_Number* y) { if (!needGroupedLog(1)) - return {}; + return (Ark_CanvasGradient) 300; string out("createConicGradient("); WriteToString(&out, startAngle); out.append(", "); @@ -22015,45 +22046,45 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, y); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_CanvasGradient) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_CanvasGradient) 300; } - Ark_ImageData CreateImageData0Impl(CanvasRendererPeer* peer, + Ark_ImageData CreateImageData0Impl(Ark_CanvasRenderer peer, const Ark_Number* sw, const Ark_Number* sh) { if (!needGroupedLog(1)) - return {}; + return (Ark_ImageData) 300; string out("createImageData("); WriteToString(&out, sw); out.append(", "); WriteToString(&out, sh); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_ImageData) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_ImageData) 300; } - Ark_ImageData CreateImageData1Impl(CanvasRendererPeer* peer, + Ark_ImageData CreateImageData1Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata) { if (!needGroupedLog(1)) - return {}; + return (Ark_ImageData) 300; string out("createImageData("); WriteToString(&out, imagedata); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_ImageData) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_ImageData) 300; } - Ark_ImageData GetImageDataImpl(CanvasRendererPeer* peer, + Ark_ImageData GetImageDataImpl(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, const Ark_Number* sh) { if (!needGroupedLog(1)) - return {}; + return (Ark_ImageData) 300; string out("getImageData("); WriteToString(&out, sx); out.append(", "); @@ -22063,18 +22094,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, sh); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_ImageData) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_ImageData) 300; } - Ark_PixelMap GetPixelMapImpl(CanvasRendererPeer* peer, + Ark_PixelMap GetPixelMapImpl(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, const Ark_Number* sh) { if (!needGroupedLog(1)) - return {}; + return (Ark_PixelMap) 300; string out("getPixelMap("); WriteToString(&out, sx); out.append(", "); @@ -22084,11 +22115,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, sh); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_PixelMap) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_PixelMap) 300; } - void PutImageData0Impl(CanvasRendererPeer* peer, + void PutImageData0Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy) @@ -22104,7 +22135,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PutImageData1Impl(CanvasRendererPeer* peer, + void PutImageData1Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy, @@ -22132,15 +22163,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetLineDashImpl(CanvasRendererPeer* peer) + Array_Number GetLineDashImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getLineDash("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetLineDashImpl(CanvasRendererPeer* peer, + void SetLineDashImpl(Ark_CanvasRenderer peer, const Array_Number* segments) { if (!needGroupedLog(1)) @@ -22150,7 +22183,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearRectImpl(CanvasRendererPeer* peer, + void ClearRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -22169,7 +22202,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void FillRectImpl(CanvasRendererPeer* peer, + void FillRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -22188,7 +22221,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StrokeRectImpl(CanvasRendererPeer* peer, + void StrokeRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -22207,7 +22240,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RestoreImpl(CanvasRendererPeer* peer) + void RestoreImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22215,7 +22248,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SaveImpl(CanvasRendererPeer* peer) + void SaveImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22223,7 +22256,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void FillTextImpl(CanvasRendererPeer* peer, + void FillTextImpl(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, @@ -22242,8 +22275,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer MeasureTextImpl(CanvasRendererPeer* peer, - const Ark_String* text) + Ark_TextMetrics MeasureTextImpl(Ark_CanvasRenderer peer, + const Ark_String* text) { if (!needGroupedLog(1)) return {}; @@ -22254,7 +22287,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void StrokeTextImpl(CanvasRendererPeer* peer, + void StrokeTextImpl(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, @@ -22273,17 +22306,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Matrix2D GetTransformImpl(CanvasRendererPeer* peer) + Ark_Matrix2D GetTransformImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("getTransform("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - void ResetTransformImpl(CanvasRendererPeer* peer) + void ResetTransformImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22291,7 +22324,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RotateImpl(CanvasRendererPeer* peer, + void RotateImpl(Ark_CanvasRenderer peer, const Ark_Number* angle) { if (!needGroupedLog(1)) @@ -22301,7 +22334,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScaleImpl(CanvasRendererPeer* peer, + void ScaleImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y) { @@ -22314,7 +22347,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTransform0Impl(CanvasRendererPeer* peer, + void SetTransform0Impl(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, @@ -22339,7 +22372,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTransform1Impl(CanvasRendererPeer* peer, + void SetTransform1Impl(Ark_CanvasRenderer peer, const Opt_Matrix2D* transform) { if (!needGroupedLog(1)) @@ -22349,7 +22382,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void TransformImpl(CanvasRendererPeer* peer, + void TransformImpl(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, @@ -22374,7 +22407,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void TranslateImpl(CanvasRendererPeer* peer, + void TranslateImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y) { @@ -22387,7 +22420,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetPixelMapImpl(CanvasRendererPeer* peer, + void SetPixelMapImpl(Ark_CanvasRenderer peer, const Opt_PixelMap* value) { if (!needGroupedLog(1)) @@ -22397,7 +22430,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void TransferFromImageBitmapImpl(CanvasRendererPeer* peer, + void TransferFromImageBitmapImpl(Ark_CanvasRenderer peer, Ark_ImageBitmap bitmap) { if (!needGroupedLog(1)) @@ -22407,7 +22440,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SaveLayerImpl(CanvasRendererPeer* peer) + void SaveLayerImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22415,7 +22448,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RestoreLayerImpl(CanvasRendererPeer* peer) + void RestoreLayerImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22423,7 +22456,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ResetImpl(CanvasRendererPeer* peer) + void ResetImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return; @@ -22431,7 +22464,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetGlobalAlphaImpl(CanvasRendererPeer* peer) + Ark_Int32 GetGlobalAlphaImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22441,7 +22474,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetGlobalAlphaImpl(CanvasRendererPeer* peer, + void SetGlobalAlphaImpl(Ark_CanvasRenderer peer, const Ark_Number* globalAlpha) { if (!needGroupedLog(1)) @@ -22451,15 +22484,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetGlobalCompositeOperationImpl(CanvasRendererPeer* peer) + Ark_String GetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getGlobalCompositeOperation("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetGlobalCompositeOperationImpl(CanvasRendererPeer* peer, + void SetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer, const Ark_String* globalCompositeOperation) { if (!needGroupedLog(1)) @@ -22469,7 +22504,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFillStyleImpl(CanvasRendererPeer* peer, + void SetFillStyleImpl(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* fillStyle) { if (!needGroupedLog(1)) @@ -22479,7 +22514,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetStrokeStyleImpl(CanvasRendererPeer* peer, + void SetStrokeStyleImpl(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* strokeStyle) { if (!needGroupedLog(1)) @@ -22489,15 +22524,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetFilterImpl(CanvasRendererPeer* peer) + Ark_String GetFilterImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getFilter("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetFilterImpl(CanvasRendererPeer* peer, + void SetFilterImpl(Ark_CanvasRenderer peer, const Ark_String* filter) { if (!needGroupedLog(1)) @@ -22507,7 +22544,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetImageSmoothingEnabledImpl(CanvasRendererPeer* peer) + Ark_Boolean GetImageSmoothingEnabledImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22517,7 +22554,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetImageSmoothingEnabledImpl(CanvasRendererPeer* peer, + void SetImageSmoothingEnabledImpl(Ark_CanvasRenderer peer, Ark_Boolean imageSmoothingEnabled) { if (!needGroupedLog(1)) @@ -22527,7 +22564,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetImageSmoothingQualityImpl(CanvasRendererPeer* peer) + Ark_String GetImageSmoothingQualityImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22537,7 +22574,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetImageSmoothingQualityImpl(CanvasRendererPeer* peer, + void SetImageSmoothingQualityImpl(Ark_CanvasRenderer peer, const Ark_String* imageSmoothingQuality) { if (!needGroupedLog(1)) @@ -22547,7 +22584,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetLineCapImpl(CanvasRendererPeer* peer) + Ark_String GetLineCapImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22557,7 +22594,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetLineCapImpl(CanvasRendererPeer* peer, + void SetLineCapImpl(Ark_CanvasRenderer peer, const Ark_String* lineCap) { if (!needGroupedLog(1)) @@ -22567,7 +22604,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetLineDashOffsetImpl(CanvasRendererPeer* peer) + Ark_Int32 GetLineDashOffsetImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22577,7 +22614,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetLineDashOffsetImpl(CanvasRendererPeer* peer, + void SetLineDashOffsetImpl(Ark_CanvasRenderer peer, const Ark_Number* lineDashOffset) { if (!needGroupedLog(1)) @@ -22587,7 +22624,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetLineJoinImpl(CanvasRendererPeer* peer) + Ark_String GetLineJoinImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22597,7 +22634,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetLineJoinImpl(CanvasRendererPeer* peer, + void SetLineJoinImpl(Ark_CanvasRenderer peer, const Ark_String* lineJoin) { if (!needGroupedLog(1)) @@ -22607,7 +22644,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetLineWidthImpl(CanvasRendererPeer* peer) + Ark_Int32 GetLineWidthImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22617,7 +22654,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetLineWidthImpl(CanvasRendererPeer* peer, + void SetLineWidthImpl(Ark_CanvasRenderer peer, const Ark_Number* lineWidth) { if (!needGroupedLog(1)) @@ -22627,7 +22664,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetMiterLimitImpl(CanvasRendererPeer* peer) + Ark_Int32 GetMiterLimitImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22637,7 +22674,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetMiterLimitImpl(CanvasRendererPeer* peer, + void SetMiterLimitImpl(Ark_CanvasRenderer peer, const Ark_Number* miterLimit) { if (!needGroupedLog(1)) @@ -22647,7 +22684,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetShadowBlurImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowBlurImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22657,7 +22694,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetShadowBlurImpl(CanvasRendererPeer* peer, + void SetShadowBlurImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowBlur) { if (!needGroupedLog(1)) @@ -22667,15 +22704,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetShadowColorImpl(CanvasRendererPeer* peer) + Ark_String GetShadowColorImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getShadowColor("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetShadowColorImpl(CanvasRendererPeer* peer, + void SetShadowColorImpl(Ark_CanvasRenderer peer, const Ark_String* shadowColor) { if (!needGroupedLog(1)) @@ -22685,7 +22724,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetShadowOffsetXImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowOffsetXImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22695,7 +22734,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetShadowOffsetXImpl(CanvasRendererPeer* peer, + void SetShadowOffsetXImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetX) { if (!needGroupedLog(1)) @@ -22705,7 +22744,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetShadowOffsetYImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowOffsetYImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return 0; @@ -22715,7 +22754,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetShadowOffsetYImpl(CanvasRendererPeer* peer, + void SetShadowOffsetYImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetY) { if (!needGroupedLog(1)) @@ -22725,7 +22764,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetDirectionImpl(CanvasRendererPeer* peer) + Ark_String GetDirectionImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22735,7 +22774,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetDirectionImpl(CanvasRendererPeer* peer, + void SetDirectionImpl(Ark_CanvasRenderer peer, const Ark_String* direction) { if (!needGroupedLog(1)) @@ -22745,15 +22784,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetFontImpl(CanvasRendererPeer* peer) + Ark_String GetFontImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getFont("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetFontImpl(CanvasRendererPeer* peer, + void SetFontImpl(Ark_CanvasRenderer peer, const Ark_String* font) { if (!needGroupedLog(1)) @@ -22763,7 +22804,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetTextAlignImpl(CanvasRendererPeer* peer) + Ark_String GetTextAlignImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22773,7 +22814,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTextAlignImpl(CanvasRendererPeer* peer, + void SetTextAlignImpl(Ark_CanvasRenderer peer, const Ark_String* textAlign) { if (!needGroupedLog(1)) @@ -22783,7 +22824,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetTextBaselineImpl(CanvasRendererPeer* peer) + Ark_String GetTextBaselineImpl(Ark_CanvasRenderer peer) { if (!needGroupedLog(1)) return {}; @@ -22793,7 +22834,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTextBaselineImpl(CanvasRendererPeer* peer, + void SetTextBaselineImpl(Ark_CanvasRenderer peer, const Ark_String* textBaseline) { if (!needGroupedLog(1)) @@ -22805,7 +22846,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasRendererAccessor namespace CanvasRenderingContext2DAccessor { - void DestroyPeerImpl(CanvasRenderingContext2DPeer* peer) + void DestroyPeerImpl(Ark_CanvasRenderingContext2D peer) { if (!needGroupedLog(1)) return; @@ -22816,13 +22857,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CanvasRenderingContext2D CtorImpl(const Opt_RenderingContextSettings* settings) { if (!needGroupedLog(1)) - return (CanvasRenderingContext2DPeer*) 100; + return (Ark_CanvasRenderingContext2D) 100; string out("new CanvasRenderingContext2D("); WriteToString(&out, settings); out.append(") \n"); - out.append("[return (CanvasRenderingContext2DPeer*) 100] \n"); + out.append("[return (Ark_CanvasRenderingContext2D) 100] \n"); appendGroupedLog(1, out); - return (CanvasRenderingContext2DPeer*) 100; + return (Ark_CanvasRenderingContext2D) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -22834,20 +22875,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ToDataURLImpl(CanvasRenderingContext2DPeer* peer, - const Opt_String* type, - const Opt_Number* quality) + Ark_String ToDataURLImpl(Ark_CanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality) { if (!needGroupedLog(1)) - return; + return {}; string out("toDataURL("); WriteToString(&out, type); out.append(", "); WriteToString(&out, quality); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void StartImageAnalyzerImpl(CanvasRenderingContext2DPeer* peer, + void StartImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -22860,7 +22903,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImageAnalyzerImpl(CanvasRenderingContext2DPeer* peer) + void StopImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer) { if (!needGroupedLog(1)) return; @@ -22868,7 +22911,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnOnAttachImpl(CanvasRenderingContext2DPeer* peer, + void OnOnAttachImpl(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -22878,7 +22921,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OffOnAttachImpl(CanvasRenderingContext2DPeer* peer, + void OffOnAttachImpl(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -22888,7 +22931,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnOnDetachImpl(CanvasRenderingContext2DPeer* peer, + void OnOnDetachImpl(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -22898,7 +22941,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OffOnDetachImpl(CanvasRenderingContext2DPeer* peer, + void OffOnDetachImpl(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -22908,7 +22951,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetHeightImpl(CanvasRenderingContext2DPeer* peer) + Ark_Int32 GetHeightImpl(Ark_CanvasRenderingContext2D peer) { if (!needGroupedLog(1)) return 0; @@ -22918,7 +22961,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWidthImpl(CanvasRenderingContext2DPeer* peer) + Ark_Int32 GetWidthImpl(Ark_CanvasRenderingContext2D peer) { if (!needGroupedLog(1)) return 0; @@ -22929,8 +22972,166 @@ namespace OHOS::Ace::NG::GeneratedModifier { return 0; } } // CanvasRenderingContext2DAccessor + namespace OffscreenCanvasRenderingContext2DAccessor { + void DestroyPeerImpl(Ark_OffscreenCanvasRenderingContext2D peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_OffscreenCanvasRenderingContext2D CtorImpl(const Ark_Number* width, + const Ark_Number* height, + const Opt_RenderingContextSettings* settings) + { + if (!needGroupedLog(1)) + return (Ark_OffscreenCanvasRenderingContext2D) 100; + string out("new OffscreenCanvasRenderingContext2D("); + WriteToString(&out, width); + out.append(", "); + WriteToString(&out, height); + out.append(", "); + WriteToString(&out, settings); + out.append(") \n"); + out.append("[return (Ark_OffscreenCanvasRenderingContext2D) 100] \n"); + appendGroupedLog(1, out); + return (Ark_OffscreenCanvasRenderingContext2D) 100; + } + Ark_NativePointer GetFinalizerImpl() + { + if (!needGroupedLog(1)) + return fnPtr(dummyClassFinalizer); + string out("getFinalizer("); + out.append(") \n"); + out.append("[return fnPtr(dummyClassFinalizer)] \n"); + appendGroupedLog(1, out); + return fnPtr(dummyClassFinalizer); + } + Ark_String ToDataURLImpl(Ark_OffscreenCanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality) + { + if (!needGroupedLog(1)) + return {}; + string out("toDataURL("); + WriteToString(&out, type); + out.append(", "); + WriteToString(&out, quality); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvasRenderingContext2D peer) + { + if (!needGroupedLog(1)) + return (Ark_ImageBitmap) 300; + string out("transferToImageBitmap("); + out.append(") \n"); + out.append("[return (Ark_ImageBitmap) 300] \n"); + appendGroupedLog(1, out); + return (Ark_ImageBitmap) 300; + } + } // OffscreenCanvasRenderingContext2DAccessor + namespace OffscreenCanvasAccessor { + void DestroyPeerImpl(Ark_OffscreenCanvas peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_OffscreenCanvas CtorImpl(const Ark_Number* width, + const Ark_Number* height) + { + if (!needGroupedLog(1)) + return (Ark_OffscreenCanvas) 100; + string out("new OffscreenCanvas("); + WriteToString(&out, width); + out.append(", "); + WriteToString(&out, height); + out.append(") \n"); + out.append("[return (Ark_OffscreenCanvas) 100] \n"); + appendGroupedLog(1, out); + return (Ark_OffscreenCanvas) 100; + } + Ark_NativePointer GetFinalizerImpl() + { + if (!needGroupedLog(1)) + return fnPtr(dummyClassFinalizer); + string out("getFinalizer("); + out.append(") \n"); + out.append("[return fnPtr(dummyClassFinalizer)] \n"); + appendGroupedLog(1, out); + return fnPtr(dummyClassFinalizer); + } + Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvas peer) + { + if (!needGroupedLog(1)) + return (Ark_ImageBitmap) 300; + string out("transferToImageBitmap("); + out.append(") \n"); + out.append("[return (Ark_ImageBitmap) 300] \n"); + appendGroupedLog(1, out); + return (Ark_ImageBitmap) 300; + } + Ark_OffscreenCanvasRenderingContext2D GetContext2dImpl(Ark_OffscreenCanvas peer, + const Opt_RenderingContextSettings* options) + { + if (!needGroupedLog(1)) + return (Ark_OffscreenCanvasRenderingContext2D) 300; + string out("getContext2d("); + WriteToString(&out, options); + out.append(") \n"); + out.append("[return (Ark_OffscreenCanvasRenderingContext2D) 300] \n"); + appendGroupedLog(1, out); + return (Ark_OffscreenCanvasRenderingContext2D) 300; + } + Ark_Int32 GetHeightImpl(Ark_OffscreenCanvas peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getHeight("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + void SetHeightImpl(Ark_OffscreenCanvas peer, + const Ark_Number* height) + { + if (!needGroupedLog(1)) + return; + string out("setHeight("); + WriteToString(&out, height); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_Int32 GetWidthImpl(Ark_OffscreenCanvas peer) + { + if (!needGroupedLog(1)) + return 0; + string out("getWidth("); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + void SetWidthImpl(Ark_OffscreenCanvas peer, + const Ark_Number* width) + { + if (!needGroupedLog(1)) + return; + string out("setWidth("); + WriteToString(&out, width); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // OffscreenCanvasAccessor namespace DrawingRenderingContextAccessor { - void DestroyPeerImpl(DrawingRenderingContextPeer* peer) + void DestroyPeerImpl(Ark_DrawingRenderingContext peer) { if (!needGroupedLog(1)) return; @@ -22941,13 +23142,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DrawingRenderingContext CtorImpl(const Opt_LengthMetricsUnit* unit) { if (!needGroupedLog(1)) - return (DrawingRenderingContextPeer*) 100; + return (Ark_DrawingRenderingContext) 100; string out("new DrawingRenderingContext("); WriteToString(&out, unit); out.append(") \n"); - out.append("[return (DrawingRenderingContextPeer*) 100] \n"); + out.append("[return (Ark_DrawingRenderingContext) 100] \n"); appendGroupedLog(1, out); - return (DrawingRenderingContextPeer*) 100; + return (Ark_DrawingRenderingContext) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -22959,7 +23160,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void InvalidateImpl(DrawingRenderingContextPeer* peer) + void InvalidateImpl(Ark_DrawingRenderingContext peer) { if (!needGroupedLog(1)) return; @@ -22969,7 +23170,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DrawingRenderingContextAccessor namespace ICurveAccessor { - void DestroyPeerImpl(ICurvePeer* peer) + void DestroyPeerImpl(Ark_ICurve peer) { if (!needGroupedLog(1)) return; @@ -22980,12 +23181,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ICurve CtorImpl() { if (!needGroupedLog(1)) - return (ICurvePeer*) 100; + return (Ark_ICurve) 100; string out("new ICurve("); out.append(") \n"); - out.append("[return (ICurvePeer*) 100] \n"); + out.append("[return (Ark_ICurve) 100] \n"); appendGroupedLog(1, out); - return (ICurvePeer*) 100; + return (Ark_ICurve) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -22997,7 +23198,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 InterpolateImpl(ICurvePeer* peer, + Ark_Int32 InterpolateImpl(Ark_ICurve peer, const Ark_Number* fraction) { if (!needGroupedLog(1)) @@ -23011,7 +23212,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ICurveAccessor namespace DrawModifierAccessor { - void DestroyPeerImpl(DrawModifierPeer* peer) + void DestroyPeerImpl(Ark_DrawModifier peer) { if (!needGroupedLog(1)) return; @@ -23022,12 +23223,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DrawModifier CtorImpl() { if (!needGroupedLog(1)) - return (DrawModifierPeer*) 100; + return (Ark_DrawModifier) 100; string out("new DrawModifier("); out.append(") \n"); - out.append("[return (DrawModifierPeer*) 100] \n"); + out.append("[return (Ark_DrawModifier) 100] \n"); appendGroupedLog(1, out); - return (DrawModifierPeer*) 100; + return (Ark_DrawModifier) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23039,7 +23240,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void DrawBehindImpl(DrawModifierPeer* peer, + void DrawBehindImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { if (!needGroupedLog(1)) @@ -23049,7 +23250,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DrawContentImpl(DrawModifierPeer* peer, + void DrawContentImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { if (!needGroupedLog(1)) @@ -23059,7 +23260,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DrawFrontImpl(DrawModifierPeer* peer, + void DrawFrontImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { if (!needGroupedLog(1)) @@ -23069,7 +23270,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InvalidateImpl(DrawModifierPeer* peer) + void InvalidateImpl(Ark_DrawModifier peer) { if (!needGroupedLog(1)) return; @@ -23079,7 +23280,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DrawModifierAccessor namespace TransitionEffectAccessor { - void DestroyPeerImpl(TransitionEffectPeer* peer) + void DestroyPeerImpl(Ark_TransitionEffect peer) { if (!needGroupedLog(1)) return; @@ -23091,15 +23292,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_TransitionEffects* effect) { if (!needGroupedLog(1)) - return (TransitionEffectPeer*) 100; + return (Ark_TransitionEffect) 100; string out("new TransitionEffect("); WriteToString(&out, type); out.append(", "); WriteToString(&out, effect); out.append(") \n"); - out.append("[return (TransitionEffectPeer*) 100] \n"); + out.append("[return (Ark_TransitionEffect) 100] \n"); appendGroupedLog(1, out); - return (TransitionEffectPeer*) 100; + return (Ark_TransitionEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23180,33 +23381,81 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return (Ark_TransitionEffect) 300; } - Ark_TransitionEffect AnimationImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect AnimationImpl(Ark_TransitionEffect peer, const Ark_AnimateParam* value) { if (!needGroupedLog(1)) - return {}; + return (Ark_TransitionEffect) 300; string out("animation("); WriteToString(&out, value); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_TransitionEffect) 300; } - Ark_TransitionEffect CombineImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect CombineImpl(Ark_TransitionEffect peer, Ark_TransitionEffect transitionEffect) { if (!needGroupedLog(1)) - return {}; + return (Ark_TransitionEffect) 300; string out("combine("); WriteToString(&out, transitionEffect); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_TransitionEffect) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_TransitionEffect) 300; } } // TransitionEffectAccessor + namespace GlobalScope_focusControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_focusControl_common peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + Ark_Boolean RequestFocusImpl(const Ark_String* value) + { + if (!needGroupedLog(1)) + return 0; + string out("requestFocus("); + WriteToString(&out, value); + out.append(") \n"); + out.append("[return 0] \n"); + appendGroupedLog(1, out); + return 0; + } + } // GlobalScope_focusControl_commonAccessor + namespace GlobalScope_cursorControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_cursorControl_common peer) + { + if (!needGroupedLog(1)) + return; + string out("destroyPeer("); + out.append(") \n"); + appendGroupedLog(1, out); + } + void SetCursorImpl(Ark_PointerStyle value) + { + if (!needGroupedLog(1)) + return; + string out("setCursor("); + WriteToString(&out, value); + out.append(") \n"); + appendGroupedLog(1, out); + } + void RestoreDefaultImpl() + { + if (!needGroupedLog(1)) + return; + string out("restoreDefault("); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // GlobalScope_cursorControl_commonAccessor namespace BaseEventAccessor { - void DestroyPeerImpl(BaseEventPeer* peer) + void DestroyPeerImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return; @@ -23217,12 +23466,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_BaseEvent CtorImpl() { if (!needGroupedLog(1)) - return (BaseEventPeer*) 100; + return (Ark_BaseEvent) 100; string out("new BaseEvent("); out.append(") \n"); - out.append("[return (BaseEventPeer*) 100] \n"); + out.append("[return (Ark_BaseEvent) 100] \n"); appendGroupedLog(1, out); - return (BaseEventPeer*) 100; + return (Ark_BaseEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23234,7 +23483,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetModifierKeyStateImpl(BaseEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_BaseEvent peer, const Array_String* keys) { if (!needGroupedLog(1)) @@ -23246,7 +23495,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTargetImpl(BaseEventPeer* peer, + void SetTargetImpl(Ark_BaseEvent peer, const Ark_EventTarget* target) { if (!needGroupedLog(1)) @@ -23256,7 +23505,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTimestampImpl(BaseEventPeer* peer) + Ark_Int32 GetTimestampImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23266,7 +23515,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTimestampImpl(BaseEventPeer* peer, + void SetTimestampImpl(Ark_BaseEvent peer, const Ark_Number* timestamp) { if (!needGroupedLog(1)) @@ -23276,7 +23525,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetSourceImpl(BaseEventPeer* peer) + Ark_SourceType GetSourceImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23286,7 +23535,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetSourceImpl(BaseEventPeer* peer, + void SetSourceImpl(Ark_BaseEvent peer, Ark_SourceType source) { if (!needGroupedLog(1)) @@ -23296,7 +23545,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetAxisHorizontalImpl(BaseEventPeer* peer) + Ark_Int32 GetAxisHorizontalImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23306,7 +23555,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAxisHorizontalImpl(BaseEventPeer* peer, + void SetAxisHorizontalImpl(Ark_BaseEvent peer, const Ark_Number* axisHorizontal) { if (!needGroupedLog(1)) @@ -23316,7 +23565,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetAxisVerticalImpl(BaseEventPeer* peer) + Ark_Int32 GetAxisVerticalImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23326,7 +23575,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAxisVerticalImpl(BaseEventPeer* peer, + void SetAxisVerticalImpl(Ark_BaseEvent peer, const Ark_Number* axisVertical) { if (!needGroupedLog(1)) @@ -23336,7 +23585,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPressureImpl(BaseEventPeer* peer) + Ark_Int32 GetPressureImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23346,7 +23595,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPressureImpl(BaseEventPeer* peer, + void SetPressureImpl(Ark_BaseEvent peer, const Ark_Number* pressure) { if (!needGroupedLog(1)) @@ -23356,7 +23605,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTiltXImpl(BaseEventPeer* peer) + Ark_Int32 GetTiltXImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23366,7 +23615,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTiltXImpl(BaseEventPeer* peer, + void SetTiltXImpl(Ark_BaseEvent peer, const Ark_Number* tiltX) { if (!needGroupedLog(1)) @@ -23376,7 +23625,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTiltYImpl(BaseEventPeer* peer) + Ark_Int32 GetTiltYImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23386,7 +23635,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTiltYImpl(BaseEventPeer* peer, + void SetTiltYImpl(Ark_BaseEvent peer, const Ark_Number* tiltY) { if (!needGroupedLog(1)) @@ -23396,7 +23645,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetSourceToolImpl(BaseEventPeer* peer) + Ark_SourceTool GetSourceToolImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23406,7 +23655,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetSourceToolImpl(BaseEventPeer* peer, + void SetSourceToolImpl(Ark_BaseEvent peer, Ark_SourceTool sourceTool) { if (!needGroupedLog(1)) @@ -23416,7 +23665,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDeviceIdImpl(BaseEventPeer* peer) + Ark_Int32 GetDeviceIdImpl(Ark_BaseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23426,7 +23675,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDeviceIdImpl(BaseEventPeer* peer, + void SetDeviceIdImpl(Ark_BaseEvent peer, const Ark_Number* deviceId) { if (!needGroupedLog(1)) @@ -23438,7 +23687,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BaseEventAccessor namespace ClickEventAccessor { - void DestroyPeerImpl(ClickEventPeer* peer) + void DestroyPeerImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return; @@ -23449,12 +23698,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ClickEvent CtorImpl() { if (!needGroupedLog(1)) - return (ClickEventPeer*) 100; + return (Ark_ClickEvent) 100; string out("new ClickEvent("); out.append(") \n"); - out.append("[return (ClickEventPeer*) 100] \n"); + out.append("[return (Ark_ClickEvent) 100] \n"); appendGroupedLog(1, out); - return (ClickEventPeer*) 100; + return (Ark_ClickEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23466,7 +23715,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetDisplayXImpl(ClickEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23476,7 +23725,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayXImpl(ClickEventPeer* peer, + void SetDisplayXImpl(Ark_ClickEvent peer, const Ark_Number* displayX) { if (!needGroupedLog(1)) @@ -23486,7 +23735,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayYImpl(ClickEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23496,7 +23745,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayYImpl(ClickEventPeer* peer, + void SetDisplayYImpl(Ark_ClickEvent peer, const Ark_Number* displayY) { if (!needGroupedLog(1)) @@ -23506,7 +23755,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowXImpl(ClickEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23516,7 +23765,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowXImpl(ClickEventPeer* peer, + void SetWindowXImpl(Ark_ClickEvent peer, const Ark_Number* windowX) { if (!needGroupedLog(1)) @@ -23526,7 +23775,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowYImpl(ClickEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23536,7 +23785,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowYImpl(ClickEventPeer* peer, + void SetWindowYImpl(Ark_ClickEvent peer, const Ark_Number* windowY) { if (!needGroupedLog(1)) @@ -23546,7 +23795,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScreenXImpl(ClickEventPeer* peer) + Ark_Int32 GetScreenXImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23556,7 +23805,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScreenXImpl(ClickEventPeer* peer, + void SetScreenXImpl(Ark_ClickEvent peer, const Ark_Number* screenX) { if (!needGroupedLog(1)) @@ -23566,7 +23815,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScreenYImpl(ClickEventPeer* peer) + Ark_Int32 GetScreenYImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23576,7 +23825,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScreenYImpl(ClickEventPeer* peer, + void SetScreenYImpl(Ark_ClickEvent peer, const Ark_Number* screenY) { if (!needGroupedLog(1)) @@ -23586,7 +23835,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetXImpl(ClickEventPeer* peer) + Ark_Int32 GetXImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23596,7 +23845,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetXImpl(ClickEventPeer* peer, + void SetXImpl(Ark_ClickEvent peer, const Ark_Number* x) { if (!needGroupedLog(1)) @@ -23606,7 +23855,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetYImpl(ClickEventPeer* peer) + Ark_Int32 GetYImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23616,7 +23865,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetYImpl(ClickEventPeer* peer, + void SetYImpl(Ark_ClickEvent peer, const Ark_Number* y) { if (!needGroupedLog(1)) @@ -23626,7 +23875,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetPreventDefaultImpl(ClickEventPeer* peer) + Callback_Void GetPreventDefaultImpl(Ark_ClickEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23636,7 +23885,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetPreventDefaultImpl(ClickEventPeer* peer, + void SetPreventDefaultImpl(Ark_ClickEvent peer, const Callback_Void* preventDefault) { if (!needGroupedLog(1)) @@ -23648,7 +23897,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ClickEventAccessor namespace HoverEventAccessor { - void DestroyPeerImpl(HoverEventPeer* peer) + void DestroyPeerImpl(Ark_HoverEvent peer) { if (!needGroupedLog(1)) return; @@ -23659,12 +23908,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_HoverEvent CtorImpl() { if (!needGroupedLog(1)) - return (HoverEventPeer*) 100; + return (Ark_HoverEvent) 100; string out("new HoverEvent("); out.append(") \n"); - out.append("[return (HoverEventPeer*) 100] \n"); + out.append("[return (Ark_HoverEvent) 100] \n"); appendGroupedLog(1, out); - return (HoverEventPeer*) 100; + return (Ark_HoverEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23676,7 +23925,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Callback_Void GetStopPropagationImpl(HoverEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_HoverEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23686,7 +23935,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetStopPropagationImpl(HoverEventPeer* peer, + void SetStopPropagationImpl(Ark_HoverEvent peer, const Callback_Void* stopPropagation) { if (!needGroupedLog(1)) @@ -23698,7 +23947,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // HoverEventAccessor namespace MouseEventAccessor { - void DestroyPeerImpl(MouseEventPeer* peer) + void DestroyPeerImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return; @@ -23709,12 +23958,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_MouseEvent CtorImpl() { if (!needGroupedLog(1)) - return (MouseEventPeer*) 100; + return (Ark_MouseEvent) 100; string out("new MouseEvent("); out.append(") \n"); - out.append("[return (MouseEventPeer*) 100] \n"); + out.append("[return (Ark_MouseEvent) 100] \n"); appendGroupedLog(1, out); - return (MouseEventPeer*) 100; + return (Ark_MouseEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23726,7 +23975,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetButtonImpl(MouseEventPeer* peer) + Ark_MouseButton GetButtonImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23736,7 +23985,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetButtonImpl(MouseEventPeer* peer, + void SetButtonImpl(Ark_MouseEvent peer, Ark_MouseButton button) { if (!needGroupedLog(1)) @@ -23746,7 +23995,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetActionImpl(MouseEventPeer* peer) + Ark_MouseAction GetActionImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23756,7 +24005,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetActionImpl(MouseEventPeer* peer, + void SetActionImpl(Ark_MouseEvent peer, Ark_MouseAction action) { if (!needGroupedLog(1)) @@ -23766,7 +24015,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayXImpl(MouseEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23776,7 +24025,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayXImpl(MouseEventPeer* peer, + void SetDisplayXImpl(Ark_MouseEvent peer, const Ark_Number* displayX) { if (!needGroupedLog(1)) @@ -23786,7 +24035,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayYImpl(MouseEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23796,7 +24045,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayYImpl(MouseEventPeer* peer, + void SetDisplayYImpl(Ark_MouseEvent peer, const Ark_Number* displayY) { if (!needGroupedLog(1)) @@ -23806,7 +24055,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowXImpl(MouseEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23816,7 +24065,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowXImpl(MouseEventPeer* peer, + void SetWindowXImpl(Ark_MouseEvent peer, const Ark_Number* windowX) { if (!needGroupedLog(1)) @@ -23826,7 +24075,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowYImpl(MouseEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23836,7 +24085,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowYImpl(MouseEventPeer* peer, + void SetWindowYImpl(Ark_MouseEvent peer, const Ark_Number* windowY) { if (!needGroupedLog(1)) @@ -23846,7 +24095,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScreenXImpl(MouseEventPeer* peer) + Ark_Int32 GetScreenXImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23856,7 +24105,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScreenXImpl(MouseEventPeer* peer, + void SetScreenXImpl(Ark_MouseEvent peer, const Ark_Number* screenX) { if (!needGroupedLog(1)) @@ -23866,7 +24115,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScreenYImpl(MouseEventPeer* peer) + Ark_Int32 GetScreenYImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23876,7 +24125,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScreenYImpl(MouseEventPeer* peer, + void SetScreenYImpl(Ark_MouseEvent peer, const Ark_Number* screenY) { if (!needGroupedLog(1)) @@ -23886,7 +24135,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetXImpl(MouseEventPeer* peer) + Ark_Int32 GetXImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23896,7 +24145,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetXImpl(MouseEventPeer* peer, + void SetXImpl(Ark_MouseEvent peer, const Ark_Number* x) { if (!needGroupedLog(1)) @@ -23906,7 +24155,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetYImpl(MouseEventPeer* peer) + Ark_Int32 GetYImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return 0; @@ -23916,7 +24165,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetYImpl(MouseEventPeer* peer, + void SetYImpl(Ark_MouseEvent peer, const Ark_Number* y) { if (!needGroupedLog(1)) @@ -23926,7 +24175,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetStopPropagationImpl(MouseEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_MouseEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23936,7 +24185,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetStopPropagationImpl(MouseEventPeer* peer, + void SetStopPropagationImpl(Ark_MouseEvent peer, const Callback_Void* stopPropagation) { if (!needGroupedLog(1)) @@ -23948,7 +24197,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // MouseEventAccessor namespace AccessibilityHoverEventAccessor { - void DestroyPeerImpl(AccessibilityHoverEventPeer* peer) + void DestroyPeerImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return; @@ -23959,12 +24208,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_AccessibilityHoverEvent CtorImpl() { if (!needGroupedLog(1)) - return (AccessibilityHoverEventPeer*) 100; + return (Ark_AccessibilityHoverEvent) 100; string out("new AccessibilityHoverEvent("); out.append(") \n"); - out.append("[return (AccessibilityHoverEventPeer*) 100] \n"); + out.append("[return (Ark_AccessibilityHoverEvent) 100] \n"); appendGroupedLog(1, out); - return (AccessibilityHoverEventPeer*) 100; + return (Ark_AccessibilityHoverEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -23976,7 +24225,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetTypeImpl(AccessibilityHoverEventPeer* peer) + Ark_AccessibilityHoverType GetTypeImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return {}; @@ -23986,7 +24235,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTypeImpl(AccessibilityHoverEventPeer* peer, + void SetTypeImpl(Ark_AccessibilityHoverEvent peer, Ark_AccessibilityHoverType type) { if (!needGroupedLog(1)) @@ -23996,7 +24245,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetXImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24006,7 +24255,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetXImpl(AccessibilityHoverEventPeer* peer, + void SetXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* x) { if (!needGroupedLog(1)) @@ -24016,7 +24265,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetYImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24026,7 +24275,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetYImpl(AccessibilityHoverEventPeer* peer, + void SetYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* y) { if (!needGroupedLog(1)) @@ -24036,7 +24285,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24046,7 +24295,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayXImpl(AccessibilityHoverEventPeer* peer, + void SetDisplayXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayX) { if (!needGroupedLog(1)) @@ -24056,7 +24305,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDisplayYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24066,7 +24315,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDisplayYImpl(AccessibilityHoverEventPeer* peer, + void SetDisplayYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayY) { if (!needGroupedLog(1)) @@ -24076,7 +24325,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24086,7 +24335,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowXImpl(AccessibilityHoverEventPeer* peer, + void SetWindowXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowX) { if (!needGroupedLog(1)) @@ -24096,7 +24345,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetWindowYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_AccessibilityHoverEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24106,7 +24355,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetWindowYImpl(AccessibilityHoverEventPeer* peer, + void SetWindowYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowY) { if (!needGroupedLog(1)) @@ -24118,7 +24367,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AccessibilityHoverEventAccessor namespace TouchEventAccessor { - void DestroyPeerImpl(TouchEventPeer* peer) + void DestroyPeerImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) return; @@ -24129,12 +24378,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TouchEvent CtorImpl() { if (!needGroupedLog(1)) - return (TouchEventPeer*) 100; + return (Ark_TouchEvent) 100; string out("new TouchEvent("); out.append(") \n"); - out.append("[return (TouchEventPeer*) 100] \n"); + out.append("[return (Ark_TouchEvent) 100] \n"); appendGroupedLog(1, out); - return (TouchEventPeer*) 100; + return (Ark_TouchEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24146,15 +24395,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetHistoricalPointsImpl(TouchEventPeer* peer) + Array_HistoricalPoint GetHistoricalPointsImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getHistoricalPoints("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NativePointer GetTypeImpl(TouchEventPeer* peer) + Ark_TouchType GetTypeImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24164,7 +24415,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTypeImpl(TouchEventPeer* peer, + void SetTypeImpl(Ark_TouchEvent peer, Ark_TouchType type) { if (!needGroupedLog(1)) @@ -24174,7 +24425,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTouchesImpl(TouchEventPeer* peer, + Array_TouchObject GetTouchesImpl(Ark_TouchEvent peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getTouches("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetTouchesImpl(Ark_TouchEvent peer, const Array_TouchObject* touches) { if (!needGroupedLog(1)) @@ -24184,7 +24445,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetChangedTouchesImpl(TouchEventPeer* peer, + Array_TouchObject GetChangedTouchesImpl(Ark_TouchEvent peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getChangedTouches("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetChangedTouchesImpl(Ark_TouchEvent peer, const Array_TouchObject* changedTouches) { if (!needGroupedLog(1)) @@ -24194,7 +24465,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetStopPropagationImpl(TouchEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24204,7 +24475,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetStopPropagationImpl(TouchEventPeer* peer, + void SetStopPropagationImpl(Ark_TouchEvent peer, const Callback_Void* stopPropagation) { if (!needGroupedLog(1)) @@ -24214,7 +24485,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetPreventDefaultImpl(TouchEventPeer* peer) + Callback_Void GetPreventDefaultImpl(Ark_TouchEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24224,7 +24495,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetPreventDefaultImpl(TouchEventPeer* peer, + void SetPreventDefaultImpl(Ark_TouchEvent peer, const Callback_Void* preventDefault) { if (!needGroupedLog(1)) @@ -24236,7 +24507,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TouchEventAccessor namespace PixelMapMockAccessor { - void DestroyPeerImpl(PixelMapMockPeer* peer) + void DestroyPeerImpl(Ark_PixelMapMock peer) { if (!needGroupedLog(1)) return; @@ -24247,12 +24518,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PixelMapMock CtorImpl() { if (!needGroupedLog(1)) - return (PixelMapMockPeer*) 100; + return (Ark_PixelMapMock) 100; string out("new PixelMapMock("); out.append(") \n"); - out.append("[return (PixelMapMockPeer*) 100] \n"); + out.append("[return (Ark_PixelMapMock) 100] \n"); appendGroupedLog(1, out); - return (PixelMapMockPeer*) 100; + return (Ark_PixelMapMock) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24264,7 +24535,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ReleaseImpl(PixelMapMockPeer* peer) + void ReleaseImpl(Ark_PixelMapMock peer) { if (!needGroupedLog(1)) return; @@ -24274,7 +24545,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PixelMapMockAccessor namespace DragEventAccessor { - void DestroyPeerImpl(DragEventPeer* peer) + void DestroyPeerImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return; @@ -24285,12 +24556,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DragEvent CtorImpl() { if (!needGroupedLog(1)) - return (DragEventPeer*) 100; + return (Ark_DragEvent) 100; string out("new DragEvent("); out.append(") \n"); - out.append("[return (DragEventPeer*) 100] \n"); + out.append("[return (Ark_DragEvent) 100] \n"); appendGroupedLog(1, out); - return (DragEventPeer*) 100; + return (Ark_DragEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24302,7 +24573,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetDisplayXImpl(DragEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24312,7 +24583,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetDisplayYImpl(DragEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24322,7 +24593,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWindowXImpl(DragEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24332,7 +24603,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetWindowYImpl(DragEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24342,7 +24613,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetXImpl(DragEventPeer* peer) + Ark_Int32 GetXImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24352,7 +24623,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetYImpl(DragEventPeer* peer) + Ark_Int32 GetYImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24362,7 +24633,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDataImpl(DragEventPeer* peer, + void SetDataImpl(Ark_DragEvent peer, Ark_UnifiedData unifiedData) { if (!needGroupedLog(1)) @@ -24372,17 +24643,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_UnifiedData GetDataImpl(DragEventPeer* peer) + Ark_UnifiedData GetDataImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_UnifiedData) 300; string out("getData("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_UnifiedData) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_UnifiedData) 300; } - Ark_NativePointer GetSummaryImpl(DragEventPeer* peer) + Ark_Summary GetSummaryImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24392,7 +24663,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetResultImpl(DragEventPeer* peer, + void SetResultImpl(Ark_DragEvent peer, Ark_DragResult dragResult) { if (!needGroupedLog(1)) @@ -24402,7 +24673,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetResultImpl(DragEventPeer* peer) + Ark_DragResult GetResultImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24412,7 +24683,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetPreviewRectImpl(DragEventPeer* peer) + Ark_Rectangle GetPreviewRectImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24422,7 +24693,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Int32 GetVelocityXImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24432,7 +24703,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetVelocityYImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24442,7 +24713,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetVelocityImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24452,7 +24723,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean GetModifierKeyStateImpl(DragEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_DragEvent peer, const Array_String* keys) { if (!needGroupedLog(1)) @@ -24464,7 +24735,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetDragBehaviorImpl(DragEventPeer* peer) + Ark_DragBehavior GetDragBehaviorImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24474,7 +24745,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetDragBehaviorImpl(DragEventPeer* peer, + void SetDragBehaviorImpl(Ark_DragEvent peer, Ark_DragBehavior dragBehavior) { if (!needGroupedLog(1)) @@ -24484,7 +24755,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetUseCustomDropAnimationImpl(DragEventPeer* peer) + Ark_Boolean GetUseCustomDropAnimationImpl(Ark_DragEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24494,7 +24765,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetUseCustomDropAnimationImpl(DragEventPeer* peer, + void SetUseCustomDropAnimationImpl(Ark_DragEvent peer, Ark_Boolean useCustomDropAnimation) { if (!needGroupedLog(1)) @@ -24506,7 +24777,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DragEventAccessor namespace KeyEventAccessor { - void DestroyPeerImpl(KeyEventPeer* peer) + void DestroyPeerImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return; @@ -24517,12 +24788,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_KeyEvent CtorImpl() { if (!needGroupedLog(1)) - return (KeyEventPeer*) 100; + return (Ark_KeyEvent) 100; string out("new KeyEvent("); out.append(") \n"); - out.append("[return (KeyEventPeer*) 100] \n"); + out.append("[return (Ark_KeyEvent) 100] \n"); appendGroupedLog(1, out); - return (KeyEventPeer*) 100; + return (Ark_KeyEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24534,7 +24805,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetModifierKeyStateImpl(KeyEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_KeyEvent peer, const Array_String* keys) { if (!needGroupedLog(1)) @@ -24546,7 +24817,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetTypeImpl(KeyEventPeer* peer) + Ark_KeyType GetTypeImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24556,7 +24827,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTypeImpl(KeyEventPeer* peer, + void SetTypeImpl(Ark_KeyEvent peer, Ark_KeyType type) { if (!needGroupedLog(1)) @@ -24566,7 +24837,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetKeyCodeImpl(KeyEventPeer* peer) + Ark_Int32 GetKeyCodeImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24576,7 +24847,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetKeyCodeImpl(KeyEventPeer* peer, + void SetKeyCodeImpl(Ark_KeyEvent peer, const Ark_Number* keyCode) { if (!needGroupedLog(1)) @@ -24586,15 +24857,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetKeyTextImpl(KeyEventPeer* peer) + Ark_String GetKeyTextImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getKeyText("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetKeyTextImpl(KeyEventPeer* peer, + void SetKeyTextImpl(Ark_KeyEvent peer, const Ark_String* keyText) { if (!needGroupedLog(1)) @@ -24604,7 +24877,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetKeySourceImpl(KeyEventPeer* peer) + Ark_KeySource GetKeySourceImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24614,7 +24887,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetKeySourceImpl(KeyEventPeer* peer, + void SetKeySourceImpl(Ark_KeyEvent peer, Ark_KeySource keySource) { if (!needGroupedLog(1)) @@ -24624,7 +24897,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetDeviceIdImpl(KeyEventPeer* peer) + Ark_Int32 GetDeviceIdImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24634,7 +24907,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetDeviceIdImpl(KeyEventPeer* peer, + void SetDeviceIdImpl(Ark_KeyEvent peer, const Ark_Number* deviceId) { if (!needGroupedLog(1)) @@ -24644,7 +24917,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetMetaKeyImpl(KeyEventPeer* peer) + Ark_Int32 GetMetaKeyImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24654,7 +24927,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetMetaKeyImpl(KeyEventPeer* peer, + void SetMetaKeyImpl(Ark_KeyEvent peer, const Ark_Number* metaKey) { if (!needGroupedLog(1)) @@ -24664,7 +24937,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTimestampImpl(KeyEventPeer* peer) + Ark_Int32 GetTimestampImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24674,7 +24947,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTimestampImpl(KeyEventPeer* peer, + void SetTimestampImpl(Ark_KeyEvent peer, const Ark_Number* timestamp) { if (!needGroupedLog(1)) @@ -24684,7 +24957,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_Void GetStopPropagationImpl(KeyEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return {}; @@ -24694,7 +24967,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetStopPropagationImpl(KeyEventPeer* peer, + void SetStopPropagationImpl(Ark_KeyEvent peer, const Callback_Void* stopPropagation) { if (!needGroupedLog(1)) @@ -24704,7 +24977,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetIntentionCodeImpl(KeyEventPeer* peer, + void SetIntentionCodeImpl(Ark_KeyEvent peer, const Ark_IntentionCode* intentionCode) { if (!needGroupedLog(1)) @@ -24714,7 +24987,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetUnicodeImpl(KeyEventPeer* peer) + Ark_Int32 GetUnicodeImpl(Ark_KeyEvent peer) { if (!needGroupedLog(1)) return 0; @@ -24724,7 +24997,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetUnicodeImpl(KeyEventPeer* peer, + void SetUnicodeImpl(Ark_KeyEvent peer, const Ark_Number* unicode) { if (!needGroupedLog(1)) @@ -24736,7 +25009,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // KeyEventAccessor namespace ProgressMaskAccessor { - void DestroyPeerImpl(ProgressMaskPeer* peer) + void DestroyPeerImpl(Ark_ProgressMask peer) { if (!needGroupedLog(1)) return; @@ -24749,7 +25022,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_ResourceColor* color) { if (!needGroupedLog(1)) - return (ProgressMaskPeer*) 100; + return (Ark_ProgressMask) 100; string out("new ProgressMask("); WriteToString(&out, value); out.append(", "); @@ -24757,9 +25030,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, color); out.append(") \n"); - out.append("[return (ProgressMaskPeer*) 100] \n"); + out.append("[return (Ark_ProgressMask) 100] \n"); appendGroupedLog(1, out); - return (ProgressMaskPeer*) 100; + return (Ark_ProgressMask) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24771,7 +25044,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void UpdateProgressImpl(ProgressMaskPeer* peer, + void UpdateProgressImpl(Ark_ProgressMask peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -24781,7 +25054,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void UpdateColorImpl(ProgressMaskPeer* peer, + void UpdateColorImpl(Ark_ProgressMask peer, const Ark_ResourceColor* value) { if (!needGroupedLog(1)) @@ -24791,7 +25064,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void EnableBreathingAnimationImpl(ProgressMaskPeer* peer, + void EnableBreathingAnimationImpl(Ark_ProgressMask peer, Ark_Boolean value) { if (!needGroupedLog(1)) @@ -24803,7 +25076,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ProgressMaskAccessor namespace MeasurableAccessor { - void DestroyPeerImpl(MeasurablePeer* peer) + void DestroyPeerImpl(Ark_Measurable peer) { if (!needGroupedLog(1)) return; @@ -24814,12 +25087,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Measurable CtorImpl() { if (!needGroupedLog(1)) - return (MeasurablePeer*) 100; + return (Ark_Measurable) 100; string out("new Measurable("); out.append(") \n"); - out.append("[return (MeasurablePeer*) 100] \n"); + out.append("[return (Ark_Measurable) 100] \n"); appendGroupedLog(1, out); - return (MeasurablePeer*) 100; + return (Ark_Measurable) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24831,7 +25104,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer MeasureImpl(MeasurablePeer* peer, + Ark_MeasureResult MeasureImpl(Ark_Measurable peer, const Ark_ConstraintSizeOptions* constraint) { if (!needGroupedLog(1)) @@ -24843,7 +25116,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetMarginImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetMarginImpl(Ark_Measurable peer) { if (!needGroupedLog(1)) return {}; @@ -24853,7 +25126,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetPaddingImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetPaddingImpl(Ark_Measurable peer) { if (!needGroupedLog(1)) return {}; @@ -24863,7 +25136,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetBorderWidthImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetBorderWidthImpl(Ark_Measurable peer) { if (!needGroupedLog(1)) return {}; @@ -24875,7 +25148,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // MeasurableAccessor namespace ViewAccessor { - void DestroyPeerImpl(ViewPeer* peer) + void DestroyPeerImpl(Ark_View peer) { if (!needGroupedLog(1)) return; @@ -24886,12 +25159,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_View CtorImpl() { if (!needGroupedLog(1)) - return (ViewPeer*) 100; + return (Ark_View) 100; string out("new View("); out.append(") \n"); - out.append("[return (ViewPeer*) 100] \n"); + out.append("[return (Ark_View) 100] \n"); appendGroupedLog(1, out); - return (ViewPeer*) 100; + return (Ark_View) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24903,19 +25176,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CreateImpl(ViewPeer* peer, - const Ark_CustomObject* value) + Ark_CustomObject CreateImpl(Ark_View peer, + const Ark_CustomObject* value) { if (!needGroupedLog(1)) - return; + return {}; string out("create("); WriteToString(&out, value); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // ViewAccessor namespace TextContentControllerBaseAccessor { - void DestroyPeerImpl(TextContentControllerBasePeer* peer) + void DestroyPeerImpl(Ark_TextContentControllerBase peer) { if (!needGroupedLog(1)) return; @@ -24926,12 +25201,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextContentControllerBase CtorImpl() { if (!needGroupedLog(1)) - return (TextContentControllerBasePeer*) 100; + return (Ark_TextContentControllerBase) 100; string out("new TextContentControllerBase("); out.append(") \n"); - out.append("[return (TextContentControllerBasePeer*) 100] \n"); + out.append("[return (Ark_TextContentControllerBase) 100] \n"); appendGroupedLog(1, out); - return (TextContentControllerBasePeer*) 100; + return (Ark_TextContentControllerBase) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -24943,7 +25218,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetCaretOffsetImpl(TextContentControllerBasePeer* peer) + Ark_CaretOffset GetCaretOffsetImpl(Ark_TextContentControllerBase peer) { if (!needGroupedLog(1)) return {}; @@ -24953,7 +25228,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetTextContentRectImpl(TextContentControllerBasePeer* peer) + Ark_RectResult GetTextContentRectImpl(Ark_TextContentControllerBase peer) { if (!needGroupedLog(1)) return {}; @@ -24963,7 +25238,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Int32 GetTextContentLineCountImpl(TextContentControllerBasePeer* peer) + Ark_Int32 GetTextContentLineCountImpl(Ark_TextContentControllerBase peer) { if (!needGroupedLog(1)) return 0; @@ -24975,7 +25250,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextContentControllerBaseAccessor namespace DynamicNodeAccessor { - void DestroyPeerImpl(DynamicNodePeer* peer) + void DestroyPeerImpl(Ark_DynamicNode peer) { if (!needGroupedLog(1)) return; @@ -24986,12 +25261,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DynamicNode CtorImpl() { if (!needGroupedLog(1)) - return (DynamicNodePeer*) 100; + return (Ark_DynamicNode) 100; string out("new DynamicNode("); out.append(") \n"); - out.append("[return (DynamicNodePeer*) 100] \n"); + out.append("[return (Ark_DynamicNode) 100] \n"); appendGroupedLog(1, out); - return (DynamicNodePeer*) 100; + return (Ark_DynamicNode) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25003,19 +25278,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void OnMoveImpl(DynamicNodePeer* peer, - const Opt_OnMoveHandler* handler) + Ark_CustomObject OnMoveImpl(Ark_DynamicNode peer, + const Opt_OnMoveHandler* handler) { if (!needGroupedLog(1)) - return; + return {}; string out("onMove("); WriteToString(&out, handler); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // DynamicNodeAccessor namespace ChildrenMainSizeAccessor { - void DestroyPeerImpl(ChildrenMainSizePeer* peer) + void DestroyPeerImpl(Ark_ChildrenMainSize peer) { if (!needGroupedLog(1)) return; @@ -25026,13 +25303,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ChildrenMainSize CtorImpl(const Ark_Number* childDefaultSize) { if (!needGroupedLog(1)) - return (ChildrenMainSizePeer*) 100; + return (Ark_ChildrenMainSize) 100; string out("new ChildrenMainSize("); WriteToString(&out, childDefaultSize); out.append(") \n"); - out.append("[return (ChildrenMainSizePeer*) 100] \n"); + out.append("[return (Ark_ChildrenMainSize) 100] \n"); appendGroupedLog(1, out); - return (ChildrenMainSizePeer*) 100; + return (Ark_ChildrenMainSize) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25044,7 +25321,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SpliceImpl(ChildrenMainSizePeer* peer, + void SpliceImpl(Ark_ChildrenMainSize peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_Number* childrenSize) @@ -25060,7 +25337,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void UpdateImpl(ChildrenMainSizePeer* peer, + void UpdateImpl(Ark_ChildrenMainSize peer, const Ark_Number* index, const Ark_Number* childSize) { @@ -25073,7 +25350,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetChildDefaultSizeImpl(ChildrenMainSizePeer* peer) + Ark_Int32 GetChildDefaultSizeImpl(Ark_ChildrenMainSize peer) { if (!needGroupedLog(1)) return 0; @@ -25083,7 +25360,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetChildDefaultSizeImpl(ChildrenMainSizePeer* peer, + void SetChildDefaultSizeImpl(Ark_ChildrenMainSize peer, const Ark_Number* childDefaultSize) { if (!needGroupedLog(1)) @@ -25095,7 +25372,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ChildrenMainSizeAccessor namespace UICommonEventAccessor { - void DestroyPeerImpl(UICommonEventPeer* peer) + void DestroyPeerImpl(Ark_UICommonEvent peer) { if (!needGroupedLog(1)) return; @@ -25106,12 +25383,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_UICommonEvent CtorImpl() { if (!needGroupedLog(1)) - return (UICommonEventPeer*) 100; + return (Ark_UICommonEvent) 100; string out("new UICommonEvent("); out.append(") \n"); - out.append("[return (UICommonEventPeer*) 100] \n"); + out.append("[return (Ark_UICommonEvent) 100] \n"); appendGroupedLog(1, out); - return (UICommonEventPeer*) 100; + return (Ark_UICommonEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25123,7 +25400,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetOnClickImpl(UICommonEventPeer* peer, + void SetOnClickImpl(Ark_UICommonEvent peer, const Opt_Callback_ClickEvent_Void* callback_) { if (!needGroupedLog(1)) @@ -25133,7 +25410,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnTouchImpl(UICommonEventPeer* peer, + void SetOnTouchImpl(Ark_UICommonEvent peer, const Opt_Callback_TouchEvent_Void* callback_) { if (!needGroupedLog(1)) @@ -25143,7 +25420,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnAppearImpl(UICommonEventPeer* peer, + void SetOnAppearImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -25153,7 +25430,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnDisappearImpl(UICommonEventPeer* peer, + void SetOnDisappearImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -25163,7 +25440,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnKeyEventImpl(UICommonEventPeer* peer, + void SetOnKeyEventImpl(Ark_UICommonEvent peer, const Opt_Callback_KeyEvent_Void* callback_) { if (!needGroupedLog(1)) @@ -25173,7 +25450,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnFocusImpl(UICommonEventPeer* peer, + void SetOnFocusImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -25183,7 +25460,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnBlurImpl(UICommonEventPeer* peer, + void SetOnBlurImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { if (!needGroupedLog(1)) @@ -25193,7 +25470,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnHoverImpl(UICommonEventPeer* peer, + void SetOnHoverImpl(Ark_UICommonEvent peer, const Opt_HoverCallback* callback_) { if (!needGroupedLog(1)) @@ -25203,7 +25480,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnMouseImpl(UICommonEventPeer* peer, + void SetOnMouseImpl(Ark_UICommonEvent peer, const Opt_Callback_MouseEvent_Void* callback_) { if (!needGroupedLog(1)) @@ -25213,7 +25490,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnSizeChangeImpl(UICommonEventPeer* peer, + void SetOnSizeChangeImpl(Ark_UICommonEvent peer, const Opt_SizeChangeCallback* callback_) { if (!needGroupedLog(1)) @@ -25223,7 +25500,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetOnVisibleAreaApproximateChangeImpl(UICommonEventPeer* peer, + void SetOnVisibleAreaApproximateChangeImpl(Ark_UICommonEvent peer, const Ark_VisibleAreaEventOptions* options, const Opt_VisibleAreaChangeCallback* event) { @@ -25238,7 +25515,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // UICommonEventAccessor namespace GestureModifierAccessor { - void DestroyPeerImpl(GestureModifierPeer* peer) + void DestroyPeerImpl(Ark_GestureModifier peer) { if (!needGroupedLog(1)) return; @@ -25249,12 +25526,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GestureModifier CtorImpl() { if (!needGroupedLog(1)) - return (GestureModifierPeer*) 100; + return (Ark_GestureModifier) 100; string out("new GestureModifier("); out.append(") \n"); - out.append("[return (GestureModifierPeer*) 100] \n"); + out.append("[return (Ark_GestureModifier) 100] \n"); appendGroupedLog(1, out); - return (GestureModifierPeer*) 100; + return (Ark_GestureModifier) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25266,7 +25543,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ApplyGestureImpl(GestureModifierPeer* peer, + void ApplyGestureImpl(Ark_GestureModifier peer, const Ark_UIGestureEvent* event) { if (!needGroupedLog(1)) @@ -25277,184 +25554,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // GestureModifierAccessor - namespace GlobalScope_commonAccessor { - void DestroyPeerImpl(GlobalScope_commonPeer* peer) - { - if (!needGroupedLog(1)) - return; - string out("destroyPeer("); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer GetContextImpl(const Opt_CustomObject* component) - { - if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; - string out("getContext("); - WriteToString(&out, component); - out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); - appendGroupedLog(1, out); - return (Ark_NativePointer) 300; - } - void PostCardActionImpl(const Ark_CustomObject* component, - const Ark_CustomObject* action) - { - if (!needGroupedLog(1)) - return; - string out("postCardAction("); - WriteToString(&out, component); - out.append(", "); - WriteToString(&out, action); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_NativePointer Dollar_rImpl(const Ark_String* value, - const Array_CustomObject* params) - { - if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; - string out("dollar_r("); - WriteToString(&out, value); - out.append(", "); - WriteToString(&out, params); - out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); - appendGroupedLog(1, out); - return (Ark_NativePointer) 300; - } - Ark_NativePointer Dollar_rawfileImpl(const Ark_String* value) - { - if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; - string out("dollar_rawfile("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); - appendGroupedLog(1, out); - return (Ark_NativePointer) 300; - } - void AnimateToImpl(const Ark_AnimateParam* value, - const Callback_Void* event) - { - if (!needGroupedLog(1)) - return; - string out("animateTo("); - WriteToString(&out, value); - out.append(", "); - WriteToString(&out, event); - out.append(") \n"); - appendGroupedLog(1, out); - } - void AnimateToImmediatelyImpl(const Ark_AnimateParam* value, - const Callback_Void* event) - { - if (!needGroupedLog(1)) - return; - string out("animateToImmediately("); - WriteToString(&out, value); - out.append(", "); - WriteToString(&out, event); - out.append(") \n"); - appendGroupedLog(1, out); - } - Ark_Int32 Vp2pxImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 100; - string out("vp2px("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 100] \n"); - appendGroupedLog(1, out); - return 100; - } - Ark_Int32 Px2vpImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 100; - string out("px2vp("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 100] \n"); - appendGroupedLog(1, out); - return 100; - } - Ark_Int32 Fp2pxImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 100; - string out("fp2px("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 100] \n"); - appendGroupedLog(1, out); - return 100; - } - Ark_Int32 Px2fpImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 100; - string out("px2fp("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 100] \n"); - appendGroupedLog(1, out); - return 100; - } - Ark_Int32 Lpx2pxImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 100; - string out("lpx2px("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 100] \n"); - appendGroupedLog(1, out); - return 100; - } - Ark_Int32 Px2lpxImpl(const Ark_Number* value) - { - if (!needGroupedLog(1)) - return 100; - string out("px2lpx("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 100] \n"); - appendGroupedLog(1, out); - return 100; - } - Ark_Boolean RequestFocusImpl(const Ark_String* value) - { - if (!needGroupedLog(1)) - return 0; - string out("requestFocus("); - WriteToString(&out, value); - out.append(") \n"); - out.append("[return 0] \n"); - appendGroupedLog(1, out); - return 0; - } - void SetCursorImpl(Ark_PointerStyle value) - { - if (!needGroupedLog(1)) - return; - string out("setCursor("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - void RestoreDefaultImpl() - { - if (!needGroupedLog(1)) - return; - string out("restoreDefault("); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // GlobalScope_commonAccessor namespace ContextMenuAccessor { - void DestroyPeerImpl(ContextMenuPeer* peer) + void DestroyPeerImpl(Ark_ContextMenu peer) { if (!needGroupedLog(1)) return; @@ -25465,12 +25566,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ContextMenu CtorImpl() { if (!needGroupedLog(1)) - return (ContextMenuPeer*) 100; + return (Ark_ContextMenu) 100; string out("new ContextMenu("); out.append(") \n"); - out.append("[return (ContextMenuPeer*) 100] \n"); + out.append("[return (Ark_ContextMenu) 100] \n"); appendGroupedLog(1, out); - return (ContextMenuPeer*) 100; + return (Ark_ContextMenu) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25492,7 +25593,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ContextMenuAccessor namespace CustomDialogControllerAccessor { - void DestroyPeerImpl(CustomDialogControllerPeer* peer) + void DestroyPeerImpl(Ark_CustomDialogController peer) { if (!needGroupedLog(1)) return; @@ -25503,13 +25604,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CustomDialogController CtorImpl(const Ark_CustomDialogControllerOptions* value) { if (!needGroupedLog(1)) - return (CustomDialogControllerPeer*) 100; + return (Ark_CustomDialogController) 100; string out("new CustomDialogController("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (CustomDialogControllerPeer*) 100] \n"); + out.append("[return (Ark_CustomDialogController) 100] \n"); appendGroupedLog(1, out); - return (CustomDialogControllerPeer*) 100; + return (Ark_CustomDialogController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25521,7 +25622,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void OpenImpl(CustomDialogControllerPeer* peer) + void OpenImpl(Ark_CustomDialogController peer) { if (!needGroupedLog(1)) return; @@ -25529,7 +25630,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CloseImpl(CustomDialogControllerPeer* peer) + void CloseImpl(Ark_CustomDialogController peer) { if (!needGroupedLog(1)) return; @@ -25539,7 +25640,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CustomDialogControllerAccessor namespace LinearGradientAccessor { - void DestroyPeerImpl(LinearGradientPeer* peer) + void DestroyPeerImpl(Ark_LinearGradient peer) { if (!needGroupedLog(1)) return; @@ -25550,13 +25651,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LinearGradient CtorImpl(const Array_ColorStop* colorStops) { if (!needGroupedLog(1)) - return (LinearGradientPeer*) 100; + return (Ark_LinearGradient) 100; string out("new LinearGradient("); WriteToString(&out, colorStops); out.append(") \n"); - out.append("[return (LinearGradientPeer*) 100] \n"); + out.append("[return (Ark_LinearGradient) 100] \n"); appendGroupedLog(1, out); - return (LinearGradientPeer*) 100; + return (Ark_LinearGradient) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25570,7 +25671,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LinearGradientAccessor namespace DatePickerDialogAccessor { - void DestroyPeerImpl(DatePickerDialogPeer* peer) + void DestroyPeerImpl(Ark_DatePickerDialog peer) { if (!needGroupedLog(1)) return; @@ -25581,12 +25682,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DatePickerDialog CtorImpl() { if (!needGroupedLog(1)) - return (DatePickerDialogPeer*) 100; + return (Ark_DatePickerDialog) 100; string out("new DatePickerDialog("); out.append(") \n"); - out.append("[return (DatePickerDialogPeer*) 100] \n"); + out.append("[return (Ark_DatePickerDialog) 100] \n"); appendGroupedLog(1, out); - return (DatePickerDialogPeer*) 100; + return (Ark_DatePickerDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25609,7 +25710,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DatePickerDialogAccessor namespace BaseGestureEventAccessor { - void DestroyPeerImpl(BaseGestureEventPeer* peer) + void DestroyPeerImpl(Ark_BaseGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25620,12 +25721,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_BaseGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (BaseGestureEventPeer*) 100; + return (Ark_BaseGestureEvent) 100; string out("new BaseGestureEvent("); out.append(") \n"); - out.append("[return (BaseGestureEventPeer*) 100] \n"); + out.append("[return (Ark_BaseGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (BaseGestureEventPeer*) 100; + return (Ark_BaseGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25637,7 +25738,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetFingerListImpl(BaseGestureEventPeer* peer, + Array_FingerInfo GetFingerListImpl(Ark_BaseGestureEvent peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getFingerList("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetFingerListImpl(Ark_BaseGestureEvent peer, const Array_FingerInfo* fingerList) { if (!needGroupedLog(1)) @@ -25649,7 +25760,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BaseGestureEventAccessor namespace TapGestureEventAccessor { - void DestroyPeerImpl(TapGestureEventPeer* peer) + void DestroyPeerImpl(Ark_TapGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25660,12 +25771,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TapGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (TapGestureEventPeer*) 100; + return (Ark_TapGestureEvent) 100; string out("new TapGestureEvent("); out.append(") \n"); - out.append("[return (TapGestureEventPeer*) 100] \n"); + out.append("[return (Ark_TapGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (TapGestureEventPeer*) 100; + return (Ark_TapGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25679,7 +25790,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TapGestureEventAccessor namespace LongPressGestureEventAccessor { - void DestroyPeerImpl(LongPressGestureEventPeer* peer) + void DestroyPeerImpl(Ark_LongPressGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25690,12 +25801,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LongPressGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (LongPressGestureEventPeer*) 100; + return (Ark_LongPressGestureEvent) 100; string out("new LongPressGestureEvent("); out.append(") \n"); - out.append("[return (LongPressGestureEventPeer*) 100] \n"); + out.append("[return (Ark_LongPressGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (LongPressGestureEventPeer*) 100; + return (Ark_LongPressGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25707,7 +25818,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetRepeatImpl(LongPressGestureEventPeer* peer) + Ark_Boolean GetRepeatImpl(Ark_LongPressGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25717,7 +25828,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetRepeatImpl(LongPressGestureEventPeer* peer, + void SetRepeatImpl(Ark_LongPressGestureEvent peer, Ark_Boolean repeat) { if (!needGroupedLog(1)) @@ -25729,7 +25840,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LongPressGestureEventAccessor namespace PanGestureEventAccessor { - void DestroyPeerImpl(PanGestureEventPeer* peer) + void DestroyPeerImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25740,12 +25851,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PanGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (PanGestureEventPeer*) 100; + return (Ark_PanGestureEvent) 100; string out("new PanGestureEvent("); out.append(") \n"); - out.append("[return (PanGestureEventPeer*) 100] \n"); + out.append("[return (Ark_PanGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (PanGestureEventPeer*) 100; + return (Ark_PanGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25757,7 +25868,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetOffsetXImpl(PanGestureEventPeer* peer) + Ark_Int32 GetOffsetXImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25767,7 +25878,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetOffsetXImpl(PanGestureEventPeer* peer, + void SetOffsetXImpl(Ark_PanGestureEvent peer, const Ark_Number* offsetX) { if (!needGroupedLog(1)) @@ -25777,7 +25888,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetOffsetYImpl(PanGestureEventPeer* peer) + Ark_Int32 GetOffsetYImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25787,7 +25898,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetOffsetYImpl(PanGestureEventPeer* peer, + void SetOffsetYImpl(Ark_PanGestureEvent peer, const Ark_Number* offsetY) { if (!needGroupedLog(1)) @@ -25797,7 +25908,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityXImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25807,7 +25918,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityXImpl(PanGestureEventPeer* peer, + void SetVelocityXImpl(Ark_PanGestureEvent peer, const Ark_Number* velocityX) { if (!needGroupedLog(1)) @@ -25817,7 +25928,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityYImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25827,7 +25938,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityYImpl(PanGestureEventPeer* peer, + void SetVelocityYImpl(Ark_PanGestureEvent peer, const Ark_Number* velocityY) { if (!needGroupedLog(1)) @@ -25837,7 +25948,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_PanGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25847,7 +25958,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityImpl(PanGestureEventPeer* peer, + void SetVelocityImpl(Ark_PanGestureEvent peer, const Ark_Number* velocity) { if (!needGroupedLog(1)) @@ -25859,7 +25970,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PanGestureEventAccessor namespace PinchGestureEventAccessor { - void DestroyPeerImpl(PinchGestureEventPeer* peer) + void DestroyPeerImpl(Ark_PinchGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25870,12 +25981,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PinchGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (PinchGestureEventPeer*) 100; + return (Ark_PinchGestureEvent) 100; string out("new PinchGestureEvent("); out.append(") \n"); - out.append("[return (PinchGestureEventPeer*) 100] \n"); + out.append("[return (Ark_PinchGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (PinchGestureEventPeer*) 100; + return (Ark_PinchGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25887,7 +25998,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetScaleImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetScaleImpl(Ark_PinchGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25897,7 +26008,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScaleImpl(PinchGestureEventPeer* peer, + void SetScaleImpl(Ark_PinchGestureEvent peer, const Ark_Number* scale) { if (!needGroupedLog(1)) @@ -25907,7 +26018,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPinchCenterXImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetPinchCenterXImpl(Ark_PinchGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25917,7 +26028,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPinchCenterXImpl(PinchGestureEventPeer* peer, + void SetPinchCenterXImpl(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterX) { if (!needGroupedLog(1)) @@ -25927,7 +26038,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPinchCenterYImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetPinchCenterYImpl(Ark_PinchGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25937,7 +26048,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPinchCenterYImpl(PinchGestureEventPeer* peer, + void SetPinchCenterYImpl(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterY) { if (!needGroupedLog(1)) @@ -25949,7 +26060,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PinchGestureEventAccessor namespace RotationGestureEventAccessor { - void DestroyPeerImpl(RotationGestureEventPeer* peer) + void DestroyPeerImpl(Ark_RotationGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -25960,12 +26071,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RotationGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (RotationGestureEventPeer*) 100; + return (Ark_RotationGestureEvent) 100; string out("new RotationGestureEvent("); out.append(") \n"); - out.append("[return (RotationGestureEventPeer*) 100] \n"); + out.append("[return (Ark_RotationGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (RotationGestureEventPeer*) 100; + return (Ark_RotationGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -25977,7 +26088,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetAngleImpl(RotationGestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_RotationGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -25987,7 +26098,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAngleImpl(RotationGestureEventPeer* peer, + void SetAngleImpl(Ark_RotationGestureEvent peer, const Ark_Number* angle) { if (!needGroupedLog(1)) @@ -25999,7 +26110,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // RotationGestureEventAccessor namespace SwipeGestureEventAccessor { - void DestroyPeerImpl(SwipeGestureEventPeer* peer) + void DestroyPeerImpl(Ark_SwipeGestureEvent peer) { if (!needGroupedLog(1)) return; @@ -26010,12 +26121,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SwipeGestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (SwipeGestureEventPeer*) 100; + return (Ark_SwipeGestureEvent) 100; string out("new SwipeGestureEvent("); out.append(") \n"); - out.append("[return (SwipeGestureEventPeer*) 100] \n"); + out.append("[return (Ark_SwipeGestureEvent) 100] \n"); appendGroupedLog(1, out); - return (SwipeGestureEventPeer*) 100; + return (Ark_SwipeGestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26027,7 +26138,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetAngleImpl(SwipeGestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_SwipeGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26037,7 +26148,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAngleImpl(SwipeGestureEventPeer* peer, + void SetAngleImpl(Ark_SwipeGestureEvent peer, const Ark_Number* angle) { if (!needGroupedLog(1)) @@ -26047,7 +26158,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetSpeedImpl(SwipeGestureEventPeer* peer) + Ark_Int32 GetSpeedImpl(Ark_SwipeGestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26057,7 +26168,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetSpeedImpl(SwipeGestureEventPeer* peer, + void SetSpeedImpl(Ark_SwipeGestureEvent peer, const Ark_Number* speed) { if (!needGroupedLog(1)) @@ -26069,7 +26180,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SwipeGestureEventAccessor namespace GestureEventAccessor { - void DestroyPeerImpl(GestureEventPeer* peer) + void DestroyPeerImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return; @@ -26080,12 +26191,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GestureEvent CtorImpl() { if (!needGroupedLog(1)) - return (GestureEventPeer*) 100; + return (Ark_GestureEvent) 100; string out("new GestureEvent("); out.append(") \n"); - out.append("[return (GestureEventPeer*) 100] \n"); + out.append("[return (Ark_GestureEvent) 100] \n"); appendGroupedLog(1, out); - return (GestureEventPeer*) 100; + return (Ark_GestureEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26097,7 +26208,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean GetRepeatImpl(GestureEventPeer* peer) + Ark_Boolean GetRepeatImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26107,7 +26218,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetRepeatImpl(GestureEventPeer* peer, + void SetRepeatImpl(Ark_GestureEvent peer, Ark_Boolean repeat) { if (!needGroupedLog(1)) @@ -26117,7 +26228,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFingerListImpl(GestureEventPeer* peer, + Array_FingerInfo GetFingerListImpl(Ark_GestureEvent peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getFingerList("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } + void SetFingerListImpl(Ark_GestureEvent peer, const Array_FingerInfo* fingerList) { if (!needGroupedLog(1)) @@ -26127,7 +26248,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetOffsetXImpl(GestureEventPeer* peer) + Ark_Int32 GetOffsetXImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26137,7 +26258,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetOffsetXImpl(GestureEventPeer* peer, + void SetOffsetXImpl(Ark_GestureEvent peer, const Ark_Number* offsetX) { if (!needGroupedLog(1)) @@ -26147,7 +26268,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetOffsetYImpl(GestureEventPeer* peer) + Ark_Int32 GetOffsetYImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26157,7 +26278,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetOffsetYImpl(GestureEventPeer* peer, + void SetOffsetYImpl(Ark_GestureEvent peer, const Ark_Number* offsetY) { if (!needGroupedLog(1)) @@ -26167,7 +26288,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetAngleImpl(GestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26177,7 +26298,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetAngleImpl(GestureEventPeer* peer, + void SetAngleImpl(Ark_GestureEvent peer, const Ark_Number* angle) { if (!needGroupedLog(1)) @@ -26187,7 +26308,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetSpeedImpl(GestureEventPeer* peer) + Ark_Int32 GetSpeedImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26197,7 +26318,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetSpeedImpl(GestureEventPeer* peer, + void SetSpeedImpl(Ark_GestureEvent peer, const Ark_Number* speed) { if (!needGroupedLog(1)) @@ -26207,7 +26328,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScaleImpl(GestureEventPeer* peer) + Ark_Int32 GetScaleImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26217,7 +26338,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScaleImpl(GestureEventPeer* peer, + void SetScaleImpl(Ark_GestureEvent peer, const Ark_Number* scale) { if (!needGroupedLog(1)) @@ -26227,7 +26348,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPinchCenterXImpl(GestureEventPeer* peer) + Ark_Int32 GetPinchCenterXImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26237,7 +26358,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPinchCenterXImpl(GestureEventPeer* peer, + void SetPinchCenterXImpl(Ark_GestureEvent peer, const Ark_Number* pinchCenterX) { if (!needGroupedLog(1)) @@ -26247,7 +26368,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPinchCenterYImpl(GestureEventPeer* peer) + Ark_Int32 GetPinchCenterYImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26257,7 +26378,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPinchCenterYImpl(GestureEventPeer* peer, + void SetPinchCenterYImpl(Ark_GestureEvent peer, const Ark_Number* pinchCenterY) { if (!needGroupedLog(1)) @@ -26267,7 +26388,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityXImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26277,7 +26398,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityXImpl(GestureEventPeer* peer, + void SetVelocityXImpl(Ark_GestureEvent peer, const Ark_Number* velocityX) { if (!needGroupedLog(1)) @@ -26287,7 +26408,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityYImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26297,7 +26418,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityYImpl(GestureEventPeer* peer, + void SetVelocityYImpl(Ark_GestureEvent peer, const Ark_Number* velocityY) { if (!needGroupedLog(1)) @@ -26307,7 +26428,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetVelocityImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_GestureEvent peer) { if (!needGroupedLog(1)) return 0; @@ -26317,7 +26438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetVelocityImpl(GestureEventPeer* peer, + void SetVelocityImpl(Ark_GestureEvent peer, const Ark_Number* velocity) { if (!needGroupedLog(1)) @@ -26329,7 +26450,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GestureEventAccessor namespace PanGestureOptionsAccessor { - void DestroyPeerImpl(PanGestureOptionsPeer* peer) + void DestroyPeerImpl(Ark_PanGestureOptions peer) { if (!needGroupedLog(1)) return; @@ -26340,13 +26461,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PanGestureOptions CtorImpl(const Opt_Literal_Number_distance_fingers_PanDirection_direction* value) { if (!needGroupedLog(1)) - return (PanGestureOptionsPeer*) 100; + return (Ark_PanGestureOptions) 100; string out("new PanGestureOptions("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (PanGestureOptionsPeer*) 100] \n"); + out.append("[return (Ark_PanGestureOptions) 100] \n"); appendGroupedLog(1, out); - return (PanGestureOptionsPeer*) 100; + return (Ark_PanGestureOptions) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26358,7 +26479,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetDirectionImpl(PanGestureOptionsPeer* peer, + void SetDirectionImpl(Ark_PanGestureOptions peer, Ark_PanDirection value) { if (!needGroupedLog(1)) @@ -26368,7 +26489,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetDistanceImpl(PanGestureOptionsPeer* peer, + void SetDistanceImpl(Ark_PanGestureOptions peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -26378,7 +26499,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFingersImpl(PanGestureOptionsPeer* peer, + void SetFingersImpl(Ark_PanGestureOptions peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -26388,7 +26509,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetDirectionImpl(PanGestureOptionsPeer* peer) + Ark_PanDirection GetDirectionImpl(Ark_PanGestureOptions peer) { if (!needGroupedLog(1)) return {}; @@ -26400,7 +26521,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PanGestureOptionsAccessor namespace ScrollableTargetInfoAccessor { - void DestroyPeerImpl(ScrollableTargetInfoPeer* peer) + void DestroyPeerImpl(Ark_ScrollableTargetInfo peer) { if (!needGroupedLog(1)) return; @@ -26411,12 +26532,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ScrollableTargetInfo CtorImpl() { if (!needGroupedLog(1)) - return (ScrollableTargetInfoPeer*) 100; + return (Ark_ScrollableTargetInfo) 100; string out("new ScrollableTargetInfo("); out.append(") \n"); - out.append("[return (ScrollableTargetInfoPeer*) 100] \n"); + out.append("[return (Ark_ScrollableTargetInfo) 100] \n"); appendGroupedLog(1, out); - return (ScrollableTargetInfoPeer*) 100; + return (Ark_ScrollableTargetInfo) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26428,7 +26549,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean IsBeginImpl(ScrollableTargetInfoPeer* peer) + Ark_Boolean IsBeginImpl(Ark_ScrollableTargetInfo peer) { if (!needGroupedLog(1)) return 0; @@ -26438,7 +26559,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean IsEndImpl(ScrollableTargetInfoPeer* peer) + Ark_Boolean IsEndImpl(Ark_ScrollableTargetInfo peer) { if (!needGroupedLog(1)) return 0; @@ -26450,7 +26571,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollableTargetInfoAccessor namespace EventTargetInfoAccessor { - void DestroyPeerImpl(EventTargetInfoPeer* peer) + void DestroyPeerImpl(Ark_EventTargetInfo peer) { if (!needGroupedLog(1)) return; @@ -26461,12 +26582,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_EventTargetInfo CtorImpl() { if (!needGroupedLog(1)) - return (EventTargetInfoPeer*) 100; + return (Ark_EventTargetInfo) 100; string out("new EventTargetInfo("); out.append(") \n"); - out.append("[return (EventTargetInfoPeer*) 100] \n"); + out.append("[return (Ark_EventTargetInfo) 100] \n"); appendGroupedLog(1, out); - return (EventTargetInfoPeer*) 100; + return (Ark_EventTargetInfo) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26478,17 +26599,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetIdImpl(EventTargetInfoPeer* peer) + Ark_String GetIdImpl(Ark_EventTargetInfo peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getId("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // EventTargetInfoAccessor namespace GestureRecognizerAccessor { - void DestroyPeerImpl(GestureRecognizerPeer* peer) + void DestroyPeerImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return; @@ -26499,12 +26622,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GestureRecognizer CtorImpl() { if (!needGroupedLog(1)) - return (GestureRecognizerPeer*) 100; + return (Ark_GestureRecognizer) 100; string out("new GestureRecognizer("); out.append(") \n"); - out.append("[return (GestureRecognizerPeer*) 100] \n"); + out.append("[return (Ark_GestureRecognizer) 100] \n"); appendGroupedLog(1, out); - return (GestureRecognizerPeer*) 100; + return (Ark_GestureRecognizer) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26516,15 +26639,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetTagImpl(GestureRecognizerPeer* peer) + Ark_String GetTagImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getTag("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NativePointer GetTypeImpl(GestureRecognizerPeer* peer) + Ark_GestureControl_GestureType GetTypeImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return {}; @@ -26534,7 +26659,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Boolean IsBuiltInImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsBuiltInImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return 0; @@ -26544,7 +26669,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetEnabledImpl(GestureRecognizerPeer* peer, + void SetEnabledImpl(Ark_GestureRecognizer peer, Ark_Boolean isEnabled) { if (!needGroupedLog(1)) @@ -26554,7 +26679,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean IsEnabledImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsEnabledImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return 0; @@ -26564,7 +26689,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetStateImpl(GestureRecognizerPeer* peer) + Ark_GestureRecognizerState GetStateImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return {}; @@ -26574,17 +26699,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_EventTargetInfo GetEventTargetInfoImpl(GestureRecognizerPeer* peer) + Ark_EventTargetInfo GetEventTargetInfoImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_EventTargetInfo) 300; string out("getEventTargetInfo("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_EventTargetInfo) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_EventTargetInfo) 300; } - Ark_Boolean IsValidImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsValidImpl(Ark_GestureRecognizer peer) { if (!needGroupedLog(1)) return 0; @@ -26596,7 +26721,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GestureRecognizerAccessor namespace PanRecognizerAccessor { - void DestroyPeerImpl(PanRecognizerPeer* peer) + void DestroyPeerImpl(Ark_PanRecognizer peer) { if (!needGroupedLog(1)) return; @@ -26607,12 +26732,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PanRecognizer CtorImpl() { if (!needGroupedLog(1)) - return (PanRecognizerPeer*) 100; + return (Ark_PanRecognizer) 100; string out("new PanRecognizer("); out.append(") \n"); - out.append("[return (PanRecognizerPeer*) 100] \n"); + out.append("[return (Ark_PanRecognizer) 100] \n"); appendGroupedLog(1, out); - return (PanRecognizerPeer*) 100; + return (Ark_PanRecognizer) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26624,19 +26749,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_PanGestureOptions GetPanGestureOptionsImpl(PanRecognizerPeer* peer) + Ark_PanGestureOptions GetPanGestureOptionsImpl(Ark_PanRecognizer peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_PanGestureOptions) 300; string out("getPanGestureOptions("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_PanGestureOptions) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_PanGestureOptions) 300; } } // PanRecognizerAccessor namespace ImageAnalyzerControllerAccessor { - void DestroyPeerImpl(ImageAnalyzerControllerPeer* peer) + void DestroyPeerImpl(Ark_ImageAnalyzerController peer) { if (!needGroupedLog(1)) return; @@ -26647,12 +26772,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ImageAnalyzerController CtorImpl() { if (!needGroupedLog(1)) - return (ImageAnalyzerControllerPeer*) 100; + return (Ark_ImageAnalyzerController) 100; string out("new ImageAnalyzerController("); out.append(") \n"); - out.append("[return (ImageAnalyzerControllerPeer*) 100] \n"); + out.append("[return (Ark_ImageAnalyzerController) 100] \n"); appendGroupedLog(1, out); - return (ImageAnalyzerControllerPeer*) 100; + return (Ark_ImageAnalyzerController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26664,17 +26789,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetImageAnalyzerSupportTypesImpl(ImageAnalyzerControllerPeer* peer) + Array_ImageAnalyzerType GetImageAnalyzerSupportTypesImpl(Ark_ImageAnalyzerController peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getImageAnalyzerSupportTypes("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // ImageAnalyzerControllerAccessor namespace ListScrollerAccessor { - void DestroyPeerImpl(ListScrollerPeer* peer) + void DestroyPeerImpl(Ark_ListScroller peer) { if (!needGroupedLog(1)) return; @@ -26685,12 +26812,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ListScroller CtorImpl() { if (!needGroupedLog(1)) - return (ListScrollerPeer*) 100; + return (Ark_ListScroller) 100; string out("new ListScroller("); out.append(") \n"); - out.append("[return (ListScrollerPeer*) 100] \n"); + out.append("[return (Ark_ListScroller) 100] \n"); appendGroupedLog(1, out); - return (ListScrollerPeer*) 100; + return (Ark_ListScroller) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26702,9 +26829,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetItemRectInGroupImpl(ListScrollerPeer* peer, - const Ark_Number* index, - const Ark_Number* indexInGroup) + Ark_RectResult GetItemRectInGroupImpl(Ark_ListScroller peer, + const Ark_Number* index, + const Ark_Number* indexInGroup) { if (!needGroupedLog(1)) return {}; @@ -26717,7 +26844,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void ScrollToItemInGroupImpl(ListScrollerPeer* peer, + void ScrollToItemInGroupImpl(Ark_ListScroller peer, const Ark_Number* index, const Ark_Number* indexInGroup, const Opt_Boolean* smooth, @@ -26736,7 +26863,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CloseAllSwipeActionsImpl(ListScrollerPeer* peer, + void CloseAllSwipeActionsImpl(Ark_ListScroller peer, const Opt_CloseSwipeActionOptions* options) { if (!needGroupedLog(1)) @@ -26746,9 +26873,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetVisibleListContentInfoImpl(ListScrollerPeer* peer, - const Ark_Number* x, - const Ark_Number* y) + Ark_VisibleListContentInfo GetVisibleListContentInfoImpl(Ark_ListScroller peer, + const Ark_Number* x, + const Ark_Number* y) { if (!needGroupedLog(1)) return {}; @@ -26763,7 +26890,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ListScrollerAccessor namespace Matrix2DAccessor { - void DestroyPeerImpl(Matrix2DPeer* peer) + void DestroyPeerImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return; @@ -26774,12 +26901,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Matrix2D CtorImpl() { if (!needGroupedLog(1)) - return (Matrix2DPeer*) 100; + return (Ark_Matrix2D) 100; string out("new Matrix2D("); out.append(") \n"); - out.append("[return (Matrix2DPeer*) 100] \n"); + out.append("[return (Ark_Matrix2D) 100] \n"); appendGroupedLog(1, out); - return (Matrix2DPeer*) 100; + return (Ark_Matrix2D) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -26791,60 +26918,60 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Matrix2D IdentityImpl(Matrix2DPeer* peer) + Ark_Matrix2D IdentityImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("identity("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D InvertImpl(Matrix2DPeer* peer) + Ark_Matrix2D InvertImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("invert("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D MultiplyImpl(Matrix2DPeer* peer, + Ark_Matrix2D MultiplyImpl(Ark_Matrix2D peer, const Opt_Matrix2D* other) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("multiply("); WriteToString(&out, other); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D Rotate0Impl(Matrix2DPeer* peer, + Ark_Matrix2D Rotate0Impl(Ark_Matrix2D peer, const Opt_Number* rx, const Opt_Number* ry) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("rotate("); WriteToString(&out, rx); out.append(", "); WriteToString(&out, ry); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D Rotate1Impl(Matrix2DPeer* peer, + Ark_Matrix2D Rotate1Impl(Ark_Matrix2D peer, const Ark_Number* degree, const Opt_Number* rx, const Opt_Number* ry) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("rotate("); WriteToString(&out, degree); out.append(", "); @@ -26852,41 +26979,41 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, ry); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D TranslateImpl(Matrix2DPeer* peer, + Ark_Matrix2D TranslateImpl(Ark_Matrix2D peer, const Opt_Number* tx, const Opt_Number* ty) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("translate("); WriteToString(&out, tx); out.append(", "); WriteToString(&out, ty); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Matrix2D ScaleImpl(Matrix2DPeer* peer, + Ark_Matrix2D ScaleImpl(Ark_Matrix2D peer, const Opt_Number* sx, const Opt_Number* sy) { if (!needGroupedLog(1)) - return {}; + return (Ark_Matrix2D) 300; string out("scale("); WriteToString(&out, sx); out.append(", "); WriteToString(&out, sy); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_Matrix2D) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_Matrix2D) 300; } - Ark_Int32 GetScaleXImpl(Matrix2DPeer* peer) + Ark_Int32 GetScaleXImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26896,7 +27023,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScaleXImpl(Matrix2DPeer* peer, + void SetScaleXImpl(Ark_Matrix2D peer, const Ark_Number* scaleX) { if (!needGroupedLog(1)) @@ -26906,7 +27033,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetRotateYImpl(Matrix2DPeer* peer) + Ark_Int32 GetRotateYImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26916,7 +27043,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetRotateYImpl(Matrix2DPeer* peer, + void SetRotateYImpl(Ark_Matrix2D peer, const Ark_Number* rotateY) { if (!needGroupedLog(1)) @@ -26926,7 +27053,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetRotateXImpl(Matrix2DPeer* peer) + Ark_Int32 GetRotateXImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26936,7 +27063,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetRotateXImpl(Matrix2DPeer* peer, + void SetRotateXImpl(Ark_Matrix2D peer, const Ark_Number* rotateX) { if (!needGroupedLog(1)) @@ -26946,7 +27073,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetScaleYImpl(Matrix2DPeer* peer) + Ark_Int32 GetScaleYImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26956,7 +27083,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetScaleYImpl(Matrix2DPeer* peer, + void SetScaleYImpl(Ark_Matrix2D peer, const Ark_Number* scaleY) { if (!needGroupedLog(1)) @@ -26966,7 +27093,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTranslateXImpl(Matrix2DPeer* peer) + Ark_Int32 GetTranslateXImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26976,7 +27103,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTranslateXImpl(Matrix2DPeer* peer, + void SetTranslateXImpl(Ark_Matrix2D peer, const Ark_Number* translateX) { if (!needGroupedLog(1)) @@ -26986,7 +27113,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetTranslateYImpl(Matrix2DPeer* peer) + Ark_Int32 GetTranslateYImpl(Ark_Matrix2D peer) { if (!needGroupedLog(1)) return 0; @@ -26996,7 +27123,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetTranslateYImpl(Matrix2DPeer* peer, + void SetTranslateYImpl(Ark_Matrix2D peer, const Ark_Number* translateY) { if (!needGroupedLog(1)) @@ -27008,7 +27135,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // Matrix2DAccessor namespace NavDestinationContextAccessor { - void DestroyPeerImpl(NavDestinationContextPeer* peer) + void DestroyPeerImpl(Ark_NavDestinationContext peer) { if (!needGroupedLog(1)) return; @@ -27019,12 +27146,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NavDestinationContext CtorImpl() { if (!needGroupedLog(1)) - return (NavDestinationContextPeer*) 100; + return (Ark_NavDestinationContext) 100; string out("new NavDestinationContext("); out.append(") \n"); - out.append("[return (NavDestinationContextPeer*) 100] \n"); + out.append("[return (Ark_NavDestinationContext) 100] \n"); appendGroupedLog(1, out); - return (NavDestinationContextPeer*) 100; + return (Ark_NavDestinationContext) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27036,17 +27163,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetConfigInRouteMapImpl(NavDestinationContextPeer* peer) + Opt_RouteMapConfig GetConfigInRouteMapImpl(Ark_NavDestinationContext peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getConfigInRouteMap("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - void SetPathInfoImpl(NavDestinationContextPeer* peer, + void SetPathInfoImpl(Ark_NavDestinationContext peer, Ark_NavPathInfo pathInfo) { if (!needGroupedLog(1)) @@ -27056,7 +27183,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetPathStackImpl(NavDestinationContextPeer* peer, + void SetPathStackImpl(Ark_NavDestinationContext peer, Ark_NavPathStack pathStack) { if (!needGroupedLog(1)) @@ -27066,15 +27193,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetNavDestinationIdImpl(NavDestinationContextPeer* peer) + Ark_String GetNavDestinationIdImpl(Ark_NavDestinationContext peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getNavDestinationId("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetNavDestinationIdImpl(NavDestinationContextPeer* peer, + void SetNavDestinationIdImpl(Ark_NavDestinationContext peer, const Ark_String* navDestinationId) { if (!needGroupedLog(1)) @@ -27086,7 +27215,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavDestinationContextAccessor namespace NavPathInfoAccessor { - void DestroyPeerImpl(NavPathInfoPeer* peer) + void DestroyPeerImpl(Ark_NavPathInfo peer) { if (!needGroupedLog(1)) return; @@ -27100,7 +27229,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Boolean* isEntry) { if (!needGroupedLog(1)) - return (NavPathInfoPeer*) 100; + return (Ark_NavPathInfo) 100; string out("new NavPathInfo("); WriteToString(&out, name); out.append(", "); @@ -27110,9 +27239,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, isEntry); out.append(") \n"); - out.append("[return (NavPathInfoPeer*) 100] \n"); + out.append("[return (Ark_NavPathInfo) 100] \n"); appendGroupedLog(1, out); - return (NavPathInfoPeer*) 100; + return (Ark_NavPathInfo) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27124,15 +27253,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetNameImpl(NavPathInfoPeer* peer) + Ark_String GetNameImpl(Ark_NavPathInfo peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getName("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetNameImpl(NavPathInfoPeer* peer, + void SetNameImpl(Ark_NavPathInfo peer, const Ark_String* name) { if (!needGroupedLog(1)) @@ -27142,7 +27273,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetParamImpl(NavPathInfoPeer* peer, + void SetParamImpl(Ark_NavPathInfo peer, const Ark_CustomObject* param) { if (!needGroupedLog(1)) @@ -27152,7 +27283,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Callback_PopInfo_Void GetOnPopImpl(NavPathInfoPeer* peer) + Callback_PopInfo_Void GetOnPopImpl(Ark_NavPathInfo peer) { if (!needGroupedLog(1)) return {}; @@ -27162,7 +27293,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetOnPopImpl(NavPathInfoPeer* peer, + void SetOnPopImpl(Ark_NavPathInfo peer, const Callback_PopInfo_Void* onPop) { if (!needGroupedLog(1)) @@ -27172,7 +27303,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetIsEntryImpl(NavPathInfoPeer* peer) + Ark_Boolean GetIsEntryImpl(Ark_NavPathInfo peer) { if (!needGroupedLog(1)) return 0; @@ -27182,7 +27313,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIsEntryImpl(NavPathInfoPeer* peer, + void SetIsEntryImpl(Ark_NavPathInfo peer, Ark_Boolean isEntry) { if (!needGroupedLog(1)) @@ -27194,7 +27325,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavPathInfoAccessor namespace NavPathStackAccessor { - void DestroyPeerImpl(NavPathStackPeer* peer) + void DestroyPeerImpl(Ark_NavPathStack peer) { if (!needGroupedLog(1)) return; @@ -27205,12 +27336,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NavPathStack CtorImpl() { if (!needGroupedLog(1)) - return (NavPathStackPeer*) 100; + return (Ark_NavPathStack) 100; string out("new NavPathStack("); out.append(") \n"); - out.append("[return (NavPathStackPeer*) 100] \n"); + out.append("[return (Ark_NavPathStack) 100] \n"); appendGroupedLog(1, out); - return (NavPathStackPeer*) 100; + return (Ark_NavPathStack) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27222,7 +27353,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void PushPath0Impl(NavPathStackPeer* peer, + void PushPath0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated) { @@ -27235,7 +27366,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushPath1Impl(NavPathStackPeer* peer, + void PushPath1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options) { @@ -27248,7 +27379,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushDestination0Impl(NavPathStackPeer* peer, + void PushDestination0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -27264,7 +27395,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushDestination1Impl(NavPathStackPeer* peer, + void PushDestination1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -27280,7 +27411,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushPathByName0Impl(NavPathStackPeer* peer, + void PushPathByName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated) @@ -27296,7 +27427,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushPathByName1Impl(NavPathStackPeer* peer, + void PushPathByName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, @@ -27315,7 +27446,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushDestinationByName0Impl(NavPathStackPeer* peer, + void PushDestinationByName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated, @@ -27334,7 +27465,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PushDestinationByName1Impl(NavPathStackPeer* peer, + void PushDestinationByName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, @@ -27356,7 +27487,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplacePath0Impl(NavPathStackPeer* peer, + void ReplacePath0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated) { @@ -27369,7 +27500,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplacePath1Impl(NavPathStackPeer* peer, + void ReplacePath1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options) { @@ -27382,7 +27513,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplaceDestinationImpl(NavPathStackPeer* peer, + void ReplaceDestinationImpl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -27398,7 +27529,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplacePathByNameImpl(NavPathStackPeer* peer, + void ReplacePathByNameImpl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated) @@ -27414,7 +27545,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 RemoveByIndexesImpl(NavPathStackPeer* peer, + Ark_Int32 RemoveByIndexesImpl(Ark_NavPathStack peer, const Array_Number* indexes) { if (!needGroupedLog(1)) @@ -27426,7 +27557,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 RemoveByNameImpl(NavPathStackPeer* peer, + Ark_Int32 RemoveByNameImpl(Ark_NavPathStack peer, const Ark_String* name) { if (!needGroupedLog(1)) @@ -27438,7 +27569,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean RemoveByNavDestinationIdImpl(NavPathStackPeer* peer, + Ark_Boolean RemoveByNavDestinationIdImpl(Ark_NavPathStack peer, const Ark_String* navDestinationId) { if (!needGroupedLog(1)) @@ -27450,34 +27581,34 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NavPathInfo Pop0Impl(NavPathStackPeer* peer, + Opt_NavPathInfo Pop0Impl(Ark_NavPathStack peer, const Opt_Boolean* animated) { if (!needGroupedLog(1)) - return 0; + return {}; string out("pop("); WriteToString(&out, animated); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_NavPathInfo Pop1Impl(NavPathStackPeer* peer, + Opt_NavPathInfo Pop1Impl(Ark_NavPathStack peer, const Ark_CustomObject* result, const Opt_Boolean* animated) { if (!needGroupedLog(1)) - return 0; + return {}; string out("pop("); WriteToString(&out, result); out.append(", "); WriteToString(&out, animated); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_Int32 PopToName0Impl(NavPathStackPeer* peer, + Ark_Int32 PopToName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated) { @@ -27492,7 +27623,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 PopToName1Impl(NavPathStackPeer* peer, + Ark_Int32 PopToName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* result, const Opt_Boolean* animated) @@ -27510,7 +27641,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void PopToIndex0Impl(NavPathStackPeer* peer, + void PopToIndex0Impl(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated) { @@ -27523,7 +27654,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PopToIndex1Impl(NavPathStackPeer* peer, + void PopToIndex1Impl(Ark_NavPathStack peer, const Ark_Number* index, const Ark_CustomObject* result, const Opt_Boolean* animated) @@ -27539,7 +27670,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 MoveToTopImpl(NavPathStackPeer* peer, + Ark_Int32 MoveToTopImpl(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated) { @@ -27554,7 +27685,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void MoveIndexToTopImpl(NavPathStackPeer* peer, + void MoveIndexToTopImpl(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated) { @@ -27567,7 +27698,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearImpl(NavPathStackPeer* peer, + void ClearImpl(Ark_NavPathStack peer, const Opt_Boolean* animated) { if (!needGroupedLog(1)) @@ -27577,55 +27708,63 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetAllPathNameImpl(NavPathStackPeer* peer) + Array_String GetAllPathNameImpl(Ark_NavPathStack peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getAllPathName("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetParamByIndexImpl(NavPathStackPeer* peer, - const Ark_Number* index) + Opt_CustomObject GetParamByIndexImpl(Ark_NavPathStack peer, + const Ark_Number* index) { if (!needGroupedLog(1)) - return; + return {}; string out("getParamByIndex("); WriteToString(&out, index); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetParamByNameImpl(NavPathStackPeer* peer, - const Ark_String* name) + Array_CustomObject GetParamByNameImpl(Ark_NavPathStack peer, + const Ark_String* name) { if (!needGroupedLog(1)) - return; + return {}; string out("getParamByName("); WriteToString(&out, name); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetIndexByNameImpl(NavPathStackPeer* peer, - const Ark_String* name) + Array_Number GetIndexByNameImpl(Ark_NavPathStack peer, + const Ark_String* name) { if (!needGroupedLog(1)) - return; + return {}; string out("getIndexByName("); WriteToString(&out, name); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NavPathStack GetParentImpl(NavPathStackPeer* peer) + Opt_NavPathStack GetParentImpl(Ark_NavPathStack peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getParent("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - Ark_Int32 SizeImpl(NavPathStackPeer* peer) + Ark_Int32 SizeImpl(Ark_NavPathStack peer) { if (!needGroupedLog(1)) return 0; @@ -27635,7 +27774,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void DisableAnimationImpl(NavPathStackPeer* peer, + void DisableAnimationImpl(Ark_NavPathStack peer, Ark_Boolean value) { if (!needGroupedLog(1)) @@ -27645,7 +27784,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetInterceptionImpl(NavPathStackPeer* peer, + void SetInterceptionImpl(Ark_NavPathStack peer, const Ark_NavigationInterception* interception) { if (!needGroupedLog(1)) @@ -27657,7 +27796,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavPathStackAccessor namespace NavigationTransitionProxyAccessor { - void DestroyPeerImpl(NavigationTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_NavigationTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -27668,12 +27807,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_NavigationTransitionProxy CtorImpl() { if (!needGroupedLog(1)) - return (NavigationTransitionProxyPeer*) 100; + return (Ark_NavigationTransitionProxy) 100; string out("new NavigationTransitionProxy("); out.append(") \n"); - out.append("[return (NavigationTransitionProxyPeer*) 100] \n"); + out.append("[return (Ark_NavigationTransitionProxy) 100] \n"); appendGroupedLog(1, out); - return (NavigationTransitionProxyPeer*) 100; + return (Ark_NavigationTransitionProxy) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27685,7 +27824,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void FinishTransitionImpl(NavigationTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_NavigationTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -27693,7 +27832,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CancelTransitionImpl(NavigationTransitionProxyPeer* peer) + void CancelTransitionImpl(Ark_NavigationTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -27701,7 +27840,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void UpdateTransitionImpl(NavigationTransitionProxyPeer* peer, + void UpdateTransitionImpl(Ark_NavigationTransitionProxy peer, const Ark_Number* progress) { if (!needGroupedLog(1)) @@ -27711,7 +27850,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetFromImpl(NavigationTransitionProxyPeer* peer, + void SetFromImpl(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* from) { if (!needGroupedLog(1)) @@ -27721,7 +27860,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetToImpl(NavigationTransitionProxyPeer* peer, + void SetToImpl(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* to) { if (!needGroupedLog(1)) @@ -27731,7 +27870,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetIsInteractiveImpl(NavigationTransitionProxyPeer* peer) + Ark_Boolean GetIsInteractiveImpl(Ark_NavigationTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -27741,7 +27880,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIsInteractiveImpl(NavigationTransitionProxyPeer* peer, + void SetIsInteractiveImpl(Ark_NavigationTransitionProxy peer, Ark_Boolean isInteractive) { if (!needGroupedLog(1)) @@ -27753,7 +27892,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavigationTransitionProxyAccessor namespace PatternLockControllerAccessor { - void DestroyPeerImpl(PatternLockControllerPeer* peer) + void DestroyPeerImpl(Ark_PatternLockController peer) { if (!needGroupedLog(1)) return; @@ -27764,12 +27903,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PatternLockController CtorImpl() { if (!needGroupedLog(1)) - return (PatternLockControllerPeer*) 100; + return (Ark_PatternLockController) 100; string out("new PatternLockController("); out.append(") \n"); - out.append("[return (PatternLockControllerPeer*) 100] \n"); + out.append("[return (Ark_PatternLockController) 100] \n"); appendGroupedLog(1, out); - return (PatternLockControllerPeer*) 100; + return (Ark_PatternLockController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27781,7 +27920,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ResetImpl(PatternLockControllerPeer* peer) + void ResetImpl(Ark_PatternLockController peer) { if (!needGroupedLog(1)) return; @@ -27789,7 +27928,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetChallengeResultImpl(PatternLockControllerPeer* peer, + void SetChallengeResultImpl(Ark_PatternLockController peer, Ark_PatternLockChallengeResult result) { if (!needGroupedLog(1)) @@ -27801,7 +27940,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PatternLockControllerAccessor namespace RichEditorBaseControllerAccessor { - void DestroyPeerImpl(RichEditorBaseControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return; @@ -27812,12 +27951,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RichEditorBaseController CtorImpl() { if (!needGroupedLog(1)) - return (RichEditorBaseControllerPeer*) 100; + return (Ark_RichEditorBaseController) 100; string out("new RichEditorBaseController("); out.append(") \n"); - out.append("[return (RichEditorBaseControllerPeer*) 100] \n"); + out.append("[return (Ark_RichEditorBaseController) 100] \n"); appendGroupedLog(1, out); - return (RichEditorBaseControllerPeer*) 100; + return (Ark_RichEditorBaseController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27829,7 +27968,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetCaretOffsetImpl(RichEditorBaseControllerPeer* peer) + Ark_Int32 GetCaretOffsetImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return 0; @@ -27839,7 +27978,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean SetCaretOffsetImpl(RichEditorBaseControllerPeer* peer, + Ark_Boolean SetCaretOffsetImpl(Ark_RichEditorBaseController peer, const Ark_Number* offset) { if (!needGroupedLog(1)) @@ -27851,7 +27990,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void CloseSelectionMenuImpl(RichEditorBaseControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return; @@ -27859,7 +27998,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetTypingStyleImpl(RichEditorBaseControllerPeer* peer) + Ark_RichEditorTextStyle GetTypingStyleImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return {}; @@ -27869,7 +28008,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetTypingStyleImpl(RichEditorBaseControllerPeer* peer, + void SetTypingStyleImpl(Ark_RichEditorBaseController peer, const Ark_RichEditorTextStyle* value) { if (!needGroupedLog(1)) @@ -27879,7 +28018,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetSelectionImpl(RichEditorBaseControllerPeer* peer, + void SetSelectionImpl(Ark_RichEditorBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -27895,7 +28034,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean IsEditingImpl(RichEditorBaseControllerPeer* peer) + Ark_Boolean IsEditingImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return 0; @@ -27905,7 +28044,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void StopEditingImpl(RichEditorBaseControllerPeer* peer) + void StopEditingImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return; @@ -27913,17 +28052,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_LayoutManager GetLayoutManagerImpl(RichEditorBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_LayoutManager) 300; string out("getLayoutManager("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_LayoutManager) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_LayoutManager) 300; } - Ark_NativePointer GetPreviewTextImpl(RichEditorBaseControllerPeer* peer) + Ark_PreviewText GetPreviewTextImpl(Ark_RichEditorBaseController peer) { if (!needGroupedLog(1)) return {}; @@ -27935,7 +28074,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // RichEditorBaseControllerAccessor namespace RichEditorControllerAccessor { - void DestroyPeerImpl(RichEditorControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorController peer) { if (!needGroupedLog(1)) return; @@ -27946,12 +28085,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RichEditorController CtorImpl() { if (!needGroupedLog(1)) - return (RichEditorControllerPeer*) 100; + return (Ark_RichEditorController) 100; string out("new RichEditorController("); out.append(") \n"); - out.append("[return (RichEditorControllerPeer*) 100] \n"); + out.append("[return (Ark_RichEditorController) 100] \n"); appendGroupedLog(1, out); - return (RichEditorControllerPeer*) 100; + return (Ark_RichEditorController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -27963,7 +28102,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 AddTextSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddTextSpanImpl(Ark_RichEditorController peer, const Ark_String* value, const Opt_RichEditorTextSpanOptions* options) { @@ -27978,7 +28117,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 AddImageSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddImageSpanImpl(Ark_RichEditorController peer, const Ark_Union_PixelMap_ResourceStr* value, const Opt_RichEditorImageSpanOptions* options) { @@ -27993,7 +28132,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 AddBuilderSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddBuilderSpanImpl(Ark_RichEditorController peer, const CustomNodeBuilder* value, const Opt_RichEditorBuilderSpanOptions* options) { @@ -28008,7 +28147,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 AddSymbolSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddSymbolSpanImpl(Ark_RichEditorController peer, const Ark_Resource* value, const Opt_RichEditorSymbolSpanOptions* options) { @@ -28023,7 +28162,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void UpdateSpanStyleImpl(RichEditorControllerPeer* peer, + void UpdateSpanStyleImpl(Ark_RichEditorController peer, const Ark_Type_RichEditorController_updateSpanStyle_value* value) { if (!needGroupedLog(1)) @@ -28033,7 +28172,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void UpdateParagraphStyleImpl(RichEditorControllerPeer* peer, + void UpdateParagraphStyleImpl(Ark_RichEditorController peer, const Ark_RichEditorParagraphStyleOptions* value) { if (!needGroupedLog(1)) @@ -28043,7 +28182,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DeleteSpansImpl(RichEditorControllerPeer* peer, + void DeleteSpansImpl(Ark_RichEditorController peer, const Opt_RichEditorRange* value) { if (!needGroupedLog(1)) @@ -28053,27 +28192,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetSpansImpl(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value) + Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult GetSpansImpl(Ark_RichEditorController peer, + const Opt_RichEditorRange* value) { if (!needGroupedLog(1)) - return; + return {}; string out("getSpans("); WriteToString(&out, value); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetParagraphsImpl(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value) + Array_RichEditorParagraphResult GetParagraphsImpl(Ark_RichEditorController peer, + const Opt_RichEditorRange* value) { if (!needGroupedLog(1)) - return; + return {}; string out("getParagraphs("); WriteToString(&out, value); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NativePointer GetSelectionImpl(RichEditorControllerPeer* peer) + Ark_RichEditorSelection GetSelectionImpl(Ark_RichEditorController peer) { if (!needGroupedLog(1)) return {}; @@ -28083,31 +28226,33 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void FromStyledStringImpl(RichEditorControllerPeer* peer, - Ark_StyledString value) + Array_RichEditorSpan FromStyledStringImpl(Ark_RichEditorController peer, + Ark_StyledString value) { if (!needGroupedLog(1)) - return; + return {}; string out("fromStyledString("); WriteToString(&out, value); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_StyledString ToStyledStringImpl(RichEditorControllerPeer* peer, + Ark_StyledString ToStyledStringImpl(Ark_RichEditorController peer, const Ark_RichEditorRange* value) { if (!needGroupedLog(1)) - return {}; + return (Ark_StyledString) 300; string out("toStyledString("); WriteToString(&out, value); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_StyledString) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_StyledString) 300; } } // RichEditorControllerAccessor namespace RichEditorStyledStringControllerAccessor { - void DestroyPeerImpl(RichEditorStyledStringControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorStyledStringController peer) { if (!needGroupedLog(1)) return; @@ -28118,12 +28263,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_RichEditorStyledStringController CtorImpl() { if (!needGroupedLog(1)) - return (RichEditorStyledStringControllerPeer*) 100; + return (Ark_RichEditorStyledStringController) 100; string out("new RichEditorStyledStringController("); out.append(") \n"); - out.append("[return (RichEditorStyledStringControllerPeer*) 100] \n"); + out.append("[return (Ark_RichEditorStyledStringController) 100] \n"); appendGroupedLog(1, out); - return (RichEditorStyledStringControllerPeer*) 100; + return (Ark_RichEditorStyledStringController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28135,7 +28280,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetStyledStringImpl(RichEditorStyledStringControllerPeer* peer, + void SetStyledStringImpl(Ark_RichEditorStyledStringController peer, Ark_StyledString styledString) { if (!needGroupedLog(1)) @@ -28145,17 +28290,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_MutableStyledString GetStyledStringImpl(RichEditorStyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(Ark_RichEditorStyledStringController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_MutableStyledString) 300; string out("getStyledString("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_MutableStyledString) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_MutableStyledString) 300; } - Ark_NativePointer GetSelectionImpl(RichEditorStyledStringControllerPeer* peer) + Ark_RichEditorRange GetSelectionImpl(Ark_RichEditorStyledStringController peer) { if (!needGroupedLog(1)) return {}; @@ -28165,7 +28310,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void OnContentChangedImpl(RichEditorStyledStringControllerPeer* peer, + void OnContentChangedImpl(Ark_RichEditorStyledStringController peer, const Ark_StyledStringChangedListener* listener) { if (!needGroupedLog(1)) @@ -28177,7 +28322,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // RichEditorStyledStringControllerAccessor namespace ScrollerAccessor { - void DestroyPeerImpl(ScrollerPeer* peer) + void DestroyPeerImpl(Ark_Scroller peer) { if (!needGroupedLog(1)) return; @@ -28188,12 +28333,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_Scroller CtorImpl() { if (!needGroupedLog(1)) - return (ScrollerPeer*) 100; + return (Ark_Scroller) 100; string out("new Scroller("); out.append(") \n"); - out.append("[return (ScrollerPeer*) 100] \n"); + out.append("[return (Ark_Scroller) 100] \n"); appendGroupedLog(1, out); - return (ScrollerPeer*) 100; + return (Ark_Scroller) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28205,7 +28350,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ScrollToImpl(ScrollerPeer* peer, + void ScrollToImpl(Ark_Scroller peer, const Ark_ScrollOptions* options) { if (!needGroupedLog(1)) @@ -28215,7 +28360,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScrollEdgeImpl(ScrollerPeer* peer, + void ScrollEdgeImpl(Ark_Scroller peer, Ark_Edge value, const Opt_ScrollEdgeOptions* options) { @@ -28228,7 +28373,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void FlingImpl(ScrollerPeer* peer, + void FlingImpl(Ark_Scroller peer, const Ark_Number* velocity) { if (!needGroupedLog(1)) @@ -28238,7 +28383,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScrollPage0Impl(ScrollerPeer* peer, + void ScrollPage0Impl(Ark_Scroller peer, const Ark_ScrollPageOptions* value) { if (!needGroupedLog(1)) @@ -28248,7 +28393,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScrollPage1Impl(ScrollerPeer* peer, + void ScrollPage1Impl(Ark_Scroller peer, const Ark_Literal_Boolean_next_Axis_direction* value) { if (!needGroupedLog(1)) @@ -28258,7 +28403,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer CurrentOffsetImpl(ScrollerPeer* peer) + Ark_OffsetResult CurrentOffsetImpl(Ark_Scroller peer) { if (!needGroupedLog(1)) return {}; @@ -28268,7 +28413,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void ScrollToIndexImpl(ScrollerPeer* peer, + void ScrollToIndexImpl(Ark_Scroller peer, const Ark_Number* value, const Opt_Boolean* smooth, const Opt_ScrollAlign* align, @@ -28287,7 +28432,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ScrollByImpl(ScrollerPeer* peer, + void ScrollByImpl(Ark_Scroller peer, const Ark_Length* dx, const Ark_Length* dy) { @@ -28300,7 +28445,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean IsAtEndImpl(ScrollerPeer* peer) + Ark_Boolean IsAtEndImpl(Ark_Scroller peer) { if (!needGroupedLog(1)) return 0; @@ -28310,8 +28455,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetItemRectImpl(ScrollerPeer* peer, - const Ark_Number* index) + Ark_RectResult GetItemRectImpl(Ark_Scroller peer, + const Ark_Number* index) { if (!needGroupedLog(1)) return {}; @@ -28322,7 +28467,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Int32 GetItemIndexImpl(ScrollerPeer* peer, + Ark_Int32 GetItemIndexImpl(Ark_Scroller peer, const Ark_Number* x, const Ark_Number* y) { @@ -28339,7 +28484,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollerAccessor namespace SearchControllerAccessor { - void DestroyPeerImpl(SearchControllerPeer* peer) + void DestroyPeerImpl(Ark_SearchController peer) { if (!needGroupedLog(1)) return; @@ -28350,12 +28495,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SearchController CtorImpl() { if (!needGroupedLog(1)) - return (SearchControllerPeer*) 100; + return (Ark_SearchController) 100; string out("new SearchController("); out.append(") \n"); - out.append("[return (SearchControllerPeer*) 100] \n"); + out.append("[return (Ark_SearchController) 100] \n"); appendGroupedLog(1, out); - return (SearchControllerPeer*) 100; + return (Ark_SearchController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28367,7 +28512,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CaretPositionImpl(SearchControllerPeer* peer, + void CaretPositionImpl(Ark_SearchController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -28377,7 +28522,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopEditingImpl(SearchControllerPeer* peer) + void StopEditingImpl(Ark_SearchController peer) { if (!needGroupedLog(1)) return; @@ -28385,7 +28530,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTextSelectionImpl(SearchControllerPeer* peer, + void SetTextSelectionImpl(Ark_SearchController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -28403,7 +28548,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SearchControllerAccessor namespace SwiperControllerAccessor { - void DestroyPeerImpl(SwiperControllerPeer* peer) + void DestroyPeerImpl(Ark_SwiperController peer) { if (!needGroupedLog(1)) return; @@ -28414,12 +28559,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SwiperController CtorImpl() { if (!needGroupedLog(1)) - return (SwiperControllerPeer*) 100; + return (Ark_SwiperController) 100; string out("new SwiperController("); out.append(") \n"); - out.append("[return (SwiperControllerPeer*) 100] \n"); + out.append("[return (Ark_SwiperController) 100] \n"); appendGroupedLog(1, out); - return (SwiperControllerPeer*) 100; + return (Ark_SwiperController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28431,7 +28576,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ShowNextImpl(SwiperControllerPeer* peer) + void ShowNextImpl(Ark_SwiperController peer) { if (!needGroupedLog(1)) return; @@ -28439,7 +28584,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ShowPreviousImpl(SwiperControllerPeer* peer) + void ShowPreviousImpl(Ark_SwiperController peer) { if (!needGroupedLog(1)) return; @@ -28447,7 +28592,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ChangeIndexImpl(SwiperControllerPeer* peer, + void ChangeIndexImpl(Ark_SwiperController peer, const Ark_Number* index, const Opt_Boolean* useAnimation) { @@ -28460,7 +28605,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void FinishAnimationImpl(SwiperControllerPeer* peer, + void FinishAnimationImpl(Ark_SwiperController peer, const Opt_VoidCallback* callback_) { if (!needGroupedLog(1)) @@ -28472,7 +28617,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SwiperControllerAccessor namespace SwiperContentTransitionProxyAccessor { - void DestroyPeerImpl(SwiperContentTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -28483,12 +28628,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SwiperContentTransitionProxy CtorImpl() { if (!needGroupedLog(1)) - return (SwiperContentTransitionProxyPeer*) 100; + return (Ark_SwiperContentTransitionProxy) 100; string out("new SwiperContentTransitionProxy("); out.append(") \n"); - out.append("[return (SwiperContentTransitionProxyPeer*) 100] \n"); + out.append("[return (Ark_SwiperContentTransitionProxy) 100] \n"); appendGroupedLog(1, out); - return (SwiperContentTransitionProxyPeer*) 100; + return (Ark_SwiperContentTransitionProxy) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28500,7 +28645,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void FinishTransitionImpl(SwiperContentTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -28508,7 +28653,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetSelectedIndexImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -28518,7 +28663,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer, + void SetSelectedIndexImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* selectedIndex) { if (!needGroupedLog(1)) @@ -28528,7 +28673,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetIndexImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetIndexImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -28538,7 +28683,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetIndexImpl(SwiperContentTransitionProxyPeer* peer, + void SetIndexImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* index) { if (!needGroupedLog(1)) @@ -28548,7 +28693,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetPositionImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetPositionImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -28558,7 +28703,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetPositionImpl(SwiperContentTransitionProxyPeer* peer, + void SetPositionImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* position) { if (!needGroupedLog(1)) @@ -28568,7 +28713,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetMainAxisLengthImpl(Ark_SwiperContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -28578,7 +28723,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer, + void SetMainAxisLengthImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* mainAxisLength) { if (!needGroupedLog(1)) @@ -28590,7 +28735,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SwiperContentTransitionProxyAccessor namespace IndicatorComponentControllerAccessor { - void DestroyPeerImpl(IndicatorComponentControllerPeer* peer) + void DestroyPeerImpl(Ark_IndicatorComponentController peer) { if (!needGroupedLog(1)) return; @@ -28601,12 +28746,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_IndicatorComponentController CtorImpl() { if (!needGroupedLog(1)) - return (IndicatorComponentControllerPeer*) 100; + return (Ark_IndicatorComponentController) 100; string out("new IndicatorComponentController("); out.append(") \n"); - out.append("[return (IndicatorComponentControllerPeer*) 100] \n"); + out.append("[return (Ark_IndicatorComponentController) 100] \n"); appendGroupedLog(1, out); - return (IndicatorComponentControllerPeer*) 100; + return (Ark_IndicatorComponentController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28618,7 +28763,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ShowNextImpl(IndicatorComponentControllerPeer* peer) + void ShowNextImpl(Ark_IndicatorComponentController peer) { if (!needGroupedLog(1)) return; @@ -28626,7 +28771,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ShowPreviousImpl(IndicatorComponentControllerPeer* peer) + void ShowPreviousImpl(Ark_IndicatorComponentController peer) { if (!needGroupedLog(1)) return; @@ -28634,7 +28779,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ChangeIndexImpl(IndicatorComponentControllerPeer* peer, + void ChangeIndexImpl(Ark_IndicatorComponentController peer, const Ark_Number* index, const Opt_Boolean* useAnimation) { @@ -28649,7 +28794,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // IndicatorComponentControllerAccessor namespace ScaleSymbolEffectAccessor { - void DestroyPeerImpl(ScaleSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_ScaleSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28661,15 +28806,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_EffectDirection* direction) { if (!needGroupedLog(1)) - return (ScaleSymbolEffectPeer*) 100; + return (Ark_ScaleSymbolEffect) 100; string out("new ScaleSymbolEffect("); WriteToString(&out, scope); out.append(", "); WriteToString(&out, direction); out.append(") \n"); - out.append("[return (ScaleSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_ScaleSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (ScaleSymbolEffectPeer*) 100; + return (Ark_ScaleSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28681,7 +28826,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(ScaleSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_ScaleSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28691,7 +28836,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(ScaleSymbolEffectPeer* peer, + void SetScopeImpl(Ark_ScaleSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -28701,7 +28846,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetDirectionImpl(ScaleSymbolEffectPeer* peer) + Ark_EffectDirection GetDirectionImpl(Ark_ScaleSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28711,7 +28856,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetDirectionImpl(ScaleSymbolEffectPeer* peer, + void SetDirectionImpl(Ark_ScaleSymbolEffect peer, Ark_EffectDirection direction) { if (!needGroupedLog(1)) @@ -28723,7 +28868,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScaleSymbolEffectAccessor namespace HierarchicalSymbolEffectAccessor { - void DestroyPeerImpl(HierarchicalSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_HierarchicalSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28734,13 +28879,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_HierarchicalSymbolEffect CtorImpl(const Opt_EffectFillStyle* fillStyle) { if (!needGroupedLog(1)) - return (HierarchicalSymbolEffectPeer*) 100; + return (Ark_HierarchicalSymbolEffect) 100; string out("new HierarchicalSymbolEffect("); WriteToString(&out, fillStyle); out.append(") \n"); - out.append("[return (HierarchicalSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_HierarchicalSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (HierarchicalSymbolEffectPeer*) 100; + return (Ark_HierarchicalSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28752,7 +28897,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetFillStyleImpl(HierarchicalSymbolEffectPeer* peer) + Ark_EffectFillStyle GetFillStyleImpl(Ark_HierarchicalSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28762,7 +28907,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetFillStyleImpl(HierarchicalSymbolEffectPeer* peer, + void SetFillStyleImpl(Ark_HierarchicalSymbolEffect peer, Ark_EffectFillStyle fillStyle) { if (!needGroupedLog(1)) @@ -28774,7 +28919,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // HierarchicalSymbolEffectAccessor namespace AppearSymbolEffectAccessor { - void DestroyPeerImpl(AppearSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_AppearSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28785,13 +28930,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_AppearSymbolEffect CtorImpl(const Opt_EffectScope* scope) { if (!needGroupedLog(1)) - return (AppearSymbolEffectPeer*) 100; + return (Ark_AppearSymbolEffect) 100; string out("new AppearSymbolEffect("); WriteToString(&out, scope); out.append(") \n"); - out.append("[return (AppearSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_AppearSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (AppearSymbolEffectPeer*) 100; + return (Ark_AppearSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28803,7 +28948,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(AppearSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_AppearSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28813,7 +28958,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(AppearSymbolEffectPeer* peer, + void SetScopeImpl(Ark_AppearSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -28825,7 +28970,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AppearSymbolEffectAccessor namespace DisappearSymbolEffectAccessor { - void DestroyPeerImpl(DisappearSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_DisappearSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28836,13 +28981,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DisappearSymbolEffect CtorImpl(const Opt_EffectScope* scope) { if (!needGroupedLog(1)) - return (DisappearSymbolEffectPeer*) 100; + return (Ark_DisappearSymbolEffect) 100; string out("new DisappearSymbolEffect("); WriteToString(&out, scope); out.append(") \n"); - out.append("[return (DisappearSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_DisappearSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (DisappearSymbolEffectPeer*) 100; + return (Ark_DisappearSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28854,7 +28999,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(DisappearSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_DisappearSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28864,7 +29009,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(DisappearSymbolEffectPeer* peer, + void SetScopeImpl(Ark_DisappearSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -28876,7 +29021,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DisappearSymbolEffectAccessor namespace BounceSymbolEffectAccessor { - void DestroyPeerImpl(BounceSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_BounceSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28888,15 +29033,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_EffectDirection* direction) { if (!needGroupedLog(1)) - return (BounceSymbolEffectPeer*) 100; + return (Ark_BounceSymbolEffect) 100; string out("new BounceSymbolEffect("); WriteToString(&out, scope); out.append(", "); WriteToString(&out, direction); out.append(") \n"); - out.append("[return (BounceSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_BounceSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (BounceSymbolEffectPeer*) 100; + return (Ark_BounceSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28908,7 +29053,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(BounceSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_BounceSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28918,7 +29063,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(BounceSymbolEffectPeer* peer, + void SetScopeImpl(Ark_BounceSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -28928,7 +29073,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetDirectionImpl(BounceSymbolEffectPeer* peer) + Ark_EffectDirection GetDirectionImpl(Ark_BounceSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28938,7 +29083,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetDirectionImpl(BounceSymbolEffectPeer* peer, + void SetDirectionImpl(Ark_BounceSymbolEffect peer, Ark_EffectDirection direction) { if (!needGroupedLog(1)) @@ -28950,7 +29095,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BounceSymbolEffectAccessor namespace ReplaceSymbolEffectAccessor { - void DestroyPeerImpl(ReplaceSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_ReplaceSymbolEffect peer) { if (!needGroupedLog(1)) return; @@ -28961,13 +29106,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ReplaceSymbolEffect CtorImpl(const Opt_EffectScope* scope) { if (!needGroupedLog(1)) - return (ReplaceSymbolEffectPeer*) 100; + return (Ark_ReplaceSymbolEffect) 100; string out("new ReplaceSymbolEffect("); WriteToString(&out, scope); out.append(") \n"); - out.append("[return (ReplaceSymbolEffectPeer*) 100] \n"); + out.append("[return (Ark_ReplaceSymbolEffect) 100] \n"); appendGroupedLog(1, out); - return (ReplaceSymbolEffectPeer*) 100; + return (Ark_ReplaceSymbolEffect) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -28979,7 +29124,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetScopeImpl(ReplaceSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_ReplaceSymbolEffect peer) { if (!needGroupedLog(1)) return {}; @@ -28989,7 +29134,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetScopeImpl(ReplaceSymbolEffectPeer* peer, + void SetScopeImpl(Ark_ReplaceSymbolEffect peer, Ark_EffectScope scope) { if (!needGroupedLog(1)) @@ -29001,7 +29146,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ReplaceSymbolEffectAccessor namespace TabsControllerAccessor { - void DestroyPeerImpl(TabsControllerPeer* peer) + void DestroyPeerImpl(Ark_TabsController peer) { if (!needGroupedLog(1)) return; @@ -29012,12 +29157,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TabsController CtorImpl() { if (!needGroupedLog(1)) - return (TabsControllerPeer*) 100; + return (Ark_TabsController) 100; string out("new TabsController("); out.append(") \n"); - out.append("[return (TabsControllerPeer*) 100] \n"); + out.append("[return (Ark_TabsController) 100] \n"); appendGroupedLog(1, out); - return (TabsControllerPeer*) 100; + return (Ark_TabsController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29029,7 +29174,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ChangeIndexImpl(TabsControllerPeer* peer, + void ChangeIndexImpl(Ark_TabsController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -29039,7 +29184,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PreloadItemsImpl(TabsControllerPeer* peer, + void PreloadItemsImpl(Ark_TabsController peer, const Opt_Array_Number* indices, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -29052,7 +29197,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTabBarTranslateImpl(TabsControllerPeer* peer, + void SetTabBarTranslateImpl(Ark_TabsController peer, const Ark_TranslateOptions* translate) { if (!needGroupedLog(1)) @@ -29062,7 +29207,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTabBarOpacityImpl(TabsControllerPeer* peer, + void SetTabBarOpacityImpl(Ark_TabsController peer, const Ark_Number* opacity) { if (!needGroupedLog(1)) @@ -29074,7 +29219,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TabsControllerAccessor namespace TabContentTransitionProxyAccessor { - void DestroyPeerImpl(TabContentTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_TabContentTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -29085,12 +29230,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TabContentTransitionProxy CtorImpl() { if (!needGroupedLog(1)) - return (TabContentTransitionProxyPeer*) 100; + return (Ark_TabContentTransitionProxy) 100; string out("new TabContentTransitionProxy("); out.append(") \n"); - out.append("[return (TabContentTransitionProxyPeer*) 100] \n"); + out.append("[return (Ark_TabContentTransitionProxy) 100] \n"); appendGroupedLog(1, out); - return (TabContentTransitionProxyPeer*) 100; + return (Ark_TabContentTransitionProxy) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29102,7 +29247,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void FinishTransitionImpl(TabContentTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_TabContentTransitionProxy peer) { if (!needGroupedLog(1)) return; @@ -29110,7 +29255,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetFromImpl(TabContentTransitionProxyPeer* peer) + Ark_Int32 GetFromImpl(Ark_TabContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -29120,7 +29265,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetFromImpl(TabContentTransitionProxyPeer* peer, + void SetFromImpl(Ark_TabContentTransitionProxy peer, const Ark_Number* from) { if (!needGroupedLog(1)) @@ -29130,7 +29275,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetToImpl(TabContentTransitionProxyPeer* peer) + Ark_Int32 GetToImpl(Ark_TabContentTransitionProxy peer) { if (!needGroupedLog(1)) return 0; @@ -29140,7 +29285,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetToImpl(TabContentTransitionProxyPeer* peer, + void SetToImpl(Ark_TabContentTransitionProxy peer, const Ark_Number* to) { if (!needGroupedLog(1)) @@ -29152,7 +29297,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TabContentTransitionProxyAccessor namespace TextControllerAccessor { - void DestroyPeerImpl(TextControllerPeer* peer) + void DestroyPeerImpl(Ark_TextController peer) { if (!needGroupedLog(1)) return; @@ -29163,12 +29308,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextController CtorImpl() { if (!needGroupedLog(1)) - return (TextControllerPeer*) 100; + return (Ark_TextController) 100; string out("new TextController("); out.append(") \n"); - out.append("[return (TextControllerPeer*) 100] \n"); + out.append("[return (Ark_TextController) 100] \n"); appendGroupedLog(1, out); - return (TextControllerPeer*) 100; + return (Ark_TextController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29180,7 +29325,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CloseSelectionMenuImpl(TextControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_TextController peer) { if (!needGroupedLog(1)) return; @@ -29188,7 +29333,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetStyledStringImpl(TextControllerPeer* peer, + void SetStyledStringImpl(Ark_TextController peer, Ark_StyledString value) { if (!needGroupedLog(1)) @@ -29198,19 +29343,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_LayoutManager GetLayoutManagerImpl(TextControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_TextController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_LayoutManager) 300; string out("getLayoutManager("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_LayoutManager) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_LayoutManager) 300; } } // TextControllerAccessor namespace TextAreaControllerAccessor { - void DestroyPeerImpl(TextAreaControllerPeer* peer) + void DestroyPeerImpl(Ark_TextAreaController peer) { if (!needGroupedLog(1)) return; @@ -29221,12 +29366,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextAreaController CtorImpl() { if (!needGroupedLog(1)) - return (TextAreaControllerPeer*) 100; + return (Ark_TextAreaController) 100; string out("new TextAreaController("); out.append(") \n"); - out.append("[return (TextAreaControllerPeer*) 100] \n"); + out.append("[return (Ark_TextAreaController) 100] \n"); appendGroupedLog(1, out); - return (TextAreaControllerPeer*) 100; + return (Ark_TextAreaController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29238,7 +29383,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CaretPositionImpl(TextAreaControllerPeer* peer, + void CaretPositionImpl(Ark_TextAreaController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -29248,7 +29393,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTextSelectionImpl(TextAreaControllerPeer* peer, + void SetTextSelectionImpl(Ark_TextAreaController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -29264,7 +29409,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopEditingImpl(TextAreaControllerPeer* peer) + void StopEditingImpl(Ark_TextAreaController peer) { if (!needGroupedLog(1)) return; @@ -29274,7 +29419,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextAreaControllerAccessor namespace TextClockControllerAccessor { - void DestroyPeerImpl(TextClockControllerPeer* peer) + void DestroyPeerImpl(Ark_TextClockController peer) { if (!needGroupedLog(1)) return; @@ -29285,12 +29430,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextClockController CtorImpl() { if (!needGroupedLog(1)) - return (TextClockControllerPeer*) 100; + return (Ark_TextClockController) 100; string out("new TextClockController("); out.append(") \n"); - out.append("[return (TextClockControllerPeer*) 100] \n"); + out.append("[return (Ark_TextClockController) 100] \n"); appendGroupedLog(1, out); - return (TextClockControllerPeer*) 100; + return (Ark_TextClockController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29302,7 +29447,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void StartImpl(TextClockControllerPeer* peer) + void StartImpl(Ark_TextClockController peer) { if (!needGroupedLog(1)) return; @@ -29310,7 +29455,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImpl(TextClockControllerPeer* peer) + void StopImpl(Ark_TextClockController peer) { if (!needGroupedLog(1)) return; @@ -29320,7 +29465,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextClockControllerAccessor namespace TextBaseControllerAccessor { - void DestroyPeerImpl(TextBaseControllerPeer* peer) + void DestroyPeerImpl(Ark_TextBaseController peer) { if (!needGroupedLog(1)) return; @@ -29331,12 +29476,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextBaseController CtorImpl() { if (!needGroupedLog(1)) - return (TextBaseControllerPeer*) 100; + return (Ark_TextBaseController) 100; string out("new TextBaseController("); out.append(") \n"); - out.append("[return (TextBaseControllerPeer*) 100] \n"); + out.append("[return (Ark_TextBaseController) 100] \n"); appendGroupedLog(1, out); - return (TextBaseControllerPeer*) 100; + return (Ark_TextBaseController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29348,7 +29493,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetSelectionImpl(TextBaseControllerPeer* peer, + void SetSelectionImpl(Ark_TextBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -29364,7 +29509,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CloseSelectionMenuImpl(TextBaseControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_TextBaseController peer) { if (!needGroupedLog(1)) return; @@ -29372,19 +29517,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_LayoutManager GetLayoutManagerImpl(TextBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_TextBaseController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_LayoutManager) 300; string out("getLayoutManager("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_LayoutManager) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_LayoutManager) 300; } } // TextBaseControllerAccessor namespace TextEditControllerExAccessor { - void DestroyPeerImpl(TextEditControllerExPeer* peer) + void DestroyPeerImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return; @@ -29395,12 +29540,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextEditControllerEx CtorImpl() { if (!needGroupedLog(1)) - return (TextEditControllerExPeer*) 100; + return (Ark_TextEditControllerEx) 100; string out("new TextEditControllerEx("); out.append(") \n"); - out.append("[return (TextEditControllerExPeer*) 100] \n"); + out.append("[return (Ark_TextEditControllerEx) 100] \n"); appendGroupedLog(1, out); - return (TextEditControllerExPeer*) 100; + return (Ark_TextEditControllerEx) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29412,7 +29557,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean IsEditingImpl(TextEditControllerExPeer* peer) + Ark_Boolean IsEditingImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return 0; @@ -29422,7 +29567,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void StopEditingImpl(TextEditControllerExPeer* peer) + void StopEditingImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return; @@ -29430,7 +29575,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean SetCaretOffsetImpl(TextEditControllerExPeer* peer, + Ark_Boolean SetCaretOffsetImpl(Ark_TextEditControllerEx peer, const Ark_Number* offset) { if (!needGroupedLog(1)) @@ -29442,7 +29587,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetCaretOffsetImpl(TextEditControllerExPeer* peer) + Ark_Int32 GetCaretOffsetImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return 0; @@ -29452,7 +29597,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetPreviewTextImpl(TextEditControllerExPeer* peer) + Ark_PreviewText GetPreviewTextImpl(Ark_TextEditControllerEx peer) { if (!needGroupedLog(1)) return {}; @@ -29464,7 +29609,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextEditControllerExAccessor namespace StyledStringControllerAccessor { - void DestroyPeerImpl(StyledStringControllerPeer* peer) + void DestroyPeerImpl(Ark_StyledStringController peer) { if (!needGroupedLog(1)) return; @@ -29475,12 +29620,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_StyledStringController CtorImpl() { if (!needGroupedLog(1)) - return (StyledStringControllerPeer*) 100; + return (Ark_StyledStringController) 100; string out("new StyledStringController("); out.append(") \n"); - out.append("[return (StyledStringControllerPeer*) 100] \n"); + out.append("[return (Ark_StyledStringController) 100] \n"); appendGroupedLog(1, out); - return (StyledStringControllerPeer*) 100; + return (Ark_StyledStringController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29492,7 +29637,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetStyledStringImpl(StyledStringControllerPeer* peer, + void SetStyledStringImpl(Ark_StyledStringController peer, Ark_StyledString styledString) { if (!needGroupedLog(1)) @@ -29502,19 +29647,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_MutableStyledString GetStyledStringImpl(StyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(Ark_StyledStringController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_MutableStyledString) 300; string out("getStyledString("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_MutableStyledString) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_MutableStyledString) 300; } } // StyledStringControllerAccessor namespace LayoutManagerAccessor { - void DestroyPeerImpl(LayoutManagerPeer* peer) + void DestroyPeerImpl(Ark_LayoutManager peer) { if (!needGroupedLog(1)) return; @@ -29525,12 +29670,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LayoutManager CtorImpl() { if (!needGroupedLog(1)) - return (LayoutManagerPeer*) 100; + return (Ark_LayoutManager) 100; string out("new LayoutManager("); out.append(") \n"); - out.append("[return (LayoutManagerPeer*) 100] \n"); + out.append("[return (Ark_LayoutManager) 100] \n"); appendGroupedLog(1, out); - return (LayoutManagerPeer*) 100; + return (Ark_LayoutManager) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29542,7 +29687,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetLineCountImpl(LayoutManagerPeer* peer) + Ark_Int32 GetLineCountImpl(Ark_LayoutManager peer) { if (!needGroupedLog(1)) return 0; @@ -29552,9 +29697,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetGlyphPositionAtCoordinateImpl(LayoutManagerPeer* peer, - const Ark_Number* x, - const Ark_Number* y) + Ark_PositionWithAffinity GetGlyphPositionAtCoordinateImpl(Ark_LayoutManager peer, + const Ark_Number* x, + const Ark_Number* y) { if (!needGroupedLog(1)) return {}; @@ -29567,8 +29712,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetLineMetricsImpl(LayoutManagerPeer* peer, - const Ark_Number* lineNumber) + Ark_LineMetrics GetLineMetricsImpl(Ark_LayoutManager peer, + const Ark_Number* lineNumber) { if (!needGroupedLog(1)) return {}; @@ -29579,13 +29724,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void GetRectsForRangeImpl(LayoutManagerPeer* peer, - const Ark_TextRange* range, - Ark_RectWidthStyle widthStyle, - Ark_RectHeightStyle heightStyle) + Array_TextBox GetRectsForRangeImpl(Ark_LayoutManager peer, + const Ark_TextRange* range, + Ark_RectWidthStyle widthStyle, + Ark_RectHeightStyle heightStyle) { if (!needGroupedLog(1)) - return; + return {}; string out("getRectsForRange("); WriteToString(&out, range); out.append(", "); @@ -29593,11 +29738,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, heightStyle); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // LayoutManagerAccessor namespace TextMenuItemIdAccessor { - void DestroyPeerImpl(TextMenuItemIdPeer* peer) + void DestroyPeerImpl(Ark_TextMenuItemId peer) { if (!needGroupedLog(1)) return; @@ -29608,12 +29755,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextMenuItemId CtorImpl() { if (!needGroupedLog(1)) - return (TextMenuItemIdPeer*) 100; + return (Ark_TextMenuItemId) 100; string out("new TextMenuItemId("); out.append(") \n"); - out.append("[return (TextMenuItemIdPeer*) 100] \n"); + out.append("[return (Ark_TextMenuItemId) 100] \n"); appendGroupedLog(1, out); - return (TextMenuItemIdPeer*) 100; + return (Ark_TextMenuItemId) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29636,7 +29783,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return (Ark_TextMenuItemId) 300; } - Ark_Boolean EqualsImpl(TextMenuItemIdPeer* peer, + Ark_Boolean EqualsImpl(Ark_TextMenuItemId peer, Ark_TextMenuItemId id) { if (!needGroupedLog(1)) @@ -29650,7 +29797,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextMenuItemIdAccessor namespace EditMenuOptionsAccessor { - void DestroyPeerImpl(EditMenuOptionsPeer* peer) + void DestroyPeerImpl(Ark_EditMenuOptions peer) { if (!needGroupedLog(1)) return; @@ -29661,12 +29808,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_EditMenuOptions CtorImpl() { if (!needGroupedLog(1)) - return (EditMenuOptionsPeer*) 100; + return (Ark_EditMenuOptions) 100; string out("new EditMenuOptions("); out.append(") \n"); - out.append("[return (EditMenuOptionsPeer*) 100] \n"); + out.append("[return (Ark_EditMenuOptions) 100] \n"); appendGroupedLog(1, out); - return (EditMenuOptionsPeer*) 100; + return (Ark_EditMenuOptions) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29678,17 +29825,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void OnCreateMenuImpl(EditMenuOptionsPeer* peer, - const Array_TextMenuItem* menuItems) + Array_TextMenuItem OnCreateMenuImpl(Ark_EditMenuOptions peer, + const Array_TextMenuItem* menuItems) { if (!needGroupedLog(1)) - return; + return {}; string out("onCreateMenu("); WriteToString(&out, menuItems); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Boolean OnMenuItemClickImpl(EditMenuOptionsPeer* peer, + Ark_Boolean OnMenuItemClickImpl(Ark_EditMenuOptions peer, const Ark_TextMenuItem* menuItem, const Ark_TextRange* range) { @@ -29705,7 +29854,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EditMenuOptionsAccessor namespace SubmitEventAccessor { - void DestroyPeerImpl(SubmitEventPeer* peer) + void DestroyPeerImpl(Ark_SubmitEvent peer) { if (!needGroupedLog(1)) return; @@ -29716,12 +29865,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SubmitEvent CtorImpl() { if (!needGroupedLog(1)) - return (SubmitEventPeer*) 100; + return (Ark_SubmitEvent) 100; string out("new SubmitEvent("); out.append(") \n"); - out.append("[return (SubmitEventPeer*) 100] \n"); + out.append("[return (Ark_SubmitEvent) 100] \n"); appendGroupedLog(1, out); - return (SubmitEventPeer*) 100; + return (Ark_SubmitEvent) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29733,7 +29882,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void KeepEditableStateImpl(SubmitEventPeer* peer) + void KeepEditableStateImpl(Ark_SubmitEvent peer) { if (!needGroupedLog(1)) return; @@ -29741,15 +29890,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetTextImpl(SubmitEventPeer* peer) + Ark_String GetTextImpl(Ark_SubmitEvent peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getText("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void SetTextImpl(SubmitEventPeer* peer, + void SetTextImpl(Ark_SubmitEvent peer, const Ark_String* text) { if (!needGroupedLog(1)) @@ -29761,7 +29912,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SubmitEventAccessor namespace TextInputControllerAccessor { - void DestroyPeerImpl(TextInputControllerPeer* peer) + void DestroyPeerImpl(Ark_TextInputController peer) { if (!needGroupedLog(1)) return; @@ -29772,12 +29923,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextInputController CtorImpl() { if (!needGroupedLog(1)) - return (TextInputControllerPeer*) 100; + return (Ark_TextInputController) 100; string out("new TextInputController("); out.append(") \n"); - out.append("[return (TextInputControllerPeer*) 100] \n"); + out.append("[return (Ark_TextInputController) 100] \n"); appendGroupedLog(1, out); - return (TextInputControllerPeer*) 100; + return (Ark_TextInputController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29789,7 +29940,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CaretPositionImpl(TextInputControllerPeer* peer, + void CaretPositionImpl(Ark_TextInputController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -29799,7 +29950,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetTextSelectionImpl(TextInputControllerPeer* peer, + void SetTextSelectionImpl(Ark_TextInputController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -29815,7 +29966,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopEditingImpl(TextInputControllerPeer* peer) + void StopEditingImpl(Ark_TextInputController peer) { if (!needGroupedLog(1)) return; @@ -29825,7 +29976,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextInputControllerAccessor namespace TextPickerDialogAccessor { - void DestroyPeerImpl(TextPickerDialogPeer* peer) + void DestroyPeerImpl(Ark_TextPickerDialog peer) { if (!needGroupedLog(1)) return; @@ -29836,12 +29987,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextPickerDialog CtorImpl() { if (!needGroupedLog(1)) - return (TextPickerDialogPeer*) 100; + return (Ark_TextPickerDialog) 100; string out("new TextPickerDialog("); out.append(") \n"); - out.append("[return (TextPickerDialogPeer*) 100] \n"); + out.append("[return (Ark_TextPickerDialog) 100] \n"); appendGroupedLog(1, out); - return (TextPickerDialogPeer*) 100; + return (Ark_TextPickerDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29864,7 +30015,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextPickerDialogAccessor namespace TextTimerControllerAccessor { - void DestroyPeerImpl(TextTimerControllerPeer* peer) + void DestroyPeerImpl(Ark_TextTimerController peer) { if (!needGroupedLog(1)) return; @@ -29875,12 +30026,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextTimerController CtorImpl() { if (!needGroupedLog(1)) - return (TextTimerControllerPeer*) 100; + return (Ark_TextTimerController) 100; string out("new TextTimerController("); out.append(") \n"); - out.append("[return (TextTimerControllerPeer*) 100] \n"); + out.append("[return (Ark_TextTimerController) 100] \n"); appendGroupedLog(1, out); - return (TextTimerControllerPeer*) 100; + return (Ark_TextTimerController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29892,7 +30043,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void StartImpl(TextTimerControllerPeer* peer) + void StartImpl(Ark_TextTimerController peer) { if (!needGroupedLog(1)) return; @@ -29900,7 +30051,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PauseImpl(TextTimerControllerPeer* peer) + void PauseImpl(Ark_TextTimerController peer) { if (!needGroupedLog(1)) return; @@ -29908,7 +30059,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ResetImpl(TextTimerControllerPeer* peer) + void ResetImpl(Ark_TextTimerController peer) { if (!needGroupedLog(1)) return; @@ -29918,7 +30069,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextTimerControllerAccessor namespace TimePickerDialogAccessor { - void DestroyPeerImpl(TimePickerDialogPeer* peer) + void DestroyPeerImpl(Ark_TimePickerDialog peer) { if (!needGroupedLog(1)) return; @@ -29929,12 +30080,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TimePickerDialog CtorImpl() { if (!needGroupedLog(1)) - return (TimePickerDialogPeer*) 100; + return (Ark_TimePickerDialog) 100; string out("new TimePickerDialog("); out.append(") \n"); - out.append("[return (TimePickerDialogPeer*) 100] \n"); + out.append("[return (Ark_TimePickerDialog) 100] \n"); appendGroupedLog(1, out); - return (TimePickerDialogPeer*) 100; + return (Ark_TimePickerDialog) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29957,7 +30108,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TimePickerDialogAccessor namespace ColorFilterAccessor { - void DestroyPeerImpl(ColorFilterPeer* peer) + void DestroyPeerImpl(Ark_ColorFilter peer) { if (!needGroupedLog(1)) return; @@ -29968,13 +30119,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ColorFilter CtorImpl(const Array_Number* value) { if (!needGroupedLog(1)) - return (ColorFilterPeer*) 100; + return (Ark_ColorFilter) 100; string out("new ColorFilter("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (ColorFilterPeer*) 100] \n"); + out.append("[return (Ark_ColorFilter) 100] \n"); appendGroupedLog(1, out); - return (ColorFilterPeer*) 100; + return (Ark_ColorFilter) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -29988,7 +30139,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ColorFilterAccessor namespace VideoControllerAccessor { - void DestroyPeerImpl(VideoControllerPeer* peer) + void DestroyPeerImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -29999,12 +30150,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_VideoController CtorImpl() { if (!needGroupedLog(1)) - return (VideoControllerPeer*) 100; + return (Ark_VideoController) 100; string out("new VideoController("); out.append(") \n"); - out.append("[return (VideoControllerPeer*) 100] \n"); + out.append("[return (Ark_VideoController) 100] \n"); appendGroupedLog(1, out); - return (VideoControllerPeer*) 100; + return (Ark_VideoController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30016,7 +30167,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void StartImpl(VideoControllerPeer* peer) + void StartImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30024,7 +30175,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PauseImpl(VideoControllerPeer* peer) + void PauseImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30032,7 +30183,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImpl(VideoControllerPeer* peer) + void StopImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30040,7 +30191,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetCurrentTime0Impl(VideoControllerPeer* peer, + void SetCurrentTime0Impl(Ark_VideoController peer, const Ark_Number* value) { if (!needGroupedLog(1)) @@ -30050,7 +30201,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RequestFullscreenImpl(VideoControllerPeer* peer, + void RequestFullscreenImpl(Ark_VideoController peer, Ark_Boolean value) { if (!needGroupedLog(1)) @@ -30060,7 +30211,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ExitFullscreenImpl(VideoControllerPeer* peer) + void ExitFullscreenImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30068,7 +30219,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetCurrentTime1Impl(VideoControllerPeer* peer, + void SetCurrentTime1Impl(Ark_VideoController peer, const Ark_Number* value, Ark_SeekMode seekMode) { @@ -30081,7 +30232,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ResetImpl(VideoControllerPeer* peer) + void ResetImpl(Ark_VideoController peer) { if (!needGroupedLog(1)) return; @@ -30091,7 +30242,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // VideoControllerAccessor namespace WebKeyboardControllerAccessor { - void DestroyPeerImpl(WebKeyboardControllerPeer* peer) + void DestroyPeerImpl(Ark_WebKeyboardController peer) { if (!needGroupedLog(1)) return; @@ -30102,12 +30253,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebKeyboardController CtorImpl() { if (!needGroupedLog(1)) - return (WebKeyboardControllerPeer*) 100; + return (Ark_WebKeyboardController) 100; string out("new WebKeyboardController("); out.append(") \n"); - out.append("[return (WebKeyboardControllerPeer*) 100] \n"); + out.append("[return (Ark_WebKeyboardController) 100] \n"); appendGroupedLog(1, out); - return (WebKeyboardControllerPeer*) 100; + return (Ark_WebKeyboardController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30119,7 +30270,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void InsertTextImpl(WebKeyboardControllerPeer* peer, + void InsertTextImpl(Ark_WebKeyboardController peer, const Ark_String* text) { if (!needGroupedLog(1)) @@ -30129,7 +30280,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DeleteForwardImpl(WebKeyboardControllerPeer* peer, + void DeleteForwardImpl(Ark_WebKeyboardController peer, const Ark_Number* length) { if (!needGroupedLog(1)) @@ -30139,7 +30290,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DeleteBackwardImpl(WebKeyboardControllerPeer* peer, + void DeleteBackwardImpl(Ark_WebKeyboardController peer, const Ark_Number* length) { if (!needGroupedLog(1)) @@ -30149,7 +30300,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SendFunctionKeyImpl(WebKeyboardControllerPeer* peer, + void SendFunctionKeyImpl(Ark_WebKeyboardController peer, const Ark_Number* key) { if (!needGroupedLog(1)) @@ -30159,7 +30310,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CloseImpl(WebKeyboardControllerPeer* peer) + void CloseImpl(Ark_WebKeyboardController peer) { if (!needGroupedLog(1)) return; @@ -30169,7 +30320,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebKeyboardControllerAccessor namespace FullScreenExitHandlerAccessor { - void DestroyPeerImpl(FullScreenExitHandlerPeer* peer) + void DestroyPeerImpl(Ark_FullScreenExitHandler peer) { if (!needGroupedLog(1)) return; @@ -30180,12 +30331,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_FullScreenExitHandler CtorImpl() { if (!needGroupedLog(1)) - return (FullScreenExitHandlerPeer*) 100; + return (Ark_FullScreenExitHandler) 100; string out("new FullScreenExitHandler("); out.append(") \n"); - out.append("[return (FullScreenExitHandlerPeer*) 100] \n"); + out.append("[return (Ark_FullScreenExitHandler) 100] \n"); appendGroupedLog(1, out); - return (FullScreenExitHandlerPeer*) 100; + return (Ark_FullScreenExitHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30197,7 +30348,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ExitFullScreenImpl(FullScreenExitHandlerPeer* peer) + void ExitFullScreenImpl(Ark_FullScreenExitHandler peer) { if (!needGroupedLog(1)) return; @@ -30207,7 +30358,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FullScreenExitHandlerAccessor namespace FileSelectorParamAccessor { - void DestroyPeerImpl(FileSelectorParamPeer* peer) + void DestroyPeerImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) return; @@ -30218,12 +30369,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_FileSelectorParam CtorImpl() { if (!needGroupedLog(1)) - return (FileSelectorParamPeer*) 100; + return (Ark_FileSelectorParam) 100; string out("new FileSelectorParam("); out.append(") \n"); - out.append("[return (FileSelectorParamPeer*) 100] \n"); + out.append("[return (Ark_FileSelectorParam) 100] \n"); appendGroupedLog(1, out); - return (FileSelectorParamPeer*) 100; + return (Ark_FileSelectorParam) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30235,15 +30386,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetTitleImpl(FileSelectorParamPeer* peer) + Ark_String GetTitleImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getTitle("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NativePointer GetModeImpl(FileSelectorParamPeer* peer) + Ark_FileSelectorMode GetModeImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) return {}; @@ -30253,15 +30406,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void GetAcceptTypeImpl(FileSelectorParamPeer* peer) + Array_String GetAcceptTypeImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getAcceptType("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Boolean IsCaptureImpl(FileSelectorParamPeer* peer) + Ark_Boolean IsCaptureImpl(Ark_FileSelectorParam peer) { if (!needGroupedLog(1)) return 0; @@ -30273,7 +30428,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FileSelectorParamAccessor namespace JsResultAccessor { - void DestroyPeerImpl(JsResultPeer* peer) + void DestroyPeerImpl(Ark_JsResult peer) { if (!needGroupedLog(1)) return; @@ -30284,12 +30439,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_JsResult CtorImpl() { if (!needGroupedLog(1)) - return (JsResultPeer*) 100; + return (Ark_JsResult) 100; string out("new JsResult("); out.append(") \n"); - out.append("[return (JsResultPeer*) 100] \n"); + out.append("[return (Ark_JsResult) 100] \n"); appendGroupedLog(1, out); - return (JsResultPeer*) 100; + return (Ark_JsResult) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30301,7 +30456,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void HandleCancelImpl(JsResultPeer* peer) + void HandleCancelImpl(Ark_JsResult peer) { if (!needGroupedLog(1)) return; @@ -30309,7 +30464,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void HandleConfirmImpl(JsResultPeer* peer) + void HandleConfirmImpl(Ark_JsResult peer) { if (!needGroupedLog(1)) return; @@ -30317,7 +30472,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void HandlePromptConfirmImpl(JsResultPeer* peer, + void HandlePromptConfirmImpl(Ark_JsResult peer, const Ark_String* result) { if (!needGroupedLog(1)) @@ -30329,7 +30484,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // JsResultAccessor namespace FileSelectorResultAccessor { - void DestroyPeerImpl(FileSelectorResultPeer* peer) + void DestroyPeerImpl(Ark_FileSelectorResult peer) { if (!needGroupedLog(1)) return; @@ -30340,12 +30495,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_FileSelectorResult CtorImpl() { if (!needGroupedLog(1)) - return (FileSelectorResultPeer*) 100; + return (Ark_FileSelectorResult) 100; string out("new FileSelectorResult("); out.append(") \n"); - out.append("[return (FileSelectorResultPeer*) 100] \n"); + out.append("[return (Ark_FileSelectorResult) 100] \n"); appendGroupedLog(1, out); - return (FileSelectorResultPeer*) 100; + return (Ark_FileSelectorResult) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30357,7 +30512,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void HandleFileListImpl(FileSelectorResultPeer* peer, + void HandleFileListImpl(Ark_FileSelectorResult peer, const Array_String* fileList) { if (!needGroupedLog(1)) @@ -30369,7 +30524,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FileSelectorResultAccessor namespace HttpAuthHandlerAccessor { - void DestroyPeerImpl(HttpAuthHandlerPeer* peer) + void DestroyPeerImpl(Ark_HttpAuthHandler peer) { if (!needGroupedLog(1)) return; @@ -30380,12 +30535,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_HttpAuthHandler CtorImpl() { if (!needGroupedLog(1)) - return (HttpAuthHandlerPeer*) 100; + return (Ark_HttpAuthHandler) 100; string out("new HttpAuthHandler("); out.append(") \n"); - out.append("[return (HttpAuthHandlerPeer*) 100] \n"); + out.append("[return (Ark_HttpAuthHandler) 100] \n"); appendGroupedLog(1, out); - return (HttpAuthHandlerPeer*) 100; + return (Ark_HttpAuthHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30397,7 +30552,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean ConfirmImpl(HttpAuthHandlerPeer* peer, + Ark_Boolean ConfirmImpl(Ark_HttpAuthHandler peer, const Ark_String* userName, const Ark_String* password) { @@ -30412,7 +30567,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void CancelImpl(HttpAuthHandlerPeer* peer) + void CancelImpl(Ark_HttpAuthHandler peer) { if (!needGroupedLog(1)) return; @@ -30420,7 +30575,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean IsHttpAuthInfoSavedImpl(HttpAuthHandlerPeer* peer) + Ark_Boolean IsHttpAuthInfoSavedImpl(Ark_HttpAuthHandler peer) { if (!needGroupedLog(1)) return 0; @@ -30432,7 +30587,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // HttpAuthHandlerAccessor namespace SslErrorHandlerAccessor { - void DestroyPeerImpl(SslErrorHandlerPeer* peer) + void DestroyPeerImpl(Ark_SslErrorHandler peer) { if (!needGroupedLog(1)) return; @@ -30443,12 +30598,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_SslErrorHandler CtorImpl() { if (!needGroupedLog(1)) - return (SslErrorHandlerPeer*) 100; + return (Ark_SslErrorHandler) 100; string out("new SslErrorHandler("); out.append(") \n"); - out.append("[return (SslErrorHandlerPeer*) 100] \n"); + out.append("[return (Ark_SslErrorHandler) 100] \n"); appendGroupedLog(1, out); - return (SslErrorHandlerPeer*) 100; + return (Ark_SslErrorHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30460,7 +30615,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void HandleConfirmImpl(SslErrorHandlerPeer* peer) + void HandleConfirmImpl(Ark_SslErrorHandler peer) { if (!needGroupedLog(1)) return; @@ -30468,7 +30623,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void HandleCancelImpl(SslErrorHandlerPeer* peer) + void HandleCancelImpl(Ark_SslErrorHandler peer) { if (!needGroupedLog(1)) return; @@ -30478,7 +30633,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SslErrorHandlerAccessor namespace ClientAuthenticationHandlerAccessor { - void DestroyPeerImpl(ClientAuthenticationHandlerPeer* peer) + void DestroyPeerImpl(Ark_ClientAuthenticationHandler peer) { if (!needGroupedLog(1)) return; @@ -30489,12 +30644,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ClientAuthenticationHandler CtorImpl() { if (!needGroupedLog(1)) - return (ClientAuthenticationHandlerPeer*) 100; + return (Ark_ClientAuthenticationHandler) 100; string out("new ClientAuthenticationHandler("); out.append(") \n"); - out.append("[return (ClientAuthenticationHandlerPeer*) 100] \n"); + out.append("[return (Ark_ClientAuthenticationHandler) 100] \n"); appendGroupedLog(1, out); - return (ClientAuthenticationHandlerPeer*) 100; + return (Ark_ClientAuthenticationHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30506,7 +30661,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void Confirm0Impl(ClientAuthenticationHandlerPeer* peer, + void Confirm0Impl(Ark_ClientAuthenticationHandler peer, const Ark_String* priKeyFile, const Ark_String* certChainFile) { @@ -30519,7 +30674,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void Confirm1Impl(ClientAuthenticationHandlerPeer* peer, + void Confirm1Impl(Ark_ClientAuthenticationHandler peer, const Ark_String* authUri) { if (!needGroupedLog(1)) @@ -30529,7 +30684,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CancelImpl(ClientAuthenticationHandlerPeer* peer) + void CancelImpl(Ark_ClientAuthenticationHandler peer) { if (!needGroupedLog(1)) return; @@ -30537,7 +30692,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void IgnoreImpl(ClientAuthenticationHandlerPeer* peer) + void IgnoreImpl(Ark_ClientAuthenticationHandler peer) { if (!needGroupedLog(1)) return; @@ -30547,7 +30702,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ClientAuthenticationHandlerAccessor namespace PermissionRequestAccessor { - void DestroyPeerImpl(PermissionRequestPeer* peer) + void DestroyPeerImpl(Ark_PermissionRequest peer) { if (!needGroupedLog(1)) return; @@ -30558,12 +30713,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_PermissionRequest CtorImpl() { if (!needGroupedLog(1)) - return (PermissionRequestPeer*) 100; + return (Ark_PermissionRequest) 100; string out("new PermissionRequest("); out.append(") \n"); - out.append("[return (PermissionRequestPeer*) 100] \n"); + out.append("[return (Ark_PermissionRequest) 100] \n"); appendGroupedLog(1, out); - return (PermissionRequestPeer*) 100; + return (Ark_PermissionRequest) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30575,7 +30730,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void DenyImpl(PermissionRequestPeer* peer) + void DenyImpl(Ark_PermissionRequest peer) { if (!needGroupedLog(1)) return; @@ -30583,23 +30738,27 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void GetOriginImpl(PermissionRequestPeer* peer) + Ark_String GetOriginImpl(Ark_PermissionRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getOrigin("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetAccessibleResourceImpl(PermissionRequestPeer* peer) + Array_String GetAccessibleResourceImpl(Ark_PermissionRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getAccessibleResource("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GrantImpl(PermissionRequestPeer* peer, + void GrantImpl(Ark_PermissionRequest peer, const Array_String* resources) { if (!needGroupedLog(1)) @@ -30611,7 +30770,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // PermissionRequestAccessor namespace ScreenCaptureHandlerAccessor { - void DestroyPeerImpl(ScreenCaptureHandlerPeer* peer) + void DestroyPeerImpl(Ark_ScreenCaptureHandler peer) { if (!needGroupedLog(1)) return; @@ -30622,12 +30781,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ScreenCaptureHandler CtorImpl() { if (!needGroupedLog(1)) - return (ScreenCaptureHandlerPeer*) 100; + return (Ark_ScreenCaptureHandler) 100; string out("new ScreenCaptureHandler("); out.append(") \n"); - out.append("[return (ScreenCaptureHandlerPeer*) 100] \n"); + out.append("[return (Ark_ScreenCaptureHandler) 100] \n"); appendGroupedLog(1, out); - return (ScreenCaptureHandlerPeer*) 100; + return (Ark_ScreenCaptureHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30639,15 +30798,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetOriginImpl(ScreenCaptureHandlerPeer* peer) + Ark_String GetOriginImpl(Ark_ScreenCaptureHandler peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getOrigin("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GrantImpl(ScreenCaptureHandlerPeer* peer, + void GrantImpl(Ark_ScreenCaptureHandler peer, const Ark_ScreenCaptureConfig* config) { if (!needGroupedLog(1)) @@ -30657,7 +30818,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DenyImpl(ScreenCaptureHandlerPeer* peer) + void DenyImpl(Ark_ScreenCaptureHandler peer) { if (!needGroupedLog(1)) return; @@ -30667,7 +30828,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScreenCaptureHandlerAccessor namespace DataResubmissionHandlerAccessor { - void DestroyPeerImpl(DataResubmissionHandlerPeer* peer) + void DestroyPeerImpl(Ark_DataResubmissionHandler peer) { if (!needGroupedLog(1)) return; @@ -30678,12 +30839,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DataResubmissionHandler CtorImpl() { if (!needGroupedLog(1)) - return (DataResubmissionHandlerPeer*) 100; + return (Ark_DataResubmissionHandler) 100; string out("new DataResubmissionHandler("); out.append(") \n"); - out.append("[return (DataResubmissionHandlerPeer*) 100] \n"); + out.append("[return (Ark_DataResubmissionHandler) 100] \n"); appendGroupedLog(1, out); - return (DataResubmissionHandlerPeer*) 100; + return (Ark_DataResubmissionHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30695,7 +30856,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ResendImpl(DataResubmissionHandlerPeer* peer) + void ResendImpl(Ark_DataResubmissionHandler peer) { if (!needGroupedLog(1)) return; @@ -30703,7 +30864,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CancelImpl(DataResubmissionHandlerPeer* peer) + void CancelImpl(Ark_DataResubmissionHandler peer) { if (!needGroupedLog(1)) return; @@ -30713,7 +30874,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DataResubmissionHandlerAccessor namespace ControllerHandlerAccessor { - void DestroyPeerImpl(ControllerHandlerPeer* peer) + void DestroyPeerImpl(Ark_ControllerHandler peer) { if (!needGroupedLog(1)) return; @@ -30724,12 +30885,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ControllerHandler CtorImpl() { if (!needGroupedLog(1)) - return (ControllerHandlerPeer*) 100; + return (Ark_ControllerHandler) 100; string out("new ControllerHandler("); out.append(") \n"); - out.append("[return (ControllerHandlerPeer*) 100] \n"); + out.append("[return (Ark_ControllerHandler) 100] \n"); appendGroupedLog(1, out); - return (ControllerHandlerPeer*) 100; + return (Ark_ControllerHandler) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30741,7 +30902,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetWebControllerImpl(ControllerHandlerPeer* peer, + void SetWebControllerImpl(Ark_ControllerHandler peer, Ark_WebviewController controller) { if (!needGroupedLog(1)) @@ -30753,7 +30914,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ControllerHandlerAccessor namespace WebContextMenuParamAccessor { - void DestroyPeerImpl(WebContextMenuParamPeer* peer) + void DestroyPeerImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return; @@ -30764,12 +30925,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebContextMenuParam CtorImpl() { if (!needGroupedLog(1)) - return (WebContextMenuParamPeer*) 100; + return (Ark_WebContextMenuParam) 100; string out("new WebContextMenuParam("); out.append(") \n"); - out.append("[return (WebContextMenuParamPeer*) 100] \n"); + out.append("[return (Ark_WebContextMenuParam) 100] \n"); appendGroupedLog(1, out); - return (WebContextMenuParamPeer*) 100; + return (Ark_WebContextMenuParam) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30781,7 +30942,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 XImpl(WebContextMenuParamPeer* peer) + Ark_Int32 XImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30791,7 +30952,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 YImpl(WebContextMenuParamPeer* peer) + Ark_Int32 YImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30801,31 +30962,37 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void GetLinkUrlImpl(WebContextMenuParamPeer* peer) + Ark_String GetLinkUrlImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getLinkUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetUnfilteredLinkUrlImpl(WebContextMenuParamPeer* peer) + Ark_String GetUnfilteredLinkUrlImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getUnfilteredLinkUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetSourceUrlImpl(WebContextMenuParamPeer* peer) + Ark_String GetSourceUrlImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getSourceUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Boolean ExistsImageContentsImpl(WebContextMenuParamPeer* peer) + Ark_Boolean ExistsImageContentsImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30835,7 +31002,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetMediaTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuMediaType GetMediaTypeImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return {}; @@ -30845,15 +31012,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void GetSelectionTextImpl(WebContextMenuParamPeer* peer) + Ark_String GetSelectionTextImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getSelectionText("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NativePointer GetSourceTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuSourceType GetSourceTypeImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return {}; @@ -30863,7 +31032,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetInputFieldTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuInputFieldType GetInputFieldTypeImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return {}; @@ -30873,7 +31042,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Boolean IsEditableImpl(WebContextMenuParamPeer* peer) + Ark_Boolean IsEditableImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30883,7 +31052,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetEditStateFlagsImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetEditStateFlagsImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30893,7 +31062,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetPreviewWidthImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetPreviewWidthImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30903,7 +31072,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetPreviewHeightImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetPreviewHeightImpl(Ark_WebContextMenuParam peer) { if (!needGroupedLog(1)) return 0; @@ -30915,7 +31084,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebContextMenuParamAccessor namespace WebContextMenuResultAccessor { - void DestroyPeerImpl(WebContextMenuResultPeer* peer) + void DestroyPeerImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30926,12 +31095,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebContextMenuResult CtorImpl() { if (!needGroupedLog(1)) - return (WebContextMenuResultPeer*) 100; + return (Ark_WebContextMenuResult) 100; string out("new WebContextMenuResult("); out.append(") \n"); - out.append("[return (WebContextMenuResultPeer*) 100] \n"); + out.append("[return (Ark_WebContextMenuResult) 100] \n"); appendGroupedLog(1, out); - return (WebContextMenuResultPeer*) 100; + return (Ark_WebContextMenuResult) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -30943,7 +31112,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void CloseContextMenuImpl(WebContextMenuResultPeer* peer) + void CloseContextMenuImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30951,7 +31120,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CopyImageImpl(WebContextMenuResultPeer* peer) + void CopyImageImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30959,7 +31128,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CopyImpl(WebContextMenuResultPeer* peer) + void CopyImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30967,7 +31136,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PasteImpl(WebContextMenuResultPeer* peer) + void PasteImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30975,7 +31144,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void CutImpl(WebContextMenuResultPeer* peer) + void CutImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30983,7 +31152,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SelectAllImpl(WebContextMenuResultPeer* peer) + void SelectAllImpl(Ark_WebContextMenuResult peer) { if (!needGroupedLog(1)) return; @@ -30993,7 +31162,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebContextMenuResultAccessor namespace ConsoleMessageAccessor { - void DestroyPeerImpl(ConsoleMessagePeer* peer) + void DestroyPeerImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) return; @@ -31007,7 +31176,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_MessageLevel messageLevel) { if (!needGroupedLog(1)) - return (ConsoleMessagePeer*) 100; + return (Ark_ConsoleMessage) 100; string out("new ConsoleMessage("); WriteToString(&out, message); out.append(", "); @@ -31017,9 +31186,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, messageLevel); out.append(") \n"); - out.append("[return (ConsoleMessagePeer*) 100] \n"); + out.append("[return (Ark_ConsoleMessage) 100] \n"); appendGroupedLog(1, out); - return (ConsoleMessagePeer*) 100; + return (Ark_ConsoleMessage) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31031,23 +31200,27 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetMessageImpl(ConsoleMessagePeer* peer) + Ark_String GetMessageImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getMessage("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetSourceIdImpl(ConsoleMessagePeer* peer) + Ark_String GetSourceIdImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getSourceId("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Int32 GetLineNumberImpl(ConsoleMessagePeer* peer) + Ark_Int32 GetLineNumberImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) return 0; @@ -31057,7 +31230,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetMessageLevelImpl(ConsoleMessagePeer* peer) + Ark_MessageLevel GetMessageLevelImpl(Ark_ConsoleMessage peer) { if (!needGroupedLog(1)) return {}; @@ -31069,7 +31242,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ConsoleMessageAccessor namespace WebResourceRequestAccessor { - void DestroyPeerImpl(WebResourceRequestPeer* peer) + void DestroyPeerImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return; @@ -31080,12 +31253,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebResourceRequest CtorImpl() { if (!needGroupedLog(1)) - return (WebResourceRequestPeer*) 100; + return (Ark_WebResourceRequest) 100; string out("new WebResourceRequest("); out.append(") \n"); - out.append("[return (WebResourceRequestPeer*) 100] \n"); + out.append("[return (Ark_WebResourceRequest) 100] \n"); appendGroupedLog(1, out); - return (WebResourceRequestPeer*) 100; + return (Ark_WebResourceRequest) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31097,23 +31270,27 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetRequestHeaderImpl(WebResourceRequestPeer* peer) + Array_Header GetRequestHeaderImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getRequestHeader("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetRequestUrlImpl(WebResourceRequestPeer* peer) + Ark_String GetRequestUrlImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getRequestUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Boolean IsRequestGestureImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsRequestGestureImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return 0; @@ -31123,7 +31300,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean IsMainFrameImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsMainFrameImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return 0; @@ -31133,7 +31310,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean IsRedirectImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsRedirectImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) return 0; @@ -31143,17 +31320,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void GetRequestMethodImpl(WebResourceRequestPeer* peer) + Ark_String GetRequestMethodImpl(Ark_WebResourceRequest peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getRequestMethod("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // WebResourceRequestAccessor namespace WebResourceResponseAccessor { - void DestroyPeerImpl(WebResourceResponsePeer* peer) + void DestroyPeerImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return; @@ -31164,12 +31343,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebResourceResponse CtorImpl() { if (!needGroupedLog(1)) - return (WebResourceResponsePeer*) 100; + return (Ark_WebResourceResponse) 100; string out("new WebResourceResponse("); out.append(") \n"); - out.append("[return (WebResourceResponsePeer*) 100] \n"); + out.append("[return (Ark_WebResourceResponse) 100] \n"); appendGroupedLog(1, out); - return (WebResourceResponsePeer*) 100; + return (Ark_WebResourceResponse) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31181,57 +31360,67 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetResponseDataImpl(WebResourceResponsePeer* peer) + Ark_String GetResponseDataImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getResponseData("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NativePointer GetResponseDataExImpl(WebResourceResponsePeer* peer) + Opt_Union_String_Number_Buffer_Resource GetResponseDataExImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return 0; + return {}; string out("getResponseDataEx("); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - void GetResponseEncodingImpl(WebResourceResponsePeer* peer) + Ark_String GetResponseEncodingImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getResponseEncoding("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetResponseMimeTypeImpl(WebResourceResponsePeer* peer) + Ark_String GetResponseMimeTypeImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getResponseMimeType("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetReasonMessageImpl(WebResourceResponsePeer* peer) + Ark_String GetReasonMessageImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getReasonMessage("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetResponseHeaderImpl(WebResourceResponsePeer* peer) + Array_Header GetResponseHeaderImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getResponseHeader("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Int32 GetResponseCodeImpl(WebResourceResponsePeer* peer) + Ark_Int32 GetResponseCodeImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return 0; @@ -31241,7 +31430,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void SetResponseDataImpl(WebResourceResponsePeer* peer, + void SetResponseDataImpl(Ark_WebResourceResponse peer, const Ark_Union_String_Number_Resource_Buffer* data) { if (!needGroupedLog(1)) @@ -31251,7 +31440,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseEncodingImpl(WebResourceResponsePeer* peer, + void SetResponseEncodingImpl(Ark_WebResourceResponse peer, const Ark_String* encoding) { if (!needGroupedLog(1)) @@ -31261,7 +31450,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseMimeTypeImpl(WebResourceResponsePeer* peer, + void SetResponseMimeTypeImpl(Ark_WebResourceResponse peer, const Ark_String* mimeType) { if (!needGroupedLog(1)) @@ -31271,7 +31460,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetReasonMessageImpl(WebResourceResponsePeer* peer, + void SetReasonMessageImpl(Ark_WebResourceResponse peer, const Ark_String* reason) { if (!needGroupedLog(1)) @@ -31281,7 +31470,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseHeaderImpl(WebResourceResponsePeer* peer, + void SetResponseHeaderImpl(Ark_WebResourceResponse peer, const Array_Header* header) { if (!needGroupedLog(1)) @@ -31291,7 +31480,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseCodeImpl(WebResourceResponsePeer* peer, + void SetResponseCodeImpl(Ark_WebResourceResponse peer, const Ark_Number* code) { if (!needGroupedLog(1)) @@ -31301,7 +31490,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetResponseIsReadyImpl(WebResourceResponsePeer* peer, + void SetResponseIsReadyImpl(Ark_WebResourceResponse peer, Ark_Boolean IsReady) { if (!needGroupedLog(1)) @@ -31311,7 +31500,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean GetResponseIsReadyImpl(WebResourceResponsePeer* peer) + Ark_Boolean GetResponseIsReadyImpl(Ark_WebResourceResponse peer) { if (!needGroupedLog(1)) return 0; @@ -31323,7 +31512,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebResourceResponseAccessor namespace WebResourceErrorAccessor { - void DestroyPeerImpl(WebResourceErrorPeer* peer) + void DestroyPeerImpl(Ark_WebResourceError peer) { if (!needGroupedLog(1)) return; @@ -31334,12 +31523,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebResourceError CtorImpl() { if (!needGroupedLog(1)) - return (WebResourceErrorPeer*) 100; + return (Ark_WebResourceError) 100; string out("new WebResourceError("); out.append(") \n"); - out.append("[return (WebResourceErrorPeer*) 100] \n"); + out.append("[return (Ark_WebResourceError) 100] \n"); appendGroupedLog(1, out); - return (WebResourceErrorPeer*) 100; + return (Ark_WebResourceError) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31351,15 +31540,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetErrorInfoImpl(WebResourceErrorPeer* peer) + Ark_String GetErrorInfoImpl(Ark_WebResourceError peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getErrorInfo("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Int32 GetErrorCodeImpl(WebResourceErrorPeer* peer) + Ark_Int32 GetErrorCodeImpl(Ark_WebResourceError peer) { if (!needGroupedLog(1)) return 0; @@ -31371,7 +31562,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebResourceErrorAccessor namespace JsGeolocationAccessor { - void DestroyPeerImpl(JsGeolocationPeer* peer) + void DestroyPeerImpl(Ark_JsGeolocation peer) { if (!needGroupedLog(1)) return; @@ -31382,12 +31573,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_JsGeolocation CtorImpl() { if (!needGroupedLog(1)) - return (JsGeolocationPeer*) 100; + return (Ark_JsGeolocation) 100; string out("new JsGeolocation("); out.append(") \n"); - out.append("[return (JsGeolocationPeer*) 100] \n"); + out.append("[return (Ark_JsGeolocation) 100] \n"); appendGroupedLog(1, out); - return (JsGeolocationPeer*) 100; + return (Ark_JsGeolocation) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31399,7 +31590,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void InvokeImpl(JsGeolocationPeer* peer, + void InvokeImpl(Ark_JsGeolocation peer, const Ark_String* origin, Ark_Boolean allow, Ark_Boolean retain) @@ -31417,7 +31608,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // JsGeolocationAccessor namespace WebCookieAccessor { - void DestroyPeerImpl(WebCookiePeer* peer) + void DestroyPeerImpl(Ark_WebCookie peer) { if (!needGroupedLog(1)) return; @@ -31428,12 +31619,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebCookie CtorImpl() { if (!needGroupedLog(1)) - return (WebCookiePeer*) 100; + return (Ark_WebCookie) 100; string out("new WebCookie("); out.append(") \n"); - out.append("[return (WebCookiePeer*) 100] \n"); + out.append("[return (Ark_WebCookie) 100] \n"); appendGroupedLog(1, out); - return (WebCookiePeer*) 100; + return (Ark_WebCookie) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31445,7 +31636,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetCookieImpl(WebCookiePeer* peer) + void SetCookieImpl(Ark_WebCookie peer) { if (!needGroupedLog(1)) return; @@ -31453,7 +31644,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SaveCookieImpl(WebCookiePeer* peer) + void SaveCookieImpl(Ark_WebCookie peer) { if (!needGroupedLog(1)) return; @@ -31463,7 +31654,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WebCookieAccessor namespace EventResultAccessor { - void DestroyPeerImpl(EventResultPeer* peer) + void DestroyPeerImpl(Ark_EventResult peer) { if (!needGroupedLog(1)) return; @@ -31474,12 +31665,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_EventResult CtorImpl() { if (!needGroupedLog(1)) - return (EventResultPeer*) 100; + return (Ark_EventResult) 100; string out("new EventResult("); out.append(") \n"); - out.append("[return (EventResultPeer*) 100] \n"); + out.append("[return (Ark_EventResult) 100] \n"); appendGroupedLog(1, out); - return (EventResultPeer*) 100; + return (Ark_EventResult) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31491,7 +31682,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetGestureEventResultImpl(EventResultPeer* peer, + void SetGestureEventResultImpl(Ark_EventResult peer, Ark_Boolean result) { if (!needGroupedLog(1)) @@ -31503,7 +31694,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EventResultAccessor namespace WebControllerAccessor { - void DestroyPeerImpl(WebControllerPeer* peer) + void DestroyPeerImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31514,12 +31705,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WebController CtorImpl() { if (!needGroupedLog(1)) - return (WebControllerPeer*) 100; + return (Ark_WebController) 100; string out("new WebController("); out.append(") \n"); - out.append("[return (WebControllerPeer*) 100] \n"); + out.append("[return (Ark_WebController) 100] \n"); appendGroupedLog(1, out); - return (WebControllerPeer*) 100; + return (Ark_WebController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31531,7 +31722,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void OnInactiveImpl(WebControllerPeer* peer) + void OnInactiveImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31539,7 +31730,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnActiveImpl(WebControllerPeer* peer) + void OnActiveImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31547,7 +31738,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ZoomImpl(WebControllerPeer* peer, + void ZoomImpl(Ark_WebController peer, const Ark_Number* factor) { if (!needGroupedLog(1)) @@ -31557,7 +31748,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearHistoryImpl(WebControllerPeer* peer) + void ClearHistoryImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31565,7 +31756,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RunJavaScriptImpl(WebControllerPeer* peer, + void RunJavaScriptImpl(Ark_WebController peer, const Ark_Literal_String_script_Callback_String_Void_callback_* options) { if (!needGroupedLog(1)) @@ -31575,7 +31766,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void LoadDataImpl(WebControllerPeer* peer, + void LoadDataImpl(Ark_WebController peer, const Ark_Literal_String_baseUrl_data_encoding_historyUrl_mimeType* options) { if (!needGroupedLog(1)) @@ -31585,7 +31776,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void LoadUrlImpl(WebControllerPeer* peer, + void LoadUrlImpl(Ark_WebController peer, const Ark_Literal_Union_String_Resource_url_Array_Header_headers* options) { if (!needGroupedLog(1)) @@ -31595,7 +31786,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RefreshImpl(WebControllerPeer* peer) + void RefreshImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31603,7 +31794,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImpl(WebControllerPeer* peer) + void StopImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31611,7 +31802,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RegisterJavaScriptProxyImpl(WebControllerPeer* peer, + void RegisterJavaScriptProxyImpl(Ark_WebController peer, const Ark_Literal_Object_object__String_name_Array_String_methodList* options) { if (!needGroupedLog(1)) @@ -31621,7 +31812,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void DeleteJavaScriptRegisterImpl(WebControllerPeer* peer, + void DeleteJavaScriptRegisterImpl(Ark_WebController peer, const Ark_String* name) { if (!needGroupedLog(1)) @@ -31631,7 +31822,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetHitTestImpl(WebControllerPeer* peer) + Ark_HitTestType GetHitTestImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return {}; @@ -31641,7 +31832,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void RequestFocusImpl(WebControllerPeer* peer) + void RequestFocusImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31649,7 +31840,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Boolean AccessBackwardImpl(WebControllerPeer* peer) + Ark_Boolean AccessBackwardImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return 0; @@ -31659,7 +31850,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean AccessForwardImpl(WebControllerPeer* peer) + Ark_Boolean AccessForwardImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return 0; @@ -31669,7 +31860,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean AccessStepImpl(WebControllerPeer* peer, + Ark_Boolean AccessStepImpl(Ark_WebController peer, const Ark_Number* step) { if (!needGroupedLog(1)) @@ -31681,7 +31872,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void BackwardImpl(WebControllerPeer* peer) + void BackwardImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31689,7 +31880,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ForwardImpl(WebControllerPeer* peer) + void ForwardImpl(Ark_WebController peer) { if (!needGroupedLog(1)) return; @@ -31697,19 +31888,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_WebCookie GetCookieManagerImpl(WebControllerPeer* peer) + Ark_WebCookie GetCookieManagerImpl(Ark_WebController peer) { if (!needGroupedLog(1)) - return {}; + return (Ark_WebCookie) 300; string out("getCookieManager("); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_WebCookie) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_WebCookie) 300; } } // WebControllerAccessor namespace XComponentControllerAccessor { - void DestroyPeerImpl(XComponentControllerPeer* peer) + void DestroyPeerImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return; @@ -31720,12 +31911,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_XComponentController CtorImpl() { if (!needGroupedLog(1)) - return (XComponentControllerPeer*) 100; + return (Ark_XComponentController) 100; string out("new XComponentController("); out.append(") \n"); - out.append("[return (XComponentControllerPeer*) 100] \n"); + out.append("[return (Ark_XComponentController) 100] \n"); appendGroupedLog(1, out); - return (XComponentControllerPeer*) 100; + return (Ark_XComponentController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31737,15 +31928,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetXComponentSurfaceIdImpl(XComponentControllerPeer* peer) + Ark_String GetXComponentSurfaceIdImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getXComponentSurfaceId("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_NativePointer GetXComponentContextImpl(XComponentControllerPeer* peer) + Ark_CustomObject GetXComponentContextImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return {}; @@ -31755,7 +31948,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetXComponentSurfaceSizeImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceSizeImpl(Ark_XComponentController peer, const Ark_Literal_Number_surfaceHeight_surfaceWidth* value) { if (!needGroupedLog(1)) @@ -31765,7 +31958,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetXComponentSurfaceRectImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceRectImpl(Ark_XComponentController peer, const Ark_SurfaceRect* rect) { if (!needGroupedLog(1)) @@ -31775,7 +31968,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetXComponentSurfaceRectImpl(XComponentControllerPeer* peer) + Ark_SurfaceRect GetXComponentSurfaceRectImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return {}; @@ -31785,7 +31978,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void SetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceRotationImpl(Ark_XComponentController peer, const Ark_SurfaceRotationOptions* rotationOptions) { if (!needGroupedLog(1)) @@ -31795,7 +31988,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer) + Ark_SurfaceRotationOptions GetXComponentSurfaceRotationImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return {}; @@ -31805,7 +31998,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void OnSurfaceCreatedImpl(XComponentControllerPeer* peer, + void OnSurfaceCreatedImpl(Ark_XComponentController peer, const Ark_String* surfaceId) { if (!needGroupedLog(1)) @@ -31815,7 +32008,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnSurfaceChangedImpl(XComponentControllerPeer* peer, + void OnSurfaceChangedImpl(Ark_XComponentController peer, const Ark_String* surfaceId, const Ark_SurfaceRect* rect) { @@ -31828,7 +32021,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnSurfaceDestroyedImpl(XComponentControllerPeer* peer, + void OnSurfaceDestroyedImpl(Ark_XComponentController peer, const Ark_String* surfaceId) { if (!needGroupedLog(1)) @@ -31838,7 +32031,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StartImageAnalyzerImpl(XComponentControllerPeer* peer, + void StartImageAnalyzerImpl(Ark_XComponentController peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { @@ -31851,7 +32044,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImageAnalyzerImpl(XComponentControllerPeer* peer) + void StopImageAnalyzerImpl(Ark_XComponentController peer) { if (!needGroupedLog(1)) return; @@ -31861,7 +32054,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // XComponentControllerAccessor namespace WaterFlowSectionsAccessor { - void DestroyPeerImpl(WaterFlowSectionsPeer* peer) + void DestroyPeerImpl(Ark_WaterFlowSections peer) { if (!needGroupedLog(1)) return; @@ -31872,12 +32065,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_WaterFlowSections CtorImpl() { if (!needGroupedLog(1)) - return (WaterFlowSectionsPeer*) 100; + return (Ark_WaterFlowSections) 100; string out("new WaterFlowSections("); out.append(") \n"); - out.append("[return (WaterFlowSectionsPeer*) 100] \n"); + out.append("[return (Ark_WaterFlowSections) 100] \n"); appendGroupedLog(1, out); - return (WaterFlowSectionsPeer*) 100; + return (Ark_WaterFlowSections) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31889,7 +32082,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Boolean SpliceImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean SpliceImpl(Ark_WaterFlowSections peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_SectionOptions* sections) @@ -31907,7 +32100,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean PushImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean PushImpl(Ark_WaterFlowSections peer, const Ark_SectionOptions* section) { if (!needGroupedLog(1)) @@ -31919,7 +32112,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Boolean UpdateImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean UpdateImpl(Ark_WaterFlowSections peer, const Ark_Number* sectionIndex, const Ark_SectionOptions* section) { @@ -31934,15 +32127,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - void ValuesImpl(WaterFlowSectionsPeer* peer) + Array_SectionOptions ValuesImpl(Ark_WaterFlowSections peer) { if (!needGroupedLog(1)) - return; + return {}; string out("values("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Int32 LengthImpl(WaterFlowSectionsPeer* peer) + Ark_Int32 LengthImpl(Ark_WaterFlowSections peer) { if (!needGroupedLog(1)) return 0; @@ -31954,7 +32149,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // WaterFlowSectionsAccessor namespace UIExtensionProxyAccessor { - void DestroyPeerImpl(UIExtensionProxyPeer* peer) + void DestroyPeerImpl(Ark_UIExtensionProxy peer) { if (!needGroupedLog(1)) return; @@ -31965,12 +32160,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_UIExtensionProxy CtorImpl() { if (!needGroupedLog(1)) - return (UIExtensionProxyPeer*) 100; + return (Ark_UIExtensionProxy) 100; string out("new UIExtensionProxy("); out.append(") \n"); - out.append("[return (UIExtensionProxyPeer*) 100] \n"); + out.append("[return (Ark_UIExtensionProxy) 100] \n"); appendGroupedLog(1, out); - return (UIExtensionProxyPeer*) 100; + return (Ark_UIExtensionProxy) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -31982,7 +32177,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SendImpl(UIExtensionProxyPeer* peer, + void SendImpl(Ark_UIExtensionProxy peer, const Map_String_CustomObject* data) { if (!needGroupedLog(1)) @@ -31992,19 +32187,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer SendSyncImpl(UIExtensionProxyPeer* peer, - const Map_String_CustomObject* data) + Map_String_CustomObject SendSyncImpl(Ark_UIExtensionProxy peer, + const Map_String_CustomObject* data) { if (!needGroupedLog(1)) - return 0; + return {}; string out("sendSync("); WriteToString(&out, data); out.append(") \n"); - out.append("[return 0] \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); - return 0; + return {}; } - void OnAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OnAsyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_) { if (!needGroupedLog(1)) @@ -32014,7 +32209,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OnSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OnSyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_) { if (!needGroupedLog(1)) @@ -32024,7 +32219,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OffAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OffAsyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_) { if (!needGroupedLog(1)) @@ -32034,7 +32229,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void OffSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OffSyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_) { if (!needGroupedLog(1)) @@ -32046,7 +32241,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // UIExtensionProxyAccessor namespace StyledStringAccessor { - void DestroyPeerImpl(StyledStringPeer* peer) + void DestroyPeerImpl(Ark_StyledString peer) { if (!needGroupedLog(1)) return; @@ -32058,15 +32253,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Array_StyleOptions* styles) { if (!needGroupedLog(1)) - return (StyledStringPeer*) 100; + return (Ark_StyledString) 100; string out("new StyledString("); WriteToString(&out, value); out.append(", "); WriteToString(&out, styles); out.append(") \n"); - out.append("[return (StyledStringPeer*) 100] \n"); + out.append("[return (Ark_StyledString) 100] \n"); appendGroupedLog(1, out); - return (StyledStringPeer*) 100; + return (Ark_StyledString) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32078,21 +32273,23 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetStringImpl(StyledStringPeer* peer) + Ark_String GetStringImpl(Ark_StyledString peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getString("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void GetStylesImpl(StyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - const Opt_StyledStringKey* styledKey) + Array_SpanStyle GetStylesImpl(Ark_StyledString peer, + const Ark_Number* start, + const Ark_Number* length, + const Opt_StyledStringKey* styledKey) { if (!needGroupedLog(1)) - return; + return {}; string out("getStyles("); WriteToString(&out, start); out.append(", "); @@ -32100,9 +32297,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(", "); WriteToString(&out, styledKey); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Boolean EqualsImpl(StyledStringPeer* peer, + Ark_Boolean EqualsImpl(Ark_StyledString peer, Ark_StyledString other) { if (!needGroupedLog(1)) @@ -32114,20 +32313,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_StyledString SubStyledStringImpl(StyledStringPeer* peer, + Ark_StyledString SubStyledStringImpl(Ark_StyledString peer, const Ark_Number* start, const Opt_Number* length) { if (!needGroupedLog(1)) - return {}; + return (Ark_StyledString) 300; string out("subStyledString("); WriteToString(&out, start); out.append(", "); WriteToString(&out, length); out.append(") \n"); - out.append("[return {}] \n"); + out.append("[return (Ark_StyledString) 300] \n"); appendGroupedLog(1, out); - return {}; + return (Ark_StyledString) 300; } void FromHtmlImpl(const Ark_String* html, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -32141,23 +32340,27 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ToHtmlImpl(Ark_StyledString styledString) + Ark_String ToHtmlImpl(Ark_StyledString styledString) { if (!needGroupedLog(1)) - return; + return {}; string out("toHtml("); WriteToString(&out, styledString); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - void MarshallingImpl(Ark_StyledString styledString) + Ark_Buffer MarshallingImpl(Ark_StyledString styledString) { if (!needGroupedLog(1)) - return; + return {}; string out("marshalling("); WriteToString(&out, styledString); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } void UnmarshallingImpl(const Ark_Buffer* buffer, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) @@ -32171,7 +32374,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_Int32 GetLengthImpl(StyledStringPeer* peer) + Ark_Int32 GetLengthImpl(Ark_StyledString peer) { if (!needGroupedLog(1)) return 0; @@ -32183,7 +32386,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // StyledStringAccessor namespace TextStyle_styled_stringAccessor { - void DestroyPeerImpl(TextStyle_styled_stringPeer* peer) + void DestroyPeerImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) return; @@ -32194,13 +32397,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextStyle_styled_string CtorImpl(const Opt_TextStyleInterface* value) { if (!needGroupedLog(1)) - return (TextStyle_styled_stringPeer*) 100; + return (Ark_TextStyle_styled_string) 100; string out("new TextStyle_styled_string("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (TextStyle_styled_stringPeer*) 100] \n"); + out.append("[return (Ark_TextStyle_styled_string) 100] \n"); appendGroupedLog(1, out); - return (TextStyle_styled_stringPeer*) 100; + return (Ark_TextStyle_styled_string) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32212,15 +32415,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetFontFamilyImpl(TextStyle_styled_stringPeer* peer) + Ark_String GetFontFamilyImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getFontFamily("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } - Ark_Int32 GetFontSizeImpl(TextStyle_styled_stringPeer* peer) + Ark_Int32 GetFontSizeImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) return 0; @@ -32230,7 +32435,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetFontWeightImpl(TextStyle_styled_stringPeer* peer) + Ark_Int32 GetFontWeightImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) return 0; @@ -32240,7 +32445,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetFontStyleImpl(TextStyle_styled_stringPeer* peer) + Ark_FontStyle GetFontStyleImpl(Ark_TextStyle_styled_string peer) { if (!needGroupedLog(1)) return {}; @@ -32252,7 +32457,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextStyle_styled_stringAccessor namespace DecorationStyleAccessor { - void DestroyPeerImpl(DecorationStylePeer* peer) + void DestroyPeerImpl(Ark_DecorationStyle peer) { if (!needGroupedLog(1)) return; @@ -32263,13 +32468,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_DecorationStyle CtorImpl(const Ark_DecorationStyleInterface* value) { if (!needGroupedLog(1)) - return (DecorationStylePeer*) 100; + return (Ark_DecorationStyle) 100; string out("new DecorationStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (DecorationStylePeer*) 100] \n"); + out.append("[return (Ark_DecorationStyle) 100] \n"); appendGroupedLog(1, out); - return (DecorationStylePeer*) 100; + return (Ark_DecorationStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32281,7 +32486,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetTypeImpl(DecorationStylePeer* peer) + Ark_TextDecorationType GetTypeImpl(Ark_DecorationStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32291,7 +32496,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetStyleImpl(DecorationStylePeer* peer) + Ark_TextDecorationStyle GetStyleImpl(Ark_DecorationStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32303,7 +32508,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DecorationStyleAccessor namespace BaselineOffsetStyleAccessor { - void DestroyPeerImpl(BaselineOffsetStylePeer* peer) + void DestroyPeerImpl(Ark_BaselineOffsetStyle peer) { if (!needGroupedLog(1)) return; @@ -32314,13 +32519,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_BaselineOffsetStyle CtorImpl(Ark_LengthMetrics value) { if (!needGroupedLog(1)) - return (BaselineOffsetStylePeer*) 100; + return (Ark_BaselineOffsetStyle) 100; string out("new BaselineOffsetStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (BaselineOffsetStylePeer*) 100] \n"); + out.append("[return (Ark_BaselineOffsetStyle) 100] \n"); appendGroupedLog(1, out); - return (BaselineOffsetStylePeer*) 100; + return (Ark_BaselineOffsetStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32332,7 +32537,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetBaselineOffsetImpl(BaselineOffsetStylePeer* peer) + Ark_Int32 GetBaselineOffsetImpl(Ark_BaselineOffsetStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32344,7 +32549,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BaselineOffsetStyleAccessor namespace LetterSpacingStyleAccessor { - void DestroyPeerImpl(LetterSpacingStylePeer* peer) + void DestroyPeerImpl(Ark_LetterSpacingStyle peer) { if (!needGroupedLog(1)) return; @@ -32355,13 +32560,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LetterSpacingStyle CtorImpl(Ark_LengthMetrics value) { if (!needGroupedLog(1)) - return (LetterSpacingStylePeer*) 100; + return (Ark_LetterSpacingStyle) 100; string out("new LetterSpacingStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (LetterSpacingStylePeer*) 100] \n"); + out.append("[return (Ark_LetterSpacingStyle) 100] \n"); appendGroupedLog(1, out); - return (LetterSpacingStylePeer*) 100; + return (Ark_LetterSpacingStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32373,7 +32578,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetLetterSpacingImpl(LetterSpacingStylePeer* peer) + Ark_Int32 GetLetterSpacingImpl(Ark_LetterSpacingStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32385,7 +32590,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LetterSpacingStyleAccessor namespace TextShadowStyleAccessor { - void DestroyPeerImpl(TextShadowStylePeer* peer) + void DestroyPeerImpl(Ark_TextShadowStyle peer) { if (!needGroupedLog(1)) return; @@ -32396,13 +32601,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_TextShadowStyle CtorImpl(const Ark_Union_ShadowOptions_Array_ShadowOptions* value) { if (!needGroupedLog(1)) - return (TextShadowStylePeer*) 100; + return (Ark_TextShadowStyle) 100; string out("new TextShadowStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (TextShadowStylePeer*) 100] \n"); + out.append("[return (Ark_TextShadowStyle) 100] \n"); appendGroupedLog(1, out); - return (TextShadowStylePeer*) 100; + return (Ark_TextShadowStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32414,9 +32619,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } + Array_ShadowOptions GetTextShadowImpl(Ark_TextShadowStyle peer) + { + if (!needGroupedLog(1)) + return {}; + string out("getTextShadow("); + out.append(") \n"); + out.append("[return {}] \n"); + appendGroupedLog(1, out); + return {}; + } } // TextShadowStyleAccessor namespace BackgroundColorStyleAccessor { - void DestroyPeerImpl(BackgroundColorStylePeer* peer) + void DestroyPeerImpl(Ark_BackgroundColorStyle peer) { if (!needGroupedLog(1)) return; @@ -32427,13 +32642,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_BackgroundColorStyle CtorImpl(const Ark_TextBackgroundStyle* textBackgroundStyle) { if (!needGroupedLog(1)) - return (BackgroundColorStylePeer*) 100; + return (Ark_BackgroundColorStyle) 100; string out("new BackgroundColorStyle("); WriteToString(&out, textBackgroundStyle); out.append(") \n"); - out.append("[return (BackgroundColorStylePeer*) 100] \n"); + out.append("[return (Ark_BackgroundColorStyle) 100] \n"); appendGroupedLog(1, out); - return (BackgroundColorStylePeer*) 100; + return (Ark_BackgroundColorStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32447,7 +32662,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BackgroundColorStyleAccessor namespace GestureStyleAccessor { - void DestroyPeerImpl(GestureStylePeer* peer) + void DestroyPeerImpl(Ark_GestureStyle peer) { if (!needGroupedLog(1)) return; @@ -32458,13 +32673,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_GestureStyle CtorImpl(const Opt_GestureStyleInterface* value) { if (!needGroupedLog(1)) - return (GestureStylePeer*) 100; + return (Ark_GestureStyle) 100; string out("new GestureStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (GestureStylePeer*) 100] \n"); + out.append("[return (Ark_GestureStyle) 100] \n"); appendGroupedLog(1, out); - return (GestureStylePeer*) 100; + return (Ark_GestureStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32478,7 +32693,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GestureStyleAccessor namespace ParagraphStyleAccessor { - void DestroyPeerImpl(ParagraphStylePeer* peer) + void DestroyPeerImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return; @@ -32489,13 +32704,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ParagraphStyle CtorImpl(const Opt_ParagraphStyleInterface* value) { if (!needGroupedLog(1)) - return (ParagraphStylePeer*) 100; + return (Ark_ParagraphStyle) 100; string out("new ParagraphStyle("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (ParagraphStylePeer*) 100] \n"); + out.append("[return (Ark_ParagraphStyle) 100] \n"); appendGroupedLog(1, out); - return (ParagraphStylePeer*) 100; + return (Ark_ParagraphStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32507,7 +32722,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetTextAlignImpl(ParagraphStylePeer* peer) + Ark_TextAlign GetTextAlignImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32517,7 +32732,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_Int32 GetTextIndentImpl(ParagraphStylePeer* peer) + Ark_Int32 GetTextIndentImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32527,7 +32742,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_Int32 GetMaxLinesImpl(ParagraphStylePeer* peer) + Ark_Int32 GetMaxLinesImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32537,7 +32752,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return 0; } - Ark_NativePointer GetOverflowImpl(ParagraphStylePeer* peer) + Ark_TextOverflow GetOverflowImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32547,7 +32762,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetWordBreakImpl(ParagraphStylePeer* peer) + Ark_WordBreak GetWordBreakImpl(Ark_ParagraphStyle peer) { if (!needGroupedLog(1)) return {}; @@ -32559,7 +32774,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ParagraphStyleAccessor namespace LineHeightStyleAccessor { - void DestroyPeerImpl(LineHeightStylePeer* peer) + void DestroyPeerImpl(Ark_LineHeightStyle peer) { if (!needGroupedLog(1)) return; @@ -32570,13 +32785,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LineHeightStyle CtorImpl(Ark_LengthMetrics lineHeight) { if (!needGroupedLog(1)) - return (LineHeightStylePeer*) 100; + return (Ark_LineHeightStyle) 100; string out("new LineHeightStyle("); WriteToString(&out, lineHeight); out.append(") \n"); - out.append("[return (LineHeightStylePeer*) 100] \n"); + out.append("[return (Ark_LineHeightStyle) 100] \n"); appendGroupedLog(1, out); - return (LineHeightStylePeer*) 100; + return (Ark_LineHeightStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32588,7 +32803,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_Int32 GetLineHeightImpl(LineHeightStylePeer* peer) + Ark_Int32 GetLineHeightImpl(Ark_LineHeightStyle peer) { if (!needGroupedLog(1)) return 0; @@ -32600,7 +32815,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LineHeightStyleAccessor namespace UrlStyleAccessor { - void DestroyPeerImpl(UrlStylePeer* peer) + void DestroyPeerImpl(Ark_UrlStyle peer) { if (!needGroupedLog(1)) return; @@ -32611,13 +32826,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_UrlStyle CtorImpl(const Ark_String* url) { if (!needGroupedLog(1)) - return (UrlStylePeer*) 100; + return (Ark_UrlStyle) 100; string out("new UrlStyle("); WriteToString(&out, url); out.append(") \n"); - out.append("[return (UrlStylePeer*) 100] \n"); + out.append("[return (Ark_UrlStyle) 100] \n"); appendGroupedLog(1, out); - return (UrlStylePeer*) 100; + return (Ark_UrlStyle) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32629,17 +32844,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void GetUrlImpl(UrlStylePeer* peer) + Ark_String GetUrlImpl(Ark_UrlStyle peer) { if (!needGroupedLog(1)) - return; + return {}; string out("getUrl("); out.append(") \n"); + out.append("[return {}] \n"); appendGroupedLog(1, out); + return {}; } } // UrlStyleAccessor namespace MutableStyledStringAccessor { - void DestroyPeerImpl(MutableStyledStringPeer* peer) + void DestroyPeerImpl(Ark_MutableStyledString peer) { if (!needGroupedLog(1)) return; @@ -32650,12 +32867,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_MutableStyledString CtorImpl() { if (!needGroupedLog(1)) - return (MutableStyledStringPeer*) 100; + return (Ark_MutableStyledString) 100; string out("new MutableStyledString("); out.append(") \n"); - out.append("[return (MutableStyledStringPeer*) 100] \n"); + out.append("[return (Ark_MutableStyledString) 100] \n"); appendGroupedLog(1, out); - return (MutableStyledStringPeer*) 100; + return (Ark_MutableStyledString) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32667,7 +32884,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void ReplaceStringImpl(MutableStyledStringPeer* peer, + void ReplaceStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, const Ark_String* other) @@ -32683,7 +32900,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InsertStringImpl(MutableStyledStringPeer* peer, + void InsertStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_String* other) { @@ -32696,7 +32913,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RemoveStringImpl(MutableStyledStringPeer* peer, + void RemoveStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length) { @@ -32709,7 +32926,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplaceStyleImpl(MutableStyledStringPeer* peer, + void ReplaceStyleImpl(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle) { if (!needGroupedLog(1)) @@ -32719,7 +32936,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetStyleImpl(MutableStyledStringPeer* peer, + void SetStyleImpl(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle) { if (!needGroupedLog(1)) @@ -32729,7 +32946,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RemoveStyleImpl(MutableStyledStringPeer* peer, + void RemoveStyleImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledStringKey styledKey) @@ -32745,7 +32962,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void RemoveStylesImpl(MutableStyledStringPeer* peer, + void RemoveStylesImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length) { @@ -32758,7 +32975,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ClearStylesImpl(MutableStyledStringPeer* peer) + void ClearStylesImpl(Ark_MutableStyledString peer) { if (!needGroupedLog(1)) return; @@ -32766,7 +32983,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void ReplaceStyledStringImpl(MutableStyledStringPeer* peer, + void ReplaceStyledStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledString other) @@ -32782,7 +32999,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InsertStyledStringImpl(MutableStyledStringPeer* peer, + void InsertStyledStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, Ark_StyledString other) { @@ -32795,7 +33012,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void AppendStyledStringImpl(MutableStyledStringPeer* peer, + void AppendStyledStringImpl(Ark_MutableStyledString peer, Ark_StyledString other) { if (!needGroupedLog(1)) @@ -32807,7 +33024,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // MutableStyledStringAccessor namespace ImageAttachmentAccessor { - void DestroyPeerImpl(ImageAttachmentPeer* peer) + void DestroyPeerImpl(Ark_ImageAttachment peer) { if (!needGroupedLog(1)) return; @@ -32818,13 +33035,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_ImageAttachment CtorImpl(const Ark_ImageAttachmentInterface* value) { if (!needGroupedLog(1)) - return (ImageAttachmentPeer*) 100; + return (Ark_ImageAttachment) 100; string out("new ImageAttachment("); WriteToString(&out, value); out.append(") \n"); - out.append("[return (ImageAttachmentPeer*) 100] \n"); + out.append("[return (Ark_ImageAttachment) 100] \n"); appendGroupedLog(1, out); - return (ImageAttachmentPeer*) 100; + return (Ark_ImageAttachment) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32836,7 +33053,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer GetVerticalAlignImpl(ImageAttachmentPeer* peer) + Ark_ImageSpanAlignment GetVerticalAlignImpl(Ark_ImageAttachment peer) { if (!needGroupedLog(1)) return {}; @@ -32846,7 +33063,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - Ark_NativePointer GetObjectFitImpl(ImageAttachmentPeer* peer) + Ark_ImageFit GetObjectFitImpl(Ark_ImageAttachment peer) { if (!needGroupedLog(1)) return {}; @@ -32858,7 +33075,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ImageAttachmentAccessor namespace CustomSpanAccessor { - void DestroyPeerImpl(CustomSpanPeer* peer) + void DestroyPeerImpl(Ark_CustomSpan peer) { if (!needGroupedLog(1)) return; @@ -32869,12 +33086,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_CustomSpan CtorImpl() { if (!needGroupedLog(1)) - return (CustomSpanPeer*) 100; + return (Ark_CustomSpan) 100; string out("new CustomSpan("); out.append(") \n"); - out.append("[return (CustomSpanPeer*) 100] \n"); + out.append("[return (Ark_CustomSpan) 100] \n"); appendGroupedLog(1, out); - return (CustomSpanPeer*) 100; + return (Ark_CustomSpan) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32886,8 +33103,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - Ark_NativePointer OnMeasureImpl(CustomSpanPeer* peer, - const Ark_CustomSpanMeasureInfo* measureInfo) + Ark_CustomSpanMetrics OnMeasureImpl(Ark_CustomSpan peer, + const Ark_CustomSpanMeasureInfo* measureInfo) { if (!needGroupedLog(1)) return {}; @@ -32898,7 +33115,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return {}; } - void OnDrawImpl(CustomSpanPeer* peer, + void OnDrawImpl(Ark_CustomSpan peer, const Ark_DrawContext* context, const Ark_CustomSpanDrawInfo* drawInfo) { @@ -32911,7 +33128,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void InvalidateImpl(CustomSpanPeer* peer) + void InvalidateImpl(Ark_CustomSpan peer) { if (!needGroupedLog(1)) return; @@ -32921,7 +33138,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CustomSpanAccessor namespace LinearIndicatorControllerAccessor { - void DestroyPeerImpl(LinearIndicatorControllerPeer* peer) + void DestroyPeerImpl(Ark_LinearIndicatorController peer) { if (!needGroupedLog(1)) return; @@ -32932,12 +33149,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { Ark_LinearIndicatorController CtorImpl() { if (!needGroupedLog(1)) - return (LinearIndicatorControllerPeer*) 100; + return (Ark_LinearIndicatorController) 100; string out("new LinearIndicatorController("); out.append(") \n"); - out.append("[return (LinearIndicatorControllerPeer*) 100] \n"); + out.append("[return (Ark_LinearIndicatorController) 100] \n"); appendGroupedLog(1, out); - return (LinearIndicatorControllerPeer*) 100; + return (Ark_LinearIndicatorController) 100; } Ark_NativePointer GetFinalizerImpl() { @@ -32949,7 +33166,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); return fnPtr(dummyClassFinalizer); } - void SetProgressImpl(LinearIndicatorControllerPeer* peer, + void SetProgressImpl(Ark_LinearIndicatorController peer, const Ark_Number* index, const Ark_Number* progress) { @@ -32962,7 +33179,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StartImpl(LinearIndicatorControllerPeer* peer, + void StartImpl(Ark_LinearIndicatorController peer, const Opt_LinearIndicatorStartOptions* options) { if (!needGroupedLog(1)) @@ -32972,7 +33189,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void PauseImpl(LinearIndicatorControllerPeer* peer) + void PauseImpl(Ark_LinearIndicatorController peer) { if (!needGroupedLog(1)) return; @@ -32980,7 +33197,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void StopImpl(LinearIndicatorControllerPeer* peer) + void StopImpl(Ark_LinearIndicatorController peer) { if (!needGroupedLog(1)) return; @@ -32989,8 +33206,8 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // LinearIndicatorControllerAccessor - namespace GlobalScope_inspectorAccessor { - void DestroyPeerImpl(GlobalScope_inspectorPeer* peer) + namespace GlobalScope_Profiler_inspectorAccessor { + void DestroyPeerImpl(Ark_GlobalScope_Profiler_inspector peer) { if (!needGroupedLog(1)) return; @@ -32998,27 +33215,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - Ark_NativePointer GetInspectorNodesImpl() - { - if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; - string out("getInspectorNodes("); - out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); - appendGroupedLog(1, out); - return (Ark_NativePointer) 300; - } - Ark_NativePointer GetInspectorNodeByIdImpl(const Ark_Number* id) - { - if (!needGroupedLog(1)) - return (Ark_NativePointer) 300; - string out("getInspectorNodeById("); - WriteToString(&out, id); - out.append(") \n"); - out.append("[return (Ark_NativePointer) 300] \n"); - appendGroupedLog(1, out); - return (Ark_NativePointer) 300; - } void RegisterVsyncCallbackImpl(const Callback_String_Void* callback_) { if (!needGroupedLog(1)) @@ -33036,16 +33232,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { out.append(") \n"); appendGroupedLog(1, out); } - void SetAppBgColorImpl(const Ark_String* value) - { - if (!needGroupedLog(1)) - return; - string out("setAppBgColor("); - WriteToString(&out, value); - out.append(") \n"); - appendGroupedLog(1, out); - } - } // GlobalScope_inspectorAccessor + } // GlobalScope_Profiler_inspectorAccessor const GENERATED_ArkUIAnimationExtenderAccessor* GetAnimationExtenderAccessor() { static const GENERATED_ArkUIAnimationExtenderAccessor AnimationExtenderAccessorImpl { @@ -33096,6 +33283,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct LazyForEachOpsPeer { virtual ~LazyForEachOpsPeer() = default; }; + const GENERATED_ArkUISystemOpsAccessor* GetSystemOpsAccessor() + { + static const GENERATED_ArkUISystemOpsAccessor SystemOpsAccessorImpl { + SystemOpsAccessor::DestroyPeerImpl, + SystemOpsAccessor::CtorImpl, + SystemOpsAccessor::GetFinalizerImpl, + SystemOpsAccessor::StartFrameImpl, + SystemOpsAccessor::EndFrameImpl, + }; + return &SystemOpsAccessorImpl; + } + + struct SystemOpsPeer { + virtual ~SystemOpsPeer() = default; + }; const GENERATED_ArkUIDrawingCanvasAccessor* GetDrawingCanvasAccessor() { static const GENERATED_ArkUIDrawingCanvasAccessor DrawingCanvasAccessorImpl { @@ -33210,9 +33412,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { PixelMapAccessor::ReadPixelsToBufferSyncImpl, PixelMapAccessor::WriteBufferToPixelsImpl, PixelMapAccessor::GetIsEditableImpl, - PixelMapAccessor::SetIsEditableImpl, PixelMapAccessor::GetIsStrideAlignmentImpl, - PixelMapAccessor::SetIsStrideAlignmentImpl, }; return &PixelMapAccessorImpl; } @@ -33584,6 +33784,40 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct CanvasRenderingContext2DPeer { virtual ~CanvasRenderingContext2DPeer() = default; }; + const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor* GetOffscreenCanvasRenderingContext2DAccessor() + { + static const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor OffscreenCanvasRenderingContext2DAccessorImpl { + OffscreenCanvasRenderingContext2DAccessor::DestroyPeerImpl, + OffscreenCanvasRenderingContext2DAccessor::CtorImpl, + OffscreenCanvasRenderingContext2DAccessor::GetFinalizerImpl, + OffscreenCanvasRenderingContext2DAccessor::ToDataURLImpl, + OffscreenCanvasRenderingContext2DAccessor::TransferToImageBitmapImpl, + }; + return &OffscreenCanvasRenderingContext2DAccessorImpl; + } + + struct OffscreenCanvasRenderingContext2DPeer { + virtual ~OffscreenCanvasRenderingContext2DPeer() = default; + }; + const GENERATED_ArkUIOffscreenCanvasAccessor* GetOffscreenCanvasAccessor() + { + static const GENERATED_ArkUIOffscreenCanvasAccessor OffscreenCanvasAccessorImpl { + OffscreenCanvasAccessor::DestroyPeerImpl, + OffscreenCanvasAccessor::CtorImpl, + OffscreenCanvasAccessor::GetFinalizerImpl, + OffscreenCanvasAccessor::TransferToImageBitmapImpl, + OffscreenCanvasAccessor::GetContext2dImpl, + OffscreenCanvasAccessor::GetHeightImpl, + OffscreenCanvasAccessor::SetHeightImpl, + OffscreenCanvasAccessor::GetWidthImpl, + OffscreenCanvasAccessor::SetWidthImpl, + }; + return &OffscreenCanvasAccessorImpl; + } + + struct OffscreenCanvasPeer { + virtual ~OffscreenCanvasPeer() = default; + }; const GENERATED_ArkUIDrawingRenderingContextAccessor* GetDrawingRenderingContextAccessor() { static const GENERATED_ArkUIDrawingRenderingContextAccessor DrawingRenderingContextAccessorImpl { @@ -33650,6 +33884,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct TransitionEffectPeer { virtual ~TransitionEffectPeer() = default; }; + const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* GetGlobalScope_focusControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor GlobalScope_focusControl_commonAccessorImpl { + GlobalScope_focusControl_commonAccessor::DestroyPeerImpl, + GlobalScope_focusControl_commonAccessor::RequestFocusImpl, + }; + return &GlobalScope_focusControl_commonAccessorImpl; + } + + struct GlobalScope_focusControl_commonPeer { + virtual ~GlobalScope_focusControl_commonPeer() = default; + }; + const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* GetGlobalScope_cursorControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor GlobalScope_cursorControl_commonAccessorImpl { + GlobalScope_cursorControl_commonAccessor::DestroyPeerImpl, + GlobalScope_cursorControl_commonAccessor::SetCursorImpl, + GlobalScope_cursorControl_commonAccessor::RestoreDefaultImpl, + }; + return &GlobalScope_cursorControl_commonAccessorImpl; + } + + struct GlobalScope_cursorControl_commonPeer { + virtual ~GlobalScope_cursorControl_commonPeer() = default; + }; const GENERATED_ArkUIBaseEventAccessor* GetBaseEventAccessor() { static const GENERATED_ArkUIBaseEventAccessor BaseEventAccessorImpl { @@ -33800,7 +34059,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { TouchEventAccessor::GetHistoricalPointsImpl, TouchEventAccessor::GetTypeImpl, TouchEventAccessor::SetTypeImpl, + TouchEventAccessor::GetTouchesImpl, TouchEventAccessor::SetTouchesImpl, + TouchEventAccessor::GetChangedTouchesImpl, TouchEventAccessor::SetChangedTouchesImpl, TouchEventAccessor::GetStopPropagationImpl, TouchEventAccessor::SetStopPropagationImpl, @@ -34025,32 +34286,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIGlobalScope_commonAccessor* GetGlobalScope_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { - GlobalScope_commonAccessor::DestroyPeerImpl, - GlobalScope_commonAccessor::GetContextImpl, - GlobalScope_commonAccessor::PostCardActionImpl, - GlobalScope_commonAccessor::Dollar_rImpl, - GlobalScope_commonAccessor::Dollar_rawfileImpl, - GlobalScope_commonAccessor::AnimateToImpl, - GlobalScope_commonAccessor::AnimateToImmediatelyImpl, - GlobalScope_commonAccessor::Vp2pxImpl, - GlobalScope_commonAccessor::Px2vpImpl, - GlobalScope_commonAccessor::Fp2pxImpl, - GlobalScope_commonAccessor::Px2fpImpl, - GlobalScope_commonAccessor::Lpx2pxImpl, - GlobalScope_commonAccessor::Px2lpxImpl, - GlobalScope_commonAccessor::RequestFocusImpl, - GlobalScope_commonAccessor::SetCursorImpl, - GlobalScope_commonAccessor::RestoreDefaultImpl, - }; - return &GlobalScope_commonAccessorImpl; - } - - struct GlobalScope_commonPeer { - virtual ~GlobalScope_commonPeer() = default; - }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { static const GENERATED_ArkUIContextMenuAccessor ContextMenuAccessorImpl { @@ -34113,6 +34348,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { BaseGestureEventAccessor::DestroyPeerImpl, BaseGestureEventAccessor::CtorImpl, BaseGestureEventAccessor::GetFinalizerImpl, + BaseGestureEventAccessor::GetFingerListImpl, BaseGestureEventAccessor::SetFingerListImpl, }; return &BaseGestureEventAccessorImpl; @@ -34231,6 +34467,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GestureEventAccessor::GetFinalizerImpl, GestureEventAccessor::GetRepeatImpl, GestureEventAccessor::SetRepeatImpl, + GestureEventAccessor::GetFingerListImpl, GestureEventAccessor::SetFingerListImpl, GestureEventAccessor::GetOffsetXImpl, GestureEventAccessor::SetOffsetXImpl, @@ -35602,6 +35839,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextShadowStyleAccessor::DestroyPeerImpl, TextShadowStyleAccessor::CtorImpl, TextShadowStyleAccessor::GetFinalizerImpl, + TextShadowStyleAccessor::GetTextShadowImpl, }; return &TextShadowStyleAccessorImpl; } @@ -35753,21 +35991,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct LinearIndicatorControllerPeer { virtual ~LinearIndicatorControllerPeer() = default; }; - const GENERATED_ArkUIGlobalScope_inspectorAccessor* GetGlobalScope_inspectorAccessor() + const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor* GetGlobalScope_Profiler_inspectorAccessor() { - static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { - GlobalScope_inspectorAccessor::DestroyPeerImpl, - GlobalScope_inspectorAccessor::GetInspectorNodesImpl, - GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, - GlobalScope_inspectorAccessor::RegisterVsyncCallbackImpl, - GlobalScope_inspectorAccessor::UnregisterVsyncCallbackImpl, - GlobalScope_inspectorAccessor::SetAppBgColorImpl, + static const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor GlobalScope_Profiler_inspectorAccessorImpl { + GlobalScope_Profiler_inspectorAccessor::DestroyPeerImpl, + GlobalScope_Profiler_inspectorAccessor::RegisterVsyncCallbackImpl, + GlobalScope_Profiler_inspectorAccessor::UnregisterVsyncCallbackImpl, }; - return &GlobalScope_inspectorAccessorImpl; + return &GlobalScope_Profiler_inspectorAccessorImpl; } - struct GlobalScope_inspectorPeer { - virtual ~GlobalScope_inspectorPeer() = default; + struct GlobalScope_Profiler_inspectorPeer { + virtual ~GlobalScope_Profiler_inspectorPeer() = default; }; const GENERATED_ArkUIAccessors* GENERATED_GetArkUIAccessors() { @@ -35775,6 +36010,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetAnimationExtenderAccessor, GetUnifiedDataAccessor, GetLazyForEachOpsAccessor, + GetSystemOpsAccessor, GetDrawingCanvasAccessor, GetLengthMetricsAccessor, GetWebviewControllerAccessor, @@ -35801,10 +36037,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetRenderingContextSettingsAccessor, GetCanvasRendererAccessor, GetCanvasRenderingContext2DAccessor, + GetOffscreenCanvasRenderingContext2DAccessor, + GetOffscreenCanvasAccessor, GetDrawingRenderingContextAccessor, GetICurveAccessor, GetDrawModifierAccessor, GetTransitionEffectAccessor, + GetGlobalScope_focusControl_commonAccessor, + GetGlobalScope_cursorControl_commonAccessor, GetBaseEventAccessor, GetClickEventAccessor, GetHoverEventAccessor, @@ -35822,7 +36062,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, - GetGlobalScope_commonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetLinearGradientAccessor, @@ -35920,7 +36159,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetImageAttachmentAccessor, GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, - GetGlobalScope_inspectorAccessor, + GetGlobalScope_Profiler_inspectorAccessor, }; return &accessorsImpl; } diff --git a/arkoala/framework/native/src/generated/real_impl.cc b/arkoala/framework/native/src/generated/real_impl.cc index 6a098548032e878723dffd48132117eee59a1a55..9f222596045a1fa48733d23e1b98929479590c2a 100644 --- a/arkoala/framework/native/src/generated/real_impl.cc +++ b/arkoala/framework/native/src/generated/real_impl.cc @@ -10385,7 +10385,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { return &modifiersImpl; } namespace AnimationExtenderAccessor { - void DestroyPeerImpl(AnimationExtenderPeer* peer) + void DestroyPeerImpl(Ark_AnimationExtender peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10438,7 +10438,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AnimationExtenderAccessor namespace UnifiedDataAccessor { - void DestroyPeerImpl(UnifiedDataPeer* peer) + void DestroyPeerImpl(Ark_UnifiedData peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10453,19 +10453,49 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean HasTypeImpl(UnifiedDataPeer* peer, + Ark_Boolean HasTypeImpl(Ark_UnifiedData peer, const Ark_String* UnifiedData_type) { return {}; } - void GetTypesImpl(UnifiedDataPeer* peer) + Array_String GetTypesImpl(Ark_UnifiedData peer) { + return {}; } } // UnifiedDataAccessor namespace LazyForEachOpsAccessor { } // LazyForEachOpsAccessor + namespace SystemOpsAccessor { + void DestroyPeerImpl(Ark_SystemOps peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_SystemOps CtorImpl() + { + return new SystemOpsPeer(); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_NativePointer StartFrameImpl() + { + return {}; + } + void EndFrameImpl(Ark_NativePointer root) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(root); + //auto convValue = Converter::OptConvert(root); // for enums + //undefinedModelNG::SetEndFrame(frameNode, convValue); + } + } // SystemOpsAccessor namespace DrawingCanvasAccessor { - void DestroyPeerImpl(DrawingCanvasPeer* peer) + void DestroyPeerImpl(Ark_DrawingCanvas peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10480,7 +10510,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void DrawRectImpl(DrawingCanvasPeer* peer, + void DrawRectImpl(Ark_DrawingCanvas peer, const Ark_Number* left, const Ark_Number* top, const Ark_Number* right, @@ -10489,7 +10519,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DrawingCanvasAccessor namespace LengthMetricsAccessor { - void DestroyPeerImpl(LengthMetricsPeer* peer) + void DestroyPeerImpl(Ark_LengthMetrics peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10512,25 +10542,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_NativePointer GetUnitImpl(LengthMetricsPeer* peer) + Ark_LengthUnit GetUnitImpl(Ark_LengthMetrics peer) { return {}; } - void SetUnitImpl(LengthMetricsPeer* peer, + void SetUnitImpl(Ark_LengthMetrics peer, Ark_LengthUnit unit) { } - Ark_Int32 GetValueImpl(LengthMetricsPeer* peer) + Ark_Int32 GetValueImpl(Ark_LengthMetrics peer) { return {}; } - void SetValueImpl(LengthMetricsPeer* peer, + void SetValueImpl(Ark_LengthMetrics peer, const Ark_Number* value) { } } // LengthMetricsAccessor namespace WebviewControllerAccessor { - void DestroyPeerImpl(WebviewControllerPeer* peer) + void DestroyPeerImpl(Ark_WebviewController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10548,14 +10578,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { void InitializeWebEngineImpl() { } - void LoadUrlImpl(WebviewControllerPeer* peer, + void LoadUrlImpl(Ark_WebviewController peer, const Ark_Union_String_Resource* url, const Opt_Array_WebHeader* headers) { } } // WebviewControllerAccessor namespace GlobalScope_ohos_arkui_componentSnapshotAccessor { - void DestroyPeerImpl(GlobalScope_ohos_arkui_componentSnapshotPeer* peer) + void DestroyPeerImpl(Ark_GlobalScope_ohos_arkui_componentSnapshot peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10577,7 +10607,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GlobalScope_ohos_arkui_componentSnapshotAccessor namespace GlobalScope_ohos_arkui_performanceMonitorAccessor { - void DestroyPeerImpl(GlobalScope_ohos_arkui_performanceMonitorPeer* peer) + void DestroyPeerImpl(Ark_GlobalScope_ohos_arkui_performanceMonitor peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10607,7 +10637,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GlobalScope_ohos_arkui_performanceMonitorAccessor namespace FrameNodeAccessor { - void DestroyPeerImpl(FrameNodePeer* peer) + void DestroyPeerImpl(Ark_FrameNode peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10622,65 +10652,65 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean IsModifiableImpl(FrameNodePeer* peer) + Ark_Boolean IsModifiableImpl(Ark_FrameNode peer) { return {}; } - void AppendChildImpl(FrameNodePeer* peer, + void AppendChildImpl(Ark_FrameNode peer, Ark_FrameNode node) { } - void InsertChildAfterImpl(FrameNodePeer* peer, + void InsertChildAfterImpl(Ark_FrameNode peer, Ark_FrameNode child, Ark_FrameNode sibling) { } - void RemoveChildImpl(FrameNodePeer* peer, + void RemoveChildImpl(Ark_FrameNode peer, Ark_FrameNode node) { } - void ClearChildrenImpl(FrameNodePeer* peer) + void ClearChildrenImpl(Ark_FrameNode peer) { } - Ark_FrameNode GetChildImpl(FrameNodePeer* peer, + Ark_FrameNode GetChildImpl(Ark_FrameNode peer, const Ark_Number* index) { return {}; } - Ark_FrameNode GetFirstChildImpl(FrameNodePeer* peer) + Ark_FrameNode GetFirstChildImpl(Ark_FrameNode peer) { return {}; } - Ark_FrameNode GetNextSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetNextSiblingImpl(Ark_FrameNode peer) { return {}; } - Ark_FrameNode GetPreviousSiblingImpl(FrameNodePeer* peer) + Ark_FrameNode GetPreviousSiblingImpl(Ark_FrameNode peer) { return {}; } - Ark_FrameNode GetParentImpl(FrameNodePeer* peer) + Ark_FrameNode GetParentImpl(Ark_FrameNode peer) { return {}; } - Ark_Int32 GetChildrenCountImpl(FrameNodePeer* peer) + Ark_Int32 GetChildrenCountImpl(Ark_FrameNode peer) { return {}; } - void DisposeImpl(FrameNodePeer* peer) + void DisposeImpl(Ark_FrameNode peer) { } - Ark_Int32 GetOpacityImpl(FrameNodePeer* peer) + Ark_Int32 GetOpacityImpl(Ark_FrameNode peer) { return {}; } - Ark_NativePointer GetPositionToWindowWithTransformImpl(FrameNodePeer* peer) + Ark_Position GetPositionToWindowWithTransformImpl(Ark_FrameNode peer) { return {}; } } // FrameNodeAccessor namespace PixelMapAccessor { - void DestroyPeerImpl(PixelMapPeer* peer) + void DestroyPeerImpl(Ark_PixelMap peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10695,33 +10725,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ReadPixelsToBufferSyncImpl(PixelMapPeer* peer, + void ReadPixelsToBufferSyncImpl(Ark_PixelMap peer, const Ark_Buffer* dst) { } - void WriteBufferToPixelsImpl(PixelMapPeer* peer, + void WriteBufferToPixelsImpl(Ark_PixelMap peer, const Ark_Buffer* src) { } - Ark_Int32 GetIsEditableImpl(PixelMapPeer* peer) + Ark_Boolean GetIsEditableImpl(Ark_PixelMap peer) { return {}; } - void SetIsEditableImpl(PixelMapPeer* peer, - Ark_Int32 isEditable) - { - } - Ark_Int32 GetIsStrideAlignmentImpl(PixelMapPeer* peer) + Ark_Boolean GetIsStrideAlignmentImpl(Ark_PixelMap peer) { return {}; } - void SetIsStrideAlignmentImpl(PixelMapPeer* peer, - Ark_Int32 isStrideAlignment) - { - } } // PixelMapAccessor namespace NavExtenderAccessor { - void DestroyPeerImpl(NavExtenderPeer* peer) + void DestroyPeerImpl(Ark_NavExtender peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10742,7 +10764,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // NavExtenderAccessor namespace EventEmulatorAccessor { - void DestroyPeerImpl(EventEmulatorPeer* peer) + void DestroyPeerImpl(Ark_EventEmulator peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10777,7 +10799,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EventEmulatorAccessor namespace ActionSheetAccessor { - void DestroyPeerImpl(ActionSheetPeer* peer) + void DestroyPeerImpl(Ark_ActionSheet peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10797,7 +10819,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ActionSheetAccessor namespace AlertDialogAccessor { - void DestroyPeerImpl(AlertDialogPeer* peer) + void DestroyPeerImpl(Ark_AlertDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10817,7 +10839,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // AlertDialogAccessor namespace SpringPropAccessor { - void DestroyPeerImpl(SpringPropPeer* peer) + void DestroyPeerImpl(Ark_SpringProp peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10836,7 +10858,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SpringPropAccessor namespace SpringMotionAccessor { - void DestroyPeerImpl(SpringMotionPeer* peer) + void DestroyPeerImpl(Ark_SpringMotion peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10856,7 +10878,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SpringMotionAccessor namespace FrictionMotionAccessor { - void DestroyPeerImpl(FrictionMotionPeer* peer) + void DestroyPeerImpl(Ark_FrictionMotion peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10875,7 +10897,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // FrictionMotionAccessor namespace ScrollMotionAccessor { - void DestroyPeerImpl(ScrollMotionPeer* peer) + void DestroyPeerImpl(Ark_ScrollMotion peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10896,7 +10918,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollMotionAccessor namespace CalendarControllerAccessor { - void DestroyPeerImpl(CalendarControllerPeer* peer) + void DestroyPeerImpl(Ark_CalendarController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10911,16 +10933,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void BackToTodayImpl(CalendarControllerPeer* peer) + void BackToTodayImpl(Ark_CalendarController peer) { } - void GoToImpl(CalendarControllerPeer* peer, + void GoToImpl(Ark_CalendarController peer, const Ark_Literal_Number_day_month_year* value) { } } // CalendarControllerAccessor namespace CalendarPickerDialogAccessor { - void DestroyPeerImpl(CalendarPickerDialogPeer* peer) + void DestroyPeerImpl(Ark_CalendarPickerDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10940,7 +10962,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CalendarPickerDialogAccessor namespace CanvasGradientAccessor { - void DestroyPeerImpl(CanvasGradientPeer* peer) + void DestroyPeerImpl(Ark_CanvasGradient peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10955,14 +10977,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void AddColorStopImpl(CanvasGradientPeer* peer, + void AddColorStopImpl(Ark_CanvasGradient peer, const Ark_Number* offset, const Ark_String* color) { } } // CanvasGradientAccessor namespace CanvasPathAccessor { - void DestroyPeerImpl(CanvasPathPeer* peer) + void DestroyPeerImpl(Ark_CanvasPath peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -10977,7 +10999,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ArcImpl(CanvasPathPeer* peer, + void ArcImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radius, @@ -10986,7 +11008,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Boolean* counterclockwise) { } - void ArcToImpl(CanvasPathPeer* peer, + void ArcToImpl(Ark_CanvasPath peer, const Ark_Number* x1, const Ark_Number* y1, const Ark_Number* x2, @@ -10994,7 +11016,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* radius) { } - void BezierCurveToImpl(CanvasPathPeer* peer, + void BezierCurveToImpl(Ark_CanvasPath peer, const Ark_Number* cp1x, const Ark_Number* cp1y, const Ark_Number* cp2x, @@ -11003,10 +11025,10 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* y) { } - void ClosePathImpl(CanvasPathPeer* peer) + void ClosePathImpl(Ark_CanvasPath peer) { } - void EllipseImpl(CanvasPathPeer* peer, + void EllipseImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* radiusX, @@ -11017,24 +11039,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Opt_Boolean* counterclockwise) { } - void LineToImpl(CanvasPathPeer* peer, + void LineToImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y) { } - void MoveToImpl(CanvasPathPeer* peer, + void MoveToImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y) { } - void QuadraticCurveToImpl(CanvasPathPeer* peer, + void QuadraticCurveToImpl(Ark_CanvasPath peer, const Ark_Number* cpx, const Ark_Number* cpy, const Ark_Number* x, const Ark_Number* y) { } - void RectImpl(CanvasPathPeer* peer, + void RectImpl(Ark_CanvasPath peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, @@ -11043,7 +11065,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // CanvasPathAccessor namespace Path2DAccessor { - void DestroyPeerImpl(Path2DPeer* peer) + void DestroyPeerImpl(Ark_Path2D peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11058,14 +11080,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void AddPathImpl(Path2DPeer* peer, + void AddPathImpl(Ark_Path2D peer, Ark_Path2D path, const Opt_Matrix2D* transform) { } } // Path2DAccessor namespace CanvasPatternAccessor { - void DestroyPeerImpl(CanvasPatternPeer* peer) + void DestroyPeerImpl(Ark_CanvasPattern peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11080,13 +11102,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetTransformImpl(CanvasPatternPeer* peer, + void SetTransformImpl(Ark_CanvasPattern peer, const Opt_Matrix2D* transform) { } } // CanvasPatternAccessor namespace ImageBitmapAccessor { - void DestroyPeerImpl(ImageBitmapPeer* peer) + void DestroyPeerImpl(Ark_ImageBitmap peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11101,20 +11123,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CloseImpl(ImageBitmapPeer* peer) + void CloseImpl(Ark_ImageBitmap peer) { } - Ark_Int32 GetHeightImpl(ImageBitmapPeer* peer) + Ark_Int32 GetHeightImpl(Ark_ImageBitmap peer) { return {}; } - Ark_Int32 GetWidthImpl(ImageBitmapPeer* peer) + Ark_Int32 GetWidthImpl(Ark_ImageBitmap peer) { return {}; } } // ImageBitmapAccessor namespace ImageDataAccessor { - void DestroyPeerImpl(ImageDataPeer* peer) + void DestroyPeerImpl(Ark_ImageData peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11131,17 +11153,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetHeightImpl(ImageDataPeer* peer) + Ark_Int32 GetHeightImpl(Ark_ImageData peer) { return {}; } - Ark_Int32 GetWidthImpl(ImageDataPeer* peer) + Ark_Int32 GetWidthImpl(Ark_ImageData peer) { return {}; } } // ImageDataAccessor namespace RenderingContextSettingsAccessor { - void DestroyPeerImpl(RenderingContextSettingsPeer* peer) + void DestroyPeerImpl(Ark_RenderingContextSettings peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11156,17 +11178,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetAntialiasImpl(RenderingContextSettingsPeer* peer) + Ark_Boolean GetAntialiasImpl(Ark_RenderingContextSettings peer) { return {}; } - void SetAntialiasImpl(RenderingContextSettingsPeer* peer, + void SetAntialiasImpl(Ark_RenderingContextSettings peer, Ark_Boolean antialias) { } } // RenderingContextSettingsAccessor namespace CanvasRendererAccessor { - void DestroyPeerImpl(CanvasRendererPeer* peer) + void DestroyPeerImpl(Ark_CanvasRenderer peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11181,13 +11203,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void DrawImage0Impl(CanvasRendererPeer* peer, + void DrawImage0Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy) { } - void DrawImage1Impl(CanvasRendererPeer* peer, + void DrawImage1Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* dx, const Ark_Number* dy, @@ -11195,7 +11217,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* dh) { } - void DrawImage2Impl(CanvasRendererPeer* peer, + void DrawImage2Impl(Ark_CanvasRenderer peer, const Ark_Union_ImageBitmap_PixelMap* image, const Ark_Number* sx, const Ark_Number* sy, @@ -11207,35 +11229,35 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* dh) { } - void BeginPathImpl(CanvasRendererPeer* peer) + void BeginPathImpl(Ark_CanvasRenderer peer) { } - void Clip0Impl(CanvasRendererPeer* peer, + void Clip0Impl(Ark_CanvasRenderer peer, const Opt_String* fillRule) { } - void Clip1Impl(CanvasRendererPeer* peer, + void Clip1Impl(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule) { } - void Fill0Impl(CanvasRendererPeer* peer, + void Fill0Impl(Ark_CanvasRenderer peer, const Opt_String* fillRule) { } - void Fill1Impl(CanvasRendererPeer* peer, + void Fill1Impl(Ark_CanvasRenderer peer, Ark_Path2D path, const Opt_String* fillRule) { } - void Stroke0Impl(CanvasRendererPeer* peer) + void Stroke0Impl(Ark_CanvasRenderer peer) { } - void Stroke1Impl(CanvasRendererPeer* peer, + void Stroke1Impl(Ark_CanvasRenderer peer, Ark_Path2D path) { } - Ark_CanvasGradient CreateLinearGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateLinearGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* x1, @@ -11243,13 +11265,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_CanvasPattern CreatePatternImpl(CanvasRendererPeer* peer, + Opt_CanvasPattern CreatePatternImpl(Ark_CanvasRenderer peer, Ark_ImageBitmap image, const Opt_String* repetition) { return {}; } - Ark_CanvasGradient CreateRadialGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateRadialGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* x0, const Ark_Number* y0, const Ark_Number* r0, @@ -11259,25 +11281,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_CanvasGradient CreateConicGradientImpl(CanvasRendererPeer* peer, + Ark_CanvasGradient CreateConicGradientImpl(Ark_CanvasRenderer peer, const Ark_Number* startAngle, const Ark_Number* x, const Ark_Number* y) { return {}; } - Ark_ImageData CreateImageData0Impl(CanvasRendererPeer* peer, + Ark_ImageData CreateImageData0Impl(Ark_CanvasRenderer peer, const Ark_Number* sw, const Ark_Number* sh) { return {}; } - Ark_ImageData CreateImageData1Impl(CanvasRendererPeer* peer, + Ark_ImageData CreateImageData1Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata) { return {}; } - Ark_ImageData GetImageDataImpl(CanvasRendererPeer* peer, + Ark_ImageData GetImageDataImpl(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, @@ -11285,7 +11307,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_PixelMap GetPixelMapImpl(CanvasRendererPeer* peer, + Ark_PixelMap GetPixelMapImpl(Ark_CanvasRenderer peer, const Ark_Number* sx, const Ark_Number* sy, const Ark_Number* sw, @@ -11293,13 +11315,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - void PutImageData0Impl(CanvasRendererPeer* peer, + void PutImageData0Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy) { } - void PutImageData1Impl(CanvasRendererPeer* peer, + void PutImageData1Impl(Ark_CanvasRenderer peer, Ark_ImageData imagedata, const Ark_Union_Number_String* dx, const Ark_Union_Number_String* dy, @@ -11309,76 +11331,77 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Union_Number_String* dirtyHeight) { } - void GetLineDashImpl(CanvasRendererPeer* peer) + Array_Number GetLineDashImpl(Ark_CanvasRenderer peer) { + return {}; } - void SetLineDashImpl(CanvasRendererPeer* peer, + void SetLineDashImpl(Ark_CanvasRenderer peer, const Array_Number* segments) { } - void ClearRectImpl(CanvasRendererPeer* peer, + void ClearRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h) { } - void FillRectImpl(CanvasRendererPeer* peer, + void FillRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h) { } - void StrokeRectImpl(CanvasRendererPeer* peer, + void StrokeRectImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y, const Ark_Number* w, const Ark_Number* h) { } - void RestoreImpl(CanvasRendererPeer* peer) + void RestoreImpl(Ark_CanvasRenderer peer) { } - void SaveImpl(CanvasRendererPeer* peer) + void SaveImpl(Ark_CanvasRenderer peer) { } - void FillTextImpl(CanvasRendererPeer* peer, + void FillTextImpl(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, const Opt_Number* maxWidth) { } - Ark_NativePointer MeasureTextImpl(CanvasRendererPeer* peer, - const Ark_String* text) + Ark_TextMetrics MeasureTextImpl(Ark_CanvasRenderer peer, + const Ark_String* text) { return {}; } - void StrokeTextImpl(CanvasRendererPeer* peer, + void StrokeTextImpl(Ark_CanvasRenderer peer, const Ark_String* text, const Ark_Number* x, const Ark_Number* y, const Opt_Number* maxWidth) { } - Ark_Matrix2D GetTransformImpl(CanvasRendererPeer* peer) + Ark_Matrix2D GetTransformImpl(Ark_CanvasRenderer peer) { return {}; } - void ResetTransformImpl(CanvasRendererPeer* peer) + void ResetTransformImpl(Ark_CanvasRenderer peer) { } - void RotateImpl(CanvasRendererPeer* peer, + void RotateImpl(Ark_CanvasRenderer peer, const Ark_Number* angle) { } - void ScaleImpl(CanvasRendererPeer* peer, + void ScaleImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y) { } - void SetTransform0Impl(CanvasRendererPeer* peer, + void SetTransform0Impl(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, @@ -11387,11 +11410,11 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* f) { } - void SetTransform1Impl(CanvasRendererPeer* peer, + void SetTransform1Impl(Ark_CanvasRenderer peer, const Opt_Matrix2D* transform) { } - void TransformImpl(CanvasRendererPeer* peer, + void TransformImpl(Ark_CanvasRenderer peer, const Ark_Number* a, const Ark_Number* b, const Ark_Number* c, @@ -11400,179 +11423,183 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Ark_Number* f) { } - void TranslateImpl(CanvasRendererPeer* peer, + void TranslateImpl(Ark_CanvasRenderer peer, const Ark_Number* x, const Ark_Number* y) { } - void SetPixelMapImpl(CanvasRendererPeer* peer, + void SetPixelMapImpl(Ark_CanvasRenderer peer, const Opt_PixelMap* value) { } - void TransferFromImageBitmapImpl(CanvasRendererPeer* peer, + void TransferFromImageBitmapImpl(Ark_CanvasRenderer peer, Ark_ImageBitmap bitmap) { } - void SaveLayerImpl(CanvasRendererPeer* peer) + void SaveLayerImpl(Ark_CanvasRenderer peer) { } - void RestoreLayerImpl(CanvasRendererPeer* peer) + void RestoreLayerImpl(Ark_CanvasRenderer peer) { } - void ResetImpl(CanvasRendererPeer* peer) + void ResetImpl(Ark_CanvasRenderer peer) { } - Ark_Int32 GetGlobalAlphaImpl(CanvasRendererPeer* peer) + Ark_Int32 GetGlobalAlphaImpl(Ark_CanvasRenderer peer) { return {}; } - void SetGlobalAlphaImpl(CanvasRendererPeer* peer, + void SetGlobalAlphaImpl(Ark_CanvasRenderer peer, const Ark_Number* globalAlpha) { } - void GetGlobalCompositeOperationImpl(CanvasRendererPeer* peer) + Ark_String GetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer) { + return {}; } - void SetGlobalCompositeOperationImpl(CanvasRendererPeer* peer, + void SetGlobalCompositeOperationImpl(Ark_CanvasRenderer peer, const Ark_String* globalCompositeOperation) { } - void SetFillStyleImpl(CanvasRendererPeer* peer, + void SetFillStyleImpl(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* fillStyle) { } - void SetStrokeStyleImpl(CanvasRendererPeer* peer, + void SetStrokeStyleImpl(Ark_CanvasRenderer peer, const Ark_Union_String_Number_CanvasGradient_CanvasPattern* strokeStyle) { } - void GetFilterImpl(CanvasRendererPeer* peer) + Ark_String GetFilterImpl(Ark_CanvasRenderer peer) { + return {}; } - void SetFilterImpl(CanvasRendererPeer* peer, + void SetFilterImpl(Ark_CanvasRenderer peer, const Ark_String* filter) { } - Ark_Boolean GetImageSmoothingEnabledImpl(CanvasRendererPeer* peer) + Ark_Boolean GetImageSmoothingEnabledImpl(Ark_CanvasRenderer peer) { return {}; } - void SetImageSmoothingEnabledImpl(CanvasRendererPeer* peer, + void SetImageSmoothingEnabledImpl(Ark_CanvasRenderer peer, Ark_Boolean imageSmoothingEnabled) { } - Ark_NativePointer GetImageSmoothingQualityImpl(CanvasRendererPeer* peer) + Ark_String GetImageSmoothingQualityImpl(Ark_CanvasRenderer peer) { return {}; } - void SetImageSmoothingQualityImpl(CanvasRendererPeer* peer, + void SetImageSmoothingQualityImpl(Ark_CanvasRenderer peer, const Ark_String* imageSmoothingQuality) { } - Ark_NativePointer GetLineCapImpl(CanvasRendererPeer* peer) + Ark_String GetLineCapImpl(Ark_CanvasRenderer peer) { return {}; } - void SetLineCapImpl(CanvasRendererPeer* peer, + void SetLineCapImpl(Ark_CanvasRenderer peer, const Ark_String* lineCap) { } - Ark_Int32 GetLineDashOffsetImpl(CanvasRendererPeer* peer) + Ark_Int32 GetLineDashOffsetImpl(Ark_CanvasRenderer peer) { return {}; } - void SetLineDashOffsetImpl(CanvasRendererPeer* peer, + void SetLineDashOffsetImpl(Ark_CanvasRenderer peer, const Ark_Number* lineDashOffset) { } - Ark_NativePointer GetLineJoinImpl(CanvasRendererPeer* peer) + Ark_String GetLineJoinImpl(Ark_CanvasRenderer peer) { return {}; } - void SetLineJoinImpl(CanvasRendererPeer* peer, + void SetLineJoinImpl(Ark_CanvasRenderer peer, const Ark_String* lineJoin) { } - Ark_Int32 GetLineWidthImpl(CanvasRendererPeer* peer) + Ark_Int32 GetLineWidthImpl(Ark_CanvasRenderer peer) { return {}; } - void SetLineWidthImpl(CanvasRendererPeer* peer, + void SetLineWidthImpl(Ark_CanvasRenderer peer, const Ark_Number* lineWidth) { } - Ark_Int32 GetMiterLimitImpl(CanvasRendererPeer* peer) + Ark_Int32 GetMiterLimitImpl(Ark_CanvasRenderer peer) { return {}; } - void SetMiterLimitImpl(CanvasRendererPeer* peer, + void SetMiterLimitImpl(Ark_CanvasRenderer peer, const Ark_Number* miterLimit) { } - Ark_Int32 GetShadowBlurImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowBlurImpl(Ark_CanvasRenderer peer) { return {}; } - void SetShadowBlurImpl(CanvasRendererPeer* peer, + void SetShadowBlurImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowBlur) { } - void GetShadowColorImpl(CanvasRendererPeer* peer) + Ark_String GetShadowColorImpl(Ark_CanvasRenderer peer) { + return {}; } - void SetShadowColorImpl(CanvasRendererPeer* peer, + void SetShadowColorImpl(Ark_CanvasRenderer peer, const Ark_String* shadowColor) { } - Ark_Int32 GetShadowOffsetXImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowOffsetXImpl(Ark_CanvasRenderer peer) { return {}; } - void SetShadowOffsetXImpl(CanvasRendererPeer* peer, + void SetShadowOffsetXImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetX) { } - Ark_Int32 GetShadowOffsetYImpl(CanvasRendererPeer* peer) + Ark_Int32 GetShadowOffsetYImpl(Ark_CanvasRenderer peer) { return {}; } - void SetShadowOffsetYImpl(CanvasRendererPeer* peer, + void SetShadowOffsetYImpl(Ark_CanvasRenderer peer, const Ark_Number* shadowOffsetY) { } - Ark_NativePointer GetDirectionImpl(CanvasRendererPeer* peer) + Ark_String GetDirectionImpl(Ark_CanvasRenderer peer) { return {}; } - void SetDirectionImpl(CanvasRendererPeer* peer, + void SetDirectionImpl(Ark_CanvasRenderer peer, const Ark_String* direction) { } - void GetFontImpl(CanvasRendererPeer* peer) + Ark_String GetFontImpl(Ark_CanvasRenderer peer) { + return {}; } - void SetFontImpl(CanvasRendererPeer* peer, + void SetFontImpl(Ark_CanvasRenderer peer, const Ark_String* font) { } - Ark_NativePointer GetTextAlignImpl(CanvasRendererPeer* peer) + Ark_String GetTextAlignImpl(Ark_CanvasRenderer peer) { return {}; } - void SetTextAlignImpl(CanvasRendererPeer* peer, + void SetTextAlignImpl(Ark_CanvasRenderer peer, const Ark_String* textAlign) { } - Ark_NativePointer GetTextBaselineImpl(CanvasRendererPeer* peer) + Ark_String GetTextBaselineImpl(Ark_CanvasRenderer peer) { return {}; } - void SetTextBaselineImpl(CanvasRendererPeer* peer, + void SetTextBaselineImpl(Ark_CanvasRenderer peer, const Ark_String* textBaseline) { } } // CanvasRendererAccessor namespace CanvasRenderingContext2DAccessor { - void DestroyPeerImpl(CanvasRenderingContext2DPeer* peer) + void DestroyPeerImpl(Ark_CanvasRenderingContext2D peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11587,46 +11614,119 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ToDataURLImpl(CanvasRenderingContext2DPeer* peer, - const Opt_String* type, - const Opt_Number* quality) + Ark_String ToDataURLImpl(Ark_CanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality) { + return {}; } - void StartImageAnalyzerImpl(CanvasRenderingContext2DPeer* peer, + void StartImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void StopImageAnalyzerImpl(CanvasRenderingContext2DPeer* peer) + void StopImageAnalyzerImpl(Ark_CanvasRenderingContext2D peer) { } - void OnOnAttachImpl(CanvasRenderingContext2DPeer* peer, + void OnOnAttachImpl(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_) { } - void OffOnAttachImpl(CanvasRenderingContext2DPeer* peer, + void OffOnAttachImpl(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_) { } - void OnOnDetachImpl(CanvasRenderingContext2DPeer* peer, + void OnOnDetachImpl(Ark_CanvasRenderingContext2D peer, const Callback_Void* callback_) { } - void OffOnDetachImpl(CanvasRenderingContext2DPeer* peer, + void OffOnDetachImpl(Ark_CanvasRenderingContext2D peer, const Opt_Callback_Void* callback_) { } - Ark_Int32 GetHeightImpl(CanvasRenderingContext2DPeer* peer) + Ark_Int32 GetHeightImpl(Ark_CanvasRenderingContext2D peer) { return {}; } - Ark_Int32 GetWidthImpl(CanvasRenderingContext2DPeer* peer) + Ark_Int32 GetWidthImpl(Ark_CanvasRenderingContext2D peer) { return {}; } } // CanvasRenderingContext2DAccessor + namespace OffscreenCanvasRenderingContext2DAccessor { + void DestroyPeerImpl(Ark_OffscreenCanvasRenderingContext2D peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_OffscreenCanvasRenderingContext2D CtorImpl(const Ark_Number* width, + const Ark_Number* height, + const Opt_RenderingContextSettings* settings) + { + return new OffscreenCanvasRenderingContext2DPeer(width, height, settings); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_String ToDataURLImpl(Ark_OffscreenCanvasRenderingContext2D peer, + const Opt_String* type, + const Opt_Float32* quality) + { + return {}; + } + Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvasRenderingContext2D peer) + { + return {}; + } + } // OffscreenCanvasRenderingContext2DAccessor + namespace OffscreenCanvasAccessor { + void DestroyPeerImpl(Ark_OffscreenCanvas peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_OffscreenCanvas CtorImpl(const Ark_Number* width, + const Ark_Number* height) + { + return new OffscreenCanvasPeer(width, height); + } + Ark_NativePointer GetFinalizerImpl() + { + return reinterpret_cast(&DestroyPeerImpl); + } + Ark_ImageBitmap TransferToImageBitmapImpl(Ark_OffscreenCanvas peer) + { + return {}; + } + Ark_OffscreenCanvasRenderingContext2D GetContext2dImpl(Ark_OffscreenCanvas peer, + const Opt_RenderingContextSettings* options) + { + return {}; + } + Ark_Int32 GetHeightImpl(Ark_OffscreenCanvas peer) + { + return {}; + } + void SetHeightImpl(Ark_OffscreenCanvas peer, + const Ark_Number* height) + { + } + Ark_Int32 GetWidthImpl(Ark_OffscreenCanvas peer) + { + return {}; + } + void SetWidthImpl(Ark_OffscreenCanvas peer, + const Ark_Number* width) + { + } + } // OffscreenCanvasAccessor namespace DrawingRenderingContextAccessor { - void DestroyPeerImpl(DrawingRenderingContextPeer* peer) + void DestroyPeerImpl(Ark_DrawingRenderingContext peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11641,12 +11741,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void InvalidateImpl(DrawingRenderingContextPeer* peer) + void InvalidateImpl(Ark_DrawingRenderingContext peer) { } } // DrawingRenderingContextAccessor namespace ICurveAccessor { - void DestroyPeerImpl(ICurvePeer* peer) + void DestroyPeerImpl(Ark_ICurve peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11661,14 +11761,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 InterpolateImpl(ICurvePeer* peer, + Ark_Int32 InterpolateImpl(Ark_ICurve peer, const Ark_Number* fraction) { return {}; } } // ICurveAccessor namespace DrawModifierAccessor { - void DestroyPeerImpl(DrawModifierPeer* peer) + void DestroyPeerImpl(Ark_DrawModifier peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11683,24 +11783,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void DrawBehindImpl(DrawModifierPeer* peer, + void DrawBehindImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { } - void DrawContentImpl(DrawModifierPeer* peer, + void DrawContentImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { } - void DrawFrontImpl(DrawModifierPeer* peer, + void DrawFrontImpl(Ark_DrawModifier peer, const Ark_DrawContext* drawContext) { } - void InvalidateImpl(DrawModifierPeer* peer) + void InvalidateImpl(Ark_DrawModifier peer) { } } // DrawModifierAccessor namespace TransitionEffectAccessor { - void DestroyPeerImpl(TransitionEffectPeer* peer) + void DestroyPeerImpl(Ark_TransitionEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11741,19 +11841,47 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_TransitionEffect AnimationImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect AnimationImpl(Ark_TransitionEffect peer, const Ark_AnimateParam* value) { return {}; } - Ark_TransitionEffect CombineImpl(TransitionEffectPeer* peer, + Ark_TransitionEffect CombineImpl(Ark_TransitionEffect peer, Ark_TransitionEffect transitionEffect) { return {}; } } // TransitionEffectAccessor + namespace GlobalScope_focusControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_focusControl_common peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + Ark_Boolean RequestFocusImpl(const Ark_String* value) + { + return {}; + } + } // GlobalScope_focusControl_commonAccessor + namespace GlobalScope_cursorControl_commonAccessor { + void DestroyPeerImpl(Ark_GlobalScope_cursorControl_common peer) + { + auto peerImpl = reinterpret_cast(peer); + if (peerImpl) { + delete peerImpl; + } + } + void SetCursorImpl(Ark_PointerStyle value) + { + } + void RestoreDefaultImpl() + { + } + } // GlobalScope_cursorControl_commonAccessor namespace BaseEventAccessor { - void DestroyPeerImpl(BaseEventPeer* peer) + void DestroyPeerImpl(Ark_BaseEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11768,90 +11896,90 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetModifierKeyStateImpl(BaseEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_BaseEvent peer, const Array_String* keys) { return {}; } - void SetTargetImpl(BaseEventPeer* peer, + void SetTargetImpl(Ark_BaseEvent peer, const Ark_EventTarget* target) { } - Ark_Int32 GetTimestampImpl(BaseEventPeer* peer) + Ark_Int32 GetTimestampImpl(Ark_BaseEvent peer) { return {}; } - void SetTimestampImpl(BaseEventPeer* peer, + void SetTimestampImpl(Ark_BaseEvent peer, const Ark_Number* timestamp) { } - Ark_NativePointer GetSourceImpl(BaseEventPeer* peer) + Ark_SourceType GetSourceImpl(Ark_BaseEvent peer) { return {}; } - void SetSourceImpl(BaseEventPeer* peer, + void SetSourceImpl(Ark_BaseEvent peer, Ark_SourceType source) { } - Ark_Int32 GetAxisHorizontalImpl(BaseEventPeer* peer) + Ark_Int32 GetAxisHorizontalImpl(Ark_BaseEvent peer) { return {}; } - void SetAxisHorizontalImpl(BaseEventPeer* peer, + void SetAxisHorizontalImpl(Ark_BaseEvent peer, const Ark_Number* axisHorizontal) { } - Ark_Int32 GetAxisVerticalImpl(BaseEventPeer* peer) + Ark_Int32 GetAxisVerticalImpl(Ark_BaseEvent peer) { return {}; } - void SetAxisVerticalImpl(BaseEventPeer* peer, + void SetAxisVerticalImpl(Ark_BaseEvent peer, const Ark_Number* axisVertical) { } - Ark_Int32 GetPressureImpl(BaseEventPeer* peer) + Ark_Int32 GetPressureImpl(Ark_BaseEvent peer) { return {}; } - void SetPressureImpl(BaseEventPeer* peer, + void SetPressureImpl(Ark_BaseEvent peer, const Ark_Number* pressure) { } - Ark_Int32 GetTiltXImpl(BaseEventPeer* peer) + Ark_Int32 GetTiltXImpl(Ark_BaseEvent peer) { return {}; } - void SetTiltXImpl(BaseEventPeer* peer, + void SetTiltXImpl(Ark_BaseEvent peer, const Ark_Number* tiltX) { } - Ark_Int32 GetTiltYImpl(BaseEventPeer* peer) + Ark_Int32 GetTiltYImpl(Ark_BaseEvent peer) { return {}; } - void SetTiltYImpl(BaseEventPeer* peer, + void SetTiltYImpl(Ark_BaseEvent peer, const Ark_Number* tiltY) { } - Ark_NativePointer GetSourceToolImpl(BaseEventPeer* peer) + Ark_SourceTool GetSourceToolImpl(Ark_BaseEvent peer) { return {}; } - void SetSourceToolImpl(BaseEventPeer* peer, + void SetSourceToolImpl(Ark_BaseEvent peer, Ark_SourceTool sourceTool) { } - Ark_Int32 GetDeviceIdImpl(BaseEventPeer* peer) + Ark_Int32 GetDeviceIdImpl(Ark_BaseEvent peer) { return {}; } - void SetDeviceIdImpl(BaseEventPeer* peer, + void SetDeviceIdImpl(Ark_BaseEvent peer, const Ark_Number* deviceId) { } } // BaseEventAccessor namespace ClickEventAccessor { - void DestroyPeerImpl(ClickEventPeer* peer) + void DestroyPeerImpl(Ark_ClickEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11866,81 +11994,81 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetDisplayXImpl(ClickEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_ClickEvent peer) { return {}; } - void SetDisplayXImpl(ClickEventPeer* peer, + void SetDisplayXImpl(Ark_ClickEvent peer, const Ark_Number* displayX) { } - Ark_Int32 GetDisplayYImpl(ClickEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_ClickEvent peer) { return {}; } - void SetDisplayYImpl(ClickEventPeer* peer, + void SetDisplayYImpl(Ark_ClickEvent peer, const Ark_Number* displayY) { } - Ark_Int32 GetWindowXImpl(ClickEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_ClickEvent peer) { return {}; } - void SetWindowXImpl(ClickEventPeer* peer, + void SetWindowXImpl(Ark_ClickEvent peer, const Ark_Number* windowX) { } - Ark_Int32 GetWindowYImpl(ClickEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_ClickEvent peer) { return {}; } - void SetWindowYImpl(ClickEventPeer* peer, + void SetWindowYImpl(Ark_ClickEvent peer, const Ark_Number* windowY) { } - Ark_Int32 GetScreenXImpl(ClickEventPeer* peer) + Ark_Int32 GetScreenXImpl(Ark_ClickEvent peer) { return {}; } - void SetScreenXImpl(ClickEventPeer* peer, + void SetScreenXImpl(Ark_ClickEvent peer, const Ark_Number* screenX) { } - Ark_Int32 GetScreenYImpl(ClickEventPeer* peer) + Ark_Int32 GetScreenYImpl(Ark_ClickEvent peer) { return {}; } - void SetScreenYImpl(ClickEventPeer* peer, + void SetScreenYImpl(Ark_ClickEvent peer, const Ark_Number* screenY) { } - Ark_Int32 GetXImpl(ClickEventPeer* peer) + Ark_Int32 GetXImpl(Ark_ClickEvent peer) { return {}; } - void SetXImpl(ClickEventPeer* peer, + void SetXImpl(Ark_ClickEvent peer, const Ark_Number* x) { } - Ark_Int32 GetYImpl(ClickEventPeer* peer) + Ark_Int32 GetYImpl(Ark_ClickEvent peer) { return {}; } - void SetYImpl(ClickEventPeer* peer, + void SetYImpl(Ark_ClickEvent peer, const Ark_Number* y) { } - Callback_Void GetPreventDefaultImpl(ClickEventPeer* peer) + Callback_Void GetPreventDefaultImpl(Ark_ClickEvent peer) { return {}; } - void SetPreventDefaultImpl(ClickEventPeer* peer, + void SetPreventDefaultImpl(Ark_ClickEvent peer, const Callback_Void* preventDefault) { } } // ClickEventAccessor namespace HoverEventAccessor { - void DestroyPeerImpl(HoverEventPeer* peer) + void DestroyPeerImpl(Ark_HoverEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11955,17 +12083,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Callback_Void GetStopPropagationImpl(HoverEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_HoverEvent peer) { return {}; } - void SetStopPropagationImpl(HoverEventPeer* peer, + void SetStopPropagationImpl(Ark_HoverEvent peer, const Callback_Void* stopPropagation) { } } // HoverEventAccessor namespace MouseEventAccessor { - void DestroyPeerImpl(MouseEventPeer* peer) + void DestroyPeerImpl(Ark_MouseEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -11980,97 +12108,97 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetButtonImpl(MouseEventPeer* peer) + Ark_MouseButton GetButtonImpl(Ark_MouseEvent peer) { return {}; } - void SetButtonImpl(MouseEventPeer* peer, + void SetButtonImpl(Ark_MouseEvent peer, Ark_MouseButton button) { } - Ark_NativePointer GetActionImpl(MouseEventPeer* peer) + Ark_MouseAction GetActionImpl(Ark_MouseEvent peer) { return {}; } - void SetActionImpl(MouseEventPeer* peer, + void SetActionImpl(Ark_MouseEvent peer, Ark_MouseAction action) { } - Ark_Int32 GetDisplayXImpl(MouseEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_MouseEvent peer) { return {}; } - void SetDisplayXImpl(MouseEventPeer* peer, + void SetDisplayXImpl(Ark_MouseEvent peer, const Ark_Number* displayX) { } - Ark_Int32 GetDisplayYImpl(MouseEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_MouseEvent peer) { return {}; } - void SetDisplayYImpl(MouseEventPeer* peer, + void SetDisplayYImpl(Ark_MouseEvent peer, const Ark_Number* displayY) { } - Ark_Int32 GetWindowXImpl(MouseEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_MouseEvent peer) { return {}; } - void SetWindowXImpl(MouseEventPeer* peer, + void SetWindowXImpl(Ark_MouseEvent peer, const Ark_Number* windowX) { } - Ark_Int32 GetWindowYImpl(MouseEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_MouseEvent peer) { return {}; } - void SetWindowYImpl(MouseEventPeer* peer, + void SetWindowYImpl(Ark_MouseEvent peer, const Ark_Number* windowY) { } - Ark_Int32 GetScreenXImpl(MouseEventPeer* peer) + Ark_Int32 GetScreenXImpl(Ark_MouseEvent peer) { return {}; } - void SetScreenXImpl(MouseEventPeer* peer, + void SetScreenXImpl(Ark_MouseEvent peer, const Ark_Number* screenX) { } - Ark_Int32 GetScreenYImpl(MouseEventPeer* peer) + Ark_Int32 GetScreenYImpl(Ark_MouseEvent peer) { return {}; } - void SetScreenYImpl(MouseEventPeer* peer, + void SetScreenYImpl(Ark_MouseEvent peer, const Ark_Number* screenY) { } - Ark_Int32 GetXImpl(MouseEventPeer* peer) + Ark_Int32 GetXImpl(Ark_MouseEvent peer) { return {}; } - void SetXImpl(MouseEventPeer* peer, + void SetXImpl(Ark_MouseEvent peer, const Ark_Number* x) { } - Ark_Int32 GetYImpl(MouseEventPeer* peer) + Ark_Int32 GetYImpl(Ark_MouseEvent peer) { return {}; } - void SetYImpl(MouseEventPeer* peer, + void SetYImpl(Ark_MouseEvent peer, const Ark_Number* y) { } - Callback_Void GetStopPropagationImpl(MouseEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_MouseEvent peer) { return {}; } - void SetStopPropagationImpl(MouseEventPeer* peer, + void SetStopPropagationImpl(Ark_MouseEvent peer, const Callback_Void* stopPropagation) { } } // MouseEventAccessor namespace AccessibilityHoverEventAccessor { - void DestroyPeerImpl(AccessibilityHoverEventPeer* peer) + void DestroyPeerImpl(Ark_AccessibilityHoverEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12085,65 +12213,65 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetTypeImpl(AccessibilityHoverEventPeer* peer) + Ark_AccessibilityHoverType GetTypeImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetTypeImpl(AccessibilityHoverEventPeer* peer, + void SetTypeImpl(Ark_AccessibilityHoverEvent peer, Ark_AccessibilityHoverType type) { } - Ark_Int32 GetXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetXImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetXImpl(AccessibilityHoverEventPeer* peer, + void SetXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* x) { } - Ark_Int32 GetYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetYImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetYImpl(AccessibilityHoverEventPeer* peer, + void SetYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* y) { } - Ark_Int32 GetDisplayXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetDisplayXImpl(AccessibilityHoverEventPeer* peer, + void SetDisplayXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayX) { } - Ark_Int32 GetDisplayYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetDisplayYImpl(AccessibilityHoverEventPeer* peer, + void SetDisplayYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* displayY) { } - Ark_Int32 GetWindowXImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetWindowXImpl(AccessibilityHoverEventPeer* peer, + void SetWindowXImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowX) { } - Ark_Int32 GetWindowYImpl(AccessibilityHoverEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_AccessibilityHoverEvent peer) { return {}; } - void SetWindowYImpl(AccessibilityHoverEventPeer* peer, + void SetWindowYImpl(Ark_AccessibilityHoverEvent peer, const Ark_Number* windowY) { } } // AccessibilityHoverEventAccessor namespace TouchEventAccessor { - void DestroyPeerImpl(TouchEventPeer* peer) + void DestroyPeerImpl(Ark_TouchEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12158,44 +12286,53 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetHistoricalPointsImpl(TouchEventPeer* peer) + Array_HistoricalPoint GetHistoricalPointsImpl(Ark_TouchEvent peer) { + return {}; } - Ark_NativePointer GetTypeImpl(TouchEventPeer* peer) + Ark_TouchType GetTypeImpl(Ark_TouchEvent peer) { return {}; } - void SetTypeImpl(TouchEventPeer* peer, + void SetTypeImpl(Ark_TouchEvent peer, Ark_TouchType type) { } - void SetTouchesImpl(TouchEventPeer* peer, + Array_TouchObject GetTouchesImpl(Ark_TouchEvent peer) + { + return {}; + } + void SetTouchesImpl(Ark_TouchEvent peer, const Array_TouchObject* touches) { } - void SetChangedTouchesImpl(TouchEventPeer* peer, + Array_TouchObject GetChangedTouchesImpl(Ark_TouchEvent peer) + { + return {}; + } + void SetChangedTouchesImpl(Ark_TouchEvent peer, const Array_TouchObject* changedTouches) { } - Callback_Void GetStopPropagationImpl(TouchEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_TouchEvent peer) { return {}; } - void SetStopPropagationImpl(TouchEventPeer* peer, + void SetStopPropagationImpl(Ark_TouchEvent peer, const Callback_Void* stopPropagation) { } - Callback_Void GetPreventDefaultImpl(TouchEventPeer* peer) + Callback_Void GetPreventDefaultImpl(Ark_TouchEvent peer) { return {}; } - void SetPreventDefaultImpl(TouchEventPeer* peer, + void SetPreventDefaultImpl(Ark_TouchEvent peer, const Callback_Void* preventDefault) { } } // TouchEventAccessor namespace PixelMapMockAccessor { - void DestroyPeerImpl(PixelMapMockPeer* peer) + void DestroyPeerImpl(Ark_PixelMapMock peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12210,12 +12347,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ReleaseImpl(PixelMapMockPeer* peer) + void ReleaseImpl(Ark_PixelMapMock peer) { } } // PixelMapMockAccessor namespace DragEventAccessor { - void DestroyPeerImpl(DragEventPeer* peer) + void DestroyPeerImpl(Ark_DragEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12230,90 +12367,90 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetDisplayXImpl(DragEventPeer* peer) + Ark_Int32 GetDisplayXImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetDisplayYImpl(DragEventPeer* peer) + Ark_Int32 GetDisplayYImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetWindowXImpl(DragEventPeer* peer) + Ark_Int32 GetWindowXImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetWindowYImpl(DragEventPeer* peer) + Ark_Int32 GetWindowYImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetXImpl(DragEventPeer* peer) + Ark_Int32 GetXImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetYImpl(DragEventPeer* peer) + Ark_Int32 GetYImpl(Ark_DragEvent peer) { return {}; } - void SetDataImpl(DragEventPeer* peer, + void SetDataImpl(Ark_DragEvent peer, Ark_UnifiedData unifiedData) { } - Ark_UnifiedData GetDataImpl(DragEventPeer* peer) + Ark_UnifiedData GetDataImpl(Ark_DragEvent peer) { return {}; } - Ark_NativePointer GetSummaryImpl(DragEventPeer* peer) + Ark_Summary GetSummaryImpl(Ark_DragEvent peer) { return {}; } - void SetResultImpl(DragEventPeer* peer, + void SetResultImpl(Ark_DragEvent peer, Ark_DragResult dragResult) { } - Ark_NativePointer GetResultImpl(DragEventPeer* peer) + Ark_DragResult GetResultImpl(Ark_DragEvent peer) { return {}; } - Ark_NativePointer GetPreviewRectImpl(DragEventPeer* peer) + Ark_Rectangle GetPreviewRectImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetVelocityXImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetVelocityYImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_DragEvent peer) { return {}; } - Ark_Int32 GetVelocityImpl(DragEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_DragEvent peer) { return {}; } - Ark_Boolean GetModifierKeyStateImpl(DragEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_DragEvent peer, const Array_String* keys) { return {}; } - Ark_NativePointer GetDragBehaviorImpl(DragEventPeer* peer) + Ark_DragBehavior GetDragBehaviorImpl(Ark_DragEvent peer) { return {}; } - void SetDragBehaviorImpl(DragEventPeer* peer, + void SetDragBehaviorImpl(Ark_DragEvent peer, Ark_DragBehavior dragBehavior) { } - Ark_Boolean GetUseCustomDropAnimationImpl(DragEventPeer* peer) + Ark_Boolean GetUseCustomDropAnimationImpl(Ark_DragEvent peer) { return {}; } - void SetUseCustomDropAnimationImpl(DragEventPeer* peer, + void SetUseCustomDropAnimationImpl(Ark_DragEvent peer, Ark_Boolean useCustomDropAnimation) { } } // DragEventAccessor namespace KeyEventAccessor { - void DestroyPeerImpl(KeyEventPeer* peer) + void DestroyPeerImpl(Ark_KeyEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12328,89 +12465,90 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetModifierKeyStateImpl(KeyEventPeer* peer, + Ark_Boolean GetModifierKeyStateImpl(Ark_KeyEvent peer, const Array_String* keys) { return {}; } - Ark_NativePointer GetTypeImpl(KeyEventPeer* peer) + Ark_KeyType GetTypeImpl(Ark_KeyEvent peer) { return {}; } - void SetTypeImpl(KeyEventPeer* peer, + void SetTypeImpl(Ark_KeyEvent peer, Ark_KeyType type) { } - Ark_Int32 GetKeyCodeImpl(KeyEventPeer* peer) + Ark_Int32 GetKeyCodeImpl(Ark_KeyEvent peer) { return {}; } - void SetKeyCodeImpl(KeyEventPeer* peer, + void SetKeyCodeImpl(Ark_KeyEvent peer, const Ark_Number* keyCode) { } - void GetKeyTextImpl(KeyEventPeer* peer) + Ark_String GetKeyTextImpl(Ark_KeyEvent peer) { + return {}; } - void SetKeyTextImpl(KeyEventPeer* peer, + void SetKeyTextImpl(Ark_KeyEvent peer, const Ark_String* keyText) { } - Ark_NativePointer GetKeySourceImpl(KeyEventPeer* peer) + Ark_KeySource GetKeySourceImpl(Ark_KeyEvent peer) { return {}; } - void SetKeySourceImpl(KeyEventPeer* peer, + void SetKeySourceImpl(Ark_KeyEvent peer, Ark_KeySource keySource) { } - Ark_Int32 GetDeviceIdImpl(KeyEventPeer* peer) + Ark_Int32 GetDeviceIdImpl(Ark_KeyEvent peer) { return {}; } - void SetDeviceIdImpl(KeyEventPeer* peer, + void SetDeviceIdImpl(Ark_KeyEvent peer, const Ark_Number* deviceId) { } - Ark_Int32 GetMetaKeyImpl(KeyEventPeer* peer) + Ark_Int32 GetMetaKeyImpl(Ark_KeyEvent peer) { return {}; } - void SetMetaKeyImpl(KeyEventPeer* peer, + void SetMetaKeyImpl(Ark_KeyEvent peer, const Ark_Number* metaKey) { } - Ark_Int32 GetTimestampImpl(KeyEventPeer* peer) + Ark_Int32 GetTimestampImpl(Ark_KeyEvent peer) { return {}; } - void SetTimestampImpl(KeyEventPeer* peer, + void SetTimestampImpl(Ark_KeyEvent peer, const Ark_Number* timestamp) { } - Callback_Void GetStopPropagationImpl(KeyEventPeer* peer) + Callback_Void GetStopPropagationImpl(Ark_KeyEvent peer) { return {}; } - void SetStopPropagationImpl(KeyEventPeer* peer, + void SetStopPropagationImpl(Ark_KeyEvent peer, const Callback_Void* stopPropagation) { } - void SetIntentionCodeImpl(KeyEventPeer* peer, + void SetIntentionCodeImpl(Ark_KeyEvent peer, const Ark_IntentionCode* intentionCode) { } - Ark_Int32 GetUnicodeImpl(KeyEventPeer* peer) + Ark_Int32 GetUnicodeImpl(Ark_KeyEvent peer) { return {}; } - void SetUnicodeImpl(KeyEventPeer* peer, + void SetUnicodeImpl(Ark_KeyEvent peer, const Ark_Number* unicode) { } } // KeyEventAccessor namespace ProgressMaskAccessor { - void DestroyPeerImpl(ProgressMaskPeer* peer) + void DestroyPeerImpl(Ark_ProgressMask peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12427,21 +12565,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void UpdateProgressImpl(ProgressMaskPeer* peer, + void UpdateProgressImpl(Ark_ProgressMask peer, const Ark_Number* value) { } - void UpdateColorImpl(ProgressMaskPeer* peer, + void UpdateColorImpl(Ark_ProgressMask peer, const Ark_ResourceColor* value) { } - void EnableBreathingAnimationImpl(ProgressMaskPeer* peer, + void EnableBreathingAnimationImpl(Ark_ProgressMask peer, Ark_Boolean value) { } } // ProgressMaskAccessor namespace MeasurableAccessor { - void DestroyPeerImpl(MeasurablePeer* peer) + void DestroyPeerImpl(Ark_Measurable peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12456,26 +12594,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer MeasureImpl(MeasurablePeer* peer, + Ark_MeasureResult MeasureImpl(Ark_Measurable peer, const Ark_ConstraintSizeOptions* constraint) { return {}; } - Ark_NativePointer GetMarginImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetMarginImpl(Ark_Measurable peer) { return {}; } - Ark_NativePointer GetPaddingImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetPaddingImpl(Ark_Measurable peer) { return {}; } - Ark_NativePointer GetBorderWidthImpl(MeasurablePeer* peer) + Ark_DirectionalEdgesT GetBorderWidthImpl(Ark_Measurable peer) { return {}; } } // MeasurableAccessor namespace ViewAccessor { - void DestroyPeerImpl(ViewPeer* peer) + void DestroyPeerImpl(Ark_View peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12490,13 +12628,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CreateImpl(ViewPeer* peer, - const Ark_CustomObject* value) + Ark_CustomObject CreateImpl(Ark_View peer, + const Ark_CustomObject* value) { + return {}; } } // ViewAccessor namespace TextContentControllerBaseAccessor { - void DestroyPeerImpl(TextContentControllerBasePeer* peer) + void DestroyPeerImpl(Ark_TextContentControllerBase peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12511,21 +12650,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetCaretOffsetImpl(TextContentControllerBasePeer* peer) + Ark_CaretOffset GetCaretOffsetImpl(Ark_TextContentControllerBase peer) { return {}; } - Ark_NativePointer GetTextContentRectImpl(TextContentControllerBasePeer* peer) + Ark_RectResult GetTextContentRectImpl(Ark_TextContentControllerBase peer) { return {}; } - Ark_Int32 GetTextContentLineCountImpl(TextContentControllerBasePeer* peer) + Ark_Int32 GetTextContentLineCountImpl(Ark_TextContentControllerBase peer) { return {}; } } // TextContentControllerBaseAccessor namespace DynamicNodeAccessor { - void DestroyPeerImpl(DynamicNodePeer* peer) + void DestroyPeerImpl(Ark_DynamicNode peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12540,13 +12679,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void OnMoveImpl(DynamicNodePeer* peer, - const Opt_OnMoveHandler* handler) + Ark_CustomObject OnMoveImpl(Ark_DynamicNode peer, + const Opt_OnMoveHandler* handler) { + return {}; } } // DynamicNodeAccessor namespace ChildrenMainSizeAccessor { - void DestroyPeerImpl(ChildrenMainSizePeer* peer) + void DestroyPeerImpl(Ark_ChildrenMainSize peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12561,28 +12701,28 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SpliceImpl(ChildrenMainSizePeer* peer, + void SpliceImpl(Ark_ChildrenMainSize peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_Number* childrenSize) { } - void UpdateImpl(ChildrenMainSizePeer* peer, + void UpdateImpl(Ark_ChildrenMainSize peer, const Ark_Number* index, const Ark_Number* childSize) { } - Ark_Int32 GetChildDefaultSizeImpl(ChildrenMainSizePeer* peer) + Ark_Int32 GetChildDefaultSizeImpl(Ark_ChildrenMainSize peer) { return {}; } - void SetChildDefaultSizeImpl(ChildrenMainSizePeer* peer, + void SetChildDefaultSizeImpl(Ark_ChildrenMainSize peer, const Ark_Number* childDefaultSize) { } } // ChildrenMainSizeAccessor namespace UICommonEventAccessor { - void DestroyPeerImpl(UICommonEventPeer* peer) + void DestroyPeerImpl(Ark_UICommonEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12597,54 +12737,54 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetOnClickImpl(UICommonEventPeer* peer, + void SetOnClickImpl(Ark_UICommonEvent peer, const Opt_Callback_ClickEvent_Void* callback_) { } - void SetOnTouchImpl(UICommonEventPeer* peer, + void SetOnTouchImpl(Ark_UICommonEvent peer, const Opt_Callback_TouchEvent_Void* callback_) { } - void SetOnAppearImpl(UICommonEventPeer* peer, + void SetOnAppearImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { } - void SetOnDisappearImpl(UICommonEventPeer* peer, + void SetOnDisappearImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { } - void SetOnKeyEventImpl(UICommonEventPeer* peer, + void SetOnKeyEventImpl(Ark_UICommonEvent peer, const Opt_Callback_KeyEvent_Void* callback_) { } - void SetOnFocusImpl(UICommonEventPeer* peer, + void SetOnFocusImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { } - void SetOnBlurImpl(UICommonEventPeer* peer, + void SetOnBlurImpl(Ark_UICommonEvent peer, const Opt_Callback_Void* callback_) { } - void SetOnHoverImpl(UICommonEventPeer* peer, + void SetOnHoverImpl(Ark_UICommonEvent peer, const Opt_HoverCallback* callback_) { } - void SetOnMouseImpl(UICommonEventPeer* peer, + void SetOnMouseImpl(Ark_UICommonEvent peer, const Opt_Callback_MouseEvent_Void* callback_) { } - void SetOnSizeChangeImpl(UICommonEventPeer* peer, + void SetOnSizeChangeImpl(Ark_UICommonEvent peer, const Opt_SizeChangeCallback* callback_) { } - void SetOnVisibleAreaApproximateChangeImpl(UICommonEventPeer* peer, + void SetOnVisibleAreaApproximateChangeImpl(Ark_UICommonEvent peer, const Ark_VisibleAreaEventOptions* options, const Opt_VisibleAreaChangeCallback* event) { } } // UICommonEventAccessor namespace GestureModifierAccessor { - void DestroyPeerImpl(GestureModifierPeer* peer) + void DestroyPeerImpl(Ark_GestureModifier peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12659,81 +12799,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ApplyGestureImpl(GestureModifierPeer* peer, + void ApplyGestureImpl(Ark_GestureModifier peer, const Ark_UIGestureEvent* event) { } } // GestureModifierAccessor - namespace GlobalScope_commonAccessor { - void DestroyPeerImpl(GlobalScope_commonPeer* peer) - { - auto peerImpl = reinterpret_cast(peer); - if (peerImpl) { - delete peerImpl; - } - } - Ark_NativePointer GetContextImpl(const Opt_CustomObject* component) - { - return {}; - } - void PostCardActionImpl(const Ark_CustomObject* component, - const Ark_CustomObject* action) - { - } - Ark_NativePointer Dollar_rImpl(const Ark_String* value, - const Array_CustomObject* params) - { - return {}; - } - Ark_NativePointer Dollar_rawfileImpl(const Ark_String* value) - { - return {}; - } - void AnimateToImpl(const Ark_AnimateParam* value, - const Callback_Void* event) - { - } - void AnimateToImmediatelyImpl(const Ark_AnimateParam* value, - const Callback_Void* event) - { - } - Ark_Int32 Vp2pxImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Px2vpImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Fp2pxImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Px2fpImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Lpx2pxImpl(const Ark_Number* value) - { - return {}; - } - Ark_Int32 Px2lpxImpl(const Ark_Number* value) - { - return {}; - } - Ark_Boolean RequestFocusImpl(const Ark_String* value) - { - return {}; - } - void SetCursorImpl(Ark_PointerStyle value) - { - } - void RestoreDefaultImpl() - { - } - } // GlobalScope_commonAccessor namespace ContextMenuAccessor { - void DestroyPeerImpl(ContextMenuPeer* peer) + void DestroyPeerImpl(Ark_ContextMenu peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12753,7 +12825,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ContextMenuAccessor namespace CustomDialogControllerAccessor { - void DestroyPeerImpl(CustomDialogControllerPeer* peer) + void DestroyPeerImpl(Ark_CustomDialogController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12768,15 +12840,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void OpenImpl(CustomDialogControllerPeer* peer) + void OpenImpl(Ark_CustomDialogController peer) { } - void CloseImpl(CustomDialogControllerPeer* peer) + void CloseImpl(Ark_CustomDialogController peer) { } } // CustomDialogControllerAccessor namespace LinearGradientAccessor { - void DestroyPeerImpl(LinearGradientPeer* peer) + void DestroyPeerImpl(Ark_LinearGradient peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12793,7 +12865,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // LinearGradientAccessor namespace DatePickerDialogAccessor { - void DestroyPeerImpl(DatePickerDialogPeer* peer) + void DestroyPeerImpl(Ark_DatePickerDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12813,7 +12885,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // DatePickerDialogAccessor namespace BaseGestureEventAccessor { - void DestroyPeerImpl(BaseGestureEventPeer* peer) + void DestroyPeerImpl(Ark_BaseGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12828,13 +12900,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetFingerListImpl(BaseGestureEventPeer* peer, + Array_FingerInfo GetFingerListImpl(Ark_BaseGestureEvent peer) + { + return {}; + } + void SetFingerListImpl(Ark_BaseGestureEvent peer, const Array_FingerInfo* fingerList) { } } // BaseGestureEventAccessor namespace TapGestureEventAccessor { - void DestroyPeerImpl(TapGestureEventPeer* peer) + void DestroyPeerImpl(Ark_TapGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12851,7 +12927,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TapGestureEventAccessor namespace LongPressGestureEventAccessor { - void DestroyPeerImpl(LongPressGestureEventPeer* peer) + void DestroyPeerImpl(Ark_LongPressGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12866,17 +12942,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetRepeatImpl(LongPressGestureEventPeer* peer) + Ark_Boolean GetRepeatImpl(Ark_LongPressGestureEvent peer) { return {}; } - void SetRepeatImpl(LongPressGestureEventPeer* peer, + void SetRepeatImpl(Ark_LongPressGestureEvent peer, Ark_Boolean repeat) { } } // LongPressGestureEventAccessor namespace PanGestureEventAccessor { - void DestroyPeerImpl(PanGestureEventPeer* peer) + void DestroyPeerImpl(Ark_PanGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12891,49 +12967,49 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetOffsetXImpl(PanGestureEventPeer* peer) + Ark_Int32 GetOffsetXImpl(Ark_PanGestureEvent peer) { return {}; } - void SetOffsetXImpl(PanGestureEventPeer* peer, + void SetOffsetXImpl(Ark_PanGestureEvent peer, const Ark_Number* offsetX) { } - Ark_Int32 GetOffsetYImpl(PanGestureEventPeer* peer) + Ark_Int32 GetOffsetYImpl(Ark_PanGestureEvent peer) { return {}; } - void SetOffsetYImpl(PanGestureEventPeer* peer, + void SetOffsetYImpl(Ark_PanGestureEvent peer, const Ark_Number* offsetY) { } - Ark_Int32 GetVelocityXImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_PanGestureEvent peer) { return {}; } - void SetVelocityXImpl(PanGestureEventPeer* peer, + void SetVelocityXImpl(Ark_PanGestureEvent peer, const Ark_Number* velocityX) { } - Ark_Int32 GetVelocityYImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_PanGestureEvent peer) { return {}; } - void SetVelocityYImpl(PanGestureEventPeer* peer, + void SetVelocityYImpl(Ark_PanGestureEvent peer, const Ark_Number* velocityY) { } - Ark_Int32 GetVelocityImpl(PanGestureEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_PanGestureEvent peer) { return {}; } - void SetVelocityImpl(PanGestureEventPeer* peer, + void SetVelocityImpl(Ark_PanGestureEvent peer, const Ark_Number* velocity) { } } // PanGestureEventAccessor namespace PinchGestureEventAccessor { - void DestroyPeerImpl(PinchGestureEventPeer* peer) + void DestroyPeerImpl(Ark_PinchGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12948,33 +13024,33 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetScaleImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetScaleImpl(Ark_PinchGestureEvent peer) { return {}; } - void SetScaleImpl(PinchGestureEventPeer* peer, + void SetScaleImpl(Ark_PinchGestureEvent peer, const Ark_Number* scale) { } - Ark_Int32 GetPinchCenterXImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetPinchCenterXImpl(Ark_PinchGestureEvent peer) { return {}; } - void SetPinchCenterXImpl(PinchGestureEventPeer* peer, + void SetPinchCenterXImpl(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterX) { } - Ark_Int32 GetPinchCenterYImpl(PinchGestureEventPeer* peer) + Ark_Int32 GetPinchCenterYImpl(Ark_PinchGestureEvent peer) { return {}; } - void SetPinchCenterYImpl(PinchGestureEventPeer* peer, + void SetPinchCenterYImpl(Ark_PinchGestureEvent peer, const Ark_Number* pinchCenterY) { } } // PinchGestureEventAccessor namespace RotationGestureEventAccessor { - void DestroyPeerImpl(RotationGestureEventPeer* peer) + void DestroyPeerImpl(Ark_RotationGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -12989,17 +13065,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetAngleImpl(RotationGestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_RotationGestureEvent peer) { return {}; } - void SetAngleImpl(RotationGestureEventPeer* peer, + void SetAngleImpl(Ark_RotationGestureEvent peer, const Ark_Number* angle) { } } // RotationGestureEventAccessor namespace SwipeGestureEventAccessor { - void DestroyPeerImpl(SwipeGestureEventPeer* peer) + void DestroyPeerImpl(Ark_SwipeGestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13014,25 +13090,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetAngleImpl(SwipeGestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_SwipeGestureEvent peer) { return {}; } - void SetAngleImpl(SwipeGestureEventPeer* peer, + void SetAngleImpl(Ark_SwipeGestureEvent peer, const Ark_Number* angle) { } - Ark_Int32 GetSpeedImpl(SwipeGestureEventPeer* peer) + Ark_Int32 GetSpeedImpl(Ark_SwipeGestureEvent peer) { return {}; } - void SetSpeedImpl(SwipeGestureEventPeer* peer, + void SetSpeedImpl(Ark_SwipeGestureEvent peer, const Ark_Number* speed) { } } // SwipeGestureEventAccessor namespace GestureEventAccessor { - void DestroyPeerImpl(GestureEventPeer* peer) + void DestroyPeerImpl(Ark_GestureEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13047,101 +13123,105 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean GetRepeatImpl(GestureEventPeer* peer) + Ark_Boolean GetRepeatImpl(Ark_GestureEvent peer) { return {}; } - void SetRepeatImpl(GestureEventPeer* peer, + void SetRepeatImpl(Ark_GestureEvent peer, Ark_Boolean repeat) { } - void SetFingerListImpl(GestureEventPeer* peer, + Array_FingerInfo GetFingerListImpl(Ark_GestureEvent peer) + { + return {}; + } + void SetFingerListImpl(Ark_GestureEvent peer, const Array_FingerInfo* fingerList) { } - Ark_Int32 GetOffsetXImpl(GestureEventPeer* peer) + Ark_Int32 GetOffsetXImpl(Ark_GestureEvent peer) { return {}; } - void SetOffsetXImpl(GestureEventPeer* peer, + void SetOffsetXImpl(Ark_GestureEvent peer, const Ark_Number* offsetX) { } - Ark_Int32 GetOffsetYImpl(GestureEventPeer* peer) + Ark_Int32 GetOffsetYImpl(Ark_GestureEvent peer) { return {}; } - void SetOffsetYImpl(GestureEventPeer* peer, + void SetOffsetYImpl(Ark_GestureEvent peer, const Ark_Number* offsetY) { } - Ark_Int32 GetAngleImpl(GestureEventPeer* peer) + Ark_Int32 GetAngleImpl(Ark_GestureEvent peer) { return {}; } - void SetAngleImpl(GestureEventPeer* peer, + void SetAngleImpl(Ark_GestureEvent peer, const Ark_Number* angle) { } - Ark_Int32 GetSpeedImpl(GestureEventPeer* peer) + Ark_Int32 GetSpeedImpl(Ark_GestureEvent peer) { return {}; } - void SetSpeedImpl(GestureEventPeer* peer, + void SetSpeedImpl(Ark_GestureEvent peer, const Ark_Number* speed) { } - Ark_Int32 GetScaleImpl(GestureEventPeer* peer) + Ark_Int32 GetScaleImpl(Ark_GestureEvent peer) { return {}; } - void SetScaleImpl(GestureEventPeer* peer, + void SetScaleImpl(Ark_GestureEvent peer, const Ark_Number* scale) { } - Ark_Int32 GetPinchCenterXImpl(GestureEventPeer* peer) + Ark_Int32 GetPinchCenterXImpl(Ark_GestureEvent peer) { return {}; } - void SetPinchCenterXImpl(GestureEventPeer* peer, + void SetPinchCenterXImpl(Ark_GestureEvent peer, const Ark_Number* pinchCenterX) { } - Ark_Int32 GetPinchCenterYImpl(GestureEventPeer* peer) + Ark_Int32 GetPinchCenterYImpl(Ark_GestureEvent peer) { return {}; } - void SetPinchCenterYImpl(GestureEventPeer* peer, + void SetPinchCenterYImpl(Ark_GestureEvent peer, const Ark_Number* pinchCenterY) { } - Ark_Int32 GetVelocityXImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityXImpl(Ark_GestureEvent peer) { return {}; } - void SetVelocityXImpl(GestureEventPeer* peer, + void SetVelocityXImpl(Ark_GestureEvent peer, const Ark_Number* velocityX) { } - Ark_Int32 GetVelocityYImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityYImpl(Ark_GestureEvent peer) { return {}; } - void SetVelocityYImpl(GestureEventPeer* peer, + void SetVelocityYImpl(Ark_GestureEvent peer, const Ark_Number* velocityY) { } - Ark_Int32 GetVelocityImpl(GestureEventPeer* peer) + Ark_Int32 GetVelocityImpl(Ark_GestureEvent peer) { return {}; } - void SetVelocityImpl(GestureEventPeer* peer, + void SetVelocityImpl(Ark_GestureEvent peer, const Ark_Number* velocity) { } } // GestureEventAccessor namespace PanGestureOptionsAccessor { - void DestroyPeerImpl(PanGestureOptionsPeer* peer) + void DestroyPeerImpl(Ark_PanGestureOptions peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13156,25 +13236,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetDirectionImpl(PanGestureOptionsPeer* peer, + void SetDirectionImpl(Ark_PanGestureOptions peer, Ark_PanDirection value) { } - void SetDistanceImpl(PanGestureOptionsPeer* peer, + void SetDistanceImpl(Ark_PanGestureOptions peer, const Ark_Number* value) { } - void SetFingersImpl(PanGestureOptionsPeer* peer, + void SetFingersImpl(Ark_PanGestureOptions peer, const Ark_Number* value) { } - Ark_NativePointer GetDirectionImpl(PanGestureOptionsPeer* peer) + Ark_PanDirection GetDirectionImpl(Ark_PanGestureOptions peer) { return {}; } } // PanGestureOptionsAccessor namespace ScrollableTargetInfoAccessor { - void DestroyPeerImpl(ScrollableTargetInfoPeer* peer) + void DestroyPeerImpl(Ark_ScrollableTargetInfo peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13189,17 +13269,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean IsBeginImpl(ScrollableTargetInfoPeer* peer) + Ark_Boolean IsBeginImpl(Ark_ScrollableTargetInfo peer) { return {}; } - Ark_Boolean IsEndImpl(ScrollableTargetInfoPeer* peer) + Ark_Boolean IsEndImpl(Ark_ScrollableTargetInfo peer) { return {}; } } // ScrollableTargetInfoAccessor namespace EventTargetInfoAccessor { - void DestroyPeerImpl(EventTargetInfoPeer* peer) + void DestroyPeerImpl(Ark_EventTargetInfo peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13214,12 +13294,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetIdImpl(EventTargetInfoPeer* peer) + Ark_String GetIdImpl(Ark_EventTargetInfo peer) { + return {}; } } // EventTargetInfoAccessor namespace GestureRecognizerAccessor { - void DestroyPeerImpl(GestureRecognizerPeer* peer) + void DestroyPeerImpl(Ark_GestureRecognizer peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13234,40 +13315,41 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetTagImpl(GestureRecognizerPeer* peer) + Ark_String GetTagImpl(Ark_GestureRecognizer peer) { + return {}; } - Ark_NativePointer GetTypeImpl(GestureRecognizerPeer* peer) + Ark_GestureControl_GestureType GetTypeImpl(Ark_GestureRecognizer peer) { return {}; } - Ark_Boolean IsBuiltInImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsBuiltInImpl(Ark_GestureRecognizer peer) { return {}; } - void SetEnabledImpl(GestureRecognizerPeer* peer, + void SetEnabledImpl(Ark_GestureRecognizer peer, Ark_Boolean isEnabled) { } - Ark_Boolean IsEnabledImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsEnabledImpl(Ark_GestureRecognizer peer) { return {}; } - Ark_NativePointer GetStateImpl(GestureRecognizerPeer* peer) + Ark_GestureRecognizerState GetStateImpl(Ark_GestureRecognizer peer) { return {}; } - Ark_EventTargetInfo GetEventTargetInfoImpl(GestureRecognizerPeer* peer) + Ark_EventTargetInfo GetEventTargetInfoImpl(Ark_GestureRecognizer peer) { return {}; } - Ark_Boolean IsValidImpl(GestureRecognizerPeer* peer) + Ark_Boolean IsValidImpl(Ark_GestureRecognizer peer) { return {}; } } // GestureRecognizerAccessor namespace PanRecognizerAccessor { - void DestroyPeerImpl(PanRecognizerPeer* peer) + void DestroyPeerImpl(Ark_PanRecognizer peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13282,13 +13364,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_PanGestureOptions GetPanGestureOptionsImpl(PanRecognizerPeer* peer) + Ark_PanGestureOptions GetPanGestureOptionsImpl(Ark_PanRecognizer peer) { return {}; } } // PanRecognizerAccessor namespace ImageAnalyzerControllerAccessor { - void DestroyPeerImpl(ImageAnalyzerControllerPeer* peer) + void DestroyPeerImpl(Ark_ImageAnalyzerController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13303,12 +13385,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetImageAnalyzerSupportTypesImpl(ImageAnalyzerControllerPeer* peer) + Array_ImageAnalyzerType GetImageAnalyzerSupportTypesImpl(Ark_ImageAnalyzerController peer) { + return {}; } } // ImageAnalyzerControllerAccessor namespace ListScrollerAccessor { - void DestroyPeerImpl(ListScrollerPeer* peer) + void DestroyPeerImpl(Ark_ListScroller peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13323,32 +13406,32 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetItemRectInGroupImpl(ListScrollerPeer* peer, - const Ark_Number* index, - const Ark_Number* indexInGroup) + Ark_RectResult GetItemRectInGroupImpl(Ark_ListScroller peer, + const Ark_Number* index, + const Ark_Number* indexInGroup) { return {}; } - void ScrollToItemInGroupImpl(ListScrollerPeer* peer, + void ScrollToItemInGroupImpl(Ark_ListScroller peer, const Ark_Number* index, const Ark_Number* indexInGroup, const Opt_Boolean* smooth, const Opt_ScrollAlign* align) { } - void CloseAllSwipeActionsImpl(ListScrollerPeer* peer, + void CloseAllSwipeActionsImpl(Ark_ListScroller peer, const Opt_CloseSwipeActionOptions* options) { } - Ark_NativePointer GetVisibleListContentInfoImpl(ListScrollerPeer* peer, - const Ark_Number* x, - const Ark_Number* y) + Ark_VisibleListContentInfo GetVisibleListContentInfoImpl(Ark_ListScroller peer, + const Ark_Number* x, + const Ark_Number* y) { return {}; } } // ListScrollerAccessor namespace Matrix2DAccessor { - void DestroyPeerImpl(Matrix2DPeer* peer) + void DestroyPeerImpl(Ark_Matrix2D peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13363,95 +13446,95 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Matrix2D IdentityImpl(Matrix2DPeer* peer) + Ark_Matrix2D IdentityImpl(Ark_Matrix2D peer) { return {}; } - Ark_Matrix2D InvertImpl(Matrix2DPeer* peer) + Ark_Matrix2D InvertImpl(Ark_Matrix2D peer) { return {}; } - Ark_Matrix2D MultiplyImpl(Matrix2DPeer* peer, + Ark_Matrix2D MultiplyImpl(Ark_Matrix2D peer, const Opt_Matrix2D* other) { return {}; } - Ark_Matrix2D Rotate0Impl(Matrix2DPeer* peer, + Ark_Matrix2D Rotate0Impl(Ark_Matrix2D peer, const Opt_Number* rx, const Opt_Number* ry) { return {}; } - Ark_Matrix2D Rotate1Impl(Matrix2DPeer* peer, + Ark_Matrix2D Rotate1Impl(Ark_Matrix2D peer, const Ark_Number* degree, const Opt_Number* rx, const Opt_Number* ry) { return {}; } - Ark_Matrix2D TranslateImpl(Matrix2DPeer* peer, + Ark_Matrix2D TranslateImpl(Ark_Matrix2D peer, const Opt_Number* tx, const Opt_Number* ty) { return {}; } - Ark_Matrix2D ScaleImpl(Matrix2DPeer* peer, + Ark_Matrix2D ScaleImpl(Ark_Matrix2D peer, const Opt_Number* sx, const Opt_Number* sy) { return {}; } - Ark_Int32 GetScaleXImpl(Matrix2DPeer* peer) + Ark_Int32 GetScaleXImpl(Ark_Matrix2D peer) { return {}; } - void SetScaleXImpl(Matrix2DPeer* peer, + void SetScaleXImpl(Ark_Matrix2D peer, const Ark_Number* scaleX) { } - Ark_Int32 GetRotateYImpl(Matrix2DPeer* peer) + Ark_Int32 GetRotateYImpl(Ark_Matrix2D peer) { return {}; } - void SetRotateYImpl(Matrix2DPeer* peer, + void SetRotateYImpl(Ark_Matrix2D peer, const Ark_Number* rotateY) { } - Ark_Int32 GetRotateXImpl(Matrix2DPeer* peer) + Ark_Int32 GetRotateXImpl(Ark_Matrix2D peer) { return {}; } - void SetRotateXImpl(Matrix2DPeer* peer, + void SetRotateXImpl(Ark_Matrix2D peer, const Ark_Number* rotateX) { } - Ark_Int32 GetScaleYImpl(Matrix2DPeer* peer) + Ark_Int32 GetScaleYImpl(Ark_Matrix2D peer) { return {}; } - void SetScaleYImpl(Matrix2DPeer* peer, + void SetScaleYImpl(Ark_Matrix2D peer, const Ark_Number* scaleY) { } - Ark_Int32 GetTranslateXImpl(Matrix2DPeer* peer) + Ark_Int32 GetTranslateXImpl(Ark_Matrix2D peer) { return {}; } - void SetTranslateXImpl(Matrix2DPeer* peer, + void SetTranslateXImpl(Ark_Matrix2D peer, const Ark_Number* translateX) { } - Ark_Int32 GetTranslateYImpl(Matrix2DPeer* peer) + Ark_Int32 GetTranslateYImpl(Ark_Matrix2D peer) { return {}; } - void SetTranslateYImpl(Matrix2DPeer* peer, + void SetTranslateYImpl(Ark_Matrix2D peer, const Ark_Number* translateY) { } } // Matrix2DAccessor namespace NavDestinationContextAccessor { - void DestroyPeerImpl(NavDestinationContextPeer* peer) + void DestroyPeerImpl(Ark_NavDestinationContext peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13466,28 +13549,29 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetConfigInRouteMapImpl(NavDestinationContextPeer* peer) + Opt_RouteMapConfig GetConfigInRouteMapImpl(Ark_NavDestinationContext peer) { return {}; } - void SetPathInfoImpl(NavDestinationContextPeer* peer, + void SetPathInfoImpl(Ark_NavDestinationContext peer, Ark_NavPathInfo pathInfo) { } - void SetPathStackImpl(NavDestinationContextPeer* peer, + void SetPathStackImpl(Ark_NavDestinationContext peer, Ark_NavPathStack pathStack) { } - void GetNavDestinationIdImpl(NavDestinationContextPeer* peer) + Ark_String GetNavDestinationIdImpl(Ark_NavDestinationContext peer) { + return {}; } - void SetNavDestinationIdImpl(NavDestinationContextPeer* peer, + void SetNavDestinationIdImpl(Ark_NavDestinationContext peer, const Ark_String* navDestinationId) { } } // NavDestinationContextAccessor namespace NavPathInfoAccessor { - void DestroyPeerImpl(NavPathInfoPeer* peer) + void DestroyPeerImpl(Ark_NavPathInfo peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13505,36 +13589,37 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetNameImpl(NavPathInfoPeer* peer) + Ark_String GetNameImpl(Ark_NavPathInfo peer) { + return {}; } - void SetNameImpl(NavPathInfoPeer* peer, + void SetNameImpl(Ark_NavPathInfo peer, const Ark_String* name) { } - void SetParamImpl(NavPathInfoPeer* peer, + void SetParamImpl(Ark_NavPathInfo peer, const Ark_CustomObject* param) { } - Callback_PopInfo_Void GetOnPopImpl(NavPathInfoPeer* peer) + Callback_PopInfo_Void GetOnPopImpl(Ark_NavPathInfo peer) { return {}; } - void SetOnPopImpl(NavPathInfoPeer* peer, + void SetOnPopImpl(Ark_NavPathInfo peer, const Callback_PopInfo_Void* onPop) { } - Ark_Boolean GetIsEntryImpl(NavPathInfoPeer* peer) + Ark_Boolean GetIsEntryImpl(Ark_NavPathInfo peer) { return {}; } - void SetIsEntryImpl(NavPathInfoPeer* peer, + void SetIsEntryImpl(Ark_NavPathInfo peer, Ark_Boolean isEntry) { } } // NavPathInfoAccessor namespace NavPathStackAccessor { - void DestroyPeerImpl(NavPathStackPeer* peer) + void DestroyPeerImpl(Ark_NavPathStack peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13549,49 +13634,49 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void PushPath0Impl(NavPathStackPeer* peer, + void PushPath0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated) { } - void PushPath1Impl(NavPathStackPeer* peer, + void PushPath1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options) { } - void PushDestination0Impl(NavPathStackPeer* peer, + void PushDestination0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void PushDestination1Impl(NavPathStackPeer* peer, + void PushDestination1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void PushPathByName0Impl(NavPathStackPeer* peer, + void PushPathByName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated) { } - void PushPathByName1Impl(NavPathStackPeer* peer, + void PushPathByName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, const Opt_Boolean* animated) { } - void PushDestinationByName0Impl(NavPathStackPeer* peer, + void PushDestinationByName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void PushDestinationByName1Impl(NavPathStackPeer* peer, + void PushDestinationByName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Callback_PopInfo_Void* onPop, @@ -13599,127 +13684,131 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void ReplacePath0Impl(NavPathStackPeer* peer, + void ReplacePath0Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_Boolean* animated) { } - void ReplacePath1Impl(NavPathStackPeer* peer, + void ReplacePath1Impl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options) { } - void ReplaceDestinationImpl(NavPathStackPeer* peer, + void ReplaceDestinationImpl(Ark_NavPathStack peer, Ark_NavPathInfo info, const Opt_NavigationOptions* options, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void ReplacePathByNameImpl(NavPathStackPeer* peer, + void ReplacePathByNameImpl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* param, const Opt_Boolean* animated) { } - Ark_Int32 RemoveByIndexesImpl(NavPathStackPeer* peer, + Ark_Int32 RemoveByIndexesImpl(Ark_NavPathStack peer, const Array_Number* indexes) { return {}; } - Ark_Int32 RemoveByNameImpl(NavPathStackPeer* peer, + Ark_Int32 RemoveByNameImpl(Ark_NavPathStack peer, const Ark_String* name) { return {}; } - Ark_Boolean RemoveByNavDestinationIdImpl(NavPathStackPeer* peer, + Ark_Boolean RemoveByNavDestinationIdImpl(Ark_NavPathStack peer, const Ark_String* navDestinationId) { return {}; } - Ark_NavPathInfo Pop0Impl(NavPathStackPeer* peer, + Opt_NavPathInfo Pop0Impl(Ark_NavPathStack peer, const Opt_Boolean* animated) { return {}; } - Ark_NavPathInfo Pop1Impl(NavPathStackPeer* peer, + Opt_NavPathInfo Pop1Impl(Ark_NavPathStack peer, const Ark_CustomObject* result, const Opt_Boolean* animated) { return {}; } - Ark_Int32 PopToName0Impl(NavPathStackPeer* peer, + Ark_Int32 PopToName0Impl(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated) { return {}; } - Ark_Int32 PopToName1Impl(NavPathStackPeer* peer, + Ark_Int32 PopToName1Impl(Ark_NavPathStack peer, const Ark_String* name, const Ark_CustomObject* result, const Opt_Boolean* animated) { return {}; } - void PopToIndex0Impl(NavPathStackPeer* peer, + void PopToIndex0Impl(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated) { } - void PopToIndex1Impl(NavPathStackPeer* peer, + void PopToIndex1Impl(Ark_NavPathStack peer, const Ark_Number* index, const Ark_CustomObject* result, const Opt_Boolean* animated) { } - Ark_Int32 MoveToTopImpl(NavPathStackPeer* peer, + Ark_Int32 MoveToTopImpl(Ark_NavPathStack peer, const Ark_String* name, const Opt_Boolean* animated) { return {}; } - void MoveIndexToTopImpl(NavPathStackPeer* peer, + void MoveIndexToTopImpl(Ark_NavPathStack peer, const Ark_Number* index, const Opt_Boolean* animated) { } - void ClearImpl(NavPathStackPeer* peer, + void ClearImpl(Ark_NavPathStack peer, const Opt_Boolean* animated) { } - void GetAllPathNameImpl(NavPathStackPeer* peer) + Array_String GetAllPathNameImpl(Ark_NavPathStack peer) { + return {}; } - void GetParamByIndexImpl(NavPathStackPeer* peer, - const Ark_Number* index) + Opt_CustomObject GetParamByIndexImpl(Ark_NavPathStack peer, + const Ark_Number* index) { + return {}; } - void GetParamByNameImpl(NavPathStackPeer* peer, - const Ark_String* name) + Array_CustomObject GetParamByNameImpl(Ark_NavPathStack peer, + const Ark_String* name) { + return {}; } - void GetIndexByNameImpl(NavPathStackPeer* peer, - const Ark_String* name) + Array_Number GetIndexByNameImpl(Ark_NavPathStack peer, + const Ark_String* name) { + return {}; } - Ark_NavPathStack GetParentImpl(NavPathStackPeer* peer) + Opt_NavPathStack GetParentImpl(Ark_NavPathStack peer) { return {}; } - Ark_Int32 SizeImpl(NavPathStackPeer* peer) + Ark_Int32 SizeImpl(Ark_NavPathStack peer) { return {}; } - void DisableAnimationImpl(NavPathStackPeer* peer, + void DisableAnimationImpl(Ark_NavPathStack peer, Ark_Boolean value) { } - void SetInterceptionImpl(NavPathStackPeer* peer, + void SetInterceptionImpl(Ark_NavPathStack peer, const Ark_NavigationInterception* interception) { } } // NavPathStackAccessor namespace NavigationTransitionProxyAccessor { - void DestroyPeerImpl(NavigationTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_NavigationTransitionProxy peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13734,35 +13823,35 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void FinishTransitionImpl(NavigationTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_NavigationTransitionProxy peer) { } - void CancelTransitionImpl(NavigationTransitionProxyPeer* peer) + void CancelTransitionImpl(Ark_NavigationTransitionProxy peer) { } - void UpdateTransitionImpl(NavigationTransitionProxyPeer* peer, + void UpdateTransitionImpl(Ark_NavigationTransitionProxy peer, const Ark_Number* progress) { } - void SetFromImpl(NavigationTransitionProxyPeer* peer, + void SetFromImpl(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* from) { } - void SetToImpl(NavigationTransitionProxyPeer* peer, + void SetToImpl(Ark_NavigationTransitionProxy peer, const Ark_NavContentInfo* to) { } - Ark_Boolean GetIsInteractiveImpl(NavigationTransitionProxyPeer* peer) + Ark_Boolean GetIsInteractiveImpl(Ark_NavigationTransitionProxy peer) { return {}; } - void SetIsInteractiveImpl(NavigationTransitionProxyPeer* peer, + void SetIsInteractiveImpl(Ark_NavigationTransitionProxy peer, Ark_Boolean isInteractive) { } } // NavigationTransitionProxyAccessor namespace PatternLockControllerAccessor { - void DestroyPeerImpl(PatternLockControllerPeer* peer) + void DestroyPeerImpl(Ark_PatternLockController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13777,16 +13866,16 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ResetImpl(PatternLockControllerPeer* peer) + void ResetImpl(Ark_PatternLockController peer) { } - void SetChallengeResultImpl(PatternLockControllerPeer* peer, + void SetChallengeResultImpl(Ark_PatternLockController peer, Ark_PatternLockChallengeResult result) { } } // PatternLockControllerAccessor namespace RichEditorBaseControllerAccessor { - void DestroyPeerImpl(RichEditorBaseControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorBaseController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13801,50 +13890,50 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetCaretOffsetImpl(RichEditorBaseControllerPeer* peer) + Ark_Int32 GetCaretOffsetImpl(Ark_RichEditorBaseController peer) { return {}; } - Ark_Boolean SetCaretOffsetImpl(RichEditorBaseControllerPeer* peer, + Ark_Boolean SetCaretOffsetImpl(Ark_RichEditorBaseController peer, const Ark_Number* offset) { return {}; } - void CloseSelectionMenuImpl(RichEditorBaseControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_RichEditorBaseController peer) { } - Ark_NativePointer GetTypingStyleImpl(RichEditorBaseControllerPeer* peer) + Ark_RichEditorTextStyle GetTypingStyleImpl(Ark_RichEditorBaseController peer) { return {}; } - void SetTypingStyleImpl(RichEditorBaseControllerPeer* peer, + void SetTypingStyleImpl(Ark_RichEditorBaseController peer, const Ark_RichEditorTextStyle* value) { } - void SetSelectionImpl(RichEditorBaseControllerPeer* peer, + void SetSelectionImpl(Ark_RichEditorBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) { } - Ark_Boolean IsEditingImpl(RichEditorBaseControllerPeer* peer) + Ark_Boolean IsEditingImpl(Ark_RichEditorBaseController peer) { return {}; } - void StopEditingImpl(RichEditorBaseControllerPeer* peer) + void StopEditingImpl(Ark_RichEditorBaseController peer) { } - Ark_LayoutManager GetLayoutManagerImpl(RichEditorBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_RichEditorBaseController peer) { return {}; } - Ark_NativePointer GetPreviewTextImpl(RichEditorBaseControllerPeer* peer) + Ark_PreviewText GetPreviewTextImpl(Ark_RichEditorBaseController peer) { return {}; } } // RichEditorBaseControllerAccessor namespace RichEditorControllerAccessor { - void DestroyPeerImpl(RichEditorControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13859,66 +13948,69 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 AddTextSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddTextSpanImpl(Ark_RichEditorController peer, const Ark_String* value, const Opt_RichEditorTextSpanOptions* options) { return {}; } - Ark_Int32 AddImageSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddImageSpanImpl(Ark_RichEditorController peer, const Ark_Union_PixelMap_ResourceStr* value, const Opt_RichEditorImageSpanOptions* options) { return {}; } - Ark_Int32 AddBuilderSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddBuilderSpanImpl(Ark_RichEditorController peer, const CustomNodeBuilder* value, const Opt_RichEditorBuilderSpanOptions* options) { return {}; } - Ark_Int32 AddSymbolSpanImpl(RichEditorControllerPeer* peer, + Ark_Int32 AddSymbolSpanImpl(Ark_RichEditorController peer, const Ark_Resource* value, const Opt_RichEditorSymbolSpanOptions* options) { return {}; } - void UpdateSpanStyleImpl(RichEditorControllerPeer* peer, + void UpdateSpanStyleImpl(Ark_RichEditorController peer, const Ark_Type_RichEditorController_updateSpanStyle_value* value) { } - void UpdateParagraphStyleImpl(RichEditorControllerPeer* peer, + void UpdateParagraphStyleImpl(Ark_RichEditorController peer, const Ark_RichEditorParagraphStyleOptions* value) { } - void DeleteSpansImpl(RichEditorControllerPeer* peer, + void DeleteSpansImpl(Ark_RichEditorController peer, const Opt_RichEditorRange* value) { } - void GetSpansImpl(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value) + Array_Union_RichEditorImageSpanResult_RichEditorTextSpanResult GetSpansImpl(Ark_RichEditorController peer, + const Opt_RichEditorRange* value) { + return {}; } - void GetParagraphsImpl(RichEditorControllerPeer* peer, - const Opt_RichEditorRange* value) + Array_RichEditorParagraphResult GetParagraphsImpl(Ark_RichEditorController peer, + const Opt_RichEditorRange* value) { + return {}; } - Ark_NativePointer GetSelectionImpl(RichEditorControllerPeer* peer) + Ark_RichEditorSelection GetSelectionImpl(Ark_RichEditorController peer) { return {}; } - void FromStyledStringImpl(RichEditorControllerPeer* peer, - Ark_StyledString value) + Array_RichEditorSpan FromStyledStringImpl(Ark_RichEditorController peer, + Ark_StyledString value) { + return {}; } - Ark_StyledString ToStyledStringImpl(RichEditorControllerPeer* peer, + Ark_StyledString ToStyledStringImpl(Ark_RichEditorController peer, const Ark_RichEditorRange* value) { return {}; } } // RichEditorControllerAccessor namespace RichEditorStyledStringControllerAccessor { - void DestroyPeerImpl(RichEditorStyledStringControllerPeer* peer) + void DestroyPeerImpl(Ark_RichEditorStyledStringController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13933,25 +14025,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetStyledStringImpl(RichEditorStyledStringControllerPeer* peer, + void SetStyledStringImpl(Ark_RichEditorStyledStringController peer, Ark_StyledString styledString) { } - Ark_MutableStyledString GetStyledStringImpl(RichEditorStyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(Ark_RichEditorStyledStringController peer) { return {}; } - Ark_NativePointer GetSelectionImpl(RichEditorStyledStringControllerPeer* peer) + Ark_RichEditorRange GetSelectionImpl(Ark_RichEditorStyledStringController peer) { return {}; } - void OnContentChangedImpl(RichEditorStyledStringControllerPeer* peer, + void OnContentChangedImpl(Ark_RichEditorStyledStringController peer, const Ark_StyledStringChangedListener* listener) { } } // RichEditorStyledStringControllerAccessor namespace ScrollerAccessor { - void DestroyPeerImpl(ScrollerPeer* peer) + void DestroyPeerImpl(Ark_Scroller peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -13966,53 +14058,53 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ScrollToImpl(ScrollerPeer* peer, + void ScrollToImpl(Ark_Scroller peer, const Ark_ScrollOptions* options) { } - void ScrollEdgeImpl(ScrollerPeer* peer, + void ScrollEdgeImpl(Ark_Scroller peer, Ark_Edge value, const Opt_ScrollEdgeOptions* options) { } - void FlingImpl(ScrollerPeer* peer, + void FlingImpl(Ark_Scroller peer, const Ark_Number* velocity) { } - void ScrollPage0Impl(ScrollerPeer* peer, + void ScrollPage0Impl(Ark_Scroller peer, const Ark_ScrollPageOptions* value) { } - void ScrollPage1Impl(ScrollerPeer* peer, + void ScrollPage1Impl(Ark_Scroller peer, const Ark_Literal_Boolean_next_Axis_direction* value) { } - Ark_NativePointer CurrentOffsetImpl(ScrollerPeer* peer) + Ark_OffsetResult CurrentOffsetImpl(Ark_Scroller peer) { return {}; } - void ScrollToIndexImpl(ScrollerPeer* peer, + void ScrollToIndexImpl(Ark_Scroller peer, const Ark_Number* value, const Opt_Boolean* smooth, const Opt_ScrollAlign* align, const Opt_ScrollToIndexOptions* options) { } - void ScrollByImpl(ScrollerPeer* peer, + void ScrollByImpl(Ark_Scroller peer, const Ark_Length* dx, const Ark_Length* dy) { } - Ark_Boolean IsAtEndImpl(ScrollerPeer* peer) + Ark_Boolean IsAtEndImpl(Ark_Scroller peer) { return {}; } - Ark_NativePointer GetItemRectImpl(ScrollerPeer* peer, - const Ark_Number* index) + Ark_RectResult GetItemRectImpl(Ark_Scroller peer, + const Ark_Number* index) { return {}; } - Ark_Int32 GetItemIndexImpl(ScrollerPeer* peer, + Ark_Int32 GetItemIndexImpl(Ark_Scroller peer, const Ark_Number* x, const Ark_Number* y) { @@ -14020,7 +14112,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ScrollerAccessor namespace SearchControllerAccessor { - void DestroyPeerImpl(SearchControllerPeer* peer) + void DestroyPeerImpl(Ark_SearchController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14035,14 +14127,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CaretPositionImpl(SearchControllerPeer* peer, + void CaretPositionImpl(Ark_SearchController peer, const Ark_Number* value) { } - void StopEditingImpl(SearchControllerPeer* peer) + void StopEditingImpl(Ark_SearchController peer) { } - void SetTextSelectionImpl(SearchControllerPeer* peer, + void SetTextSelectionImpl(Ark_SearchController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) @@ -14050,7 +14142,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // SearchControllerAccessor namespace SwiperControllerAccessor { - void DestroyPeerImpl(SwiperControllerPeer* peer) + void DestroyPeerImpl(Ark_SwiperController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14065,24 +14157,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ShowNextImpl(SwiperControllerPeer* peer) + void ShowNextImpl(Ark_SwiperController peer) { } - void ShowPreviousImpl(SwiperControllerPeer* peer) + void ShowPreviousImpl(Ark_SwiperController peer) { } - void ChangeIndexImpl(SwiperControllerPeer* peer, + void ChangeIndexImpl(Ark_SwiperController peer, const Ark_Number* index, const Opt_Boolean* useAnimation) { } - void FinishAnimationImpl(SwiperControllerPeer* peer, + void FinishAnimationImpl(Ark_SwiperController peer, const Opt_VoidCallback* callback_) { } } // SwiperControllerAccessor namespace SwiperContentTransitionProxyAccessor { - void DestroyPeerImpl(SwiperContentTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_SwiperContentTransitionProxy peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14097,44 +14189,44 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void FinishTransitionImpl(SwiperContentTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_SwiperContentTransitionProxy peer) { } - Ark_Int32 GetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetSelectedIndexImpl(Ark_SwiperContentTransitionProxy peer) { return {}; } - void SetSelectedIndexImpl(SwiperContentTransitionProxyPeer* peer, + void SetSelectedIndexImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* selectedIndex) { } - Ark_Int32 GetIndexImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetIndexImpl(Ark_SwiperContentTransitionProxy peer) { return {}; } - void SetIndexImpl(SwiperContentTransitionProxyPeer* peer, + void SetIndexImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* index) { } - Ark_Int32 GetPositionImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetPositionImpl(Ark_SwiperContentTransitionProxy peer) { return {}; } - void SetPositionImpl(SwiperContentTransitionProxyPeer* peer, + void SetPositionImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* position) { } - Ark_Int32 GetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer) + Ark_Int32 GetMainAxisLengthImpl(Ark_SwiperContentTransitionProxy peer) { return {}; } - void SetMainAxisLengthImpl(SwiperContentTransitionProxyPeer* peer, + void SetMainAxisLengthImpl(Ark_SwiperContentTransitionProxy peer, const Ark_Number* mainAxisLength) { } } // SwiperContentTransitionProxyAccessor namespace IndicatorComponentControllerAccessor { - void DestroyPeerImpl(IndicatorComponentControllerPeer* peer) + void DestroyPeerImpl(Ark_IndicatorComponentController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14149,20 +14241,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ShowNextImpl(IndicatorComponentControllerPeer* peer) + void ShowNextImpl(Ark_IndicatorComponentController peer) { } - void ShowPreviousImpl(IndicatorComponentControllerPeer* peer) + void ShowPreviousImpl(Ark_IndicatorComponentController peer) { } - void ChangeIndexImpl(IndicatorComponentControllerPeer* peer, + void ChangeIndexImpl(Ark_IndicatorComponentController peer, const Ark_Number* index, const Opt_Boolean* useAnimation) { } } // IndicatorComponentControllerAccessor namespace ScaleSymbolEffectAccessor { - void DestroyPeerImpl(ScaleSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_ScaleSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14178,25 +14270,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(ScaleSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_ScaleSymbolEffect peer) { return {}; } - void SetScopeImpl(ScaleSymbolEffectPeer* peer, + void SetScopeImpl(Ark_ScaleSymbolEffect peer, Ark_EffectScope scope) { } - Ark_NativePointer GetDirectionImpl(ScaleSymbolEffectPeer* peer) + Ark_EffectDirection GetDirectionImpl(Ark_ScaleSymbolEffect peer) { return {}; } - void SetDirectionImpl(ScaleSymbolEffectPeer* peer, + void SetDirectionImpl(Ark_ScaleSymbolEffect peer, Ark_EffectDirection direction) { } } // ScaleSymbolEffectAccessor namespace HierarchicalSymbolEffectAccessor { - void DestroyPeerImpl(HierarchicalSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_HierarchicalSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14211,17 +14303,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetFillStyleImpl(HierarchicalSymbolEffectPeer* peer) + Ark_EffectFillStyle GetFillStyleImpl(Ark_HierarchicalSymbolEffect peer) { return {}; } - void SetFillStyleImpl(HierarchicalSymbolEffectPeer* peer, + void SetFillStyleImpl(Ark_HierarchicalSymbolEffect peer, Ark_EffectFillStyle fillStyle) { } } // HierarchicalSymbolEffectAccessor namespace AppearSymbolEffectAccessor { - void DestroyPeerImpl(AppearSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_AppearSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14236,17 +14328,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(AppearSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_AppearSymbolEffect peer) { return {}; } - void SetScopeImpl(AppearSymbolEffectPeer* peer, + void SetScopeImpl(Ark_AppearSymbolEffect peer, Ark_EffectScope scope) { } } // AppearSymbolEffectAccessor namespace DisappearSymbolEffectAccessor { - void DestroyPeerImpl(DisappearSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_DisappearSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14261,17 +14353,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(DisappearSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_DisappearSymbolEffect peer) { return {}; } - void SetScopeImpl(DisappearSymbolEffectPeer* peer, + void SetScopeImpl(Ark_DisappearSymbolEffect peer, Ark_EffectScope scope) { } } // DisappearSymbolEffectAccessor namespace BounceSymbolEffectAccessor { - void DestroyPeerImpl(BounceSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_BounceSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14287,25 +14379,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(BounceSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_BounceSymbolEffect peer) { return {}; } - void SetScopeImpl(BounceSymbolEffectPeer* peer, + void SetScopeImpl(Ark_BounceSymbolEffect peer, Ark_EffectScope scope) { } - Ark_NativePointer GetDirectionImpl(BounceSymbolEffectPeer* peer) + Ark_EffectDirection GetDirectionImpl(Ark_BounceSymbolEffect peer) { return {}; } - void SetDirectionImpl(BounceSymbolEffectPeer* peer, + void SetDirectionImpl(Ark_BounceSymbolEffect peer, Ark_EffectDirection direction) { } } // BounceSymbolEffectAccessor namespace ReplaceSymbolEffectAccessor { - void DestroyPeerImpl(ReplaceSymbolEffectPeer* peer) + void DestroyPeerImpl(Ark_ReplaceSymbolEffect peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14320,17 +14412,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetScopeImpl(ReplaceSymbolEffectPeer* peer) + Ark_EffectScope GetScopeImpl(Ark_ReplaceSymbolEffect peer) { return {}; } - void SetScopeImpl(ReplaceSymbolEffectPeer* peer, + void SetScopeImpl(Ark_ReplaceSymbolEffect peer, Ark_EffectScope scope) { } } // ReplaceSymbolEffectAccessor namespace TabsControllerAccessor { - void DestroyPeerImpl(TabsControllerPeer* peer) + void DestroyPeerImpl(Ark_TabsController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14345,26 +14437,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ChangeIndexImpl(TabsControllerPeer* peer, + void ChangeIndexImpl(Ark_TabsController peer, const Ark_Number* value) { } - void PreloadItemsImpl(TabsControllerPeer* peer, + void PreloadItemsImpl(Ark_TabsController peer, const Opt_Array_Number* indices, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void SetTabBarTranslateImpl(TabsControllerPeer* peer, + void SetTabBarTranslateImpl(Ark_TabsController peer, const Ark_TranslateOptions* translate) { } - void SetTabBarOpacityImpl(TabsControllerPeer* peer, + void SetTabBarOpacityImpl(Ark_TabsController peer, const Ark_Number* opacity) { } } // TabsControllerAccessor namespace TabContentTransitionProxyAccessor { - void DestroyPeerImpl(TabContentTransitionProxyPeer* peer) + void DestroyPeerImpl(Ark_TabContentTransitionProxy peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14379,28 +14471,28 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void FinishTransitionImpl(TabContentTransitionProxyPeer* peer) + void FinishTransitionImpl(Ark_TabContentTransitionProxy peer) { } - Ark_Int32 GetFromImpl(TabContentTransitionProxyPeer* peer) + Ark_Int32 GetFromImpl(Ark_TabContentTransitionProxy peer) { return {}; } - void SetFromImpl(TabContentTransitionProxyPeer* peer, + void SetFromImpl(Ark_TabContentTransitionProxy peer, const Ark_Number* from) { } - Ark_Int32 GetToImpl(TabContentTransitionProxyPeer* peer) + Ark_Int32 GetToImpl(Ark_TabContentTransitionProxy peer) { return {}; } - void SetToImpl(TabContentTransitionProxyPeer* peer, + void SetToImpl(Ark_TabContentTransitionProxy peer, const Ark_Number* to) { } } // TabContentTransitionProxyAccessor namespace TextControllerAccessor { - void DestroyPeerImpl(TextControllerPeer* peer) + void DestroyPeerImpl(Ark_TextController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14415,20 +14507,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CloseSelectionMenuImpl(TextControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_TextController peer) { } - void SetStyledStringImpl(TextControllerPeer* peer, + void SetStyledStringImpl(Ark_TextController peer, Ark_StyledString value) { } - Ark_LayoutManager GetLayoutManagerImpl(TextControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_TextController peer) { return {}; } } // TextControllerAccessor namespace TextAreaControllerAccessor { - void DestroyPeerImpl(TextAreaControllerPeer* peer) + void DestroyPeerImpl(Ark_TextAreaController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14443,22 +14535,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CaretPositionImpl(TextAreaControllerPeer* peer, + void CaretPositionImpl(Ark_TextAreaController peer, const Ark_Number* value) { } - void SetTextSelectionImpl(TextAreaControllerPeer* peer, + void SetTextSelectionImpl(Ark_TextAreaController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) { } - void StopEditingImpl(TextAreaControllerPeer* peer) + void StopEditingImpl(Ark_TextAreaController peer) { } } // TextAreaControllerAccessor namespace TextClockControllerAccessor { - void DestroyPeerImpl(TextClockControllerPeer* peer) + void DestroyPeerImpl(Ark_TextClockController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14473,15 +14565,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void StartImpl(TextClockControllerPeer* peer) + void StartImpl(Ark_TextClockController peer) { } - void StopImpl(TextClockControllerPeer* peer) + void StopImpl(Ark_TextClockController peer) { } } // TextClockControllerAccessor namespace TextBaseControllerAccessor { - void DestroyPeerImpl(TextBaseControllerPeer* peer) + void DestroyPeerImpl(Ark_TextBaseController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14496,22 +14588,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetSelectionImpl(TextBaseControllerPeer* peer, + void SetSelectionImpl(Ark_TextBaseController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) { } - void CloseSelectionMenuImpl(TextBaseControllerPeer* peer) + void CloseSelectionMenuImpl(Ark_TextBaseController peer) { } - Ark_LayoutManager GetLayoutManagerImpl(TextBaseControllerPeer* peer) + Ark_LayoutManager GetLayoutManagerImpl(Ark_TextBaseController peer) { return {}; } } // TextBaseControllerAccessor namespace TextEditControllerExAccessor { - void DestroyPeerImpl(TextEditControllerExPeer* peer) + void DestroyPeerImpl(Ark_TextEditControllerEx peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14526,29 +14618,29 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean IsEditingImpl(TextEditControllerExPeer* peer) + Ark_Boolean IsEditingImpl(Ark_TextEditControllerEx peer) { return {}; } - void StopEditingImpl(TextEditControllerExPeer* peer) + void StopEditingImpl(Ark_TextEditControllerEx peer) { } - Ark_Boolean SetCaretOffsetImpl(TextEditControllerExPeer* peer, + Ark_Boolean SetCaretOffsetImpl(Ark_TextEditControllerEx peer, const Ark_Number* offset) { return {}; } - Ark_Int32 GetCaretOffsetImpl(TextEditControllerExPeer* peer) + Ark_Int32 GetCaretOffsetImpl(Ark_TextEditControllerEx peer) { return {}; } - Ark_NativePointer GetPreviewTextImpl(TextEditControllerExPeer* peer) + Ark_PreviewText GetPreviewTextImpl(Ark_TextEditControllerEx peer) { return {}; } } // TextEditControllerExAccessor namespace StyledStringControllerAccessor { - void DestroyPeerImpl(StyledStringControllerPeer* peer) + void DestroyPeerImpl(Ark_StyledStringController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14563,17 +14655,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetStyledStringImpl(StyledStringControllerPeer* peer, + void SetStyledStringImpl(Ark_StyledStringController peer, Ark_StyledString styledString) { } - Ark_MutableStyledString GetStyledStringImpl(StyledStringControllerPeer* peer) + Ark_MutableStyledString GetStyledStringImpl(Ark_StyledStringController peer) { return {}; } } // StyledStringControllerAccessor namespace LayoutManagerAccessor { - void DestroyPeerImpl(LayoutManagerPeer* peer) + void DestroyPeerImpl(Ark_LayoutManager peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14588,30 +14680,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetLineCountImpl(LayoutManagerPeer* peer) + Ark_Int32 GetLineCountImpl(Ark_LayoutManager peer) { return {}; } - Ark_NativePointer GetGlyphPositionAtCoordinateImpl(LayoutManagerPeer* peer, - const Ark_Number* x, - const Ark_Number* y) + Ark_PositionWithAffinity GetGlyphPositionAtCoordinateImpl(Ark_LayoutManager peer, + const Ark_Number* x, + const Ark_Number* y) { return {}; } - Ark_NativePointer GetLineMetricsImpl(LayoutManagerPeer* peer, - const Ark_Number* lineNumber) + Ark_LineMetrics GetLineMetricsImpl(Ark_LayoutManager peer, + const Ark_Number* lineNumber) { return {}; } - void GetRectsForRangeImpl(LayoutManagerPeer* peer, - const Ark_TextRange* range, - Ark_RectWidthStyle widthStyle, - Ark_RectHeightStyle heightStyle) + Array_TextBox GetRectsForRangeImpl(Ark_LayoutManager peer, + const Ark_TextRange* range, + Ark_RectWidthStyle widthStyle, + Ark_RectHeightStyle heightStyle) { + return {}; } } // LayoutManagerAccessor namespace TextMenuItemIdAccessor { - void DestroyPeerImpl(TextMenuItemIdPeer* peer) + void DestroyPeerImpl(Ark_TextMenuItemId peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14630,14 +14723,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return {}; } - Ark_Boolean EqualsImpl(TextMenuItemIdPeer* peer, + Ark_Boolean EqualsImpl(Ark_TextMenuItemId peer, Ark_TextMenuItemId id) { return {}; } } // TextMenuItemIdAccessor namespace EditMenuOptionsAccessor { - void DestroyPeerImpl(EditMenuOptionsPeer* peer) + void DestroyPeerImpl(Ark_EditMenuOptions peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14652,11 +14745,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void OnCreateMenuImpl(EditMenuOptionsPeer* peer, - const Array_TextMenuItem* menuItems) + Array_TextMenuItem OnCreateMenuImpl(Ark_EditMenuOptions peer, + const Array_TextMenuItem* menuItems) { + return {}; } - Ark_Boolean OnMenuItemClickImpl(EditMenuOptionsPeer* peer, + Ark_Boolean OnMenuItemClickImpl(Ark_EditMenuOptions peer, const Ark_TextMenuItem* menuItem, const Ark_TextRange* range) { @@ -14664,7 +14758,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // EditMenuOptionsAccessor namespace SubmitEventAccessor { - void DestroyPeerImpl(SubmitEventPeer* peer) + void DestroyPeerImpl(Ark_SubmitEvent peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14679,19 +14773,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void KeepEditableStateImpl(SubmitEventPeer* peer) + void KeepEditableStateImpl(Ark_SubmitEvent peer) { } - void GetTextImpl(SubmitEventPeer* peer) + Ark_String GetTextImpl(Ark_SubmitEvent peer) { + return {}; } - void SetTextImpl(SubmitEventPeer* peer, + void SetTextImpl(Ark_SubmitEvent peer, const Ark_String* text) { } } // SubmitEventAccessor namespace TextInputControllerAccessor { - void DestroyPeerImpl(TextInputControllerPeer* peer) + void DestroyPeerImpl(Ark_TextInputController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14706,22 +14801,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CaretPositionImpl(TextInputControllerPeer* peer, + void CaretPositionImpl(Ark_TextInputController peer, const Ark_Number* value) { } - void SetTextSelectionImpl(TextInputControllerPeer* peer, + void SetTextSelectionImpl(Ark_TextInputController peer, const Ark_Number* selectionStart, const Ark_Number* selectionEnd, const Opt_SelectionOptions* options) { } - void StopEditingImpl(TextInputControllerPeer* peer) + void StopEditingImpl(Ark_TextInputController peer) { } } // TextInputControllerAccessor namespace TextPickerDialogAccessor { - void DestroyPeerImpl(TextPickerDialogPeer* peer) + void DestroyPeerImpl(Ark_TextPickerDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14741,7 +14836,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TextPickerDialogAccessor namespace TextTimerControllerAccessor { - void DestroyPeerImpl(TextTimerControllerPeer* peer) + void DestroyPeerImpl(Ark_TextTimerController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14756,18 +14851,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void StartImpl(TextTimerControllerPeer* peer) + void StartImpl(Ark_TextTimerController peer) { } - void PauseImpl(TextTimerControllerPeer* peer) + void PauseImpl(Ark_TextTimerController peer) { } - void ResetImpl(TextTimerControllerPeer* peer) + void ResetImpl(Ark_TextTimerController peer) { } } // TextTimerControllerAccessor namespace TimePickerDialogAccessor { - void DestroyPeerImpl(TimePickerDialogPeer* peer) + void DestroyPeerImpl(Ark_TimePickerDialog peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14787,7 +14882,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // TimePickerDialogAccessor namespace ColorFilterAccessor { - void DestroyPeerImpl(ColorFilterPeer* peer) + void DestroyPeerImpl(Ark_ColorFilter peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14804,7 +14899,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // ColorFilterAccessor namespace VideoControllerAccessor { - void DestroyPeerImpl(VideoControllerPeer* peer) + void DestroyPeerImpl(Ark_VideoController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14819,37 +14914,37 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void StartImpl(VideoControllerPeer* peer) + void StartImpl(Ark_VideoController peer) { } - void PauseImpl(VideoControllerPeer* peer) + void PauseImpl(Ark_VideoController peer) { } - void StopImpl(VideoControllerPeer* peer) + void StopImpl(Ark_VideoController peer) { } - void SetCurrentTime0Impl(VideoControllerPeer* peer, + void SetCurrentTime0Impl(Ark_VideoController peer, const Ark_Number* value) { } - void RequestFullscreenImpl(VideoControllerPeer* peer, + void RequestFullscreenImpl(Ark_VideoController peer, Ark_Boolean value) { } - void ExitFullscreenImpl(VideoControllerPeer* peer) + void ExitFullscreenImpl(Ark_VideoController peer) { } - void SetCurrentTime1Impl(VideoControllerPeer* peer, + void SetCurrentTime1Impl(Ark_VideoController peer, const Ark_Number* value, Ark_SeekMode seekMode) { } - void ResetImpl(VideoControllerPeer* peer) + void ResetImpl(Ark_VideoController peer) { } } // VideoControllerAccessor namespace WebKeyboardControllerAccessor { - void DestroyPeerImpl(WebKeyboardControllerPeer* peer) + void DestroyPeerImpl(Ark_WebKeyboardController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14864,28 +14959,28 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void InsertTextImpl(WebKeyboardControllerPeer* peer, + void InsertTextImpl(Ark_WebKeyboardController peer, const Ark_String* text) { } - void DeleteForwardImpl(WebKeyboardControllerPeer* peer, + void DeleteForwardImpl(Ark_WebKeyboardController peer, const Ark_Number* length) { } - void DeleteBackwardImpl(WebKeyboardControllerPeer* peer, + void DeleteBackwardImpl(Ark_WebKeyboardController peer, const Ark_Number* length) { } - void SendFunctionKeyImpl(WebKeyboardControllerPeer* peer, + void SendFunctionKeyImpl(Ark_WebKeyboardController peer, const Ark_Number* key) { } - void CloseImpl(WebKeyboardControllerPeer* peer) + void CloseImpl(Ark_WebKeyboardController peer) { } } // WebKeyboardControllerAccessor namespace FullScreenExitHandlerAccessor { - void DestroyPeerImpl(FullScreenExitHandlerPeer* peer) + void DestroyPeerImpl(Ark_FullScreenExitHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14900,12 +14995,12 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ExitFullScreenImpl(FullScreenExitHandlerPeer* peer) + void ExitFullScreenImpl(Ark_FullScreenExitHandler peer) { } } // FullScreenExitHandlerAccessor namespace FileSelectorParamAccessor { - void DestroyPeerImpl(FileSelectorParamPeer* peer) + void DestroyPeerImpl(Ark_FileSelectorParam peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14920,23 +15015,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetTitleImpl(FileSelectorParamPeer* peer) + Ark_String GetTitleImpl(Ark_FileSelectorParam peer) { + return {}; } - Ark_NativePointer GetModeImpl(FileSelectorParamPeer* peer) + Ark_FileSelectorMode GetModeImpl(Ark_FileSelectorParam peer) { return {}; } - void GetAcceptTypeImpl(FileSelectorParamPeer* peer) + Array_String GetAcceptTypeImpl(Ark_FileSelectorParam peer) { + return {}; } - Ark_Boolean IsCaptureImpl(FileSelectorParamPeer* peer) + Ark_Boolean IsCaptureImpl(Ark_FileSelectorParam peer) { return {}; } } // FileSelectorParamAccessor namespace JsResultAccessor { - void DestroyPeerImpl(JsResultPeer* peer) + void DestroyPeerImpl(Ark_JsResult peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14951,19 +15048,19 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void HandleCancelImpl(JsResultPeer* peer) + void HandleCancelImpl(Ark_JsResult peer) { } - void HandleConfirmImpl(JsResultPeer* peer) + void HandleConfirmImpl(Ark_JsResult peer) { } - void HandlePromptConfirmImpl(JsResultPeer* peer, + void HandlePromptConfirmImpl(Ark_JsResult peer, const Ark_String* result) { } } // JsResultAccessor namespace FileSelectorResultAccessor { - void DestroyPeerImpl(FileSelectorResultPeer* peer) + void DestroyPeerImpl(Ark_FileSelectorResult peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14978,13 +15075,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void HandleFileListImpl(FileSelectorResultPeer* peer, + void HandleFileListImpl(Ark_FileSelectorResult peer, const Array_String* fileList) { } } // FileSelectorResultAccessor namespace HttpAuthHandlerAccessor { - void DestroyPeerImpl(HttpAuthHandlerPeer* peer) + void DestroyPeerImpl(Ark_HttpAuthHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -14999,22 +15096,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean ConfirmImpl(HttpAuthHandlerPeer* peer, + Ark_Boolean ConfirmImpl(Ark_HttpAuthHandler peer, const Ark_String* userName, const Ark_String* password) { return {}; } - void CancelImpl(HttpAuthHandlerPeer* peer) + void CancelImpl(Ark_HttpAuthHandler peer) { } - Ark_Boolean IsHttpAuthInfoSavedImpl(HttpAuthHandlerPeer* peer) + Ark_Boolean IsHttpAuthInfoSavedImpl(Ark_HttpAuthHandler peer) { return {}; } } // HttpAuthHandlerAccessor namespace SslErrorHandlerAccessor { - void DestroyPeerImpl(SslErrorHandlerPeer* peer) + void DestroyPeerImpl(Ark_SslErrorHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15029,15 +15126,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void HandleConfirmImpl(SslErrorHandlerPeer* peer) + void HandleConfirmImpl(Ark_SslErrorHandler peer) { } - void HandleCancelImpl(SslErrorHandlerPeer* peer) + void HandleCancelImpl(Ark_SslErrorHandler peer) { } } // SslErrorHandlerAccessor namespace ClientAuthenticationHandlerAccessor { - void DestroyPeerImpl(ClientAuthenticationHandlerPeer* peer) + void DestroyPeerImpl(Ark_ClientAuthenticationHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15052,24 +15149,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void Confirm0Impl(ClientAuthenticationHandlerPeer* peer, + void Confirm0Impl(Ark_ClientAuthenticationHandler peer, const Ark_String* priKeyFile, const Ark_String* certChainFile) { } - void Confirm1Impl(ClientAuthenticationHandlerPeer* peer, + void Confirm1Impl(Ark_ClientAuthenticationHandler peer, const Ark_String* authUri) { } - void CancelImpl(ClientAuthenticationHandlerPeer* peer) + void CancelImpl(Ark_ClientAuthenticationHandler peer) { } - void IgnoreImpl(ClientAuthenticationHandlerPeer* peer) + void IgnoreImpl(Ark_ClientAuthenticationHandler peer) { } } // ClientAuthenticationHandlerAccessor namespace PermissionRequestAccessor { - void DestroyPeerImpl(PermissionRequestPeer* peer) + void DestroyPeerImpl(Ark_PermissionRequest peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15084,22 +15181,24 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void DenyImpl(PermissionRequestPeer* peer) + void DenyImpl(Ark_PermissionRequest peer) { } - void GetOriginImpl(PermissionRequestPeer* peer) + Ark_String GetOriginImpl(Ark_PermissionRequest peer) { + return {}; } - void GetAccessibleResourceImpl(PermissionRequestPeer* peer) + Array_String GetAccessibleResourceImpl(Ark_PermissionRequest peer) { + return {}; } - void GrantImpl(PermissionRequestPeer* peer, + void GrantImpl(Ark_PermissionRequest peer, const Array_String* resources) { } } // PermissionRequestAccessor namespace ScreenCaptureHandlerAccessor { - void DestroyPeerImpl(ScreenCaptureHandlerPeer* peer) + void DestroyPeerImpl(Ark_ScreenCaptureHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15114,19 +15213,20 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetOriginImpl(ScreenCaptureHandlerPeer* peer) + Ark_String GetOriginImpl(Ark_ScreenCaptureHandler peer) { + return {}; } - void GrantImpl(ScreenCaptureHandlerPeer* peer, + void GrantImpl(Ark_ScreenCaptureHandler peer, const Ark_ScreenCaptureConfig* config) { } - void DenyImpl(ScreenCaptureHandlerPeer* peer) + void DenyImpl(Ark_ScreenCaptureHandler peer) { } } // ScreenCaptureHandlerAccessor namespace DataResubmissionHandlerAccessor { - void DestroyPeerImpl(DataResubmissionHandlerPeer* peer) + void DestroyPeerImpl(Ark_DataResubmissionHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15141,15 +15241,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ResendImpl(DataResubmissionHandlerPeer* peer) + void ResendImpl(Ark_DataResubmissionHandler peer) { } - void CancelImpl(DataResubmissionHandlerPeer* peer) + void CancelImpl(Ark_DataResubmissionHandler peer) { } } // DataResubmissionHandlerAccessor namespace ControllerHandlerAccessor { - void DestroyPeerImpl(ControllerHandlerPeer* peer) + void DestroyPeerImpl(Ark_ControllerHandler peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15164,13 +15264,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetWebControllerImpl(ControllerHandlerPeer* peer, + void SetWebControllerImpl(Ark_ControllerHandler peer, Ark_WebviewController controller) { } } // ControllerHandlerAccessor namespace WebContextMenuParamAccessor { - void DestroyPeerImpl(WebContextMenuParamPeer* peer) + void DestroyPeerImpl(Ark_WebContextMenuParam peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15185,61 +15285,65 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 XImpl(WebContextMenuParamPeer* peer) + Ark_Int32 XImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Int32 YImpl(WebContextMenuParamPeer* peer) + Ark_Int32 YImpl(Ark_WebContextMenuParam peer) { return {}; } - void GetLinkUrlImpl(WebContextMenuParamPeer* peer) + Ark_String GetLinkUrlImpl(Ark_WebContextMenuParam peer) { + return {}; } - void GetUnfilteredLinkUrlImpl(WebContextMenuParamPeer* peer) + Ark_String GetUnfilteredLinkUrlImpl(Ark_WebContextMenuParam peer) { + return {}; } - void GetSourceUrlImpl(WebContextMenuParamPeer* peer) + Ark_String GetSourceUrlImpl(Ark_WebContextMenuParam peer) { + return {}; } - Ark_Boolean ExistsImageContentsImpl(WebContextMenuParamPeer* peer) + Ark_Boolean ExistsImageContentsImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_NativePointer GetMediaTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuMediaType GetMediaTypeImpl(Ark_WebContextMenuParam peer) { return {}; } - void GetSelectionTextImpl(WebContextMenuParamPeer* peer) + Ark_String GetSelectionTextImpl(Ark_WebContextMenuParam peer) { + return {}; } - Ark_NativePointer GetSourceTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuSourceType GetSourceTypeImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_NativePointer GetInputFieldTypeImpl(WebContextMenuParamPeer* peer) + Ark_ContextMenuInputFieldType GetInputFieldTypeImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Boolean IsEditableImpl(WebContextMenuParamPeer* peer) + Ark_Boolean IsEditableImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Int32 GetEditStateFlagsImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetEditStateFlagsImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Int32 GetPreviewWidthImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetPreviewWidthImpl(Ark_WebContextMenuParam peer) { return {}; } - Ark_Int32 GetPreviewHeightImpl(WebContextMenuParamPeer* peer) + Ark_Int32 GetPreviewHeightImpl(Ark_WebContextMenuParam peer) { return {}; } } // WebContextMenuParamAccessor namespace WebContextMenuResultAccessor { - void DestroyPeerImpl(WebContextMenuResultPeer* peer) + void DestroyPeerImpl(Ark_WebContextMenuResult peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15254,27 +15358,27 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void CloseContextMenuImpl(WebContextMenuResultPeer* peer) + void CloseContextMenuImpl(Ark_WebContextMenuResult peer) { } - void CopyImageImpl(WebContextMenuResultPeer* peer) + void CopyImageImpl(Ark_WebContextMenuResult peer) { } - void CopyImpl(WebContextMenuResultPeer* peer) + void CopyImpl(Ark_WebContextMenuResult peer) { } - void PasteImpl(WebContextMenuResultPeer* peer) + void PasteImpl(Ark_WebContextMenuResult peer) { } - void CutImpl(WebContextMenuResultPeer* peer) + void CutImpl(Ark_WebContextMenuResult peer) { } - void SelectAllImpl(WebContextMenuResultPeer* peer) + void SelectAllImpl(Ark_WebContextMenuResult peer) { } } // WebContextMenuResultAccessor namespace ConsoleMessageAccessor { - void DestroyPeerImpl(ConsoleMessagePeer* peer) + void DestroyPeerImpl(Ark_ConsoleMessage peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15292,23 +15396,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetMessageImpl(ConsoleMessagePeer* peer) + Ark_String GetMessageImpl(Ark_ConsoleMessage peer) { + return {}; } - void GetSourceIdImpl(ConsoleMessagePeer* peer) + Ark_String GetSourceIdImpl(Ark_ConsoleMessage peer) { + return {}; } - Ark_Int32 GetLineNumberImpl(ConsoleMessagePeer* peer) + Ark_Int32 GetLineNumberImpl(Ark_ConsoleMessage peer) { return {}; } - Ark_NativePointer GetMessageLevelImpl(ConsoleMessagePeer* peer) + Ark_MessageLevel GetMessageLevelImpl(Ark_ConsoleMessage peer) { return {}; } } // ConsoleMessageAccessor namespace WebResourceRequestAccessor { - void DestroyPeerImpl(WebResourceRequestPeer* peer) + void DestroyPeerImpl(Ark_WebResourceRequest peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15323,30 +15429,33 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetRequestHeaderImpl(WebResourceRequestPeer* peer) + Array_Header GetRequestHeaderImpl(Ark_WebResourceRequest peer) { + return {}; } - void GetRequestUrlImpl(WebResourceRequestPeer* peer) + Ark_String GetRequestUrlImpl(Ark_WebResourceRequest peer) { + return {}; } - Ark_Boolean IsRequestGestureImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsRequestGestureImpl(Ark_WebResourceRequest peer) { return {}; } - Ark_Boolean IsMainFrameImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsMainFrameImpl(Ark_WebResourceRequest peer) { return {}; } - Ark_Boolean IsRedirectImpl(WebResourceRequestPeer* peer) + Ark_Boolean IsRedirectImpl(Ark_WebResourceRequest peer) { return {}; } - void GetRequestMethodImpl(WebResourceRequestPeer* peer) + Ark_String GetRequestMethodImpl(Ark_WebResourceRequest peer) { + return {}; } } // WebResourceRequestAccessor namespace WebResourceResponseAccessor { - void DestroyPeerImpl(WebResourceResponsePeer* peer) + void DestroyPeerImpl(Ark_WebResourceResponse peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15361,64 +15470,69 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetResponseDataImpl(WebResourceResponsePeer* peer) + Ark_String GetResponseDataImpl(Ark_WebResourceResponse peer) { + return {}; } - Ark_NativePointer GetResponseDataExImpl(WebResourceResponsePeer* peer) + Opt_Union_String_Number_Buffer_Resource GetResponseDataExImpl(Ark_WebResourceResponse peer) { return {}; } - void GetResponseEncodingImpl(WebResourceResponsePeer* peer) + Ark_String GetResponseEncodingImpl(Ark_WebResourceResponse peer) { + return {}; } - void GetResponseMimeTypeImpl(WebResourceResponsePeer* peer) + Ark_String GetResponseMimeTypeImpl(Ark_WebResourceResponse peer) { + return {}; } - void GetReasonMessageImpl(WebResourceResponsePeer* peer) + Ark_String GetReasonMessageImpl(Ark_WebResourceResponse peer) { + return {}; } - void GetResponseHeaderImpl(WebResourceResponsePeer* peer) + Array_Header GetResponseHeaderImpl(Ark_WebResourceResponse peer) { + return {}; } - Ark_Int32 GetResponseCodeImpl(WebResourceResponsePeer* peer) + Ark_Int32 GetResponseCodeImpl(Ark_WebResourceResponse peer) { return {}; } - void SetResponseDataImpl(WebResourceResponsePeer* peer, + void SetResponseDataImpl(Ark_WebResourceResponse peer, const Ark_Union_String_Number_Resource_Buffer* data) { } - void SetResponseEncodingImpl(WebResourceResponsePeer* peer, + void SetResponseEncodingImpl(Ark_WebResourceResponse peer, const Ark_String* encoding) { } - void SetResponseMimeTypeImpl(WebResourceResponsePeer* peer, + void SetResponseMimeTypeImpl(Ark_WebResourceResponse peer, const Ark_String* mimeType) { } - void SetReasonMessageImpl(WebResourceResponsePeer* peer, + void SetReasonMessageImpl(Ark_WebResourceResponse peer, const Ark_String* reason) { } - void SetResponseHeaderImpl(WebResourceResponsePeer* peer, + void SetResponseHeaderImpl(Ark_WebResourceResponse peer, const Array_Header* header) { } - void SetResponseCodeImpl(WebResourceResponsePeer* peer, + void SetResponseCodeImpl(Ark_WebResourceResponse peer, const Ark_Number* code) { } - void SetResponseIsReadyImpl(WebResourceResponsePeer* peer, + void SetResponseIsReadyImpl(Ark_WebResourceResponse peer, Ark_Boolean IsReady) { } - Ark_Boolean GetResponseIsReadyImpl(WebResourceResponsePeer* peer) + Ark_Boolean GetResponseIsReadyImpl(Ark_WebResourceResponse peer) { return {}; } } // WebResourceResponseAccessor namespace WebResourceErrorAccessor { - void DestroyPeerImpl(WebResourceErrorPeer* peer) + void DestroyPeerImpl(Ark_WebResourceError peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15433,16 +15547,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetErrorInfoImpl(WebResourceErrorPeer* peer) + Ark_String GetErrorInfoImpl(Ark_WebResourceError peer) { + return {}; } - Ark_Int32 GetErrorCodeImpl(WebResourceErrorPeer* peer) + Ark_Int32 GetErrorCodeImpl(Ark_WebResourceError peer) { return {}; } } // WebResourceErrorAccessor namespace JsGeolocationAccessor { - void DestroyPeerImpl(JsGeolocationPeer* peer) + void DestroyPeerImpl(Ark_JsGeolocation peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15457,7 +15572,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void InvokeImpl(JsGeolocationPeer* peer, + void InvokeImpl(Ark_JsGeolocation peer, const Ark_String* origin, Ark_Boolean allow, Ark_Boolean retain) @@ -15465,7 +15580,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // JsGeolocationAccessor namespace WebCookieAccessor { - void DestroyPeerImpl(WebCookiePeer* peer) + void DestroyPeerImpl(Ark_WebCookie peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15480,15 +15595,15 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetCookieImpl(WebCookiePeer* peer) + void SetCookieImpl(Ark_WebCookie peer) { } - void SaveCookieImpl(WebCookiePeer* peer) + void SaveCookieImpl(Ark_WebCookie peer) { } } // WebCookieAccessor namespace EventResultAccessor { - void DestroyPeerImpl(EventResultPeer* peer) + void DestroyPeerImpl(Ark_EventResult peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15503,13 +15618,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetGestureEventResultImpl(EventResultPeer* peer, + void SetGestureEventResultImpl(Ark_EventResult peer, Ark_Boolean result) { } } // EventResultAccessor namespace WebControllerAccessor { - void DestroyPeerImpl(WebControllerPeer* peer) + void DestroyPeerImpl(Ark_WebController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15524,78 +15639,78 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void OnInactiveImpl(WebControllerPeer* peer) + void OnInactiveImpl(Ark_WebController peer) { } - void OnActiveImpl(WebControllerPeer* peer) + void OnActiveImpl(Ark_WebController peer) { } - void ZoomImpl(WebControllerPeer* peer, + void ZoomImpl(Ark_WebController peer, const Ark_Number* factor) { } - void ClearHistoryImpl(WebControllerPeer* peer) + void ClearHistoryImpl(Ark_WebController peer) { } - void RunJavaScriptImpl(WebControllerPeer* peer, + void RunJavaScriptImpl(Ark_WebController peer, const Ark_Literal_String_script_Callback_String_Void_callback_* options) { } - void LoadDataImpl(WebControllerPeer* peer, + void LoadDataImpl(Ark_WebController peer, const Ark_Literal_String_baseUrl_data_encoding_historyUrl_mimeType* options) { } - void LoadUrlImpl(WebControllerPeer* peer, + void LoadUrlImpl(Ark_WebController peer, const Ark_Literal_Union_String_Resource_url_Array_Header_headers* options) { } - void RefreshImpl(WebControllerPeer* peer) + void RefreshImpl(Ark_WebController peer) { } - void StopImpl(WebControllerPeer* peer) + void StopImpl(Ark_WebController peer) { } - void RegisterJavaScriptProxyImpl(WebControllerPeer* peer, + void RegisterJavaScriptProxyImpl(Ark_WebController peer, const Ark_Literal_Object_object__String_name_Array_String_methodList* options) { } - void DeleteJavaScriptRegisterImpl(WebControllerPeer* peer, + void DeleteJavaScriptRegisterImpl(Ark_WebController peer, const Ark_String* name) { } - Ark_NativePointer GetHitTestImpl(WebControllerPeer* peer) + Ark_HitTestType GetHitTestImpl(Ark_WebController peer) { return {}; } - void RequestFocusImpl(WebControllerPeer* peer) + void RequestFocusImpl(Ark_WebController peer) { } - Ark_Boolean AccessBackwardImpl(WebControllerPeer* peer) + Ark_Boolean AccessBackwardImpl(Ark_WebController peer) { return {}; } - Ark_Boolean AccessForwardImpl(WebControllerPeer* peer) + Ark_Boolean AccessForwardImpl(Ark_WebController peer) { return {}; } - Ark_Boolean AccessStepImpl(WebControllerPeer* peer, + Ark_Boolean AccessStepImpl(Ark_WebController peer, const Ark_Number* step) { return {}; } - void BackwardImpl(WebControllerPeer* peer) + void BackwardImpl(Ark_WebController peer) { } - void ForwardImpl(WebControllerPeer* peer) + void ForwardImpl(Ark_WebController peer) { } - Ark_WebCookie GetCookieManagerImpl(WebControllerPeer* peer) + Ark_WebCookie GetCookieManagerImpl(Ark_WebController peer) { return {}; } } // WebControllerAccessor namespace XComponentControllerAccessor { - void DestroyPeerImpl(XComponentControllerPeer* peer) + void DestroyPeerImpl(Ark_XComponentController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15610,57 +15725,58 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetXComponentSurfaceIdImpl(XComponentControllerPeer* peer) + Ark_String GetXComponentSurfaceIdImpl(Ark_XComponentController peer) { + return {}; } - Ark_NativePointer GetXComponentContextImpl(XComponentControllerPeer* peer) + Ark_CustomObject GetXComponentContextImpl(Ark_XComponentController peer) { return {}; } - void SetXComponentSurfaceSizeImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceSizeImpl(Ark_XComponentController peer, const Ark_Literal_Number_surfaceHeight_surfaceWidth* value) { } - void SetXComponentSurfaceRectImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceRectImpl(Ark_XComponentController peer, const Ark_SurfaceRect* rect) { } - Ark_NativePointer GetXComponentSurfaceRectImpl(XComponentControllerPeer* peer) + Ark_SurfaceRect GetXComponentSurfaceRectImpl(Ark_XComponentController peer) { return {}; } - void SetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer, + void SetXComponentSurfaceRotationImpl(Ark_XComponentController peer, const Ark_SurfaceRotationOptions* rotationOptions) { } - Ark_NativePointer GetXComponentSurfaceRotationImpl(XComponentControllerPeer* peer) + Ark_SurfaceRotationOptions GetXComponentSurfaceRotationImpl(Ark_XComponentController peer) { return {}; } - void OnSurfaceCreatedImpl(XComponentControllerPeer* peer, + void OnSurfaceCreatedImpl(Ark_XComponentController peer, const Ark_String* surfaceId) { } - void OnSurfaceChangedImpl(XComponentControllerPeer* peer, + void OnSurfaceChangedImpl(Ark_XComponentController peer, const Ark_String* surfaceId, const Ark_SurfaceRect* rect) { } - void OnSurfaceDestroyedImpl(XComponentControllerPeer* peer, + void OnSurfaceDestroyedImpl(Ark_XComponentController peer, const Ark_String* surfaceId) { } - void StartImageAnalyzerImpl(XComponentControllerPeer* peer, + void StartImageAnalyzerImpl(Ark_XComponentController peer, const Ark_ImageAnalyzerConfig* config, const Callback_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void StopImageAnalyzerImpl(XComponentControllerPeer* peer) + void StopImageAnalyzerImpl(Ark_XComponentController peer) { } } // XComponentControllerAccessor namespace WaterFlowSectionsAccessor { - void DestroyPeerImpl(WaterFlowSectionsPeer* peer) + void DestroyPeerImpl(Ark_WaterFlowSections peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15675,34 +15791,35 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Boolean SpliceImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean SpliceImpl(Ark_WaterFlowSections peer, const Ark_Number* start, const Opt_Number* deleteCount, const Opt_Array_SectionOptions* sections) { return {}; } - Ark_Boolean PushImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean PushImpl(Ark_WaterFlowSections peer, const Ark_SectionOptions* section) { return {}; } - Ark_Boolean UpdateImpl(WaterFlowSectionsPeer* peer, + Ark_Boolean UpdateImpl(Ark_WaterFlowSections peer, const Ark_Number* sectionIndex, const Ark_SectionOptions* section) { return {}; } - void ValuesImpl(WaterFlowSectionsPeer* peer) + Array_SectionOptions ValuesImpl(Ark_WaterFlowSections peer) { + return {}; } - Ark_Int32 LengthImpl(WaterFlowSectionsPeer* peer) + Ark_Int32 LengthImpl(Ark_WaterFlowSections peer) { return {}; } } // WaterFlowSectionsAccessor namespace UIExtensionProxyAccessor { - void DestroyPeerImpl(UIExtensionProxyPeer* peer) + void DestroyPeerImpl(Ark_UIExtensionProxy peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15717,34 +15834,34 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SendImpl(UIExtensionProxyPeer* peer, + void SendImpl(Ark_UIExtensionProxy peer, const Map_String_CustomObject* data) { } - Ark_NativePointer SendSyncImpl(UIExtensionProxyPeer* peer, - const Map_String_CustomObject* data) + Map_String_CustomObject SendSyncImpl(Ark_UIExtensionProxy peer, + const Map_String_CustomObject* data) { return {}; } - void OnAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OnAsyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_) { } - void OnSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OnSyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Callback_UIExtensionProxy_Void* callback_) { } - void OffAsyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OffAsyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_) { } - void OffSyncReceiverRegisterImpl(UIExtensionProxyPeer* peer, + void OffSyncReceiverRegisterImpl(Ark_UIExtensionProxy peer, const Opt_Callback_UIExtensionProxy_Void* callback_) { } } // UIExtensionProxyAccessor namespace StyledStringAccessor { - void DestroyPeerImpl(StyledStringPeer* peer) + void DestroyPeerImpl(Ark_StyledString peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15760,21 +15877,23 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetStringImpl(StyledStringPeer* peer) + Ark_String GetStringImpl(Ark_StyledString peer) { + return {}; } - void GetStylesImpl(StyledStringPeer* peer, - const Ark_Number* start, - const Ark_Number* length, - const Opt_StyledStringKey* styledKey) + Array_SpanStyle GetStylesImpl(Ark_StyledString peer, + const Ark_Number* start, + const Ark_Number* length, + const Opt_StyledStringKey* styledKey) { + return {}; } - Ark_Boolean EqualsImpl(StyledStringPeer* peer, + Ark_Boolean EqualsImpl(Ark_StyledString peer, Ark_StyledString other) { return {}; } - Ark_StyledString SubStyledStringImpl(StyledStringPeer* peer, + Ark_StyledString SubStyledStringImpl(Ark_StyledString peer, const Ark_Number* start, const Opt_Number* length) { @@ -15784,23 +15903,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - void ToHtmlImpl(Ark_StyledString styledString) + Ark_String ToHtmlImpl(Ark_StyledString styledString) { + return {}; } - void MarshallingImpl(Ark_StyledString styledString) + Ark_Buffer MarshallingImpl(Ark_StyledString styledString) { + return {}; } void UnmarshallingImpl(const Ark_Buffer* buffer, const Callback_Opt_StyledString_Opt_Array_String_Void* outputArgumentForReturningPromise) { } - Ark_Int32 GetLengthImpl(StyledStringPeer* peer) + Ark_Int32 GetLengthImpl(Ark_StyledString peer) { return {}; } } // StyledStringAccessor namespace TextStyle_styled_stringAccessor { - void DestroyPeerImpl(TextStyle_styled_stringPeer* peer) + void DestroyPeerImpl(Ark_TextStyle_styled_string peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15815,24 +15936,25 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetFontFamilyImpl(TextStyle_styled_stringPeer* peer) + Ark_String GetFontFamilyImpl(Ark_TextStyle_styled_string peer) { + return {}; } - Ark_Int32 GetFontSizeImpl(TextStyle_styled_stringPeer* peer) + Ark_Int32 GetFontSizeImpl(Ark_TextStyle_styled_string peer) { return {}; } - Ark_Int32 GetFontWeightImpl(TextStyle_styled_stringPeer* peer) + Ark_Int32 GetFontWeightImpl(Ark_TextStyle_styled_string peer) { return {}; } - Ark_NativePointer GetFontStyleImpl(TextStyle_styled_stringPeer* peer) + Ark_FontStyle GetFontStyleImpl(Ark_TextStyle_styled_string peer) { return {}; } } // TextStyle_styled_stringAccessor namespace DecorationStyleAccessor { - void DestroyPeerImpl(DecorationStylePeer* peer) + void DestroyPeerImpl(Ark_DecorationStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15847,17 +15969,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetTypeImpl(DecorationStylePeer* peer) + Ark_TextDecorationType GetTypeImpl(Ark_DecorationStyle peer) { return {}; } - Ark_NativePointer GetStyleImpl(DecorationStylePeer* peer) + Ark_TextDecorationStyle GetStyleImpl(Ark_DecorationStyle peer) { return {}; } } // DecorationStyleAccessor namespace BaselineOffsetStyleAccessor { - void DestroyPeerImpl(BaselineOffsetStylePeer* peer) + void DestroyPeerImpl(Ark_BaselineOffsetStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15872,13 +15994,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetBaselineOffsetImpl(BaselineOffsetStylePeer* peer) + Ark_Int32 GetBaselineOffsetImpl(Ark_BaselineOffsetStyle peer) { return {}; } } // BaselineOffsetStyleAccessor namespace LetterSpacingStyleAccessor { - void DestroyPeerImpl(LetterSpacingStylePeer* peer) + void DestroyPeerImpl(Ark_LetterSpacingStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15893,13 +16015,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetLetterSpacingImpl(LetterSpacingStylePeer* peer) + Ark_Int32 GetLetterSpacingImpl(Ark_LetterSpacingStyle peer) { return {}; } } // LetterSpacingStyleAccessor namespace TextShadowStyleAccessor { - void DestroyPeerImpl(TextShadowStylePeer* peer) + void DestroyPeerImpl(Ark_TextShadowStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15914,9 +16036,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } + Array_ShadowOptions GetTextShadowImpl(Ark_TextShadowStyle peer) + { + return {}; + } } // TextShadowStyleAccessor namespace BackgroundColorStyleAccessor { - void DestroyPeerImpl(BackgroundColorStylePeer* peer) + void DestroyPeerImpl(Ark_BackgroundColorStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15933,7 +16059,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // BackgroundColorStyleAccessor namespace GestureStyleAccessor { - void DestroyPeerImpl(GestureStylePeer* peer) + void DestroyPeerImpl(Ark_GestureStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15950,7 +16076,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { } } // GestureStyleAccessor namespace ParagraphStyleAccessor { - void DestroyPeerImpl(ParagraphStylePeer* peer) + void DestroyPeerImpl(Ark_ParagraphStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -15965,29 +16091,29 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetTextAlignImpl(ParagraphStylePeer* peer) + Ark_TextAlign GetTextAlignImpl(Ark_ParagraphStyle peer) { return {}; } - Ark_Int32 GetTextIndentImpl(ParagraphStylePeer* peer) + Ark_Int32 GetTextIndentImpl(Ark_ParagraphStyle peer) { return {}; } - Ark_Int32 GetMaxLinesImpl(ParagraphStylePeer* peer) + Ark_Int32 GetMaxLinesImpl(Ark_ParagraphStyle peer) { return {}; } - Ark_NativePointer GetOverflowImpl(ParagraphStylePeer* peer) + Ark_TextOverflow GetOverflowImpl(Ark_ParagraphStyle peer) { return {}; } - Ark_NativePointer GetWordBreakImpl(ParagraphStylePeer* peer) + Ark_WordBreak GetWordBreakImpl(Ark_ParagraphStyle peer) { return {}; } } // ParagraphStyleAccessor namespace LineHeightStyleAccessor { - void DestroyPeerImpl(LineHeightStylePeer* peer) + void DestroyPeerImpl(Ark_LineHeightStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16002,13 +16128,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_Int32 GetLineHeightImpl(LineHeightStylePeer* peer) + Ark_Int32 GetLineHeightImpl(Ark_LineHeightStyle peer) { return {}; } } // LineHeightStyleAccessor namespace UrlStyleAccessor { - void DestroyPeerImpl(UrlStylePeer* peer) + void DestroyPeerImpl(Ark_UrlStyle peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16023,12 +16149,13 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void GetUrlImpl(UrlStylePeer* peer) + Ark_String GetUrlImpl(Ark_UrlStyle peer) { + return {}; } } // UrlStyleAccessor namespace MutableStyledStringAccessor { - void DestroyPeerImpl(MutableStyledStringPeer* peer) + void DestroyPeerImpl(Ark_MutableStyledString peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16043,62 +16170,62 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void ReplaceStringImpl(MutableStyledStringPeer* peer, + void ReplaceStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, const Ark_String* other) { } - void InsertStringImpl(MutableStyledStringPeer* peer, + void InsertStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_String* other) { } - void RemoveStringImpl(MutableStyledStringPeer* peer, + void RemoveStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length) { } - void ReplaceStyleImpl(MutableStyledStringPeer* peer, + void ReplaceStyleImpl(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle) { } - void SetStyleImpl(MutableStyledStringPeer* peer, + void SetStyleImpl(Ark_MutableStyledString peer, const Ark_SpanStyle* spanStyle) { } - void RemoveStyleImpl(MutableStyledStringPeer* peer, + void RemoveStyleImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledStringKey styledKey) { } - void RemoveStylesImpl(MutableStyledStringPeer* peer, + void RemoveStylesImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length) { } - void ClearStylesImpl(MutableStyledStringPeer* peer) + void ClearStylesImpl(Ark_MutableStyledString peer) { } - void ReplaceStyledStringImpl(MutableStyledStringPeer* peer, + void ReplaceStyledStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, const Ark_Number* length, Ark_StyledString other) { } - void InsertStyledStringImpl(MutableStyledStringPeer* peer, + void InsertStyledStringImpl(Ark_MutableStyledString peer, const Ark_Number* start, Ark_StyledString other) { } - void AppendStyledStringImpl(MutableStyledStringPeer* peer, + void AppendStyledStringImpl(Ark_MutableStyledString peer, Ark_StyledString other) { } } // MutableStyledStringAccessor namespace ImageAttachmentAccessor { - void DestroyPeerImpl(ImageAttachmentPeer* peer) + void DestroyPeerImpl(Ark_ImageAttachment peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16113,17 +16240,17 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer GetVerticalAlignImpl(ImageAttachmentPeer* peer) + Ark_ImageSpanAlignment GetVerticalAlignImpl(Ark_ImageAttachment peer) { return {}; } - Ark_NativePointer GetObjectFitImpl(ImageAttachmentPeer* peer) + Ark_ImageFit GetObjectFitImpl(Ark_ImageAttachment peer) { return {}; } } // ImageAttachmentAccessor namespace CustomSpanAccessor { - void DestroyPeerImpl(CustomSpanPeer* peer) + void DestroyPeerImpl(Ark_CustomSpan peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16138,22 +16265,22 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - Ark_NativePointer OnMeasureImpl(CustomSpanPeer* peer, - const Ark_CustomSpanMeasureInfo* measureInfo) + Ark_CustomSpanMetrics OnMeasureImpl(Ark_CustomSpan peer, + const Ark_CustomSpanMeasureInfo* measureInfo) { return {}; } - void OnDrawImpl(CustomSpanPeer* peer, + void OnDrawImpl(Ark_CustomSpan peer, const Ark_DrawContext* context, const Ark_CustomSpanDrawInfo* drawInfo) { } - void InvalidateImpl(CustomSpanPeer* peer) + void InvalidateImpl(Ark_CustomSpan peer) { } } // CustomSpanAccessor namespace LinearIndicatorControllerAccessor { - void DestroyPeerImpl(LinearIndicatorControllerPeer* peer) + void DestroyPeerImpl(Ark_LinearIndicatorController peer) { auto peerImpl = reinterpret_cast(peer); if (peerImpl) { @@ -16168,48 +16295,37 @@ namespace OHOS::Ace::NG::GeneratedModifier { { return reinterpret_cast(&DestroyPeerImpl); } - void SetProgressImpl(LinearIndicatorControllerPeer* peer, + void SetProgressImpl(Ark_LinearIndicatorController peer, const Ark_Number* index, const Ark_Number* progress) { } - void StartImpl(LinearIndicatorControllerPeer* peer, + void StartImpl(Ark_LinearIndicatorController peer, const Opt_LinearIndicatorStartOptions* options) { } - void PauseImpl(LinearIndicatorControllerPeer* peer) + void PauseImpl(Ark_LinearIndicatorController peer) { } - void StopImpl(LinearIndicatorControllerPeer* peer) + void StopImpl(Ark_LinearIndicatorController peer) { } } // LinearIndicatorControllerAccessor - namespace GlobalScope_inspectorAccessor { - void DestroyPeerImpl(GlobalScope_inspectorPeer* peer) + namespace GlobalScope_Profiler_inspectorAccessor { + void DestroyPeerImpl(Ark_GlobalScope_Profiler_inspector peer) { - auto peerImpl = reinterpret_cast(peer); + auto peerImpl = reinterpret_cast(peer); if (peerImpl) { delete peerImpl; } } - Ark_NativePointer GetInspectorNodesImpl() - { - return {}; - } - Ark_NativePointer GetInspectorNodeByIdImpl(const Ark_Number* id) - { - return {}; - } void RegisterVsyncCallbackImpl(const Callback_String_Void* callback_) { } void UnregisterVsyncCallbackImpl() { } - void SetAppBgColorImpl(const Ark_String* value) - { - } - } // GlobalScope_inspectorAccessor + } // GlobalScope_Profiler_inspectorAccessor const GENERATED_ArkUIAnimationExtenderAccessor* GetAnimationExtenderAccessor() { static const GENERATED_ArkUIAnimationExtenderAccessor AnimationExtenderAccessorImpl { @@ -16260,6 +16376,21 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct LazyForEachOpsPeer { virtual ~LazyForEachOpsPeer() = default; }; + const GENERATED_ArkUISystemOpsAccessor* GetSystemOpsAccessor() + { + static const GENERATED_ArkUISystemOpsAccessor SystemOpsAccessorImpl { + SystemOpsAccessor::DestroyPeerImpl, + SystemOpsAccessor::CtorImpl, + SystemOpsAccessor::GetFinalizerImpl, + SystemOpsAccessor::StartFrameImpl, + SystemOpsAccessor::EndFrameImpl, + }; + return &SystemOpsAccessorImpl; + } + + struct SystemOpsPeer { + virtual ~SystemOpsPeer() = default; + }; const GENERATED_ArkUIDrawingCanvasAccessor* GetDrawingCanvasAccessor() { static const GENERATED_ArkUIDrawingCanvasAccessor DrawingCanvasAccessorImpl { @@ -16374,9 +16505,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { PixelMapAccessor::ReadPixelsToBufferSyncImpl, PixelMapAccessor::WriteBufferToPixelsImpl, PixelMapAccessor::GetIsEditableImpl, - PixelMapAccessor::SetIsEditableImpl, PixelMapAccessor::GetIsStrideAlignmentImpl, - PixelMapAccessor::SetIsStrideAlignmentImpl, }; return &PixelMapAccessorImpl; } @@ -16748,6 +16877,40 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct CanvasRenderingContext2DPeer { virtual ~CanvasRenderingContext2DPeer() = default; }; + const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor* GetOffscreenCanvasRenderingContext2DAccessor() + { + static const GENERATED_ArkUIOffscreenCanvasRenderingContext2DAccessor OffscreenCanvasRenderingContext2DAccessorImpl { + OffscreenCanvasRenderingContext2DAccessor::DestroyPeerImpl, + OffscreenCanvasRenderingContext2DAccessor::CtorImpl, + OffscreenCanvasRenderingContext2DAccessor::GetFinalizerImpl, + OffscreenCanvasRenderingContext2DAccessor::ToDataURLImpl, + OffscreenCanvasRenderingContext2DAccessor::TransferToImageBitmapImpl, + }; + return &OffscreenCanvasRenderingContext2DAccessorImpl; + } + + struct OffscreenCanvasRenderingContext2DPeer { + virtual ~OffscreenCanvasRenderingContext2DPeer() = default; + }; + const GENERATED_ArkUIOffscreenCanvasAccessor* GetOffscreenCanvasAccessor() + { + static const GENERATED_ArkUIOffscreenCanvasAccessor OffscreenCanvasAccessorImpl { + OffscreenCanvasAccessor::DestroyPeerImpl, + OffscreenCanvasAccessor::CtorImpl, + OffscreenCanvasAccessor::GetFinalizerImpl, + OffscreenCanvasAccessor::TransferToImageBitmapImpl, + OffscreenCanvasAccessor::GetContext2dImpl, + OffscreenCanvasAccessor::GetHeightImpl, + OffscreenCanvasAccessor::SetHeightImpl, + OffscreenCanvasAccessor::GetWidthImpl, + OffscreenCanvasAccessor::SetWidthImpl, + }; + return &OffscreenCanvasAccessorImpl; + } + + struct OffscreenCanvasPeer { + virtual ~OffscreenCanvasPeer() = default; + }; const GENERATED_ArkUIDrawingRenderingContextAccessor* GetDrawingRenderingContextAccessor() { static const GENERATED_ArkUIDrawingRenderingContextAccessor DrawingRenderingContextAccessorImpl { @@ -16814,6 +16977,31 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct TransitionEffectPeer { virtual ~TransitionEffectPeer() = default; }; + const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor* GetGlobalScope_focusControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_focusControl_commonAccessor GlobalScope_focusControl_commonAccessorImpl { + GlobalScope_focusControl_commonAccessor::DestroyPeerImpl, + GlobalScope_focusControl_commonAccessor::RequestFocusImpl, + }; + return &GlobalScope_focusControl_commonAccessorImpl; + } + + struct GlobalScope_focusControl_commonPeer { + virtual ~GlobalScope_focusControl_commonPeer() = default; + }; + const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor* GetGlobalScope_cursorControl_commonAccessor() + { + static const GENERATED_ArkUIGlobalScope_cursorControl_commonAccessor GlobalScope_cursorControl_commonAccessorImpl { + GlobalScope_cursorControl_commonAccessor::DestroyPeerImpl, + GlobalScope_cursorControl_commonAccessor::SetCursorImpl, + GlobalScope_cursorControl_commonAccessor::RestoreDefaultImpl, + }; + return &GlobalScope_cursorControl_commonAccessorImpl; + } + + struct GlobalScope_cursorControl_commonPeer { + virtual ~GlobalScope_cursorControl_commonPeer() = default; + }; const GENERATED_ArkUIBaseEventAccessor* GetBaseEventAccessor() { static const GENERATED_ArkUIBaseEventAccessor BaseEventAccessorImpl { @@ -16964,7 +17152,9 @@ namespace OHOS::Ace::NG::GeneratedModifier { TouchEventAccessor::GetHistoricalPointsImpl, TouchEventAccessor::GetTypeImpl, TouchEventAccessor::SetTypeImpl, + TouchEventAccessor::GetTouchesImpl, TouchEventAccessor::SetTouchesImpl, + TouchEventAccessor::GetChangedTouchesImpl, TouchEventAccessor::SetChangedTouchesImpl, TouchEventAccessor::GetStopPropagationImpl, TouchEventAccessor::SetStopPropagationImpl, @@ -17189,32 +17379,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct GestureModifierPeer { virtual ~GestureModifierPeer() = default; }; - const GENERATED_ArkUIGlobalScope_commonAccessor* GetGlobalScope_commonAccessor() - { - static const GENERATED_ArkUIGlobalScope_commonAccessor GlobalScope_commonAccessorImpl { - GlobalScope_commonAccessor::DestroyPeerImpl, - GlobalScope_commonAccessor::GetContextImpl, - GlobalScope_commonAccessor::PostCardActionImpl, - GlobalScope_commonAccessor::Dollar_rImpl, - GlobalScope_commonAccessor::Dollar_rawfileImpl, - GlobalScope_commonAccessor::AnimateToImpl, - GlobalScope_commonAccessor::AnimateToImmediatelyImpl, - GlobalScope_commonAccessor::Vp2pxImpl, - GlobalScope_commonAccessor::Px2vpImpl, - GlobalScope_commonAccessor::Fp2pxImpl, - GlobalScope_commonAccessor::Px2fpImpl, - GlobalScope_commonAccessor::Lpx2pxImpl, - GlobalScope_commonAccessor::Px2lpxImpl, - GlobalScope_commonAccessor::RequestFocusImpl, - GlobalScope_commonAccessor::SetCursorImpl, - GlobalScope_commonAccessor::RestoreDefaultImpl, - }; - return &GlobalScope_commonAccessorImpl; - } - - struct GlobalScope_commonPeer { - virtual ~GlobalScope_commonPeer() = default; - }; const GENERATED_ArkUIContextMenuAccessor* GetContextMenuAccessor() { static const GENERATED_ArkUIContextMenuAccessor ContextMenuAccessorImpl { @@ -17277,6 +17441,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { BaseGestureEventAccessor::DestroyPeerImpl, BaseGestureEventAccessor::CtorImpl, BaseGestureEventAccessor::GetFinalizerImpl, + BaseGestureEventAccessor::GetFingerListImpl, BaseGestureEventAccessor::SetFingerListImpl, }; return &BaseGestureEventAccessorImpl; @@ -17395,6 +17560,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GestureEventAccessor::GetFinalizerImpl, GestureEventAccessor::GetRepeatImpl, GestureEventAccessor::SetRepeatImpl, + GestureEventAccessor::GetFingerListImpl, GestureEventAccessor::SetFingerListImpl, GestureEventAccessor::GetOffsetXImpl, GestureEventAccessor::SetOffsetXImpl, @@ -18766,6 +18932,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { TextShadowStyleAccessor::DestroyPeerImpl, TextShadowStyleAccessor::CtorImpl, TextShadowStyleAccessor::GetFinalizerImpl, + TextShadowStyleAccessor::GetTextShadowImpl, }; return &TextShadowStyleAccessorImpl; } @@ -18917,21 +19084,18 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct LinearIndicatorControllerPeer { virtual ~LinearIndicatorControllerPeer() = default; }; - const GENERATED_ArkUIGlobalScope_inspectorAccessor* GetGlobalScope_inspectorAccessor() + const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor* GetGlobalScope_Profiler_inspectorAccessor() { - static const GENERATED_ArkUIGlobalScope_inspectorAccessor GlobalScope_inspectorAccessorImpl { - GlobalScope_inspectorAccessor::DestroyPeerImpl, - GlobalScope_inspectorAccessor::GetInspectorNodesImpl, - GlobalScope_inspectorAccessor::GetInspectorNodeByIdImpl, - GlobalScope_inspectorAccessor::RegisterVsyncCallbackImpl, - GlobalScope_inspectorAccessor::UnregisterVsyncCallbackImpl, - GlobalScope_inspectorAccessor::SetAppBgColorImpl, + static const GENERATED_ArkUIGlobalScope_Profiler_inspectorAccessor GlobalScope_Profiler_inspectorAccessorImpl { + GlobalScope_Profiler_inspectorAccessor::DestroyPeerImpl, + GlobalScope_Profiler_inspectorAccessor::RegisterVsyncCallbackImpl, + GlobalScope_Profiler_inspectorAccessor::UnregisterVsyncCallbackImpl, }; - return &GlobalScope_inspectorAccessorImpl; + return &GlobalScope_Profiler_inspectorAccessorImpl; } - struct GlobalScope_inspectorPeer { - virtual ~GlobalScope_inspectorPeer() = default; + struct GlobalScope_Profiler_inspectorPeer { + virtual ~GlobalScope_Profiler_inspectorPeer() = default; }; const GENERATED_ArkUIAccessors* GENERATED_GetArkUIAccessors() { @@ -18939,6 +19103,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetAnimationExtenderAccessor, GetUnifiedDataAccessor, GetLazyForEachOpsAccessor, + GetSystemOpsAccessor, GetDrawingCanvasAccessor, GetLengthMetricsAccessor, GetWebviewControllerAccessor, @@ -18965,10 +19130,14 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetRenderingContextSettingsAccessor, GetCanvasRendererAccessor, GetCanvasRenderingContext2DAccessor, + GetOffscreenCanvasRenderingContext2DAccessor, + GetOffscreenCanvasAccessor, GetDrawingRenderingContextAccessor, GetICurveAccessor, GetDrawModifierAccessor, GetTransitionEffectAccessor, + GetGlobalScope_focusControl_commonAccessor, + GetGlobalScope_cursorControl_commonAccessor, GetBaseEventAccessor, GetClickEventAccessor, GetHoverEventAccessor, @@ -18986,7 +19155,6 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetChildrenMainSizeAccessor, GetUICommonEventAccessor, GetGestureModifierAccessor, - GetGlobalScope_commonAccessor, GetContextMenuAccessor, GetCustomDialogControllerAccessor, GetLinearGradientAccessor, @@ -19084,7 +19252,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetImageAttachmentAccessor, GetCustomSpanAccessor, GetLinearIndicatorControllerAccessor, - GetGlobalScope_inspectorAccessor, + GetGlobalScope_Profiler_inspectorAccessor, }; return &accessorsImpl; } diff --git a/arkoala/framework/src/generated/ArkUINativeModule.ts b/arkoala/framework/src/generated/ArkUINativeModule.ts index fb8ea5c85a4d8fbe7ef89036ca36c9bb7d303481..eacfce12760f8273c58623525be4ae4b1ef28d54 100644 --- a/arkoala/framework/src/generated/ArkUINativeModule.ts +++ b/arkoala/framework/src/generated/ArkUINativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, loadNativeModuleLibrary, withByteArray, Access, callCallback, nullptr, InteropNativeModule, providePlatformDefinedData, NativeStringBase, ArrayDecoder, CallbackRegistry } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, loadNativeModuleLibrary, withByteArray, Access, callCallback, nullptr, InteropNativeModule, providePlatformDefinedData, NativeStringBase, ArrayDecoder, CallbackRegistry } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class ArkUINativeModule { diff --git a/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts b/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts index 13363d19a27f429079b246ea830a304d11595667..4af27590e01286b3defa3145cbce53ea827cd0ba 100644 --- a/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts +++ b/arkoala/framework/src/generated/ArkUINativeModuleEmpty.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class ArkUINativeModuleEmpty { diff --git a/arkoala/framework/src/generated/TestNativeModule.ts b/arkoala/framework/src/generated/TestNativeModule.ts index 70a06091bc589903d7227ff28f58d32e6fcdaa0d..98598f2bfea1b5434b0e0b13a0efc8a361e98f1b 100644 --- a/arkoala/framework/src/generated/TestNativeModule.ts +++ b/arkoala/framework/src/generated/TestNativeModule.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, loadNativeModuleLibrary } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer, loadNativeModuleLibrary } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class TestNativeModule { diff --git a/arkoala/framework/src/generated/TestNativeModuleEmpty.ts b/arkoala/framework/src/generated/TestNativeModuleEmpty.ts index f396eaf3dbd3bedd847d11f9c9d1009afb73ca74..efc238d179de16f1e66f8c75130d2efb3a4981bb 100644 --- a/arkoala/framework/src/generated/TestNativeModuleEmpty.ts +++ b/arkoala/framework/src/generated/TestNativeModuleEmpty.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer } from "@koalaui/interop" +import { KInt, KBoolean, KFloat, KUInt, KStringPtr, KPointer, KNativePointer, KInt32ArrayPtr, KUint8ArrayPtr, KFloat32ArrayPtr, pointer, KInteropReturnBuffer } from "@koalaui/interop" import { int32, float32 } from "@koalaui/common" export class TestNativeModuleEmpty { diff --git a/arkoala/loader/package.json b/arkoala/loader/package.json index ffa3afb895dfd2779feb0ff4e8163c7c04ef0fa2..0e9a7c7f88bff4cf061c88545b9e58f9da5c582e 100644 --- a/arkoala/loader/package.json +++ b/arkoala/loader/package.json @@ -18,28 +18,26 @@ "ets": "cd src/ets; ets-tsc", "test:hzvm:loader": "npm run compile:hzvm-host", "clean": "ets-tsc -b . --clean && rimraf build dist lib generated unmemoized", - "compile:node-test-host": "npm run gen-resources && npm run -C ../framework compile:native-node-host && ets-tsc -b ../extension-component && npm run ets && npm run compile:node-test", - "compile:node-test-host:unmemoizing": "npm run gen-resources && npm run unmemoize --prefix ../extension-component && npm run ets && ets-tsc -b tsconfig-unmemoize.json && npm run compile:node-test:unmemoizing", + "compile:node-test-host": "npm run -C ../framework compile:native-node-host && ets-tsc -b ../extension-component && npm run ets && npm run compile:node-test", + "compile:node-test-host:unmemoizing": "npm run unmemoize --prefix ../extension-component && npm run ets && ets-tsc -b tsconfig-unmemoize.json && npm run compile:node-test:unmemoizing", "compile:node-test": "WEBPACK_NO_MINIMIZE=true webpack --config webpack.config.node-test.js", "compile:node-test:unmemoizing": "WEBPACK_NO_MINIMIZE=true webpack --config webpack.config.node-test.js --env tsconfig=tsconfig-run-unmemoized.json --env unmemoized=unmemoized", "compile:node-test:unmemoizing:arkts": "bash ../external/incremental/tools/panda/arkts/arktsc --extension sts unmemoized/generated/ets/page.ts --arktsconfig arktsconfig-run-unmemoized.json", - "compile:perf-ets": "npm run plugins:compile && HOS_SDK_HOME='../ohos-sdk/ohos-sdk/HarmonyOS-NEXT-DB1/openharmony' npm run gen-resources && ets-tsc -p ../extension-component && npm run ets", + "compile:perf-ets": "npm run plugins:compile && ets-tsc -p ../extension-component && npm run ets", "compile:perf-node": "WEBPACK_NO_MINIMIZE=true webpack --config webpack.config.node-perf.js", "compile:web": "WEBPACK_NO_MINIMIZE=true webpack serve --open --config webpack.config.web.js", "pack:perf": "npm run compile:perf-ets && npm run compile:perf-node && webpack ./lib/index-perf.js && echo 'Packed to dist/main.js'", "run:perf-node": "npm run compile:perf-ets && npm run compile:perf-node && node --expose-gc ./lib/js/arkoala-perf-node.js", "run:web": "npm run compile:perf-ets && npm run compile:web", - "compile-gen-resources": "npm run --prefix ../ohos-sdk download; cd scripts; tsc gen-resources.ts --types node --target es6 --module commonjs; cd ..", - "gen-resources": "npm run compile-gen-resources && node ./scripts/gen-resources.js", - "compile:hzvm-host": "npm run gen-resources && npm run ets && npm run compile:hzvm", - "compile:hzvm-ohos": "npm run gen-resources && npm run ets && npm run compile:hzvm -- --env os=ohos --env arch=arm64", + "compile:hzvm-host": "npm run ets && npm run compile:hzvm", + "compile:hzvm-ohos": "npm run ets && npm run compile:hzvm -- --env os=ohos --env arch=arm64", "compile:hzvm": "WEBPACK_NO_MINIMIZE=true webpack --entry ./src/index.ts --config webpack.config.ark.js", "compile:hzvm-test": "WEBPACK_NO_MINIMIZE=true webpack --entry ./src/index.test.ts --config webpack.config.app.js", - "compile:test-ohos": "npm run gen-resources && npm run ets && npm run compile:hzvm-test -- --env os=ohos --env arch=arm64", + "compile:test-ohos": "npm run ets && npm run compile:hzvm-test -- --env os=ohos --env arch=arm64", "compile:hzvm-framework": "WEBPACK_NO_MINIMIZE=true webpack --config webpack.config.framework.js", "compile:framework-ohos": "npm run compile:hzvm-framework -- --env os=ohos --env arch=arm64", "compile:framework": "npm run compile:hzvm-framework", - "compile:perf-hzvm-ohos": "npm run gen-resources && npm run ets && npm run compile:perf-hzvm -- --env os=ohos --env arch=arm64", + "compile:perf-hzvm-ohos": "npm run ets && npm run compile:perf-hzvm -- --env os=ohos --env arch=arm64", "compile:perf-hzvm": "WEBPACK_NO_MINIMIZE=true webpack --entry ./src/index.perf.ts --config webpack.config.ark.js" }, "devDependencies": { diff --git a/arkoala/loader/src/ets/tsconfig.json b/arkoala/loader/src/ets/tsconfig.json index 101af63b49ce821350cc11b7b039983762b20d50..aac432cf2f5eb6854a84764eeed63c4f8f8aee48 100644 --- a/arkoala/loader/src/ets/tsconfig.json +++ b/arkoala/loader/src/ets/tsconfig.json @@ -8,7 +8,11 @@ { "transform": "@koalaui/ets-plugin/build/lib/src/ArkExpander.js", "destination": "../../generated/ets", - "arkui": "@koalaui/arkoala-arkui" + "arkui": "@koalaui/arkoala-arkui", + "applicationInfo": { + "bundleName": "com.example.trivial.application", + "moduleName": "entry" + } } ], "types": ["arkoala-runtime"], diff --git a/arkoala/loader/webpack.config.ark.js b/arkoala/loader/webpack.config.ark.js index 3e60676aa499ca3aaff6374eaa8d036b3d05ffa8..968befc0618b884ba4cac741896326eed57634e3 100644 --- a/arkoala/loader/webpack.config.ark.js +++ b/arkoala/loader/webpack.config.ark.js @@ -25,8 +25,6 @@ const ProvidePlugin = require("webpack").ProvidePlugin const minimize = !process.env.WEBPACK_NO_MINIMIZE -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ const makeConfig = ({ os, arch }) => ({ target: "node", @@ -63,10 +61,6 @@ const makeConfig = ({ os, arch }) => ({ 'LOAD_NATIVE': `globalThis.requireNapi("ArkoalaNative", true)`, 'NATIVE_LIBRARY_NAME': `"ArkoalaNative"`, }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"] - }), { apply(compiler) { compiler.hooks.compilation.tap('OHOSCompilationHook', (compilation) => { diff --git a/arkoala/loader/webpack.config.base.js b/arkoala/loader/webpack.config.base.js index b6bc35d15d26d769d6ce186dff7209120934dc7e..4df463c96645abbd0d07a8c06e72c5f594f1624c 100644 --- a/arkoala/loader/webpack.config.base.js +++ b/arkoala/loader/webpack.config.base.js @@ -26,8 +26,6 @@ const ProvidePlugin = require("webpack").ProvidePlugin const minimize = !process.env.WEBPACK_NO_MINIMIZE const is_user_bridge = true -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ const makeConfig = ({ os, arch }) => ({ target: "node", @@ -54,10 +52,6 @@ const makeConfig = ({ os, arch }) => ({ 'LOAD_NATIVE': is_user_bridge ? `globalThis.requireNapi("ArkoalaNative", true)` : `globalThis.requireNapi("arkoalanative_${os}_${arch}")`, 'NATIVE_LIBRARY_NAME': is_user_bridge ? `"ArkoalaNative"` : `"arkoalanative_${os}_${arch}"`, }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"] - }), ], mode: minimize ? "production" : "development", devtool: minimize ? false : "inline-source-map", diff --git a/arkoala/loader/webpack.config.node-perf.js b/arkoala/loader/webpack.config.node-perf.js index 93993fcb4e772487c58e3d8fe524b506fb9fb248..aee9f0bc65dbdc34ebd904196c68bb2bc035d77e 100644 --- a/arkoala/loader/webpack.config.node-perf.js +++ b/arkoala/loader/webpack.config.node-perf.js @@ -19,8 +19,6 @@ const DefinePlugin = require("webpack").DefinePlugin const ProvidePlugin = require("webpack").ProvidePlugin const minimize = !process.env.WEBPACK_NO_MINIMIZE -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ const makeConfig = ({ os, arch }) => ({ target: "node", @@ -54,10 +52,6 @@ const makeConfig = ({ os, arch }) => ({ plugins: [ new DefinePlugin({ }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"] - }), ], mode: minimize ? "production" : "development", diff --git a/arkoala/loader/webpack.config.node-test.js b/arkoala/loader/webpack.config.node-test.js index b3b788852cb41848d3be99562e7f369bfa3be54f..1393a696de7ce62bea972a8c4dab3b8bc2c85378 100644 --- a/arkoala/loader/webpack.config.node-test.js +++ b/arkoala/loader/webpack.config.node-test.js @@ -21,8 +21,6 @@ const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin') const minimize = !process.env.WEBPACK_NO_MINIMIZE -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ const makeConfig = ({ os, arch, tsconfig, unmemoized }) => ({ target: "node", @@ -72,10 +70,6 @@ const makeConfig = ({ os, arch, tsconfig, unmemoized }) => ({ 'NATIVE_LIBRARY_NAME': `"./ArkoalaNative_${os}_${arch}.node"`, "process.env.KOALAUI_SELF_PROFILE": "false", }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"] - }), ], mode: minimize ? "production" : "development", diff --git a/arkoala/loader/webpack.config.web.js b/arkoala/loader/webpack.config.web.js index 77f23b18850ad6d35692b97128d836f0a1058248..5f4c2c1a0e269b8e60b5fbfa338d887c74bca92f 100644 --- a/arkoala/loader/webpack.config.web.js +++ b/arkoala/loader/webpack.config.web.js @@ -19,8 +19,6 @@ const path = require("path") const DefinePlugin = require("webpack").DefinePlugin const ProvidePlugin = require("webpack").ProvidePlugin -const RESOURCES_MODULE = path.resolve(path.join(__dirname, "./generated/ets/__resources.generated.ts")) - /** @returns {import("webpack").WebpackOptionsNormalized} */ module.exports = { target: "web", @@ -51,10 +49,6 @@ module.exports = { plugins: [ new DefinePlugin({ }), - new ProvidePlugin({ - "$r": [RESOURCES_MODULE, "$r"], - "$rawfile": [RESOURCES_MODULE, "$rawfile"], - }), ], mode: "development", diff --git a/arkoala/tools/peer-generator/package.json b/arkoala/tools/peer-generator/package.json index ade310f64f3e7c6e1b8c7ee8b0a319cc766ef4ba..c1e11ffa4adeb3e24c70cce9ef8bc48f3c10382b 100644 --- a/arkoala/tools/peer-generator/package.json +++ b/arkoala/tools/peer-generator/package.json @@ -2,14 +2,16 @@ "name": "peer-generator", "description": "", "config": { - "idlize_version": "2.0.26", - "api_version": "118", + "idlize_version": "2.0.32", + "api_version": "120", "input_dir": "../../arkui-common/interface_sdk-js/api/@internal/component/ets/,../../arkui-common/interface_sdk-js/api/global" }, "scripts": { "interface-sdk:download": "npm run interface-sdk:download --prefix ../../arkui-common", - "generate:ts": "npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=ts --only-integrated", - "generate:arkts": "npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --only-integrated --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=arkts", + "clean:ts": "rimraf ../../arkui/src/generated", + "generate:ts": "npm run clean:ts && npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=ts --only-integrated", + "clean:arkts": "rimraf ../../../arkoala-arkts/arkui/src/generated", + "generate:arkts": "npm run clean:arkts && npx @idlizer/arkgen@$npm_package_config_idlize_version --dts2peer --only-integrated --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=arkts", "generate:all": "npm run generate:ts && npm run generate:arkts", "install:current": "npm install idlizer-current && npm run compile --prefix node_modules/idlizer-current", "generate:ts:current": "npm run install:current && node node_modules/idlizer-current --dts2peer --input-dir $npm_package_config_input_dir --arkoala-destination ../../.. --api-version $npm_package_config_api_version --generator-target arkoala --language=ts --only-integrated", diff --git a/incremental/build-common/package.json b/incremental/build-common/package.json index 4fbd620d677ea15797fddfdb24bf48eff22957be..6c39c39b5f592863ffa4fbb6501f93db529be0af 100644 --- a/incremental/build-common/package.json +++ b/incremental/build-common/package.json @@ -1,8 +1,11 @@ { "name": "@koalaui/build-common", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "", "files": [ "tsconfig.json" - ] + ], + "scripts": { + "compile": "" + } } \ No newline at end of file diff --git a/incremental/common/package.json b/incremental/common/package.json index 5eb5658c8229b3796c602e7abe37f1d5925be2a8..5a948a90bde5941757a5b78591aee956d0a169c6 100644 --- a/incremental/common/package.json +++ b/incremental/common/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/common", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "types": "./index.d.ts", @@ -43,7 +43,7 @@ }, "keywords": [], "dependencies": { - "@koalaui/compat": "1.5.3+devel" + "@koalaui/compat": "1.5.5+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/compat/oh-package.json5 b/incremental/compat/oh-package.json5 index 0a0d59e032e1385e8de62349b8ef74ec9deb99ee..45b5a9768f2ef397c1b1f7c78502158d4e488950 100644 --- a/incremental/compat/oh-package.json5 +++ b/incremental/compat/oh-package.json5 @@ -20,15 +20,10 @@ "dependencies": { }, "devDependencies": { - "@ohos/hypium": "1.0.6", - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", - "mocha": "^9.2.2", "source-map-support": "^0.5.21" } } diff --git a/incremental/compat/package.json b/incremental/compat/package.json index 62ad8d61d6236a456fcfba402e31904d411ef367..76b7d73c2c9fdca53d57866a1a0871fd49b5cb2c 100644 --- a/incremental/compat/package.json +++ b/incremental/compat/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compat", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "", "main": "build/src/index.js", "types": "build/src/index.d.ts", @@ -33,15 +33,10 @@ "keywords": [], "dependencies": {}, "devDependencies": { - "@ohos/hypium": "1.0.6", - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", - "mocha": "^9.2.2", "source-map-support": "^0.5.21" } } \ No newline at end of file diff --git a/incremental/compiler-plugin/.gitlab-ci.yml b/incremental/compiler-plugin/.gitlab-ci.yml index 415b70528acdb53b082c39b2fe72fd1ed915badf..84bf44371daa457a509fd0e7f478f2e51cbe5c01 100644 --- a/incremental/compiler-plugin/.gitlab-ci.yml +++ b/incremental/compiler-plugin/.gitlab-ci.yml @@ -1,4 +1,4 @@ -# Copyright (c) 2022-2023 Huawei Device Co., Ltd. +# Copyright (c) 2022-2025 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -49,6 +49,7 @@ test compiler-plugin: - build compat - build common - build compiler-plugin + - build harness pack compiler-plugin: extends: diff --git a/incremental/compiler-plugin/oh-package.json5 b/incremental/compiler-plugin/oh-package.json5 index eaac79d1ba3ec3292efb5cfdc5f9d6a7234dc95d..a3fd33cd550508accf6f1ea44137dd8a7065e447 100644 --- a/incremental/compiler-plugin/oh-package.json5 +++ b/incremental/compiler-plugin/oh-package.json5 @@ -13,11 +13,8 @@ "@koalaui/common": "1.4.1+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/incremental/compiler-plugin/package.json b/incremental/compiler-plugin/package.json index 8f29b81dbce44dcf097b0cd658e669f273bfa3cc..f584381d03a97ff1ff386c0898c31c972603baad 100644 --- a/incremental/compiler-plugin/package.json +++ b/incremental/compiler-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/compiler-plugin", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "", "main": "build/lib/src/index.js", "types": "build/lib/src/index.d.ts", @@ -10,14 +10,12 @@ ], "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel" + "@koalaui/common": "1.5.5+devel", + "@koalaui/harness": "1.5.5+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/incremental/compiler-plugin/test/auto_detect.test.ts b/incremental/compiler-plugin/test/auto_detect.test.ts index ea6993fa6a06b604f2a01f3c7359e7cd4ce234b7..e1dea4fd128fdeccb5025858fa70755466a82a44 100644 --- a/incremental/compiler-plugin/test/auto_detect.test.ts +++ b/incremental/compiler-plugin/test/auto_detect.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,9 +13,9 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { Context } from "./context.test" import { log, getLogFiltered, resetLog } from "./util.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/compiler-plugin/test/basic.test.ts b/incremental/compiler-plugin/test/basic.test.ts index 26d9b039a4374d35cffd858dc93aa4f0e733e569..f701ccffddff6d73bb3af9288caa902058e8bdf6 100644 --- a/incremental/compiler-plugin/test/basic.test.ts +++ b/incremental/compiler-plugin/test/basic.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,13 +13,13 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { qox, til, zex as wax, accessId, juv, Zan, ryq, bae } from "./module.test" import { exported } from "./exports.test" import defexport from "./default-export.test" import { E } from "./export-as.test" import { __id, Context } from "./context.test" import { log, getLogFiltered, resetLog, cleanDumpDirectory, checkDump } from "./util.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/compiler-plugin/test/diagnostics/diagnostics.test.ts b/incremental/compiler-plugin/test/diagnostics/diagnostics.test.ts index f7bf8a98101f59e369cb282b4325d34926da13d4..7895b1b6095a3a6d13cdb4d659ee1253a432508b 100644 --- a/incremental/compiler-plugin/test/diagnostics/diagnostics.test.ts +++ b/incremental/compiler-plugin/test/diagnostics/diagnostics.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import * as child from "child_process" import * as path from "path" diff --git a/incremental/compiler-plugin/test/function_return.test.ts b/incremental/compiler-plugin/test/function_return.test.ts index 69b219597dde9ec048eb22cedc31d8b252f6240e..575ebcd99f7de50686d418a04bde30baa7a74337 100644 --- a/incremental/compiler-plugin/test/function_return.test.ts +++ b/incremental/compiler-plugin/test/function_return.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,8 +13,8 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { Context } from "./context.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/compiler-plugin/test/parenthesised-call.test.ts b/incremental/compiler-plugin/test/parenthesised-call.test.ts index ec35ac2962ef615b81fba1c0c481736880afa7cf..49a358a96750ac3c38783ecb3870c5e2183e8235 100644 --- a/incremental/compiler-plugin/test/parenthesised-call.test.ts +++ b/incremental/compiler-plugin/test/parenthesised-call.test.ts @@ -1,75 +1,75 @@ -/* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// import { Context } from "./context.test" -import { checkDump } from "./util.test" -// import { assert } from "chai" - -// const someId: string = "xxx" - -suite("Parenthesised call expressions", () => { - test("Parenthesised memo functions", () => { - /** @memo */ - function f(): void { - return - } - - /** @memo */ - function g(x: number, y: number): number { - return x + y - } - - /** @memo */ - function expr_memo(): void { - f(); - (f)(); - f(); - (((((f)))))(); - - g(1, 2); - (g)(3, 4); - g(5, 6); - (((((g)))))(7, 8); - } - }) - - test("Parenthesised non memo functions", () => { - function f(): void { - return - } - - function g(x: number, y: number): number { - return x + y - } - - /** @memo */ - function expr_non_memo(): void { - f(); - (f)(); - f(); - (((((f)))))(); - - g(1, 2); - (g)(3, 4); - g(5, 6); - (((((g)))))(7, 8); - } - }) - - - for (let name of ["expr_memo", "expr_non_memo"]) { - checkDump(name, "parenthesised-call") - } -}) +/* + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { suite, test } from "@koalaui/harness" +// import { Context } from "./context.test" +import { checkDump } from "./util.test" + +// const someId: string = "xxx" + +suite("Parenthesised call expressions", () => { + test("Parenthesised memo functions", () => { + /** @memo */ + function f(): void { + return + } + + /** @memo */ + function g(x: number, y: number): number { + return x + y + } + + /** @memo */ + function expr_memo(): void { + f(); + (f)(); + f(); + (((((f)))))(); + + g(1, 2); + (g)(3, 4); + g(5, 6); + (((((g)))))(7, 8); + } + }) + + test("Parenthesised non memo functions", () => { + function f(): void { + return + } + + function g(x: number, y: number): number { + return x + y + } + + /** @memo */ + function expr_non_memo(): void { + f(); + (f)(); + f(); + (((((f)))))(); + + g(1, 2); + (g)(3, 4); + g(5, 6); + (((((g)))))(7, 8); + } + }) + + + for (let name of ["expr_memo", "expr_non_memo"]) { + checkDump(name, "parenthesised-call") + } +}) diff --git a/incremental/compiler-plugin/test/util.test.ts b/incremental/compiler-plugin/test/util.test.ts index d0f1f469c2762d6edfd85b829f0588f452171866..46d738546846eee8923d307057d9f99282f80ee2 100644 --- a/incremental/compiler-plugin/test/util.test.ts +++ b/incremental/compiler-plugin/test/util.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,9 +13,9 @@ * limitations under the License. */ +import { Assert as assert, test } from "@koalaui/harness" import * as path from "path" import * as fs from "fs" -import { assert } from "chai" let logText: string = "" diff --git a/incremental/compiler-plugin/test/variable_declaration.test.ts b/incremental/compiler-plugin/test/variable_declaration.test.ts index c97d223bd938ac7fb9b1f96831df7d469212e6e8..f352d644a882462318ce2d3fde51b5e9ff2586a0 100644 --- a/incremental/compiler-plugin/test/variable_declaration.test.ts +++ b/incremental/compiler-plugin/test/variable_declaration.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,9 +13,9 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { Context } from "./context.test" import { checkDump } from "./util.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/compiler-plugin/test/whole_file.test.ts b/incremental/compiler-plugin/test/whole_file.test.ts index fe813a0e18f866cf8c480eccfb025760a5791d70..56d9801c0169cb5eac1dfc943886b735503cab8e 100644 --- a/incremental/compiler-plugin/test/whole_file.test.ts +++ b/incremental/compiler-plugin/test/whole_file.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,8 +13,8 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import * as fs from "fs" -import { assert } from "chai" function assertUnmemoizedEqualGolden(filename: string) { const unmemoized = fs.readFileSync(`./test/unmemoized/${filename}`, "utf8"); diff --git a/incremental/compiler-plugin/test/wrap_object_literal.test.ts b/incremental/compiler-plugin/test/wrap_object_literal.test.ts index 24ea67b2dbacf7e7f78b215a83c9963036af7d38..3e6b54e476c8d30fb2b99e403c3f865254507693 100644 --- a/incremental/compiler-plugin/test/wrap_object_literal.test.ts +++ b/incremental/compiler-plugin/test/wrap_object_literal.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,9 +13,9 @@ * limitations under the License. */ +import { Assert as assert, suite, test } from "@koalaui/harness" import { Context } from "./context.test" import { checkDump } from "./util.test" -import { assert } from "chai" const someId = "xxx" diff --git a/incremental/harness/js/register.js b/incremental/harness/js/register.js new file mode 100644 index 0000000000000000000000000000000000000000..c87312c19b58b9ab7a5961d80417953c323ff017 --- /dev/null +++ b/incremental/harness/js/register.js @@ -0,0 +1,34 @@ +/* + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { goldenSetup } from "./golden.js" + +const tsNode = require("ts-node") +const path = require("path") + +goldenSetup('.', '.') + +unmemoized_suffix = process.env.UNMEMOIZED_SUFFIX +if (unmemoized_suffix == undefined) { + unmemoized_suffix = '' +} + +tsNode.register({ + files: true, + // If uncommented, running tests doesn't perform type checks. + // transpileOnly: true, + project: path.resolve(`test`, `tsconfig${unmemoized_suffix}.json`), + compiler: "@koalaui/ets-tsc" +}) diff --git a/incremental/harness/package.json b/incremental/harness/package.json index 257c87491e6079340a52e18298ac30901322ecfe..ae281725753a6495b3b7e42c13a86eff3e00782d 100644 --- a/incremental/harness/package.json +++ b/incremental/harness/package.json @@ -1,11 +1,12 @@ { "name": "@koalaui/harness", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "A harness library compatible with OHOS and ArkTS", "main": "build/src/index.js", "types": "build/src/index.d.ts", "files": [ "js/golden.js", + "js/register.js", "build/src/**/*.js", "build/src/**/*.d.ts" ], @@ -20,6 +21,7 @@ }, "exports": { "./golden": "./js/golden.js", + "./register": "./js/register.js", ".": "./build/src/index.js" }, "scripts": { @@ -35,8 +37,8 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel", - "@koalaui/compat": "1.5.3+devel" + "@koalaui/common": "1.5.5+devel", + "@koalaui/compat": "1.5.5+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", diff --git a/incremental/package.json b/incremental/package.json index 824bca843fcbe0fd30882dda27a8380768b263f0..edf0174288fcd2839cdbb532f218b93a8894046e 100644 --- a/incremental/package.json +++ b/incremental/package.json @@ -11,8 +11,6 @@ "compiler-plugin" ], "devDependencies": { - "@types/chai": "4.3.10", - "chai": "4.3.10", "ts-node": "^10.7.0", "ts-patch": "^2.1.0", "tslib": "^2.3.1", diff --git a/incremental/runtime/.gitlab-ci.yml b/incremental/runtime/.gitlab-ci.yml index 56b5b2e8df0dcc98148d93c179ab084dc2a981df..d6ef49604f80cc0fe56addb41b794cf0605cee78 100644 --- a/incremental/runtime/.gitlab-ci.yml +++ b/incremental/runtime/.gitlab-ci.yml @@ -51,6 +51,7 @@ test runtime: - build compat - build compiler-plugin - build runtime + - build harness test runtime (ArkTS): stage: test diff --git a/incremental/runtime/oh-package.json5 b/incremental/runtime/oh-package.json5 index c282b88267d0fcb8d07ff9598ac6767dcfed0f7e..5dc6bc9a7ee88cbec864e256c26b38e1cf37535e 100644 --- a/incremental/runtime/oh-package.json5 +++ b/incremental/runtime/oh-package.json5 @@ -25,11 +25,8 @@ "@koalaui/compat": "1.4.1+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/incremental/runtime/package.json b/incremental/runtime/package.json index e20c6e8fd05ad09cc9d6ef73254148065755d41b..8dec785b951a16c526e301c69d0990efa10f52fe 100644 --- a/incremental/runtime/package.json +++ b/incremental/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/runtime", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "", "main": "./build/lib/src/index.js", "types": "./build/lib/src/index.d.ts", @@ -41,16 +41,13 @@ }, "keywords": [], "dependencies": { - "@koalaui/common": "1.5.3+devel", - "@koalaui/compat": "1.5.3+devel", - "@koalaui/harness": "1.5.3+devel" + "@koalaui/common": "1.5.5+devel", + "@koalaui/compat": "1.5.5+devel", + "@koalaui/harness": "1.5.5+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", "mocha": "^9.2.2", diff --git a/incremental/runtime/test/animation/Easing.test.ts b/incremental/runtime/test/animation/Easing.test.ts index f648ccf370d562d9078a57c4195a47c3574f7302..8b41c853c6aa1d207c4f42e4fce6b688922a8d31 100644 --- a/incremental/runtime/test/animation/Easing.test.ts +++ b/incremental/runtime/test/animation/Easing.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { Easing, EasingCurve, EasingStepJump } from "../../src/animation/Easing" function assertEasing(easing: EasingCurve, ...expected: number[]) { diff --git a/incremental/runtime/test/common/MarkableQueue.test.ts b/incremental/runtime/test/common/MarkableQueue.test.ts index 58f9de2b1fd1cb6c0d9e35fcf1a564d4a50ce60c..7d7aa326defda98956dc478aaa585564b6bd3437 100644 --- a/incremental/runtime/test/common/MarkableQueue.test.ts +++ b/incremental/runtime/test/common/MarkableQueue.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,8 +13,8 @@ * limitations under the License. */ +import { Assert, suite, test } from "@koalaui/harness" import { MarkableQueue, markableQueue } from "@koalaui/common" -import { assert as Assert } from "chai" const collector = new Array() diff --git a/incremental/runtime/test/memo/bind.test.ts b/incremental/runtime/test/memo/bind.test.ts index 0fe1ab75a54a15265479aa8021f9815360afe8e8..d889d47fce5e2e25f021efae255f89a204d534ab 100644 --- a/incremental/runtime/test/memo/bind.test.ts +++ b/incremental/runtime/test/memo/bind.test.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { GlobalStateManager, State, diff --git a/incremental/runtime/test/memo/changeListener.test.ts b/incremental/runtime/test/memo/changeListener.test.ts index 975be91f173420adc5d41dac8d6071b5f5fb4981..e200f0d9b2e57556380c030afe8d636f8283687f 100644 --- a/incremental/runtime/test/memo/changeListener.test.ts +++ b/incremental/runtime/test/memo/changeListener.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { GlobalStateManager, OnChange, diff --git a/incremental/runtime/test/memo/contextLocal.test.ts b/incremental/runtime/test/memo/contextLocal.test.ts index 4d901e4e3d6d7ba68ad45ca33458e43dbcc209ff..b0cc6cfc9c346b507fbac074988d9128a3dd6d0c 100644 --- a/incremental/runtime/test/memo/contextLocal.test.ts +++ b/incremental/runtime/test/memo/contextLocal.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { State, TestNode, diff --git a/incremental/runtime/test/memo/remember.test.ts b/incremental/runtime/test/memo/remember.test.ts index a5c53f9d7b00cd3236347285bf53278f5a25dd57..3596bb8dfdc4c4c1958f6c2e748bf916b1c9291d 100644 --- a/incremental/runtime/test/memo/remember.test.ts +++ b/incremental/runtime/test/memo/remember.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { GlobalStateManager, State, diff --git a/incremental/runtime/test/memo/repeat.test.ts b/incremental/runtime/test/memo/repeat.test.ts index 392cd1a1e196ad4b4e14367275a72bac2416c4b8..f489f8a4baef5d1abfa1565a535dbf8c5bf1f7fe 100644 --- a/incremental/runtime/test/memo/repeat.test.ts +++ b/incremental/runtime/test/memo/repeat.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { UniqueId, KoalaCallsiteKey } from "@koalaui/common" import { GlobalStateManager, diff --git a/incremental/runtime/test/states/Journal.test.ts b/incremental/runtime/test/states/Journal.test.ts index 712e8b5506b84c2c80225225113fd839afbc612d..74439ca867d8efd6ef36cf98fa712a5a35108037 100644 --- a/incremental/runtime/test/states/Journal.test.ts +++ b/incremental/runtime/test/states/Journal.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2024 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert as Assert } from "chai" +import { Assert, suite, test } from "@koalaui/harness" import { Changes, Journal } from "../../src/states/Journal" function assertChange(changes: Changes | undefined, state: Object, expected: Value) { diff --git a/incremental/runtime/test/states/State.test.ts b/incremental/runtime/test/states/State.test.ts index 65c7d833be3c3ecdb7eedd07f86cf56d0708fcde..99e5edacc4f83f63d298b519c4f67a8ab50f1e9a 100644 --- a/incremental/runtime/test/states/State.test.ts +++ b/incremental/runtime/test/states/State.test.ts @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { UniqueId, KoalaCallsiteKey } from "@koalaui/common" import { IncrementalNode, MutableState, State, TestNode, testUpdate, ValueTracker } from "../../src" import { createStateManager } from "../../src/states/State" diff --git a/incremental/runtime/test/states/state_basics.test.ts b/incremental/runtime/test/states/state_basics.test.ts index 3652ecaf32ee1948a56b9d112283cd19b1471fcc..13f667e59e0c772c57240071c94e0b75e6a1a360 100644 --- a/incremental/runtime/test/states/state_basics.test.ts +++ b/incremental/runtime/test/states/state_basics.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { uint32 } from "@koalaui/common" import { GlobalStateManager, diff --git a/incremental/runtime/test/tree/TreeNode.test.ts b/incremental/runtime/test/tree/TreeNode.test.ts index 365db44ca098768f8f621c67c7d8174892dd7c4d..3fae69b18d5d780d10f20d87ec14ad533d34a3aa 100644 --- a/incremental/runtime/test/tree/TreeNode.test.ts +++ b/incremental/runtime/test/tree/TreeNode.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { TreeNode } from "../../src/tree/TreeNode" class StringNode extends TreeNode { diff --git a/incremental/runtime/test/tree/TreePath.test.ts b/incremental/runtime/test/tree/TreePath.test.ts index 0a3110f6d10908f14b79a5cc564e686b37c9409e..f13e34178282acc8b9a340f77058baeea7e91835 100644 --- a/incremental/runtime/test/tree/TreePath.test.ts +++ b/incremental/runtime/test/tree/TreePath.test.ts @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022-2023 Huawei Device Co., Ltd. + * Copyright (c) 2022-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -13,7 +13,7 @@ * limitations under the License. */ -import { assert } from "chai" +import { Assert as assert, suite, test } from "@koalaui/harness" import { TreePath } from "../../src/tree/TreePath" suite("TreePath", () => { diff --git a/incremental/tools/fast-arktsc/src/main.ts b/incremental/tools/fast-arktsc/src/main.ts index 2e8bc7cf3dba45c484a27f87b160e5528a9511d7..4d4a23199c34a81ccf95943d46d64499e16d85fc 100644 --- a/incremental/tools/fast-arktsc/src/main.ts +++ b/incremental/tools/fast-arktsc/src/main.ts @@ -177,7 +177,7 @@ function mainAot(abc: string) { let sdk = options.sdk ?? path.resolve(path.join(__dirname, '..', '..', 'panda', 'node_modules', '@panda', 'sdk')) let aot = path.join(sdk, archDir(), 'bin', 'ark_aot') let stdlib = path.resolve(path.join(sdk, "ets", "etsstdlib.abc")) - const aotLibs = [stdlib] + const aotLibs = abc.indexOf("etsstdlib") == -1 ? [stdlib] : [] if (options.aotLibs) aotLibs.push(... options.aotLibs.split(",")) let args: string[] = [] if (process.platform == "darwin") { @@ -185,15 +185,17 @@ function mainAot(abc: string) { args.push(aot) aot = "echo" } - let result = abc.replace('.abc', '.an') + let dir = options.outputDir ?? path.dirname(abc) + let result = path.join(dir, path.basename(abc).replace('.abc', '.an')) args.push(... options.aotTarget ? [`--compiler-cross-arch=${options.aotTarget}`] : []) args.push(... [ `--load-runtimes=ets`, - `--boot-panda-files=${aotLibs.join(':')}:${abc}`, + `--boot-panda-files=${aotLibs.map(it => path.resolve(it)).concat(abc).join(':')}`, `--paoc-panda-files=${abc}`, `--paoc-output=${result}` ]) - console.log(`AOT compile ${abc}...`) + console.log(`AOT compile ${abc} to ${result}...`) + console.log(`Launch ${aot} ${args.join(" ")}`) const child = child_process.spawn(aot, args) child.stdout.on('data', (data) => { process.stdout.write(data); diff --git a/interop/oh-package.json5 b/interop/oh-package.json5 index 2db4af57c8bbc7970b3768d31486042d2a2da2d0..96d62e6ba578ed9f403c2420ed03112d3c7f329c 100644 --- a/interop/oh-package.json5 +++ b/interop/oh-package.json5 @@ -49,14 +49,10 @@ "@koalaui/common": "1.4.1+devel" }, "devDependencies": { - "@types/chai": "^4.3.1", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", - "mocha": "^9.2.2", "source-map-support": "^0.5.21" } } diff --git a/interop/package.json b/interop/package.json index 511ad48a36547acc1d7f44faf013bc175635bef1..48d0c6630254eaead4a647d3a5f9035f643d60cb 100644 --- a/interop/package.json +++ b/interop/package.json @@ -1,6 +1,6 @@ { "name": "@koalaui/interop", - "version": "1.5.3+devel", + "version": "1.5.5+devel", "description": "", "workspaces": [ "../incremental/build-common", @@ -57,19 +57,15 @@ "keywords": [], "dependencies": { "@types/node": "^18.0.0", - "@koalaui/common": "1.5.3+devel" + "@koalaui/common": "1.5.5+devel" }, "devDependencies": { "@ohos/hypium": "1.0.6", - "@types/chai": "^4.3.1", "@types/node": "^18.0.0", - "@types/mocha": "^9.1.0", "@typescript-eslint/eslint-plugin": "^5.20.0", "@typescript-eslint/parser": "^5.20.0", - "chai": "^4.3.6", "eslint": "^8.13.0", "eslint-plugin-unused-imports": "^2.0.0", - "mocha": "^9.2.2", "source-map-support": "^0.5.21", "@koalaui/ets-tsc": "4.9.5-r4", "@koalaui/fast-arktsc": "next" diff --git a/interop/src/cangjie/InteropTypes.cj b/interop/src/cangjie/InteropTypes.cj index 1be75c02185af98b576de76e849257969a471168..993c8346eca71158524b8321f11f2583ed68ddc4 100644 --- a/interop/src/cangjie/InteropTypes.cj +++ b/interop/src/cangjie/InteropTypes.cj @@ -21,4 +21,15 @@ public type KFloat = Float32 public type pointer = KPointer public type KInt = Int32 public type KStringPtr = String -public type ArrayBuffer = ArrayList \ No newline at end of file +public type ArrayBuffer = ArrayList +@C +public struct KInteropReturnBuffer { + public var length: Int32 + public var data: CPointer + public var dispose: CPointer, Int32) -> Unit>> + init (length: Int32, data: CPointer, dispose: CPointer, Int32) -> Unit>>) { + this.length = length + this.data = data + this.dispose = dispose + } +} \ No newline at end of file diff --git a/interop/src/cpp/ani/convertors-ani.h b/interop/src/cpp/ani/convertors-ani.h index 6ca8e43d990c62afc5b239db7ec577c4c4216754..05c27dcecf713b473396ee75cc0e9f0542520028 100644 --- a/interop/src/cpp/ani/convertors-ani.h +++ b/interop/src/cpp/ani/convertors-ani.h @@ -1198,7 +1198,7 @@ MAKE_ANI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 InteropTypeConverter::InteropType _p0, \ InteropTypeConverter::InteropType _p1, \ InteropTypeConverter::InteropType _p2, \ - InteropTypeConverter::InteropType _p3 \ + InteropTypeConverter::InteropType _p3, \ InteropTypeConverter::InteropType _p4) { \ KOALA_MAYBE_LOG(name) \ P0 p0 = getArgument(env, _p0); \ @@ -1367,11 +1367,11 @@ void getKoalaEtsNapiCallbackDispatcher(ani_class* clazz, ani_method* method); #else #define KOALA_INTEROP_CALL_VOID(venv, id, length, args) -#define KOALA_INTEROP_CALL_INT(venv, id, length, args) -#define KOALA_INTEROP_CALL_VOID_INTS32(venv, id, argc, args) -#define KOALA_INTEROP_CALL_INT_INTS32(venv, id, argc, args) -#define KOALA_INTEROP_THROW(vmContext, object, ...) -#define KOALA_INTEROP_THROW_STRING(vmContext, message, ...) +#define KOALA_INTEROP_CALL_INT(venv, id, length, args) { return 0; } +#define KOALA_INTEROP_CALL_VOID_INTS32(venv, id, argc, args) { return; } +#define KOALA_INTEROP_CALL_INT_INTS32(venv, id, argc, args) { return 0; } +#define KOALA_INTEROP_THROW(vmContext, object, ...) { return __VA_ARGS__; } +#define KOALA_INTEROP_THROW_STRING(vmContext, message, ...) { return __VA_ARGS__; } #endif #endif // KOALA_ETS_NAPI diff --git a/interop/src/cpp/cangjie/convertors-cj.h b/interop/src/cpp/cangjie/convertors-cj.h index 631393cedaf244a4c95d19747c245fff1c6bbd59..0524f796a8de6e2fa61c9ad5a01562f10a4d6161 100644 --- a/interop/src/cpp/cangjie/convertors-cj.h +++ b/interop/src/cpp/cangjie/convertors-cj.h @@ -792,6 +792,22 @@ KOALA_INTEROP_EXPORT InteropTypeConverter::InteropType name( \ return makeResult(impl_##name(ctx, p0, p1, p2, p3)); \ } +#define KOALA_INTEROP_CTX_5(name, Ret, P0, P1, P2, P3, P4) \ +KOALA_INTEROP_EXPORT InteropTypeConverter::InteropType name( \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(_p0); \ + P1 p1 = getArgument(_p1); \ + P2 p2 = getArgument(_p2); \ + P3 p3 = getArgument(_p3); \ + P4 p4 = getArgument(_p4); \ + KVMContext ctx = (KVMContext)0; \ + return makeResult(impl_##name(ctx, p0, p1, p2, p3, p4)); \ +} #define KOALA_INTEROP_CALL_INT(venv, id, length, args) \ { \ diff --git a/interop/src/cpp/common-interop.cc b/interop/src/cpp/common-interop.cc index c522cc84ab0bd84559822dbc4005e071c0c42f42..f7f5b74a6196f0e029b4b70a37b20ae0d8580e51 100644 --- a/interop/src/cpp/common-interop.cc +++ b/interop/src/cpp/common-interop.cc @@ -259,7 +259,7 @@ struct ForeignVMContext { typedef KInt (*LoadVirtualMachine_t)(KInt vmKind, const char* classPath, const char* libraryPath, const struct ForeignVMContext* foreignVM); typedef KNativePointer (*StartApplication_t)(const char* appUrl, const char* appParams); typedef KBoolean (*RunApplication_t)(const KInt arg0, const KInt arg1); -typedef void (*EmitEvent_t)(const KInt type, const KInt target, const KInt arg0, const KInt arg1); +typedef const char* (*EmitEvent_t)(const KInt type, const KInt target, const KInt arg0, const KInt arg1); typedef void (*RestartWith_t)(const char* page); void* getImpl(const char* path, const char* name) { @@ -310,12 +310,15 @@ KBoolean impl_RunApplication(const KInt arg0, const KInt arg1) { } KOALA_INTEROP_2(RunApplication, KBoolean, KInt, KInt) -void impl_EmitEvent(const KInt type, const KInt target, const KInt arg0, const KInt arg1) { +KStringPtr impl_EmitEvent(KVMContext vmContext, KInt type, KInt target, KInt arg0, KInt arg1) { static EmitEvent_t impl = nullptr; if (!impl) impl = reinterpret_cast(getImpl(nullptr, "EmitEvent")); - impl(type, target, arg0, arg1); + const char* out = impl(type, target, arg0, arg1); + auto size = std::string(out).size(); + KStringPtr result(out, size, true); + return result; } -KOALA_INTEROP_V4(EmitEvent, KInt, KInt, KInt, KInt) +KOALA_INTEROP_CTX_4(EmitEvent, KStringPtr, KInt, KInt, KInt, KInt) void impl_RestartWith(const KStringPtr& page) { static RestartWith_t impl = nullptr; diff --git a/interop/src/cpp/ets/convertors-ets.h b/interop/src/cpp/ets/convertors-ets.h index ce43a7126da2d74833881bef3f1ed7fd045459e9..4d1e9543a39c57cf5ffa33c434eced0317cf899c 100644 --- a/interop/src/cpp/ets/convertors-ets.h +++ b/interop/src/cpp/ets/convertors-ets.h @@ -91,6 +91,21 @@ struct InteropTypeConverter { } }; +template<> +struct InteropTypeConverter { + using InteropType = ets_byteArray; + static KByte* convertFrom(EtsEnv* env, InteropType value) = delete; + static InteropType convertTo(EtsEnv* env, KInteropReturnBuffer value) { + ets_byteArray array = env->NewByteArray(value.length); + KByte* data = (KByte*)env->PinByteArray(array); + memcpy(data, (KByte*)value.data, value.length); + env->UnpinByteArray(array); + value.dispose(value.data, value.length); + return array; + }; + static void release(EtsEnv* env, InteropType value, KInteropReturnBuffer converted) {} +}; + template<> struct InteropTypeConverter { using InteropType = ets_byteArray; @@ -1199,6 +1214,30 @@ MAKE_ETS_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2, ETS_SL } \ MAKE_ETS_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3, ETS_SLOW_NATIVE_FLAG) +#define KOALA_INTEROP_CTX_5(name, Ret, P0, P1, P2, P3, P4) \ + InteropTypeConverter::InteropType Ark_##name(EtsEnv *env, ets_class clazz, \ + InteropTypeConverter::InteropType _p0, \ + InteropTypeConverter::InteropType _p1, \ + InteropTypeConverter::InteropType _p2, \ + InteropTypeConverter::InteropType _p3, \ + InteropTypeConverter::InteropType _p4) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + P3 p3 = getArgument(env, _p3); \ + P4 p4 = getArgument(env, _p4); \ + KVMContext ctx = (KVMContext)env; \ + auto rv = makeResult(env, impl_##name(ctx, p0, p1, p2, p3, p4)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + return rv; \ + } \ +MAKE_ETS_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4, ETS_SLOW_NATIVE_FLAG) + #define KOALA_INTEROP_CTX_V0(name) \ void Ark_##name(EtsEnv *env, ets_class clazz) { \ KOALA_MAYBE_LOG(name) \ diff --git a/interop/src/cpp/jni/convertors-jni.h b/interop/src/cpp/jni/convertors-jni.h index 37773881ea9b1f3716ad108d0149896d8def3a9e..d0c8b8a4b6ab30a85a68761e602b1f47ce26ee47 100644 --- a/interop/src/cpp/jni/convertors-jni.h +++ b/interop/src/cpp/jni/convertors-jni.h @@ -1315,6 +1315,30 @@ MAKE_JNI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2) } \ MAKE_JNI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3) +#define KOALA_INTEROP_CTX_5(name, Ret, P0, P1, P2, P3, P4) \ + KOALA_JNI_CALL(SlowInteropTypeConverter::InteropType) Java_org_##name(JNIEnv* env, jclass instance, \ + SlowInteropTypeConverter::InteropType _p0, \ + SlowInteropTypeConverter::InteropType _p1, \ + SlowInteropTypeConverter::InteropType _p2, \ + SlowInteropTypeConverter::InteropType _p3, \ + SlowInteropTypeConverter::InteropType _p4) { \ + KOALA_MAYBE_LOG(name) \ + P0 p0 = getArgument(env, _p0); \ + P1 p1 = getArgument(env, _p1); \ + P2 p2 = getArgument(env, _p2); \ + P3 p3 = getArgument(env, _p3); \ + P4 p4 = getArgument(env, _p4); \ + KVMContext ctx = (KVMContext)env; \ + auto rv = SlowInteropTypeConverter::convertTo(env, impl_##name(ctx, p0, p1, p2, p3, p4)); \ + releaseArgument(env, _p0, p0); \ + releaseArgument(env, _p1, p1); \ + releaseArgument(env, _p2, p2); \ + releaseArgument(env, _p3, p3); \ + releaseArgument(env, _p4, p4); \ + return rv; \ +} \ +MAKE_JNI_EXPORT(KOALA_INTEROP_MODULE, name, #Ret "|" #P0 "|" #P1 "|" #P2 "|" #P3 "|" #P4) + #define KOALA_INTEROP_CTX_V0(name) \ KOALA_JNI_CALL(void) Java_org_##name(JNIEnv* env, jclass instance) { \ KOALA_MAYBE_LOG(name) \ diff --git a/interop/src/cpp/napi/convertors-napi.h b/interop/src/cpp/napi/convertors-napi.h index 467d5920d41928732835d718a653d056844a1353..1ca24e16e9c98d493bb7d3dd135838eb9edc56b6 100644 --- a/interop/src/cpp/napi/convertors-napi.h +++ b/interop/src/cpp/napi/convertors-napi.h @@ -1233,6 +1233,20 @@ public: } \ MAKE_NODE_EXPORT(KOALA_INTEROP_MODULE, name) +#define KOALA_INTEROP_CTX_5(name, Ret, P0, P1, P2, P3, P4) \ + napi_value Node_##name(napi_env env, napi_callback_info cbinfo) { \ + KOALA_MAYBE_LOG(name) \ + CallbackInfo info(env, cbinfo); \ + KVMContext ctx = reinterpret_cast((napi_env)info.Env()); \ + P0 p0 = getArgument(info, 0); \ + P1 p1 = getArgument(info, 1); \ + P2 p2 = getArgument(info, 2); \ + P3 p3 = getArgument(info, 3); \ + P4 p4 = getArgument(info, 4); \ + return makeResult(info, impl_##name(ctx, p0, p1, p2, p3, p4)); \ + } \ + MAKE_NODE_EXPORT(KOALA_INTEROP_MODULE, name) + #define KOALA_INTEROP_CTX_V0(name) \ napi_value Node_##name(napi_env env, napi_callback_info cbinfo) { \ KOALA_MAYBE_LOG(name) \ diff --git a/interop/src/cpp/vmloader.cc b/interop/src/cpp/vmloader.cc index d409a87809cda49b24ca74dfb50627c35307f5f4..e7eda0d423f7ca522c28c57f70d23030254936fd 100644 --- a/interop/src/cpp/vmloader.cc +++ b/interop/src/cpp/vmloader.cc @@ -310,7 +310,7 @@ const AppInfo javaAppInfo = { "enter", "(IIJ)Z", "emitEvent", - "(IIII)V", + "(IIII)Ljava/lang/String;", }; #endif @@ -324,7 +324,7 @@ const AppInfo pandaAppInfo = { "enter", "IIJ:Z", "emitEvent", - "IIII:V", + "IIII:Lstd/core/String;", }; const AppInfo harnessAppInfo = { "@koalaui/ets-harness/src/EtsHarnessApplication/EtsHarnessApplication", @@ -335,7 +335,7 @@ const AppInfo harnessAppInfo = { "enter", "II:Z", "emitEvent", - "IIII:V", + "IIII:Lstd/core/String;", "restartWith", "Lstd/core/String;:V" }; @@ -509,15 +509,15 @@ extern "C" DLL_EXPORT KBoolean RunApplication(const KInt arg0, const KInt arg1) return 1; } -extern "C" DLL_EXPORT void EmitEvent(const KInt type, const KInt target, const KInt arg0, const KInt arg1) { +extern "C" DLL_EXPORT const char* EmitEvent(const KInt type, const KInt target, const KInt arg0, const KInt arg1) { #ifdef KOALA_JNI if (g_vmEntry.vmKind == JAVA_VM_KIND) { JNIEnv* jEnv = (JNIEnv*)(g_vmEntry.env); if (!g_vmEntry.emitEvent) { LOGE("Cannot find emitEvent method"); - return; + return "-1"; } - jEnv->CallVoidMethod( + auto rv = (jstring)jEnv->CallObjectMethod( (jobject)(g_vmEntry.app), (jmethodID)(g_vmEntry.emitEvent), (jint)type, @@ -529,6 +529,8 @@ extern "C" DLL_EXPORT void EmitEvent(const KInt type, const KInt target, const K jEnv->ExceptionDescribe(); jEnv->ExceptionClear(); } + const char *result = jEnv->GetStringUTFChars(rv, 0); + return result; } #endif #ifdef KOALA_ETS_NAPI @@ -536,9 +538,9 @@ extern "C" DLL_EXPORT void EmitEvent(const KInt type, const KInt target, const K EtsEnv* etsEnv = (EtsEnv*)(g_vmEntry.env); if (!g_vmEntry.emitEvent) { LOGE("Cannot find emitEvent method"); - return; + return "-1"; } - etsEnv->CallVoidMethod( + auto rv = (ets_string)etsEnv->CallObjectMethod( (ets_object)(g_vmEntry.app), (ets_method)(g_vmEntry.emitEvent), (ets_int)type, @@ -551,8 +553,11 @@ extern "C" DLL_EXPORT void EmitEvent(const KInt type, const KInt target, const K etsEnv->ErrorDescribe(); etsEnv->ErrorClear(); } + const char *result = etsEnv->GetStringUTFChars(rv, 0); + return result; } #endif + return "-1"; } extern "C" DLL_EXPORT void RestartWith(const char* page) { diff --git a/tools/release.mjs b/tools/release.mjs index 3ea6f6cb625d8f4b737feec6c4743ef8f8ff680c..18f04a0eacad6c8088c38ab77d70f6c2dffd74b4 100644 --- a/tools/release.mjs +++ b/tools/release.mjs @@ -68,6 +68,7 @@ const all_packages = [ new Package(path.join(EXTERNAL_HOME, "incremental/harness")), new Package(path.join(EXTERNAL_HOME, "incremental/runtime")), new Package(path.join(EXTERNAL_HOME, "incremental/compiler-plugin")), + new Package(path.join(EXTERNAL_HOME, "arkoala-arkts/ets-harness")), new Package(path.join(EXTERNAL_HOME, "arkoala/ets-plugin")), new Package(path.join(EXTERNAL_HOME, "arkoala/arkui-common")), new Package(path.join(EXTERNAL_HOME, "arkoala/arkui")),