From bb8c77266fce727aeff06dd65eb8d53d78dd5053 Mon Sep 17 00:00:00 2001 From: Ilya Erokhin Date: Mon, 16 Jun 2025 16:06:47 +0300 Subject: [PATCH 1/2] ContentModifier Regeneration part Signed-off-by: Ilya Erokhin --- .../sdk/generated/arkui-contentmodifier.ets | 51 + arkoala-arkts/arkui/sdk/generated/button.ets | 4 +- .../arkui/sdk/generated/checkbox.ets | 4 +- arkoala-arkts/arkui/sdk/generated/common.ets | 4 +- .../arkui/sdk/generated/dataPanel.ets | 4 +- arkoala-arkts/arkui/sdk/generated/gauge.ets | 4 +- .../arkui/sdk/generated/loadingProgress.ets | 4 +- .../arkui/sdk/generated/progress.ets | 4 +- arkoala-arkts/arkui/sdk/generated/radio.ets | 4 +- arkoala-arkts/arkui/sdk/generated/rating.ets | 4 +- arkoala-arkts/arkui/sdk/generated/select.ets | 4 +- arkoala-arkts/arkui/sdk/generated/slider.ets | 4 +- .../arkui/sdk/generated/textClock.ets | 4 +- .../arkui/sdk/generated/textTimer.ets | 4 +- arkoala-arkts/arkui/sdk/generated/toggle.ets | 6 +- .../arkts/ArkUIGeneratedNativeModule.ets | 26 + .../src/ets/generated/arkts/type_check.ets | 68 +- .../ets/generated/arkui-contentmodifier.ets | 225 +++ .../arkui/src/ets/generated/button.ets | 8 +- .../arkui/src/ets/generated/checkbox.ets | 8 +- .../arkui/src/ets/generated/common.ets | 4 +- .../arkui/src/ets/generated/dataPanel.ets | 8 +- .../arkui/src/ets/generated/gauge.ets | 8 +- .../arkui/src/ets/generated/index.ets | 1 + .../src/ets/generated/loadingProgress.ets | 8 +- .../peers/CallbackDeserializeCall.ets | 149 +- .../src/ets/generated/peers/CallbackKind.ets | 13 + .../src/ets/generated/peers/Deserializer.ets | 434 ++++- .../src/ets/generated/peers/Serializer.ets | 242 ++- .../arkui/src/ets/generated/progress.ets | 8 +- .../arkui/src/ets/generated/radio.ets | 8 +- .../arkui/src/ets/generated/rating.ets | 8 +- .../arkui/src/ets/generated/select.ets | 8 +- .../arkui/src/ets/generated/slider.ets | 8 +- .../arkui/src/ets/generated/textClock.ets | 8 +- .../arkui/src/ets/generated/textTimer.ets | 8 +- .../arkui/src/ets/generated/toggle.ets | 10 +- .../arkui/src/ets/generated/ts/type_check.ets | 220 ++- arkoala-arkts/arkui/types/index-full.d.ts | 30 +- .../native/src/generated/Serializers.h | 1459 +++++++++++++++++ .../src/generated/arkoala_api_generated.h | 384 +++++ .../native/src/generated/bridge_generated.cc | 91 + .../generated/callback_deserialize_call.cc | 312 ++++ .../native/src/generated/callback_kind.h | 13 + .../src/generated/callback_managed_caller.cc | 390 +++++ .../native/src/generated/dummy_impl.cc | 218 +++ .../native/src/generated/real_impl.cc | 153 ++ 47 files changed, 4485 insertions(+), 162 deletions(-) create mode 100644 arkoala-arkts/arkui/sdk/generated/arkui-contentmodifier.ets create mode 100644 arkoala-arkts/arkui/src/ets/generated/arkui-contentmodifier.ets diff --git a/arkoala-arkts/arkui/sdk/generated/arkui-contentmodifier.ets b/arkoala-arkts/arkui/sdk/generated/arkui-contentmodifier.ets new file mode 100644 index 0000000000..45071821e8 --- /dev/null +++ b/arkoala-arkts/arkui/sdk/generated/arkui-contentmodifier.ets @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2024-2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + +// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! + +import { int32, int64, float32 } from "@koalaui/common" +import { KInt, KPointer, KBoolean, NativeBuffer } from "@koalaui/interop" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { BuilderLambda } from "@koalaui/builderLambda" +import { ButtonConfiguration } from "./button" +import { CheckBoxConfiguration } from "./checkbox" +import { DataPanelConfiguration } from "./dataPanel" +import { GaugeConfiguration } from "./gauge" +import { LoadingProgressConfiguration } from "./loadingProgress" +import { ProgressConfiguration } from "./progress" +import { RadioConfiguration } from "./radio" +import { RatingConfiguration } from "./rating" +import { MenuItemConfiguration } from "./select" +import { SliderConfiguration } from "./slider" +import { TextClockConfiguration } from "./textClock" +import { TextTimerConfiguration } from "./textTimer" +import { ToggleConfiguration } from "./toggle" +import { ContentModifier } from "./../handwritten" +export declare class ContentModifierHelper { + static contentModifierButton(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: ButtonConfiguration) => KPointer)): void + static contentModifierCheckBox(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: CheckBoxConfiguration) => KPointer)): void + static contentModifierDataPanel(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: DataPanelConfiguration) => KPointer)): void + static contentModifierGauge(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: GaugeConfiguration) => KPointer)): void + static contentModifierLoadingProgress(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: LoadingProgressConfiguration) => KPointer)): void + static contentModifierProgress(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: ProgressConfiguration) => KPointer)): void + static contentModifierRadio(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: RadioConfiguration) => KPointer)): void + static contentModifierRating(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: RatingConfiguration) => KPointer)): void + static contentModifierMenuItem(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: MenuItemConfiguration) => KPointer)): void + static contentModifierSlider(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: SliderConfiguration) => KPointer)): void + static contentModifierTextClock(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: TextClockConfiguration) => KPointer)): void + static contentModifierTextTimer(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: TextTimerConfiguration) => KPointer)): void + static contentModifierToggle(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: ToggleConfiguration) => KPointer)): void +} diff --git a/arkoala-arkts/arkui/sdk/generated/button.ets b/arkoala-arkts/arkui/sdk/generated/button.ets index 4983022e92..46167eaf49 100644 --- a/arkoala-arkts/arkui/sdk/generated/button.ets +++ b/arkoala-arkts/arkui/sdk/generated/button.ets @@ -20,11 +20,11 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" -import { CommonConfiguration, CommonMethod, ContentModifier, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { CommonConfiguration, CommonMethod, ArkCommonMethodStyle, UICommonMethod } from "./common" import { TextOverflow, TextHeightAdaptivePolicy, FontWeight, FontStyle, Color } from "./enums" import { ResourceStr, Font, ResourceColor, Length } from "./units" import { Resource } from "./resource" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum ButtonType { CAPSULE = 0, Capsule = 0, diff --git a/arkoala-arkts/arkui/sdk/generated/checkbox.ets b/arkoala-arkts/arkui/sdk/generated/checkbox.ets index 4d933b4f97..42c6720833 100644 --- a/arkoala-arkts/arkui/sdk/generated/checkbox.ets +++ b/arkoala-arkts/arkui/sdk/generated/checkbox.ets @@ -21,10 +21,10 @@ import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/int import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" import { CustomBuilder } from "./builder" -import { CommonConfiguration, CommonMethod, ContentModifier, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { CommonConfiguration, CommonMethod, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, MarkStyle } from "./units" import { CheckBoxShape, Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Resource } from "./resource" export declare interface CheckboxOptions { name?: string; diff --git a/arkoala-arkts/arkui/sdk/generated/common.ets b/arkoala-arkts/arkui/sdk/generated/common.ets index eb89b20288..005a2b343d 100644 --- a/arkoala-arkts/arkui/sdk/generated/common.ets +++ b/arkoala-arkts/arkui/sdk/generated/common.ets @@ -34,6 +34,7 @@ import { uniformTypeDescriptor } from "./ohos.data.uniformTypeDescriptor" import { IntentionCode } from "./ohos.multimodalInput.intentionCode" import { UIContext } from "./ohos.arkui.UIContext" import { SymbolGlyphModifier } from "./arkui.SymbolGlyphModifier" +import { ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" import { StyledString } from "./styledString" import { ResizableOptions } from "./image" import { uiEffect } from "./ohos.graphics.uiEffect" @@ -45,7 +46,6 @@ import { promptAction } from "./ohos.promptAction" import { TextRange } from "./textCommon" import { ScrollState } from "./list" import { intl } from "./ohos.intl" -import { UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" export declare interface InputCounterOptions { thresholdPercentage?: number; highlightBorder?: boolean; @@ -1072,8 +1072,6 @@ export declare interface MenuElement { enabled?: boolean; action: (() => void); } -export declare interface ContentModifier { -} export declare interface CommonConfiguration { enabled: boolean; contentModifier: ContentModifier; diff --git a/arkoala-arkts/arkui/sdk/generated/dataPanel.ets b/arkoala-arkts/arkui/sdk/generated/dataPanel.ets index 428b546828..2121e8421d 100644 --- a/arkoala-arkts/arkui/sdk/generated/dataPanel.ets +++ b/arkoala-arkts/arkui/sdk/generated/dataPanel.ets @@ -23,8 +23,8 @@ import { BuilderLambda } from "@koalaui/builderLambda" import { ResourceColor, Length } from "./units" import { Color } from "./enums" import { Resource } from "./resource" -import { MultiShadowOptions, CommonConfiguration, CommonMethod, ContentModifier, ArkCommonMethodStyle, UICommonMethod } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { MultiShadowOptions, CommonConfiguration, CommonMethod, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum DataPanelType { LINE = 0, Line = 0, diff --git a/arkoala-arkts/arkui/sdk/generated/gauge.ets b/arkoala-arkts/arkui/sdk/generated/gauge.ets index 2df4276e1e..72e96e2e57 100644 --- a/arkoala-arkts/arkui/sdk/generated/gauge.ets +++ b/arkoala-arkts/arkui/sdk/generated/gauge.ets @@ -20,12 +20,12 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" -import { MultiShadowOptions, CommonConfiguration, CommonMethod, ContentModifier, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { MultiShadowOptions, CommonConfiguration, CommonMethod, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceStr, Dimension, ResourceColor, Length } from "./units" import { Resource } from "./resource" import { LinearGradient } from "./dataPanel" import { CustomBuilder } from "./builder" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Color } from "./enums" export declare interface GaugeOptions { value: number; diff --git a/arkoala-arkts/arkui/sdk/generated/loadingProgress.ets b/arkoala-arkts/arkui/sdk/generated/loadingProgress.ets index 68d1349f71..c27879a6b1 100644 --- a/arkoala-arkts/arkui/sdk/generated/loadingProgress.ets +++ b/arkoala-arkts/arkui/sdk/generated/loadingProgress.ets @@ -20,9 +20,9 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" -import { CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { CommonMethod, CommonConfiguration, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Color } from "./enums" import { Resource } from "./resource" export enum LoadingProgressStyle { diff --git a/arkoala-arkts/arkui/sdk/generated/progress.ets b/arkoala-arkts/arkui/sdk/generated/progress.ets index 965a639811..e2e6fd632d 100644 --- a/arkoala-arkts/arkui/sdk/generated/progress.ets +++ b/arkoala-arkts/arkui/sdk/generated/progress.ets @@ -24,9 +24,9 @@ import { Length, PX, VP, LPX, ResourceColor, Font } from "./units" import { Resource } from "./resource" import { LengthMetrics } from "./arkui.Graphics" import { Color } from "./enums" -import { CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { CommonMethod, CommonConfiguration, ArkCommonMethodStyle, UICommonMethod } from "./common" import { LinearGradient } from "./dataPanel" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface ProgressOptions { value: number; total?: number; diff --git a/arkoala-arkts/arkui/sdk/generated/radio.ets b/arkoala-arkts/arkui/sdk/generated/radio.ets index a25a8b2061..357df242dd 100644 --- a/arkoala-arkts/arkui/sdk/generated/radio.ets +++ b/arkoala-arkts/arkui/sdk/generated/radio.ets @@ -24,8 +24,8 @@ import { CustomBuilder } from "./builder" import { ResourceColor } from "./units" import { Color } from "./enums" import { Resource } from "./resource" -import { CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodStyle, UICommonMethod } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { CommonMethod, CommonConfiguration, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum RadioIndicatorType { TICK = 0, DOT = 1, diff --git a/arkoala-arkts/arkui/sdk/generated/rating.ets b/arkoala-arkts/arkui/sdk/generated/rating.ets index c0c8846628..a5d80f5417 100644 --- a/arkoala-arkts/arkui/sdk/generated/rating.ets +++ b/arkoala-arkts/arkui/sdk/generated/rating.ets @@ -22,8 +22,8 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" import { ResourceStr } from "./units" import { Resource } from "./resource" -import { CommonConfiguration, CommonMethod, ContentModifier, ArkCommonMethodStyle, UICommonMethod } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { CommonConfiguration, CommonMethod, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface RatingOptions { rating: number; indicator?: boolean; diff --git a/arkoala-arkts/arkui/sdk/generated/select.ets b/arkoala-arkts/arkui/sdk/generated/select.ets index 253e85e88c..0534878ebe 100644 --- a/arkoala-arkts/arkui/sdk/generated/select.ets +++ b/arkoala-arkts/arkui/sdk/generated/select.ets @@ -24,11 +24,11 @@ import { ResourceStr, Dimension, EdgeOutlineWidths, ResourceColor, EdgeColors, F import { SymbolGlyphModifier } from "./arkui.SymbolGlyphModifier" import { Resource } from "./resource" import { Color, OptionWidthMode } from "./enums" -import { CommonMethod, BlurStyle, ContentModifier, CommonConfiguration, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { CommonMethod, BlurStyle, CommonConfiguration, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ControlSize } from "./button" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { DividerOptions } from "./textPicker" import { TextModifier } from "./arkui.TextModifier" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export declare interface SelectOption { value: ResourceStr; icon?: ResourceStr; diff --git a/arkoala-arkts/arkui/sdk/generated/slider.ets b/arkoala-arkts/arkui/sdk/generated/slider.ets index 1675871264..8b9896bc02 100644 --- a/arkoala-arkts/arkui/sdk/generated/slider.ets +++ b/arkoala-arkts/arkui/sdk/generated/slider.ets @@ -23,9 +23,9 @@ import { BuilderLambda } from "@koalaui/builderLambda" import { Axis, CrownSensitivity, Color } from "./enums" import { ResourceStr, ResourceColor, Length, Dimension, SizeOptions } from "./units" import { Resource } from "./resource" -import { CommonConfiguration, CommonMethod, ContentModifier, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { CommonConfiguration, CommonMethod, ArkCommonMethodStyle, UICommonMethod } from "./common" import { LinearGradient } from "./dataPanel" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum SliderStyle { OUT_SET = 0, OutSet = 0, diff --git a/arkoala-arkts/arkui/sdk/generated/textClock.ets b/arkoala-arkts/arkui/sdk/generated/textClock.ets index 959f3d3f13..1c2dc94d31 100644 --- a/arkoala-arkts/arkui/sdk/generated/textClock.ets +++ b/arkoala-arkts/arkui/sdk/generated/textClock.ets @@ -20,11 +20,11 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" -import { CommonConfiguration, CommonMethod, ShadowOptions, ContentModifier, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { CommonConfiguration, CommonMethod, ShadowOptions, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, Length, ResourceStr } from "./units" import { FontStyle, FontWeight, Color } from "./enums" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { intl } from "./ohos.intl" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Resource } from "./resource" export declare class TextClockController { constructor() diff --git a/arkoala-arkts/arkui/sdk/generated/textTimer.ets b/arkoala-arkts/arkui/sdk/generated/textTimer.ets index 6ef91ae062..843eba9eb6 100644 --- a/arkoala-arkts/arkui/sdk/generated/textTimer.ets +++ b/arkoala-arkts/arkui/sdk/generated/textTimer.ets @@ -20,10 +20,10 @@ import { int32, int64, float32 } from "@koalaui/common" import { KInt, KPointer, KBoolean, NativeBuffer, KStringPtr } from "@koalaui/interop" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" -import { CommonConfiguration, CommonMethod, ShadowOptions, ContentModifier, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { CommonConfiguration, CommonMethod, ShadowOptions, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, Length, ResourceStr } from "./units" import { FontStyle, FontWeight, Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Resource } from "./resource" export declare class TextTimerController { constructor() diff --git a/arkoala-arkts/arkui/sdk/generated/toggle.ets b/arkoala-arkts/arkui/sdk/generated/toggle.ets index a47b4e1a2c..33bb754d70 100644 --- a/arkoala-arkts/arkui/sdk/generated/toggle.ets +++ b/arkoala-arkts/arkui/sdk/generated/toggle.ets @@ -23,8 +23,8 @@ import { BuilderLambda } from "@koalaui/builderLambda" import { Resource } from "./resource" import { ResourceColor } from "./units" import { Color } from "./enums" -import { CommonConfiguration, CommonMethod, ContentModifier, ArkCommonMethodStyle, UICommonMethod } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { CommonConfiguration, CommonMethod, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ContentModifier, AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" export enum ToggleType { CHECKBOX = 0, Checkbox = 0, @@ -41,7 +41,7 @@ export declare interface SwitchStyle { } export declare interface ToggleConfiguration extends CommonConfiguration { isOn: boolean; - enabled: boolean; + toggleEnabled: boolean; triggerChange: ((value0: boolean) => void); } export declare interface ToggleOptions { diff --git a/arkoala-arkts/arkui/src/ets/generated/arkts/ArkUIGeneratedNativeModule.ets b/arkoala-arkts/arkui/src/ets/generated/arkts/ArkUIGeneratedNativeModule.ets index ef443664bf..a729518ff3 100644 --- a/arkoala-arkts/arkui/src/ets/generated/arkts/ArkUIGeneratedNativeModule.ets +++ b/arkoala-arkts/arkui/src/ets/generated/arkts/ArkUIGeneratedNativeModule.ets @@ -3480,6 +3480,32 @@ export class ArkUIGeneratedNativeModule { @ani.unsafe.Direct native static _ComponentContent_updateConfiguration(ptr: KPointer): void @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierButton(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierCheckBox(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierDataPanel(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierGauge(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierLoadingProgress(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierProgress(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierRadio(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierRating(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierMenuItem(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierSlider(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierTextClock(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierTextTimer(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct + native static _ContentModifierHelper_contentModifierToggle(node: KPointer, thisArray: KSerializerBuffer, thisLength: int32): void + @ani.unsafe.Direct native static _Context_ctor(): KPointer @ani.unsafe.Direct native static _Context_getFinalizer(): KPointer diff --git a/arkoala-arkts/arkui/src/ets/generated/arkts/type_check.ets b/arkoala-arkts/arkui/src/ets/generated/arkts/type_check.ets index 6d442c1866..3e0f073a95 100644 --- a/arkoala-arkts/arkui/src/ets/generated/arkts/type_check.ets +++ b/arkoala-arkts/arkui/src/ets/generated/arkts/type_check.ets @@ -19,9 +19,9 @@ import { KBoolean, KStringPtr, NativeBuffer, MaterializedBase } from "@koalaui/interop" import { int32 } from "@koalaui/common" import { AccessibilityHoverType, Alignment, AnimationStatus, AppRotation, ArrowPointPosition, Axis, AxisAction, AxisModel, BarState, BorderStyle, CheckBoxShape, Color, ClickEffectLevel, ColoringStrategy, CopyOptions, CrownAction, CrownSensitivity, Curve, DialogButtonStyle, Direction, DividerMode, Edge, EdgeEffect, EllipsisMode, EmbeddedType, FillMode, FlexAlign, FlexDirection, FlexWrap, FocusDrawLevel, FoldStatus, FontStyle, FontWeight, FunctionKey, GradientDirection, HeightBreakpoint, HitTestMode, HorizontalAlign, HoverEffect, IlluminatedType, ImageFit, ImageRepeat, ImageSize, ImageSpanAlignment, InteractionHand, ItemAlign, KeySource, KeyType, LineBreakStrategy, LineCapStyle, LineJoinStyle, MarqueeUpdateStrategy, ModifierKey, MouseAction, MouseButton, NestedScrollMode, ObscuredReasons, OptionWidthMode, PageFlipMode, PixelRoundCalcPolicy, PixelRoundMode, Placement, PlayMode, RelateType, RenderFit, ResponseType, ScrollSource, SharedTransitionEffectType, TextAlign, TextCase, TextContentStyle, TextDecorationStyle, TextDecorationType, TextHeightAdaptivePolicy, TextOverflow, TextSelectableMode, TitleHeight, TouchType, TransitionType, VerticalAlign, Visibility, Week, WidthBreakpoint, WordBreak, XComponentType } from "./../enums" -import { AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, ChainStyle, ContentClipMode, ContentModifier, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, GestureModifier, UIGestureEvent, HapticFeedbackMode, HoverModeAreaType, ICurve, KeyboardAvoidMode, Layoutable, LayoutPolicy, LayoutSafeAreaEdge, LayoutSafeAreaType, RectResult, TranslateOptions, ScaleOptions, RotateOptions, MenuPolicy, MenuPreviewMode, ModalTransition, NestedScrollOptions, OutlineStyle, PixelMapMock, PopupStateChangeParam, PreDragStatus, ProgressMask, RepeatMode, SafeAreaEdge, SafeAreaType, ScrollResult, ScrollSizeMode, TextContentControllerBase, SelectionOptions, ShadowStyle, ShadowType, SheetKeyboardAvoidMode, SheetMode, SheetSize, SheetType, SizeResult, SourceType, CaretOffset, TextContentControllerOptions, ThemeColorMode, TouchTestInfo, TouchTestStrategy, TransitionEdge, TransitionEffect, AsymmetricTransitionOption, AnimateParam, TransitionHierarchyStrategy, UICommonEvent, ClickEvent, TouchEvent, KeyEvent, HoverCallback, HoverEvent, MouseEvent, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback, SheetOptions, Measurable, AlignRuleOption, BackgroundBrightnessOptions, BackgroundImageOptions, BackgroundOptions, BlurOptions, ChildrenMainSize, ClickEffect, CrownEvent, DateRange, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, ModifierKeyStateGetter, Rectangle, DragInteractionOptions, DragItemInfo, DrawModifier, DropOptions, EdgeEffectOptions, ExpectedFrameRateRange, FocusMovement, ForegroundEffectOptions, GeometryTransitionOptions, InputCounterOptions, InvertOptions, ItemDragInfo, LinearGradient_common, FractionStop, LinearGradientBlurOptions, LinearGradientOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, MeasureResult, MotionBlurAnchor, MotionBlurOptions, MotionPathOptions, OverlayOffset, PixelRoundPolicy, PopupButton, PreviewConfiguration, SheetDismiss, SpringBackAction, StateStyles, CustomStyles, SystemAdaptiveOptions, ShadowOptions, TouchObject, TouchResult, BackgroundBlurStyleOptions, BlurStyleOptions, BackgroundEffectOptions, ContentCoverOptions, BindOptions, ContextMenuAnimationOptions, AnimationNumberRange, MultiShadowOptions, DragPreviewOptions, FadingEdgeOptions, ForegroundBlurStyleOptions, HistoricalPoint, LightSource, LocalizedAlignRuleOptions, MenuElement, OverlayOptions, PopupMaskType, ReuseOptions, ReuseIdCallback, sharedTransitionOptions, SheetTitleOptions, TextDecorationOptions, DividerStyle, PixelStretchEffectOptions, PointLightStyle, RadialGradientOptions, SweepGradientOptions, TipsOptions, BorderImageOption, ContextMenuOptions, BorderRadiusType, CustomPopupOptions, PopupStateChangeCallback, EventTarget, FocusAxisEvent, BaseEvent, GeometryInfo, MenuOptions, PickerDialogButtonStyle, PickerTextStyle, PopupMessageOptions, AccessibilityHoverEvent, AxisEvent, PopupOptions } from "./../common" +import { AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, ChainStyle, ContentClipMode, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, GestureModifier, UIGestureEvent, HapticFeedbackMode, HoverModeAreaType, ICurve, KeyboardAvoidMode, Layoutable, LayoutPolicy, LayoutSafeAreaEdge, LayoutSafeAreaType, RectResult, CommonConfiguration, TranslateOptions, ScaleOptions, RotateOptions, MenuPolicy, MenuPreviewMode, ModalTransition, NestedScrollOptions, OutlineStyle, PixelMapMock, PopupStateChangeParam, PreDragStatus, ProgressMask, RepeatMode, SafeAreaEdge, SafeAreaType, ScrollResult, ScrollSizeMode, TextContentControllerBase, SelectionOptions, ShadowStyle, ShadowType, SheetKeyboardAvoidMode, SheetMode, SheetSize, SheetType, SizeResult, SourceType, CaretOffset, TextContentControllerOptions, ThemeColorMode, TouchTestInfo, TouchTestStrategy, TransitionEdge, TransitionEffect, AsymmetricTransitionOption, AnimateParam, TransitionHierarchyStrategy, UICommonEvent, ClickEvent, TouchEvent, KeyEvent, HoverCallback, HoverEvent, MouseEvent, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback, SheetOptions, Measurable, AlignRuleOption, BackgroundBrightnessOptions, BackgroundImageOptions, BackgroundOptions, BlurOptions, ChildrenMainSize, ClickEffect, CrownEvent, DateRange, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, ModifierKeyStateGetter, Rectangle, DragInteractionOptions, DragItemInfo, DrawModifier, DropOptions, EdgeEffectOptions, ExpectedFrameRateRange, FocusMovement, ForegroundEffectOptions, GeometryTransitionOptions, InputCounterOptions, InvertOptions, ItemDragInfo, LinearGradient_common, FractionStop, LinearGradientBlurOptions, LinearGradientOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, MeasureResult, MotionBlurAnchor, MotionBlurOptions, MotionPathOptions, OverlayOffset, PixelRoundPolicy, PopupButton, PreviewConfiguration, SheetDismiss, SpringBackAction, StateStyles, CustomStyles, SystemAdaptiveOptions, ShadowOptions, TouchObject, TouchResult, BackgroundBlurStyleOptions, BlurStyleOptions, BackgroundEffectOptions, ContentCoverOptions, BindOptions, ContextMenuAnimationOptions, AnimationNumberRange, MultiShadowOptions, DragPreviewOptions, FadingEdgeOptions, ForegroundBlurStyleOptions, HistoricalPoint, LightSource, LocalizedAlignRuleOptions, MenuElement, OverlayOptions, PopupMaskType, ReuseOptions, ReuseIdCallback, sharedTransitionOptions, SheetTitleOptions, TextDecorationOptions, DividerStyle, PixelStretchEffectOptions, PointLightStyle, RadialGradientOptions, SweepGradientOptions, TipsOptions, BorderImageOption, ContextMenuOptions, BorderRadiusType, CustomPopupOptions, PopupStateChangeCallback, EventTarget, FocusAxisEvent, BaseEvent, GeometryInfo, MenuOptions, PickerDialogButtonStyle, PickerTextStyle, PopupMessageOptions, AccessibilityHoverEvent, AxisEvent, PopupOptions } from "./../common" import { AnimationMode, BarMode, BarPosition, LayoutStyle, TabContentTransitionProxy, TabsAnimationEvent, TabsCacheMode, TabsController, TabContentAnimatedTransition, TabsOptions, BarGridColumnOptions, ScrollableBarModeOptions } from "./../tabs" -import { ArrowPosition, AvoidanceMode, MenuAlignType, SelectOption, MenuOutlineOptions } from "./../select" +import { ArrowPosition, AvoidanceMode, MenuAlignType, MenuItemConfiguration, SelectOption, MenuOutlineOptions } from "./../select" import { AutoCapitalizationMode, KeyboardAppearance, LayoutManager, PositionWithAffinity, MenuType, StyledStringController, TextBaseController, TextRange, TextDataDetectorType, TextDeleteDirection, TextMenuItemId, TextMenuShowMode, TextMenuItem, DeleteValue, EditMenuOptions, FontSettingOptions, InsertValue, PreviewText, TextEditControllerEx, StyledStringChangedListener, StyledStringChangeValue, OnDidChangeCallback, DecorationStyleResult, TextChangeOptions, CaretStyle, EditableTextChangeValue, TextDataDetectorConfig } from "./../textCommon" import { BadgePosition, BadgeStyle, BadgeParamWithNumber, BadgeParam, BadgeParamWithString } from "./../badge" import { BarrierDirection, LocalizedBarrierDirection, BarrierStyle, LocalizedBarrierStyle, GuideLinePosition, GuideLineStyle } from "./../relativeContainer" @@ -31,7 +31,7 @@ import { BaseShape, CommonShape, PerfMonitorActionType, PerfMonitorSourceType, F import { Length, SizeOptions, Position, ResourceColor, ColorFilter, ResourceStr, VoidCallback, AccessibilityOptions, Bias, ChainWeightOptions, DirectionalEdgesT, EdgeOutlineStyles, EdgeStyles, ConstraintSizeOptions, VP, DividerStyleOptions, EdgeColors, LengthConstrain, Dimension, LocalizedBorderRadiuses, LocalizedEdgeColors, LocalizedEdges, LocalizedEdgeWidths, LocalizedPadding, LocalizedPosition, Offset, BorderRadiuses, EdgeOutlineWidths, Edges, EdgeWidths, Font, PX, LPX, MarkStyle, OutlineRadiuses, Padding, Area, BorderOptions, OutlineOptions } from "./../units" import { Resource } from "./../resource" import { BreakpointsReference, GridRowDirection, BreakPoints, GridRowColumnOption, GridRowSizeOption, GutterOption, GridRowOptions } from "./../gridRow" -import { ButtonRole, ButtonStyleMode, ButtonType, ControlSize, ButtonOptions, ButtonLabelStyle } from "./../button" +import { ButtonRole, ButtonStyleMode, ButtonType, ControlSize, ButtonConfiguration, ButtonTriggerClickCallback, ButtonOptions, ButtonLabelStyle } from "./../button" import { CalendarAlign, CalendarPickerDialog, CalendarDialogOptions, CalendarOptions } from "./../calendarPicker" import { CalendarController, CalendarSelectedDate, CalendarRequestedData, CalendarDay } from "./../calendar" import { CancelButtonStyle, SearchController, SearchType, CancelButtonSymbolOptions, SearchOptions, IconOptions, SearchButtonOptions, CancelButtonOptions } from "./../search" @@ -43,12 +43,13 @@ import { ColorContent, DynamicRangeMode, ImageContent, ImageInterpolation, Image import { ColorMetrics, CornerRadius, DrawContext, Size, LengthMetricsUnit, LengthUnit, ShapeClip, RoundRect, Circle, CommandPath, ShapeMask, Vector2, Vector3, LengthMetrics, Frame } from "./../arkui.Graphics" import { ColorMode, LayoutDirection } from "./../stateManagement" import { ComponentContent } from "./../arkui.ComponentContent" +import { ContentModifier } from "./../../handwritten" import { ContentType, EnterKeyType, InputType, SubmitEvent, TextInputController, TextInputStyle, PasswordIcon, TextInputOptions, UnderlineColor } from "./../textInput" import { Context } from "./../application.Context" import { CustomBuild } from "./../customComponent" import { CustomDialogController, CustomDialogControllerOptions } from "./../customDialogController" import { DataOperationType } from "./../lazyForEach" -import { DataPanelType, ColorStop, LinearGradient, DataPanelOptions, DataPanelShadowOptions } from "./../dataPanel" +import { DataPanelType, ColorStop, LinearGradient, DataPanelConfiguration, DataPanelOptions, DataPanelShadowOptions } from "./../dataPanel" import { DatePickerDialog, DatePickerMode, DatePickerOptions } from "./../datePicker" import { DialogAlignment, DialogButtonDirection, DismissDialogAction, AlertDialogButtonOptions } from "./../alertDialog" import { DistributionType, DisturbanceFieldShape, ParticleEmitterShape, ParticleType, ParticleUpdater, ParticlePropertyAnimation } from "./../particle" @@ -81,7 +82,7 @@ import { LinearIndicatorController, LinearIndicatorStartOptions, LinearIndicator import { ListItemGroupStyle, ListItemGroupOptions } from "./../listItemGroup" import { ListItemStyle, SwipeActionState, SwipeEdgeEffect, ListItemOptions, SwipeActionItem, SwipeActionOptions } from "./../listItem" import { Scroller, ScrollAlign, OffsetResult, OnScrollFrameBeginHandlerResult, ScrollDirection, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions } from "./../scroll" -import { LoadingProgressStyle } from "./../loadingProgress" +import { LoadingProgressConfiguration, LoadingProgressStyle } from "./../loadingProgress" import { MarqueeStartPolicy, MarqueeState, TextController, TextOptions, TextOverflowOptions, TextResponseType, TextSpanType, TextMarqueeOptions } from "./../text" import { matrix4 } from "./../ohos.matrix4" import { NavDestinationActiveReason, NavDestinationMode, NavigationSystemTransitionType, NavDestinationTransition, NavDestinationContext, NestedScrollInfo, RouteMapConfig, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../navDestination" @@ -94,8 +95,8 @@ import { OnFoldStatusChangeInfo, FolderStackOptions, HoverEventParam } from "./. import { PasteButtonOnClickResult, PasteDescription, PasteIconStyle, PasteButtonOptions } from "./../pasteButton" import { PatternLockChallengeResult, PatternLockController, CircleStyleOptions } from "./../patternLock" import { pointer } from "./../ohos.multimodalInput.pointer" -import { ProgressStatus, ProgressStyle, ProgressType, ProgressOptions, LinearStyleOptions, ScanEffectOptions, CommonProgressStyleOptions, ProgressStyleOptions, RingStyleOptions, CapsuleStyleOptions } from "./../progress" -import { RadioIndicatorType, RadioOptions, RadioStyle } from "./../radio" +import { ProgressConfiguration, ProgressStatus, ProgressStyle, ProgressType, ProgressOptions, LinearStyleOptions, ScanEffectOptions, CommonProgressStyleOptions, ProgressStyleOptions, RingStyleOptions, CapsuleStyleOptions } from "./../progress" +import { RadioIndicatorType, RadioConfiguration, RadioOptions, RadioStyle } from "./../radio" import { RefreshStatus, RefreshOptions } from "./../refresh" import { RichEditorDeleteDirection, RichEditorResponseType, RichEditorSpanType, CopyEvent, CutEvent, KeyboardOptions, PasteEvent, PreviewMenuOptions, RichEditorBaseController, RichEditorTextStyle, RichEditorBuilderSpanOptions, RichEditorParagraphResult, RichEditorSpan, RichEditorController, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorSelection, RichEditorDeleteValue, RichEditorGesture, RichEditorInsertValue, RichEditorOptions, RichEditorSpanPosition, RichEditorStyledStringController, RichEditorStyledStringOptions, RichEditorChangeValue, RichEditorSymbolSpanStyle, RichEditorSpanStyleOptions, RichEditorUrlStyle, SelectionMenuOptions, MenuOnAppearCallback, MenuCallback, LeadingMarginPlaceholder, PlaceholderStyle, RichEditorLayoutStyle, RichEditorParagraphStyle, RichEditorImageSpanStyle, RichEditorImageSpanStyleResult, RichEditorTextStyleResult, OnHoverCallback } from "./../richEditor" import { RootSceneSession } from "./../rootScene" @@ -108,19 +109,19 @@ import { ScrollBarDirection, ScrollBarOptions } from "./../scrollBar" import { SecurityComponentLayoutDirection } from "./../securityComponent" import { SelectStatus, CheckboxGroupOptions, CheckboxGroupResult } from "./../checkboxgroup" import { SideBarContainerType, SideBarPosition, ButtonIconOptions, ButtonStyle } from "./../sidebar" -import { SliderBlockType, SliderChangeMode, SliderInteraction, SliderStyle, SlideRange, SliderOptions, SliderBlockStyle } from "./../slider" +import { SliderBlockType, SliderChangeMode, SliderInteraction, SliderStyle, SlideRange, SliderConfiguration, SliderTriggerChangeCallback, SliderOptions, SliderBlockStyle } from "./../slider" import { SubMenuExpandingMode } from "./../menu" import { SwiperAnimationEvent, SwiperAnimationMode, SwiperContentTransitionProxy, SwiperContentWillScrollResult, SwiperController, SwiperDisplayMode, SwiperNestedScrollMode, AutoPlayOptions, SwiperAutoFill, SwiperContentAnimatedTransition, ArrowStyle, DotIndicator, Indicator, DigitIndicator } from "./../swiper" import { SymbolGlyphModifier } from "./../arkui.SymbolGlyphModifier" import { text } from "./../ohos.graphics.text" import { TextAreaController, TextAreaType, TextAreaOptions } from "./../textArea" -import { TextClockController, TextClockOptions } from "./../textClock" +import { TextClockConfiguration, TextClockController, TextClockOptions } from "./../textClock" import { TextModifier } from "./../arkui.TextModifier" import { TextPickerDialog, TextPickerDialogOptions, TextCascadePickerRangeContent, TextPickerRangeContent, TextPickerOptions, TextPickerResult, DividerOptions, TextPickerTextStyle } from "./../textPicker" -import { TextTimerController, TextTimerOptions } from "./../textTimer" +import { TextTimerConfiguration, TextTimerController, TextTimerOptions } from "./../textTimer" import { ThemeControl, CustomTheme, Colors } from "./../ohos.arkui.theme" import { TimePickerDialog, TimePickerFormat, TimePickerResult, TimePickerOptions } from "./../timePicker" -import { ToggleType, ToggleOptions, SwitchStyle } from "./../toggle" +import { ToggleType, ToggleConfiguration, ToggleOptions, SwitchStyle } from "./../toggle" import { common, Context_getGroupDir_Callback } from "./../ohos.app.ability.common" import { uiEffect } from "./../ohos.graphics.uiEffect" import { unifiedDataChannel } from "./../ohos.data.unifiedDataChannel" @@ -131,14 +132,14 @@ import { window } from "./../ohos.window" import { ASTCResource } from "./../mediaCachedImage" import { BorderRadiuses_graphics, RenderNode } from "./../arkui.RenderNode" import { BusinessError } from "./../ohos.base" -import { CheckboxOptions } from "./../checkbox" +import { CheckBoxConfiguration, CheckboxOptions } from "./../checkbox" import { CustomBuilder } from "./../builder" import { CircleOptions } from "./../circle" import { ColumnOptions, ColumnOptionsV2 } from "./../column" import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./../animation_extender" import { EllipseOptions } from "./../ellipse" import { FormLinkOptions } from "./../formLink" -import { GaugeOptions, GaugeShadowOptions, GaugeIndicatorOptions } from "./../gauge" +import { GaugeConfiguration, GaugeOptions, GaugeShadowOptions, GaugeIndicatorOptions } from "./../gauge" import { GridColColumnOption, GridColOptions } from "./../gridCol" import { ImageLoadResult } from "./../imageSpan" import { InteropComponent } from "./../interop" @@ -149,7 +150,7 @@ import { PathOptions } from "./../path" import { PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../pluginComponent" import { PolygonOptions } from "./../polygon" import { PolylineOptions } from "./../polyline" -import { RatingOptions, StarStyleOptions } from "./../rating" +import { RatingConfiguration, RatingOptions, StarStyleOptions } from "./../rating" import { RoundedRectOptions, RadiusItem, RectOptions } from "./../rect" import { StackOptions } from "./../stack" import { StepperOptionalIndex } from "./../stepper" @@ -373,6 +374,9 @@ export class TypeChecker { static isBusinessError(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof BusinessError } + static isButtonConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ButtonConfiguration + } static isButtonIconOptions(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean): boolean { return value instanceof ButtonIconOptions } @@ -460,6 +464,9 @@ export class TypeChecker { static isChainWeightOptions(value: Object | string | number | undefined, arg0: boolean, arg1: boolean): boolean { return value instanceof ChainWeightOptions } + static isCheckBoxConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof CheckBoxConfiguration + } static isCheckboxGroupOptions(value: Object | string | number | undefined, arg0: boolean): boolean { return value instanceof CheckboxGroupOptions } @@ -643,6 +650,9 @@ export class TypeChecker { static isDataOperationType(value: Object | string | number | undefined): boolean { return value instanceof DataOperationType } + static isDataPanelConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean): boolean { + return value instanceof DataPanelConfiguration + } static isDataPanelOptions(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean): boolean { return value instanceof DataPanelOptions } @@ -1102,6 +1112,9 @@ export class TypeChecker { static isFunctionKey(value: Object | string | number | undefined): boolean { return value instanceof FunctionKey } + static isGaugeConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof GaugeConfiguration + } static isGaugeIndicatorOptions(value: Object | string | number | undefined, arg0: boolean, arg1: boolean): boolean { return value instanceof GaugeIndicatorOptions } @@ -1501,6 +1514,9 @@ export class TypeChecker { static isListScroller(value: Object | string | number | undefined): boolean { return value instanceof ListScroller } + static isLoadingProgressConfiguration(value: Object | string | number | undefined, arg0: boolean): boolean { + return value instanceof LoadingProgressConfiguration + } static isLoadingProgressStyle(value: Object | string | number | undefined): boolean { return value instanceof LoadingProgressStyle } @@ -1591,6 +1607,9 @@ export class TypeChecker { static isMenuElement(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { return value instanceof MenuElement } + static isMenuItemConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof MenuItemConfiguration + } static isMenuItemGroupOptions(value: Object | string | number | undefined, arg0: boolean, arg1: boolean): boolean { return value instanceof MenuItemGroupOptions } @@ -1984,6 +2003,9 @@ export class TypeChecker { static isPreviewText(value: Object | string | number | undefined, arg0: boolean, arg1: boolean): boolean { return value instanceof PreviewText } + static isProgressConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean): boolean { + return value instanceof ProgressConfiguration + } static isProgressMask(value: Object | string | number | undefined): boolean { return value instanceof ProgressMask } @@ -2008,6 +2030,9 @@ export class TypeChecker { static isRadialGradientOptions(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof RadialGradientOptions } + static isRadioConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof RadioConfiguration + } static isRadioIndicatorType(value: Object | string | number | undefined): boolean { return value instanceof RadioIndicatorType } @@ -2017,6 +2042,9 @@ export class TypeChecker { static isRadioStyle(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean): boolean { return value instanceof RadioStyle } + static isRatingConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof RatingConfiguration + } static isRatingOptions(value: Object | string | number | undefined, arg0: boolean, arg1: boolean): boolean { return value instanceof RatingOptions } @@ -2425,6 +2453,9 @@ export class TypeChecker { static isSliderChangeMode(value: Object | string | number | undefined): boolean { return value instanceof SliderChangeMode } + static isSliderConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { + return value instanceof SliderConfiguration + } static isSliderInteraction(value: Object | string | number | undefined): boolean { return value instanceof SliderInteraction } @@ -2773,6 +2804,9 @@ export class TypeChecker { static isTextChangeOptions(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { return value instanceof TextChangeOptions } + static isTextClockConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof TextClockConfiguration + } static isTextClockController(value: Object | string | number | undefined): boolean { return value instanceof TextClockController } @@ -2890,6 +2924,9 @@ export class TypeChecker { static isTextStyleInterface(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean, arg4: boolean): boolean { return value instanceof TextStyleInterface } + static isTextTimerConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean, arg3: boolean): boolean { + return value instanceof TextTimerConfiguration + } static isTextTimerController(value: Object | string | number | undefined): boolean { return value instanceof TextTimerController } @@ -2920,6 +2957,9 @@ export class TypeChecker { static isTitleHeight(value: Object | string | number | undefined): boolean { return value instanceof TitleHeight } + static isToggleConfiguration(value: Object | string | number | undefined, arg0: boolean, arg1: boolean, arg2: boolean): boolean { + return value instanceof ToggleConfiguration + } static isToggleOptions(value: Object | string | number | undefined, arg0: boolean, arg1: boolean): boolean { return value instanceof ToggleOptions } diff --git a/arkoala-arkts/arkui/src/ets/generated/arkui-contentmodifier.ets b/arkoala-arkts/arkui/src/ets/generated/arkui-contentmodifier.ets new file mode 100644 index 0000000000..60ffdf41e3 --- /dev/null +++ b/arkoala-arkts/arkui/src/ets/generated/arkui-contentmodifier.ets @@ -0,0 +1,225 @@ +/* + * 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 { ContentModifier } from "./../handwritten" +import { ButtonConfiguration } from "./button" +import { CheckBoxConfiguration } from "./checkbox" +import { DataPanelConfiguration } from "./dataPanel" +import { GaugeConfiguration } from "./gauge" +import { LoadingProgressConfiguration } from "./loadingProgress" +import { ProgressConfiguration } from "./progress" +import { RadioConfiguration } from "./radio" +import { RatingConfiguration } from "./rating" +import { MenuItemConfiguration } from "./select" +import { SliderConfiguration } from "./slider" +import { TextClockConfiguration } from "./textClock" +import { TextTimerConfiguration } from "./textTimer" +import { ToggleConfiguration } from "./toggle" +import { TypeChecker, ArkUIGeneratedNativeModule } from "#components" +import { Finalizable, runtimeType, RuntimeType, SerializerBase, registerCallback, wrapCallback, toPeerPtr, KPointer, MaterializedBase, NativeBuffer, KInt, KBoolean, KStringPtr } from "@koalaui/interop" +import { unsafeCast, int32, int64, float32 } from "@koalaui/common" +import { Serializer } from "./peers/Serializer" +import { CallbackKind } from "./peers/CallbackKind" +import { Deserializer } from "./peers/Deserializer" +import { CallbackTransformer } from "./../CallbackTransformer" +import { memo, memo_stable } from "@koalaui/runtime/annotations" +import { BuilderLambda } from "@koalaui/builderLambda" +export class ContentModifierHelper { + public static contentModifierButton(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: ButtonConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: ButtonConfiguration) => KPointer)) + ContentModifierHelper.contentModifierButton_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierCheckBox(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: CheckBoxConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: CheckBoxConfiguration) => KPointer)) + ContentModifierHelper.contentModifierCheckBox_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierDataPanel(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: DataPanelConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: DataPanelConfiguration) => KPointer)) + ContentModifierHelper.contentModifierDataPanel_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierGauge(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: GaugeConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: GaugeConfiguration) => KPointer)) + ContentModifierHelper.contentModifierGauge_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierLoadingProgress(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: LoadingProgressConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: LoadingProgressConfiguration) => KPointer)) + ContentModifierHelper.contentModifierLoadingProgress_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierProgress(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: ProgressConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: ProgressConfiguration) => KPointer)) + ContentModifierHelper.contentModifierProgress_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierRadio(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: RadioConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: RadioConfiguration) => KPointer)) + ContentModifierHelper.contentModifierRadio_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierRating(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: RatingConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: RatingConfiguration) => KPointer)) + ContentModifierHelper.contentModifierRating_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierMenuItem(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: MenuItemConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: MenuItemConfiguration) => KPointer)) + ContentModifierHelper.contentModifierMenuItem_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierSlider(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: SliderConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: SliderConfiguration) => KPointer)) + ContentModifierHelper.contentModifierSlider_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierTextClock(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: TextClockConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: TextClockConfiguration) => KPointer)) + ContentModifierHelper.contentModifierTextClock_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierTextTimer(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: TextTimerConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: TextTimerConfiguration) => KPointer)) + ContentModifierHelper.contentModifierTextTimer_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + public static contentModifierToggle(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: ToggleConfiguration) => KPointer)): void { + const node_casted = node as (KPointer) + const contentModifier_casted = contentModifier as (ContentModifier) + const builder_casted = builder as (((parentNode: KPointer,config: ToggleConfiguration) => KPointer)) + ContentModifierHelper.contentModifierToggle_serialize(node_casted, contentModifier_casted, builder_casted) + return + } + private static contentModifierButton_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: ButtonConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierButton(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierCheckBox_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: CheckBoxConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierCheckBox(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierDataPanel_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: DataPanelConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierDataPanel(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierGauge_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: GaugeConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierGauge(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierLoadingProgress_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: LoadingProgressConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierLoadingProgress(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierProgress_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: ProgressConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierProgress(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierRadio_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: RadioConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierRadio(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierRating_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: RatingConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierRating(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierMenuItem_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: MenuItemConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierMenuItem(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierSlider_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: SliderConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierSlider(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierTextClock_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: TextClockConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierTextClock(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierTextTimer_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: TextTimerConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierTextTimer(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } + private static contentModifierToggle_serialize(node: KPointer, contentModifier: ContentModifier, builder: ((parentNode: KPointer,config: ToggleConfiguration) => KPointer)): void { + const thisSerializer : Serializer = Serializer.hold() + thisSerializer.holdAndWriteObject(contentModifier) + thisSerializer.holdAndWriteCallback(builder) + ArkUIGeneratedNativeModule._ContentModifierHelper_contentModifierToggle(node, thisSerializer.asBuffer(), thisSerializer.length()) + thisSerializer.release() + } +} diff --git a/arkoala-arkts/arkui/src/ets/generated/button.ets b/arkoala-arkts/arkui/src/ets/generated/button.ets index 1743c2fb00..e16ab763e8 100644 --- a/arkoala-arkts/arkui/src/ets/generated/button.ets +++ b/arkoala-arkts/arkui/src/ets/generated/button.ets @@ -22,11 +22,11 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, Length, ResourceStr, Font } from "./units" import { FontWeight, FontStyle, Color, TextOverflow, TextHeightAdaptivePolicy } from "./enums" import { Resource } from "./resource" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, hookButtonContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" @@ -640,9 +640,7 @@ export class ArkButtonComponent extends ArkCommonMethodComponent implements UIBu @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookButtonContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/checkbox.ets b/arkoala-arkts/arkui/src/ets/generated/checkbox.ets index 8ea843fb43..42720a0c5f 100644 --- a/arkoala-arkts/arkui/src/ets/generated/checkbox.ets +++ b/arkoala-arkts/arkui/src/ets/generated/checkbox.ets @@ -22,10 +22,10 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, MarkStyle } from "./units" import { CheckBoxShape, Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, hookCheckBoxContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Resource } from "./resource" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" @@ -346,9 +346,7 @@ export class ArkCheckboxComponent extends ArkCommonMethodComponent implements UI @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookCheckBoxContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/common.ets b/arkoala-arkts/arkui/src/ets/generated/common.ets index 2efa9d7c5b..358f11be32 100644 --- a/arkoala-arkts/arkui/src/ets/generated/common.ets +++ b/arkoala-arkts/arkui/src/ets/generated/common.ets @@ -48,11 +48,11 @@ import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" import { pointer } from "./ohos.multimodalInput.pointer" import { ButtonType, ButtonStyleMode, ButtonRole } from "./button" +import { ContentModifier, UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" import { observer } from "./ohos.arkui.observer" import { promptAction } from "./ohos.promptAction" import { ScrollState } from "./list" import { intl } from "./ohos.intl" -import { UICommonBase, AttributeModifier, AttributeUpdater } from "./../handwritten" import { NodeAttach, remember } from "@koalaui/runtime" import { GlobalScope } from "./GlobalScope" export interface BaseEvent { @@ -7246,8 +7246,6 @@ export interface MenuElement { enabled?: boolean; action: (() => void); } -export interface ContentModifier { -} export interface CommonConfiguration { enabled: boolean; contentModifier: ContentModifier; diff --git a/arkoala-arkts/arkui/src/ets/generated/dataPanel.ets b/arkoala-arkts/arkui/src/ets/generated/dataPanel.ets index ed41886d45..3b75ff546b 100644 --- a/arkoala-arkts/arkui/src/ets/generated/dataPanel.ets +++ b/arkoala-arkts/arkui/src/ets/generated/dataPanel.ets @@ -25,9 +25,9 @@ import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./../CallbackTransformer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, MultiShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, MultiShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, Length } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, hookDataPanelContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Color } from "./enums" import { Resource } from "./resource" import { memo, memo_stable } from "@koalaui/runtime/annotations" @@ -386,9 +386,7 @@ export class ArkDataPanelComponent extends ArkCommonMethodComponent implements U @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookDataPanelContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/gauge.ets b/arkoala-arkts/arkui/src/ets/generated/gauge.ets index 3f10898f2b..4bf75b5b3f 100644 --- a/arkoala-arkts/arkui/src/ets/generated/gauge.ets +++ b/arkoala-arkts/arkui/src/ets/generated/gauge.ets @@ -22,11 +22,11 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, MultiShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, MultiShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, Length, ResourceStr, Dimension } from "./units" import { LinearGradient } from "./dataPanel" import { CustomBuilder } from "./builder" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, hookGaugeContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Color } from "./enums" import { Resource } from "./resource" import { CallbackKind } from "./peers/CallbackKind" @@ -486,9 +486,7 @@ export class ArkGaugeComponent extends ArkCommonMethodComponent implements UIGau @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookGaugeContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/index.ets b/arkoala-arkts/arkui/src/ets/generated/index.ets index c358b1d424..ea5cc3a439 100644 --- a/arkoala-arkts/arkui/src/ets/generated/index.ets +++ b/arkoala-arkts/arkui/src/ets/generated/index.ets @@ -22,6 +22,7 @@ export * from "./alphabetIndexer" export * from "./animation_extender" export * from "./animator" export * from "./arkui-componentutils" +export * from "./arkui-contentmodifier" export * from "./arkui-custom" export * from "./arkui-custom-dialog" export * from "./arkui-drawing" diff --git a/arkoala-arkts/arkui/src/ets/generated/loadingProgress.ets b/arkoala-arkts/arkui/src/ets/generated/loadingProgress.ets index 0800917862..53f3554ba4 100644 --- a/arkoala-arkts/arkui/src/ets/generated/loadingProgress.ets +++ b/arkoala-arkts/arkui/src/ets/generated/loadingProgress.ets @@ -22,9 +22,9 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, hookLoadingProgressContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Color } from "./enums" import { Resource } from "./resource" import { CallbackKind } from "./peers/CallbackKind" @@ -194,9 +194,7 @@ export class ArkLoadingProgressComponent extends ArkCommonMethodComponent implem @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookLoadingProgressContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/peers/CallbackDeserializeCall.ets b/arkoala-arkts/arkui/src/ets/generated/peers/CallbackDeserializeCall.ets index f635447ece..327ee9edc2 100644 --- a/arkoala-arkts/arkui/src/ets/generated/peers/CallbackDeserializeCall.ets +++ b/arkoala-arkts/arkui/src/ets/generated/peers/CallbackDeserializeCall.ets @@ -23,7 +23,7 @@ import { ResourceHolder, KInt, KStringPtr, wrapSystemCallback, KPointer, Runtime import { CallbackTransformer } from "./../../CallbackTransformer" import { AccessibilityCallback, AccessibilityHoverEvent, AccessibilityFocusCallback, TouchTestInfo, TouchResult, AxisEvent, HoverEvent, ClickEvent, CrownEvent, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, FocusAxisEvent, ItemDragInfo, KeyEvent, MouseEvent, GeometryInfo, Measurable, SizeResult, Layoutable, ScrollResult, PreDragStatus, SheetDismiss, SheetType, SpringBackAction, TouchEvent, DragItemInfo, CustomStyles, GestureRecognizerJudgeBeginCallback, HoverCallback, ModifierKeyStateGetter, OnDragEventCallback, OnItemDragStartCallback, OnMoveHandler, OnScrollCallback, OnWillScrollCallback, PopupStateChangeCallback, PopupStateChangeParam, ReuseIdCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback } from "./../common" import { image } from "./../ohos.multimedia.image" -import { ButtonTriggerClickCallback } from "./../button" +import { ButtonConfiguration, ButtonTriggerClickCallback } from "./../button" import { Area, ConstraintSizeOptions, SizeOptions, VoidCallback } from "./../units" import { TextMenuItem, DeleteValue, EditableTextChangeValue, InsertValue, PreviewText, StyledStringChangeValue, TextRange, EditableTextOnChangeCallback, TextChangeOptions, OnDidChangeCallback } from "./../textCommon" import { CalendarRequestedData, CalendarSelectedDate } from "./../calendar" @@ -42,7 +42,7 @@ import { InteropComponent } from "./../interop" import { MarqueeState } from "./../text" import { NavDestinationActiveReason, NavDestinationContext, NavDestinationTransition, NavDestinationTransitionDelegate } from "./../navDestination" import { NavigationMode, NavigationTitleMode, NavigationTransitionProxy, NavigationAnimatedTransition, PopInfo, InterceptionModeCallback, InterceptionShowCallback, NavBar, NavigationOperation, NavContentInfo, UpdateTransitionCallback } from "./../navigation" -import { SliderChangeMode, SliderTriggerChangeCallback } from "./../slider" +import { SliderChangeMode, SliderConfiguration, SliderTriggerChangeCallback } from "./../slider" import { Callback_onMeasureSize_SizeResult, Callback_onPlaceChildren_Void } from "./../static_components" import { OnScrollFrameBeginHandlerResult, OffsetResult, OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback } from "./../scroll" import { CustomBuilder, PageMapBuilder } from "./../builder" @@ -56,28 +56,35 @@ import { TerminationInfo } from "./../embeddedComponent" import { TextPickerResult, OnTextPickerChangeCallback, TextPickerEnterSelectedAreaCallback, TextPickerScrollStopCallback } from "./../textPicker" import { TimePickerResult, OnTimePickerChangeCallback } from "./../timePicker" import { UIExtensionProxy } from "./../uiExtensionComponent" +import { CheckBoxConfiguration, OnCheckboxChangeCallback } from "./../checkbox" import { Context_getGroupDir_Callback } from "./../ohos.app.ability.common" import { CustomNodeBuilder } from "./../custom_builder" +import { DataPanelConfiguration } from "./../dataPanel" import { ErrorCallback, BusinessError } from "./../ohos.base" +import { GaugeConfiguration } from "./../gauge" import { GetItemMainSizeByIndex } from "./../waterFlow" import { ImageCompleteCallback, ImageLoadResult } from "./../imageSpan" import { ImageErrorCallback, ImageError, ImageOnCompleteCallback, ImageCompleteEvent } from "./../image" +import { LoadingProgressConfiguration } from "./../loadingProgress" +import { MenuItemConfiguration, OnSelectCallback } from "./../select" import { NavExtender_OnUpdateStack } from "./../navigation_extender" import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback } from "./../alphabetIndexer" -import { OnCheckboxChangeCallback } from "./../checkbox" import { OnCheckboxGroupChangeCallback, CheckboxGroupResult } from "./../checkboxgroup" import { OnFoldStatusChangeCallback, OnFoldStatusChangeInfo, OnHoverStatusChangeCallback, HoverEventParam } from "./../folderStack" import { OnLinearIndicatorChangeCallback } from "./../linearindicator" -import { OnRadioChangeCallback } from "./../radio" -import { OnRatingChangeCallback } from "./../rating" +import { OnRadioChangeCallback, RadioConfiguration } from "./../radio" +import { OnRatingChangeCallback, RatingConfiguration } from "./../rating" import { ScrollState, OnScrollVisibleContentChangeCallback, VisibleListContentInfo } from "./../list" -import { OnSelectCallback } from "./../select" import { PageTransitionCallback, RouteType } from "./../pageTransition" import { PasteButtonCallback, PasteButtonOnClickResult } from "./../pasteButton" import { PluginErrorCallback, PluginErrorData } from "./../pluginComponent" +import { ProgressConfiguration } from "./../progress" import { SaveButtonCallback, SaveButtonOnClickResult } from "./../saveButton" import { SearchSubmitCallback } from "./../search" import { TextAreaSubmitCallback } from "./../textArea" +import { TextClockConfiguration } from "./../textClock" +import { TextTimerConfiguration } from "./../textTimer" +import { ToggleConfiguration } from "./../toggle" import { TypeChecker } from "#components" export function deserializeAndCallAccessibilityCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() @@ -98,6 +105,15 @@ export function deserializeAndCallAsyncCallback_image_PixelMap_Void(thisDeserial let result : image.PixelMap = (thisDeserializer.readimage_PixelMap() as image.PixelMap) _call(result) } +export function deserializeAndCallButtonModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: ButtonConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : ButtonConfiguration = thisDeserializer.readButtonConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallButtonTriggerClickCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ButtonTriggerClickCallback) @@ -1216,6 +1232,15 @@ export function deserializeAndCallCallback_Void(thisDeserializer: Deserializer): const _call = (ResourceHolder.instance().get(_resourceId) as (() => void)) _call() } +export function deserializeAndCallCheckBoxModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: CheckBoxConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : CheckBoxConfiguration = thisDeserializer.readCheckBoxConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallContentDidScrollCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as ContentDidScrollCallback) @@ -1253,6 +1278,15 @@ export function deserializeAndCallCustomStyles(thisDeserializer: Deserializer): let instance : string = (thisDeserializer.readString() as string) _call(instance) } +export function deserializeAndCallDataPanelModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: DataPanelConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : DataPanelConfiguration = thisDeserializer.readDataPanelConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallEditableTextOnChangeCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as EditableTextOnChangeCallback) @@ -1279,6 +1313,15 @@ export function deserializeAndCallErrorCallback(thisDeserializer: Deserializer): let error : BusinessError = thisDeserializer.readBusinessError() _call(error) } +export function deserializeAndCallGaugeModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: GaugeConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : GaugeConfiguration = thisDeserializer.readGaugeConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallGestureRecognizerJudgeBeginCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as GestureRecognizerJudgeBeginCallback) @@ -1370,6 +1413,15 @@ export function deserializeAndCallInterceptionShowCallback(thisDeserializer: Des let isAnimated : boolean = thisDeserializer.readBoolean() _call(from, to, operation, isAnimated) } +export function deserializeAndCallLoadingProgressModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: LoadingProgressConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : LoadingProgressConfiguration = thisDeserializer.readLoadingProgressConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallMenuCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as MenuCallback) @@ -1377,6 +1429,15 @@ export function deserializeAndCallMenuCallback(thisDeserializer: Deserializer): let end : number = (thisDeserializer.readNumber() as number) _call(start, end) } +export function deserializeAndCallMenuItemModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: MenuItemConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : MenuItemConfiguration = thisDeserializer.readMenuItemConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallMenuOnAppearCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as MenuOnAppearCallback) @@ -1759,6 +1820,33 @@ export function deserializeAndCallPopupStateChangeCallback(thisDeserializer: Des let event : PopupStateChangeParam = thisDeserializer.readPopupStateChangeParam() _call(event) } +export function deserializeAndCallProgressModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: ProgressConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : ProgressConfiguration = thisDeserializer.readProgressConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} +export function deserializeAndCallRadioModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: RadioConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : RadioConfiguration = thisDeserializer.readRadioConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} +export function deserializeAndCallRatingModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: RatingConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : RatingConfiguration = thisDeserializer.readRatingConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallRestrictedWorker_onerror_Callback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as RestrictedWorker_onerror_Callback) @@ -1851,6 +1939,15 @@ export function deserializeAndCallSizeChangeCallback(thisDeserializer: Deseriali let newValue : SizeOptions = thisDeserializer.readSizeOptions() _call(oldValue, newValue) } +export function deserializeAndCallSliderModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: SliderConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : SliderConfiguration = thisDeserializer.readSliderConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallSliderTriggerChangeCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as SliderTriggerChangeCallback) @@ -1903,6 +2000,15 @@ export function deserializeAndCallTextAreaSubmitCallback(thisDeserializer: Deser let event : SubmitEvent | undefined = event_buf _call(enterKeyType, event) } +export function deserializeAndCallTextClockModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: TextClockConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : TextClockConfiguration = thisDeserializer.readTextClockConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallTextPickerEnterSelectedAreaCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as TextPickerEnterSelectedAreaCallback) @@ -1981,6 +2087,24 @@ export function deserializeAndCallTextPickerScrollStopCallback(thisDeserializer: let index : number | Array = (index_buf as number | Array) _call(value, index) } +export function deserializeAndCallTextTimerModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: TextTimerConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : TextTimerConfiguration = thisDeserializer.readTextTimerConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} +export function deserializeAndCallToggleModifierBuilder(thisDeserializer: Deserializer): void { + const _resourceId : int32 = thisDeserializer.readInt32() + const _call = (ResourceHolder.instance().get(_resourceId) as ((parentNode: KPointer,config: ToggleConfiguration) => KPointer)) + let parentNode : KPointer = thisDeserializer.readPointer() + let config : ToggleConfiguration = thisDeserializer.readToggleConfiguration() + let _continuation : ((value: KPointer) => void) = thisDeserializer.readCallback_Pointer_Void(true) + const _callResult = _call(parentNode, config) + _continuation(_callResult) +} export function deserializeAndCallTransitionFinishCallback(thisDeserializer: Deserializer): void { const _resourceId : int32 = thisDeserializer.readInt32() const _call = (ResourceHolder.instance().get(_resourceId) as TransitionFinishCallback) @@ -2036,6 +2160,7 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer): void case 589030517/*CallbackKind.Kind_AccessibilityCallback*/: return deserializeAndCallAccessibilityCallback(thisDeserializer); case 1715445305/*CallbackKind.Kind_AccessibilityFocusCallback*/: return deserializeAndCallAccessibilityFocusCallback(thisDeserializer); case 1289587365/*CallbackKind.Kind_AsyncCallback_image_PixelMap_Void*/: return deserializeAndCallAsyncCallback_image_PixelMap_Void(thisDeserializer); + case -2004118094/*CallbackKind.Kind_ButtonModifierBuilder*/: return deserializeAndCallButtonModifierBuilder(thisDeserializer); case -1964292933/*CallbackKind.Kind_ButtonTriggerClickCallback*/: return deserializeAndCallButtonTriggerClickCallback(thisDeserializer); case -2024393616/*CallbackKind.Kind_Callback_Area_Area_Void*/: return deserializeAndCallCallback_Area_Area_Void(thisDeserializer); case 582384234/*CallbackKind.Kind_Callback_Array_Number_Void*/: return deserializeAndCallCallback_Array_Number_Void(thisDeserializer); @@ -2174,13 +2299,16 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer): void case -620935067/*CallbackKind.Kind_Callback_Union_CustomBuilder_DragItemInfo_Void*/: return deserializeAndCallCallback_Union_CustomBuilder_DragItemInfo_Void(thisDeserializer); case 411311059/*CallbackKind.Kind_Callback_Union_Object_Undefined_Void*/: return deserializeAndCallCallback_Union_Object_Undefined_Void(thisDeserializer); case -1867723152/*CallbackKind.Kind_Callback_Void*/: return deserializeAndCallCallback_Void(thisDeserializer); + case 1317697111/*CallbackKind.Kind_CheckBoxModifierBuilder*/: return deserializeAndCallCheckBoxModifierBuilder(thisDeserializer); case 1532328438/*CallbackKind.Kind_ContentDidScrollCallback*/: return deserializeAndCallContentDidScrollCallback(thisDeserializer); case -2146044511/*CallbackKind.Kind_ContentWillScrollCallback*/: return deserializeAndCallContentWillScrollCallback(thisDeserializer); case 260483890/*CallbackKind.Kind_Context_getGroupDir_Callback*/: return deserializeAndCallContext_getGroupDir_Callback(thisDeserializer); case 1766817632/*CallbackKind.Kind_CustomNodeBuilder*/: return deserializeAndCallCustomNodeBuilder(thisDeserializer); case -1565709723/*CallbackKind.Kind_CustomStyles*/: return deserializeAndCallCustomStyles(thisDeserializer); + case -238036926/*CallbackKind.Kind_DataPanelModifierBuilder*/: return deserializeAndCallDataPanelModifierBuilder(thisDeserializer); case -1729563209/*CallbackKind.Kind_EditableTextOnChangeCallback*/: return deserializeAndCallEditableTextOnChangeCallback(thisDeserializer); case -1936519453/*CallbackKind.Kind_ErrorCallback*/: return deserializeAndCallErrorCallback(thisDeserializer); + case 255469205/*CallbackKind.Kind_GaugeModifierBuilder*/: return deserializeAndCallGaugeModifierBuilder(thisDeserializer); case -2119548940/*CallbackKind.Kind_GestureRecognizerJudgeBeginCallback*/: return deserializeAndCallGestureRecognizerJudgeBeginCallback(thisDeserializer); case -2076995110/*CallbackKind.Kind_GetItemMainSizeByIndex*/: return deserializeAndCallGetItemMainSizeByIndex(thisDeserializer); case 68560477/*CallbackKind.Kind_HoverCallback*/: return deserializeAndCallHoverCallback(thisDeserializer); @@ -2189,7 +2317,9 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer): void case 541056756/*CallbackKind.Kind_ImageOnCompleteCallback*/: return deserializeAndCallImageOnCompleteCallback(thisDeserializer); case 1502213270/*CallbackKind.Kind_InterceptionModeCallback*/: return deserializeAndCallInterceptionModeCallback(thisDeserializer); case 1852781814/*CallbackKind.Kind_InterceptionShowCallback*/: return deserializeAndCallInterceptionShowCallback(thisDeserializer); + case 56854815/*CallbackKind.Kind_LoadingProgressModifierBuilder*/: return deserializeAndCallLoadingProgressModifierBuilder(thisDeserializer); case 810927048/*CallbackKind.Kind_MenuCallback*/: return deserializeAndCallMenuCallback(thisDeserializer); + case -1928323454/*CallbackKind.Kind_MenuItemModifierBuilder*/: return deserializeAndCallMenuItemModifierBuilder(thisDeserializer); case -614475458/*CallbackKind.Kind_MenuOnAppearCallback*/: return deserializeAndCallMenuOnAppearCallback(thisDeserializer); case -1026503952/*CallbackKind.Kind_ModifierKeyStateGetter*/: return deserializeAndCallModifierKeyStateGetter(thisDeserializer); case -1066063065/*CallbackKind.Kind_NavDestinationTransitionDelegate*/: return deserializeAndCallNavDestinationTransitionDelegate(thisDeserializer); @@ -2235,6 +2365,9 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer): void case 919057028/*CallbackKind.Kind_PasteEventCallback*/: return deserializeAndCallPasteEventCallback(thisDeserializer); case -1992671958/*CallbackKind.Kind_PluginErrorCallback*/: return deserializeAndCallPluginErrorCallback(thisDeserializer); case -1444325632/*CallbackKind.Kind_PopupStateChangeCallback*/: return deserializeAndCallPopupStateChangeCallback(thisDeserializer); + case -2049749383/*CallbackKind.Kind_ProgressModifierBuilder*/: return deserializeAndCallProgressModifierBuilder(thisDeserializer); + case -327322091/*CallbackKind.Kind_RadioModifierBuilder*/: return deserializeAndCallRadioModifierBuilder(thisDeserializer); + case 1013330403/*CallbackKind.Kind_RatingModifierBuilder*/: return deserializeAndCallRatingModifierBuilder(thisDeserializer); case -1213708823/*CallbackKind.Kind_RestrictedWorker_onerror_Callback*/: return deserializeAndCallRestrictedWorker_onerror_Callback(thisDeserializer); case -2095497263/*CallbackKind.Kind_RestrictedWorker_onexit_Callback*/: return deserializeAndCallRestrictedWorker_onexit_Callback(thisDeserializer); case 1614214490/*CallbackKind.Kind_RestrictedWorker_onmessage_Callback*/: return deserializeAndCallRestrictedWorker_onmessage_Callback(thisDeserializer); @@ -2245,14 +2378,18 @@ export function deserializeAndCallCallback(thisDeserializer: Deserializer): void case 1717691617/*CallbackKind.Kind_SearchSubmitCallback*/: return deserializeAndCallSearchSubmitCallback(thisDeserializer); case -250780276/*CallbackKind.Kind_ShouldBuiltInRecognizerParallelWithCallback*/: return deserializeAndCallShouldBuiltInRecognizerParallelWithCallback(thisDeserializer); case -1716637992/*CallbackKind.Kind_SizeChangeCallback*/: return deserializeAndCallSizeChangeCallback(thisDeserializer); + case 553138561/*CallbackKind.Kind_SliderModifierBuilder*/: return deserializeAndCallSliderModifierBuilder(thisDeserializer); case 711649376/*CallbackKind.Kind_SliderTriggerChangeCallback*/: return deserializeAndCallSliderTriggerChangeCallback(thisDeserializer); case 1095217433/*CallbackKind.Kind_StyledStringMarshallCallback*/: return deserializeAndCallStyledStringMarshallCallback(thisDeserializer); case 1359717794/*CallbackKind.Kind_StyledStringUnmarshallCallback*/: return deserializeAndCallStyledStringUnmarshallCallback(thisDeserializer); case -712186065/*CallbackKind.Kind_SubmitCallback*/: return deserializeAndCallSubmitCallback(thisDeserializer); case 221706282/*CallbackKind.Kind_TabsCustomContentTransitionCallback*/: return deserializeAndCallTabsCustomContentTransitionCallback(thisDeserializer); case -401980571/*CallbackKind.Kind_TextAreaSubmitCallback*/: return deserializeAndCallTextAreaSubmitCallback(thisDeserializer); + case -987272911/*CallbackKind.Kind_TextClockModifierBuilder*/: return deserializeAndCallTextClockModifierBuilder(thisDeserializer); case -202014218/*CallbackKind.Kind_TextPickerEnterSelectedAreaCallback*/: return deserializeAndCallTextPickerEnterSelectedAreaCallback(thisDeserializer); case -1928298699/*CallbackKind.Kind_TextPickerScrollStopCallback*/: return deserializeAndCallTextPickerScrollStopCallback(thisDeserializer); + case 505330174/*CallbackKind.Kind_TextTimerModifierBuilder*/: return deserializeAndCallTextTimerModifierBuilder(thisDeserializer); + case -879751946/*CallbackKind.Kind_ToggleModifierBuilder*/: return deserializeAndCallToggleModifierBuilder(thisDeserializer); case -1878458553/*CallbackKind.Kind_TransitionFinishCallback*/: return deserializeAndCallTransitionFinishCallback(thisDeserializer); case -201932855/*CallbackKind.Kind_Type_CommonMethod_onDragStart*/: return deserializeAndCallType_CommonMethod_onDragStart(thisDeserializer); case -1209910992/*CallbackKind.Kind_Type_NavigationAttribute_customNavContentTransition*/: return deserializeAndCallType_NavigationAttribute_customNavContentTransition(thisDeserializer); diff --git a/arkoala-arkts/arkui/src/ets/generated/peers/CallbackKind.ets b/arkoala-arkts/arkui/src/ets/generated/peers/CallbackKind.ets index 7952303896..8c330982cf 100644 --- a/arkoala-arkts/arkui/src/ets/generated/peers/CallbackKind.ets +++ b/arkoala-arkts/arkui/src/ets/generated/peers/CallbackKind.ets @@ -3,6 +3,7 @@ export enum CallbackKind { Kind_AccessibilityCallback = 589030517, Kind_AccessibilityFocusCallback = 1715445305, Kind_AsyncCallback_image_PixelMap_Void = 1289587365, + Kind_ButtonModifierBuilder = -2004118094, Kind_ButtonTriggerClickCallback = -1964292933, Kind_Callback_Area_Area_Void = -2024393616, Kind_Callback_Array_Number_Void = 582384234, @@ -146,13 +147,16 @@ export enum CallbackKind { Kind_Callback_Union_CustomBuilder_DragItemInfo_Void = -620935067, Kind_Callback_Union_Object_Undefined_Void = 411311059, Kind_Callback_Void = -1867723152, + Kind_CheckBoxModifierBuilder = 1317697111, Kind_ContentDidScrollCallback = 1532328438, Kind_ContentWillScrollCallback = -2146044511, Kind_Context_getGroupDir_Callback = 260483890, Kind_CustomNodeBuilder = 1766817632, Kind_CustomStyles = -1565709723, + Kind_DataPanelModifierBuilder = -238036926, Kind_EditableTextOnChangeCallback = -1729563209, Kind_ErrorCallback = -1936519453, + Kind_GaugeModifierBuilder = 255469205, Kind_GestureRecognizerJudgeBeginCallback = -2119548940, Kind_GetItemMainSizeByIndex = -2076995110, Kind_HoverCallback = 68560477, @@ -161,7 +165,9 @@ export enum CallbackKind { Kind_ImageOnCompleteCallback = 541056756, Kind_InterceptionModeCallback = 1502213270, Kind_InterceptionShowCallback = 1852781814, + Kind_LoadingProgressModifierBuilder = 56854815, Kind_MenuCallback = 810927048, + Kind_MenuItemModifierBuilder = -1928323454, Kind_MenuOnAppearCallback = -614475458, Kind_ModifierKeyStateGetter = -1026503952, Kind_NavDestinationTransitionDelegate = -1066063065, @@ -207,6 +213,9 @@ export enum CallbackKind { Kind_PasteEventCallback = 919057028, Kind_PluginErrorCallback = -1992671958, Kind_PopupStateChangeCallback = -1444325632, + Kind_ProgressModifierBuilder = -2049749383, + Kind_RadioModifierBuilder = -327322091, + Kind_RatingModifierBuilder = 1013330403, Kind_RestrictedWorker_onerror_Callback = -1213708823, Kind_RestrictedWorker_onexit_Callback = -2095497263, Kind_RestrictedWorker_onmessage_Callback = 1614214490, @@ -217,14 +226,18 @@ export enum CallbackKind { Kind_SearchSubmitCallback = 1717691617, Kind_ShouldBuiltInRecognizerParallelWithCallback = -250780276, Kind_SizeChangeCallback = -1716637992, + Kind_SliderModifierBuilder = 553138561, Kind_SliderTriggerChangeCallback = 711649376, Kind_StyledStringMarshallCallback = 1095217433, Kind_StyledStringUnmarshallCallback = 1359717794, Kind_SubmitCallback = -712186065, Kind_TabsCustomContentTransitionCallback = 221706282, Kind_TextAreaSubmitCallback = -401980571, + Kind_TextClockModifierBuilder = -987272911, Kind_TextPickerEnterSelectedAreaCallback = -202014218, Kind_TextPickerScrollStopCallback = -1928298699, + Kind_TextTimerModifierBuilder = 505330174, + Kind_ToggleModifierBuilder = -879751946, Kind_TransitionFinishCallback = -1878458553, Kind_Type_CommonMethod_onDragStart = -201932855, Kind_Type_NavigationAttribute_customNavContentTransition = -1209910992, diff --git a/arkoala-arkts/arkui/src/ets/generated/peers/Deserializer.ets b/arkoala-arkts/arkui/src/ets/generated/peers/Deserializer.ets index 2d6c945915..19c31a145a 100644 --- a/arkoala-arkts/arkui/src/ets/generated/peers/Deserializer.ets +++ b/arkoala-arkts/arkui/src/ets/generated/peers/Deserializer.ets @@ -22,8 +22,8 @@ import { CallbackKind } from "./CallbackKind" import { Serializer } from "./Serializer" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../../CallbackTransformer" -import { AccessibilityCallback, AccessibilityFocusCallback, CustomStyles, GestureRecognizerJudgeBeginCallback, HoverCallback, ModifierKeyStateGetter, OnDragEventCallback, OnItemDragStartCallback, OnMoveHandler, OnScrollCallback, OnWillScrollCallback, PopupStateChangeCallback, ReuseIdCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, AccessibilityHoverEvent, AccessibilityHoverEventInternal, AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, ChainStyle, ContentClipMode, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, GestureModifier, GestureModifierInternal, UIGestureEvent, HapticFeedbackMode, HoverModeAreaType, ICurve, ICurveInternal, KeyboardAvoidMode, Layoutable, LayoutPolicy, LayoutPolicyInternal, LayoutSafeAreaEdge, LayoutSafeAreaType, RectResult, TranslateOptions, ScaleOptions, RotateOptions, MenuPolicy, MenuPreviewMode, ModalTransition, NestedScrollOptions, OutlineStyle, PixelMapMock, PixelMapMockInternal, PopupStateChangeParam, PreDragStatus, ProgressMask, ProgressMaskInternal, RepeatMode, SafeAreaEdge, SafeAreaType, ScrollResult, ScrollResultInternal, ScrollSizeMode, TextContentControllerBase, TextContentControllerBaseInternal, SelectionOptions, ShadowStyle, ShadowType, SheetKeyboardAvoidMode, SheetMode, SheetSize, SheetType, SizeResult, SourceType, CaretOffset, TextContentControllerOptions, ThemeColorMode, TouchTestInfo, TouchTestStrategy, TransitionEdge, TransitionEffect, TransitionEffectInternal, AsymmetricTransitionOption, AnimateParam, TransitionHierarchyStrategy, UICommonEvent, UICommonEventInternal, ClickEvent, ClickEventInternal, TouchEvent, TouchEventInternal, KeyEvent, KeyEventInternal, HoverEvent, HoverEventInternal, MouseEvent, MouseEventInternal, VisibleAreaEventOptions, SheetOptions, TouchResult, AxisEvent, AxisEventInternal, CrownEvent, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, DragEventInternal, FocusAxisEvent, FocusAxisEventInternal, ItemDragInfo, GeometryInfo, Measurable, MeasurableInternal, SheetDismiss, SpringBackAction, DragItemInfo, AlignRuleOption, BackgroundBrightnessOptions, BackgroundImageOptions, BackgroundOptions, BlurOptions, ChildrenMainSize, ChildrenMainSizeInternal, ClickEffect, DateRange, Rectangle, DragInteractionOptions, DrawModifier, DrawModifierInternal, DropOptions, EdgeEffectOptions, ExpectedFrameRateRange, FocusMovement, ForegroundEffectOptions, GeometryTransitionOptions, InputCounterOptions, InvertOptions, LinearGradient_common, LinearGradientBlurOptions, FractionStop, LinearGradientOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, MeasureResult, MotionBlurAnchor, MotionBlurOptions, MotionPathOptions, OverlayOffset, PixelRoundPolicy, PopupButton, PreviewConfiguration, StateStyles, SystemAdaptiveOptions, ShadowOptions, TouchObject, BackgroundBlurStyleOptions, BlurStyleOptions, BackgroundEffectOptions, ContentCoverOptions, BindOptions, ContextMenuAnimationOptions, AnimationNumberRange, MultiShadowOptions, DragPreviewOptions, FadingEdgeOptions, ForegroundBlurStyleOptions, HistoricalPoint, LightSource, LocalizedAlignRuleOptions, MenuElement, OverlayOptions, PopupMaskType, ReuseOptions, sharedTransitionOptions, SheetTitleOptions, TextDecorationOptions, DividerStyle, PixelStretchEffectOptions, PointLightStyle, RadialGradientOptions, SweepGradientOptions, TipsOptions, BorderImageOption, ContextMenuOptions, BorderRadiusType, CustomPopupOptions, EventTarget, BaseEvent, BaseEventInternal, MenuOptions, PickerDialogButtonStyle, PickerTextStyle, PopupMessageOptions, PopupOptions } from "./../common" -import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, ControlSize, ButtonOptions, ButtonLabelStyle } from "./../button" +import { AccessibilityCallback, AccessibilityFocusCallback, CustomStyles, GestureRecognizerJudgeBeginCallback, HoverCallback, ModifierKeyStateGetter, OnDragEventCallback, OnItemDragStartCallback, OnMoveHandler, OnScrollCallback, OnWillScrollCallback, PopupStateChangeCallback, ReuseIdCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, AccessibilityHoverEvent, AccessibilityHoverEventInternal, AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, ChainStyle, ContentClipMode, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, GestureModifier, GestureModifierInternal, UIGestureEvent, HapticFeedbackMode, HoverModeAreaType, ICurve, ICurveInternal, KeyboardAvoidMode, Layoutable, LayoutPolicy, LayoutPolicyInternal, LayoutSafeAreaEdge, LayoutSafeAreaType, RectResult, CommonConfiguration, TranslateOptions, ScaleOptions, RotateOptions, MenuPolicy, MenuPreviewMode, ModalTransition, NestedScrollOptions, OutlineStyle, PixelMapMock, PixelMapMockInternal, PopupStateChangeParam, PreDragStatus, ProgressMask, ProgressMaskInternal, RepeatMode, SafeAreaEdge, SafeAreaType, ScrollResult, ScrollResultInternal, ScrollSizeMode, TextContentControllerBase, TextContentControllerBaseInternal, SelectionOptions, ShadowStyle, ShadowType, SheetKeyboardAvoidMode, SheetMode, SheetSize, SheetType, SizeResult, SourceType, CaretOffset, TextContentControllerOptions, ThemeColorMode, TouchTestInfo, TouchTestStrategy, TransitionEdge, TransitionEffect, TransitionEffectInternal, AsymmetricTransitionOption, AnimateParam, TransitionHierarchyStrategy, UICommonEvent, UICommonEventInternal, ClickEvent, ClickEventInternal, TouchEvent, TouchEventInternal, KeyEvent, KeyEventInternal, HoverEvent, HoverEventInternal, MouseEvent, MouseEventInternal, VisibleAreaEventOptions, SheetOptions, TouchResult, AxisEvent, AxisEventInternal, CrownEvent, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, DragEventInternal, FocusAxisEvent, FocusAxisEventInternal, ItemDragInfo, GeometryInfo, Measurable, MeasurableInternal, SheetDismiss, SpringBackAction, DragItemInfo, AlignRuleOption, BackgroundBrightnessOptions, BackgroundImageOptions, BackgroundOptions, BlurOptions, ChildrenMainSize, ChildrenMainSizeInternal, ClickEffect, DateRange, Rectangle, DragInteractionOptions, DrawModifier, DrawModifierInternal, DropOptions, EdgeEffectOptions, ExpectedFrameRateRange, FocusMovement, ForegroundEffectOptions, GeometryTransitionOptions, InputCounterOptions, InvertOptions, LinearGradient_common, LinearGradientBlurOptions, FractionStop, LinearGradientOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, MeasureResult, MotionBlurAnchor, MotionBlurOptions, MotionPathOptions, OverlayOffset, PixelRoundPolicy, PopupButton, PreviewConfiguration, StateStyles, SystemAdaptiveOptions, ShadowOptions, TouchObject, BackgroundBlurStyleOptions, BlurStyleOptions, BackgroundEffectOptions, ContentCoverOptions, BindOptions, ContextMenuAnimationOptions, AnimationNumberRange, MultiShadowOptions, DragPreviewOptions, FadingEdgeOptions, ForegroundBlurStyleOptions, HistoricalPoint, LightSource, LocalizedAlignRuleOptions, MenuElement, OverlayOptions, PopupMaskType, ReuseOptions, sharedTransitionOptions, SheetTitleOptions, TextDecorationOptions, DividerStyle, PixelStretchEffectOptions, PointLightStyle, RadialGradientOptions, SweepGradientOptions, TipsOptions, BorderImageOption, ContextMenuOptions, BorderRadiusType, CustomPopupOptions, EventTarget, BaseEvent, BaseEventInternal, MenuOptions, PickerDialogButtonStyle, PickerTextStyle, PopupMessageOptions, PopupOptions } from "./../common" +import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, ControlSize, ButtonConfiguration, ButtonOptions, ButtonLabelStyle } from "./../button" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../animation_extender" import { Callback_onMeasureSize_SizeResult, Callback_onPlaceChildren_Void } from "./../static_components" import { Callback_RangeUpdate, Callback_StateStylesChange, RestrictedWorker_onerror_Callback, RestrictedWorker_onexit_Callback, RestrictedWorker_onmessage_Callback, Scene, SceneInternal, WorkerEventListener, Event, ErrorEvent, MessageEvents, PostMessageOptions, WorkerOptions, RestrictedWorker, RestrictedWorkerInternal } from "./../arkui-custom" @@ -40,17 +40,17 @@ import { MenuCallback, MenuOnAppearCallback, OnHoverCallback, PasteEventCallback import { NavDestinationTransitionDelegate, NavDestinationActiveReason, NavDestinationMode, NavigationSystemTransitionType, NavDestinationContext, NavDestinationContextInternal, NavDestinationTransition, NestedScrollInfo, RouteMapConfig, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../navDestination" import { NavExtender_OnUpdateStack } from "./../navigation_extender" import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./../alphabetIndexer" -import { OnCheckboxChangeCallback, CheckboxOptions } from "./../checkbox" +import { OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions } from "./../checkbox" import { OnCheckboxGroupChangeCallback, SelectStatus, CheckboxGroupResult, CheckboxGroupOptions } from "./../checkboxgroup" import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, ContentType, EnterKeyType, InputType, SubmitEvent, SubmitEventInternal, TextInputController, TextInputControllerInternal, TextInputStyle, PasswordIcon, TextInputOptions, UnderlineColor } from "./../textInput" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, OnFoldStatusChangeInfo, HoverEventParam, FolderStackOptions } from "./../folderStack" import { OnLinearIndicatorChangeCallback, LinearIndicatorController, LinearIndicatorControllerInternal, LinearIndicatorStartOptions, LinearIndicatorStyle } from "./../linearindicator" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentController, XComponentControllerInternal, NativeXComponentParameters, XComponentOptions, XComponentParameter } from "./../xcomponent" -import { OnRadioChangeCallback, RadioIndicatorType, RadioOptions, RadioStyle } from "./../radio" -import { OnRatingChangeCallback, RatingOptions, StarStyleOptions } from "./../rating" +import { OnRadioChangeCallback, RadioIndicatorType, RadioConfiguration, RadioOptions, RadioStyle } from "./../radio" +import { OnRatingChangeCallback, RatingConfiguration, RatingOptions, StarStyleOptions } from "./../rating" import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, Scroller, ScrollerInternal, ScrollAlign, OffsetResult, OnScrollFrameBeginHandlerResult, ScrollDirection, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions } from "./../scroll" import { OnScrollVisibleContentChangeCallback, ChainEdgeEffect, ListItemAlign, ListItemGroupArea, ListScroller, ListScrollerInternal, CloseSwipeActionOptions, VisibleListContentInfo, ScrollSnapAlign, ScrollState, StickyStyle, ListOptions, ChainAnimationOptions, ListDividerOptions } from "./../list" -import { OnSelectCallback, ArrowPosition, AvoidanceMode, MenuAlignType, SelectOption, MenuOutlineOptions } from "./../select" +import { OnSelectCallback, ArrowPosition, AvoidanceMode, MenuAlignType, MenuItemConfiguration, SelectOption, MenuOutlineOptions } from "./../select" import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, AnimationMode, BarMode, BarPosition, LayoutStyle, TabContentTransitionProxy, TabContentTransitionProxyInternal, TabsAnimationEvent, TabsCacheMode, TabsController, TabsControllerInternal, TabContentAnimatedTransition, TabsOptions, BarGridColumnOptions, ScrollableBarModeOptions } from "./../tabs" import { OnTextPickerChangeCallback, TextPickerEnterSelectedAreaCallback, TextPickerScrollStopCallback, TextPickerDialog, TextPickerDialogInternal, TextPickerDialogOptions, TextPickerResult, TextCascadePickerRangeContent, TextPickerOptions, TextPickerRangeContent, DividerOptions, TextPickerTextStyle } from "./../textPicker" import { OnTimePickerChangeCallback, TimePickerDialog, TimePickerDialogInternal, TimePickerFormat, TimePickerResult, TimePickerOptions } from "./../timePicker" @@ -60,7 +60,7 @@ import { PasteButtonCallback, PasteButtonOnClickResult, PasteDescription, PasteI import { PluginErrorCallback, PluginErrorData, PluginComponentTemplate, PluginComponentOptions } from "./../pluginComponent" import { SaveButtonCallback, SaveButtonOnClickResult, SaveDescription, SaveIconStyle, SaveButtonOptions } from "./../saveButton" import { SearchSubmitCallback, CancelButtonStyle, SearchController, SearchControllerInternal, SearchType, CancelButtonSymbolOptions, SearchOptions, IconOptions, SearchButtonOptions, CancelButtonOptions } from "./../search" -import { SliderTriggerChangeCallback, SliderBlockType, SliderChangeMode, SliderInteraction, SliderStyle, SlideRange, SliderOptions, SliderBlockStyle } from "./../slider" +import { SliderTriggerChangeCallback, SliderBlockType, SliderChangeMode, SliderInteraction, SliderStyle, SliderConfiguration, SlideRange, SliderOptions, SliderBlockStyle } from "./../slider" import { StyledStringMarshallCallback, StyledStringUnmarshallCallback, GestureStyle, GestureStyleInternal, GestureStyleInterface, StyledString, StyledStringInternal, ImageAttachment, ImageAttachmentInternal, CustomSpan, CustomSpanInternal, StyleOptions, StyledStringKey, SpanStyle, UserDataSpan, UserDataSpanInternal, MutableStyledString, MutableStyledStringInternal, UrlStyle, UrlStyleInternal, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, BaselineOffsetStyle, BaselineOffsetStyleInternal, LetterSpacingStyle, LetterSpacingStyleInternal, LineHeightStyle, LineHeightStyleInternal, TextShadowStyle, TextShadowStyleInternal, DecorationStyle, DecorationStyleInternal, DecorationStyleInterface, TextStyle, TextStyleInternal, TextStyleInterface, ImageAttachmentLayoutStyle, ParagraphStyle, ParagraphStyleInternal, ParagraphStyleInterface, BackgroundColorStyle, BackgroundColorStyleInternal, ColorFilterType, ImageAttachmentInterface, AttachmentType, ResourceImageAttachmentOptions, StyledStringValue } from "./../styledString" import { TextAreaSubmitCallback, TextAreaController, TextAreaControllerInternal, TextAreaType, TextAreaOptions } from "./../textArea" import { VoidCallback, Length, SizeOptions, Position, ResourceColor, ColorFilter, ColorFilterInternal, ResourceStr, Area, ConstraintSizeOptions, AccessibilityOptions, Bias, ChainWeightOptions, DirectionalEdgesT, EdgeOutlineStyles, EdgeStyles, VP, DividerStyleOptions, EdgeColors, LengthConstrain, Dimension, LocalizedBorderRadiuses, LocalizedEdgeColors, LocalizedEdges, LocalizedEdgeWidths, LocalizedPadding, LocalizedPosition, Offset, BorderRadiuses, EdgeOutlineWidths, Edges, EdgeWidths, Font, PX, LPX, MarkStyle, OutlineRadiuses, Padding, BorderOptions, OutlineOptions } from "./../units" @@ -83,7 +83,7 @@ import { Context, ContextInternal } from "./../application.Context" import { CustomBuild, CustomBuildInternal } from "./../customComponent" import { CustomDialogController, CustomDialogControllerInternal, CustomDialogControllerOptions } from "./../customDialogController" import { DataOperationType } from "./../lazyForEach" -import { DataPanelType, LinearGradient, LinearGradientInternal, ColorStop, DataPanelOptions, DataPanelShadowOptions } from "./../dataPanel" +import { DataPanelType, LinearGradient, LinearGradientInternal, ColorStop, DataPanelConfiguration, DataPanelOptions, DataPanelShadowOptions } from "./../dataPanel" import { DatePickerDialog, DatePickerDialogInternal, DatePickerMode, DatePickerOptions } from "./../datePicker" import { DialogAlignment, DialogButtonDirection, DismissDialogAction } from "./../alertDialog" import { DistributionType, DisturbanceFieldShape, ParticleEmitterShape, ParticleType, ParticleUpdater } from "./../particle" @@ -112,7 +112,7 @@ import { ItemState } from "./../stepperItem" import { LayoutMode, SelectedMode, TabBarSymbol, TabBarSymbolInternal, TabBarIconStyle, TabBarOptions, BoardStyle, SubTabBarIndicatorStyle, TabBarLabelStyle, BottomTabBarStyle, SubTabBarStyle } from "./../tabContent" import { ListItemGroupStyle, ListItemGroupOptions } from "./../listItemGroup" import { ListItemStyle, SwipeActionState, SwipeEdgeEffect, ListItemOptions, SwipeActionItem, SwipeActionOptions } from "./../listItem" -import { LoadingProgressStyle } from "./../loadingProgress" +import { LoadingProgressConfiguration, LoadingProgressStyle } from "./../loadingProgress" import { MarqueeStartPolicy, MarqueeState, TextController, TextControllerInternal, TextOptions, TextOverflowOptions, TextResponseType, TextSpanType, TextMarqueeOptions } from "./../text" import { matrix4 } from "./../ohos.matrix4" import { NavigationType } from "./../arkui.component.navigator.extra" @@ -122,7 +122,7 @@ import { NodeController } from "./../arkui.NodeController" import { Offset_componentutils, RotateResult, ScaleResult, TranslateResult, ComponentInfo } from "./../arkui-componentutils" import { PatternLockChallengeResult, PatternLockController, PatternLockControllerInternal, CircleStyleOptions } from "./../patternLock" import { pointer } from "./../ohos.multimodalInput.pointer" -import { ProgressStatus, ProgressStyle, ProgressType, ProgressOptions, LinearStyleOptions, ScanEffectOptions, CommonProgressStyleOptions, ProgressStyleOptions, RingStyleOptions, CapsuleStyleOptions } from "./../progress" +import { ProgressConfiguration, ProgressStatus, ProgressStyle, ProgressType, ProgressOptions, LinearStyleOptions, ScanEffectOptions, CommonProgressStyleOptions, ProgressStyleOptions, RingStyleOptions, CapsuleStyleOptions } from "./../progress" import { RefreshStatus, RefreshOptions } from "./../refresh" import { RootSceneSession } from "./../rootScene" import { RowOptionsV2, RowOptions } from "./../row" @@ -133,11 +133,11 @@ import { SideBarContainerType, SideBarPosition, ButtonIconOptions, ButtonStyle } import { SubMenuExpandingMode } from "./../menu" import { SymbolGlyphModifier } from "./../arkui.SymbolGlyphModifier" import { text } from "./../ohos.graphics.text" -import { TextClockController, TextClockControllerInternal, TextClockOptions } from "./../textClock" +import { TextClockConfiguration, TextClockController, TextClockControllerInternal, TextClockOptions } from "./../textClock" import { TextModifier } from "./../arkui.TextModifier" -import { TextTimerController, TextTimerControllerInternal, TextTimerOptions } from "./../textTimer" +import { TextTimerConfiguration, TextTimerController, TextTimerControllerInternal, TextTimerOptions } from "./../textTimer" import { ThemeControl, ThemeControlInternal, CustomTheme, Colors } from "./../ohos.arkui.theme" -import { ToggleType, ToggleOptions, SwitchStyle } from "./../toggle" +import { ToggleType, ToggleConfiguration, ToggleOptions, SwitchStyle } from "./../toggle" import { uiEffect } from "./../ohos.graphics.uiEffect" import { unifiedDataChannel } from "./../ohos.data.unifiedDataChannel" import { uniformTypeDescriptor } from "./../ohos.data.uniformTypeDescriptor" @@ -145,13 +145,13 @@ import { WebCookie, WebCookieInternal } from "./../arkui.component.web.extra" import { window } from "./../ohos.window" import { InteropComponent } from "./../interop" import { TerminationInfo } from "./../embeddedComponent" +import { GaugeConfiguration, GaugeOptions, GaugeShadowOptions, GaugeIndicatorOptions } from "./../gauge" import { ASTCResource } from "./../mediaCachedImage" import { BorderRadiuses_graphics, RenderNode, RenderNodeInternal } from "./../arkui.RenderNode" import { CircleOptions } from "./../circle" import { ColumnOptions, ColumnOptionsV2 } from "./../column" import { EllipseOptions } from "./../ellipse" import { FormLinkOptions } from "./../formLink" -import { GaugeOptions, GaugeShadowOptions, GaugeIndicatorOptions } from "./../gauge" import { GridColColumnOption, GridColOptions } from "./../gridCol" import { intl } from "./../ohos.intl" import { LineOptions } from "./../line" @@ -171,6 +171,7 @@ import { MenuItemOptions } from "./../menuItem" import { ColumnSplitDividerStyle } from "./../columnSplit" import { LayoutChild, LayoutChildInternal } from "./../arkui.component.common.extra" import { TextBackgroundStyle } from "./../span" +import { ContentModifier } from "./../../handwritten" export class Deserializer extends DeserializerBase { constructor(data: KSerializerBuffer | KUint8ArrayPtr, length: int32) { @@ -510,6 +511,14 @@ export class Deserializer extends DeserializerBase { let ptr : KPointer = valueDeserializer.readPointer() return ListScrollerInternal.fromPtr(ptr) } + public readLoadingProgressConfiguration(): LoadingProgressConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const enableLoading_result : boolean = valueDeserializer.readBoolean() + let value : LoadingProgressConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, enableLoading: enableLoading_result} as LoadingProgressConfiguration) + return value + } public readLongPressGestureInterface(): LongPressGestureInterface { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -646,6 +655,15 @@ export class Deserializer extends DeserializerBase { let value : PreparedInfo = ({duration: duration_result} as PreparedInfo) return value } + public readProgressConfiguration(): ProgressConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const value_result : number = (valueDeserializer.readNumber() as number) + const total_result : number = (valueDeserializer.readNumber() as number) + let value : ProgressConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, value: value_result, total: total_result} as ProgressConfiguration) + return value + } public readProgressMask(): ProgressMask { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -957,6 +975,16 @@ export class Deserializer extends DeserializerBase { let ptr : KPointer = valueDeserializer.readPointer() return TextBaseControllerInternal.fromPtr(ptr) } + public readTextClockConfiguration(): TextClockConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const timeZoneOffset_result : number = (valueDeserializer.readNumber() as number) + const started_result : boolean = valueDeserializer.readBoolean() + const timeValue_result : number = (valueDeserializer.readNumber() as number) + let value : TextClockConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, timeZoneOffset: timeZoneOffset_result, started: started_result, timeValue: timeValue_result} as TextClockConfiguration) + return value + } public readTextClockController(): TextClockController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -1021,6 +1049,17 @@ export class Deserializer extends DeserializerBase { let ptr : KPointer = valueDeserializer.readPointer() return TextPickerDialogInternal.fromPtr(ptr) } + public readTextTimerConfiguration(): TextTimerConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const count_result : number = (valueDeserializer.readNumber() as number) + const isCountDown_result : boolean = valueDeserializer.readBoolean() + const started_result : boolean = valueDeserializer.readBoolean() + const elapsedTime_result : number = (valueDeserializer.readNumber() as number) + let value : TextTimerConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, count: count_result, isCountDown: isCountDown_result, started: started_result, elapsedTime: elapsedTime_result} as TextTimerConfiguration) + return value + } public readTextTimerController(): TextTimerController { let valueDeserializer : Deserializer = this let ptr : KPointer = valueDeserializer.readPointer() @@ -1168,6 +1207,24 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readButtonModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: ButtonConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: ButtonConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeButtonConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2004118094, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2004118094, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readButtonTriggerClickCallback(isSync: boolean = false): ButtonTriggerClickCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -3386,6 +3443,24 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readCheckBoxModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: CheckBoxConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: CheckBoxConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeCheckBoxConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1317697111, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1317697111, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readContentDidScrollCallback(isSync: boolean = false): ContentDidScrollCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -3465,6 +3540,24 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readDataPanelModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: DataPanelConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: DataPanelConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeDataPanelConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-238036926, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-238036926, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readEditableTextOnChangeCallback(isSync: boolean = false): EditableTextOnChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -3507,6 +3600,24 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readGaugeModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: GaugeConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: GaugeConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeGaugeConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(255469205, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(255469205, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readGestureRecognizerJudgeBeginCallback(isSync: boolean = false): GestureRecognizerJudgeBeginCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -3663,6 +3774,24 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readLoadingProgressModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: LoadingProgressConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: LoadingProgressConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeLoadingProgressConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(56854815, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(56854815, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readMenuCallback(isSync: boolean = false): MenuCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -3678,6 +3807,24 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readMenuItemModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: MenuItemConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: MenuItemConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeMenuItemConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-1928323454, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-1928323454, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readMenuOnAppearCallback(isSync: boolean = false): MenuOnAppearCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -4438,6 +4585,60 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readProgressModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: ProgressConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: ProgressConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeProgressConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-2049749383, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-2049749383, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } + public readRadioModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: RadioConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: RadioConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeRadioConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-327322091, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-327322091, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } + public readRatingModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: RatingConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: RatingConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeRatingConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(1013330403, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(1013330403, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readRestrictedWorker_onerror_Callback(isSync: boolean = false): RestrictedWorker_onerror_Callback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -4612,6 +4813,24 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readSliderModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: SliderConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: SliderConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeSliderConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(553138561, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(553138561, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readSliderTriggerChangeCallback(isSync: boolean = false): SliderTriggerChangeCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -4734,6 +4953,24 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readTextClockModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: TextClockConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: TextClockConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeTextClockConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-987272911, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-987272911, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readTextPickerEnterSelectedAreaCallback(isSync: boolean = false): TextPickerEnterSelectedAreaCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -4824,6 +5061,42 @@ export class Deserializer extends DeserializerBase { _argsSerializer.release(); return; } } + public readTextTimerModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: TextTimerConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: TextTimerConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeTextTimerConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(505330174, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(505330174, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } + public readToggleModifierBuilder(isSync: boolean = false): ((parentNode: KPointer,config: ToggleConfiguration) => KPointer) { + const _resource : CallbackResource = this.readCallbackResource() + const _call : KPointer = this.readPointer() + const _callSync : KPointer = this.readPointer() + return (parentNode: KPointer, config: ToggleConfiguration):KPointer => { + const _argsSerializer : Serializer = Serializer.hold(); + _argsSerializer.writeInt32(_resource.resourceId); + _argsSerializer.writePointer(_call); + _argsSerializer.writePointer(_callSync); + _argsSerializer.writePointer(parentNode); + _argsSerializer.writeToggleConfiguration(config); + let _continuationValue : KPointer | undefined; + const _continuationCallback : ((value: KPointer) => void) = (value: KPointer):void => { _continuationValue = value; } + _argsSerializer.holdAndWriteCallback(_continuationCallback); + (isSync) ? (InteropNativeModule._CallCallbackSync(-879751946, _argsSerializer.asBuffer(), _argsSerializer.length())) : (InteropNativeModule._CallCallback(-879751946, _argsSerializer.asBuffer(), _argsSerializer.length())); + _argsSerializer.release(); + return (_continuationValue as KPointer); } + } public readTransitionFinishCallback(isSync: boolean = false): TransitionFinishCallback { const _resource : CallbackResource = this.readCallbackResource() const _call : KPointer = this.readPointer() @@ -5119,6 +5392,16 @@ export class Deserializer extends DeserializerBase { let value : BusinessError = ({name: name_result, message: message_result, stack: stack_result, code: code_result} as BusinessError) return value } + public readButtonConfiguration(): ButtonConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const label_result : string = (valueDeserializer.readString() as string) + const pressed_result : boolean = valueDeserializer.readBoolean() + const triggerClick_result : ButtonTriggerClickCallback = valueDeserializer.readButtonTriggerClickCallback() + let value : ButtonConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, label: label_result, pressed: pressed_result, triggerClick: triggerClick_result} as ButtonConfiguration) + return value + } public readButtonOptions(): ButtonOptions { let valueDeserializer : Deserializer = this const type_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5223,6 +5506,16 @@ export class Deserializer extends DeserializerBase { let value : ChainWeightOptions = ({horizontal: horizontal_result, vertical: vertical_result} as ChainWeightOptions) return value } + public readCheckBoxConfiguration(): CheckBoxConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const name_result : string = (valueDeserializer.readString() as string) + const selected_result : boolean = valueDeserializer.readBoolean() + const triggerChange_result : ((value0: boolean) => void) = valueDeserializer.readCallback_Boolean_Void() + let value : CheckBoxConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, name: name_result, selected: selected_result, triggerChange: triggerChange_result} as CheckBoxConfiguration) + return value + } public readCheckboxGroupOptions(): CheckboxGroupOptions { let valueDeserializer : Deserializer = this const group_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -5499,6 +5792,20 @@ export class Deserializer extends DeserializerBase { let value : CutEvent = ({preventDefault: preventDefault_result} as CutEvent) return value } + public readDataPanelConfiguration(): DataPanelConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const values_buf_length : int32 = valueDeserializer.readInt32() + let values_buf : Array = new Array(values_buf_length) + for (let values_buf_i = 0; values_buf_i < values_buf_length; values_buf_i++) { + values_buf[values_buf_i] = (valueDeserializer.readNumber() as number) + } + const values_result : Array = values_buf + const maxValue_result : number = (valueDeserializer.readNumber() as number) + let value : DataPanelConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, values: values_result, maxValue: maxValue_result} as DataPanelConfiguration) + return value + } public readDataPanelOptions(): DataPanelOptions { let valueDeserializer : Deserializer = this const values_buf_length : int32 = valueDeserializer.readInt32() @@ -6194,6 +6501,16 @@ export class Deserializer extends DeserializerBase { let value : Frame = ({x: x_result, y: y_result, width: width_result, height: height_result} as Frame) return value } + public readGaugeConfiguration(): GaugeConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const value_result : number = (valueDeserializer.readNumber() as number) + const min_result : number = (valueDeserializer.readNumber() as number) + const max_result : number = (valueDeserializer.readNumber() as number) + let value : GaugeConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, value: value_result, min: min_result, max: max_result} as GaugeConfiguration) + return value + } public readGaugeOptions(): GaugeOptions { let valueDeserializer : Deserializer = this const value_result : number = (valueDeserializer.readNumber() as number) @@ -7858,6 +8175,16 @@ export class Deserializer extends DeserializerBase { let value : ProgressOptions = ({value: value_result, total: total_result, type: type_result} as ProgressOptions) return value } + public readRadioConfiguration(): RadioConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const value_result : string = (valueDeserializer.readString() as string) + const checked_result : boolean = valueDeserializer.readBoolean() + const triggerChange_result : ((value0: boolean) => void) = valueDeserializer.readCallback_Boolean_Void() + let value : RadioConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, value: value_result, checked: checked_result, triggerChange: triggerChange_result} as RadioConfiguration) + return value + } public readRadioOptions(): RadioOptions { let valueDeserializer : Deserializer = this const group_result : string = (valueDeserializer.readString() as string) @@ -7879,6 +8206,18 @@ export class Deserializer extends DeserializerBase { let value : RadioOptions = ({group: group_result, value: value_result, indicatorType: indicatorType_result, indicatorBuilder: indicatorBuilder_result} as RadioOptions) return value } + public readRatingConfiguration(): RatingConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const rating_result : number = (valueDeserializer.readNumber() as number) + const indicator_result : boolean = valueDeserializer.readBoolean() + const stars_result : number = (valueDeserializer.readNumber() as number) + const stepSize_result : number = (valueDeserializer.readNumber() as number) + const triggerChange_result : ((value0: number) => void) = valueDeserializer.readCallback_Number_Void() + let value : RatingConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, rating: rating_result, indicator: indicator_result, stars: stars_result, stepSize: stepSize_result, triggerChange: triggerChange_result} as RatingConfiguration) + return value + } public readRatingOptions(): RatingOptions { let valueDeserializer : Deserializer = this const rating_result : number = (valueDeserializer.readNumber() as number) @@ -8659,6 +8998,18 @@ export class Deserializer extends DeserializerBase { let value : SlideRange = ({from: from_result, to: to_result} as SlideRange) return value } + public readSliderConfiguration(): SliderConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const value_result : number = (valueDeserializer.readNumber() as number) + const min_result : number = (valueDeserializer.readNumber() as number) + const max_result : number = (valueDeserializer.readNumber() as number) + const step_result : number = (valueDeserializer.readNumber() as number) + const triggerChange_result : SliderTriggerChangeCallback = valueDeserializer.readSliderTriggerChangeCallback() + let value : SliderConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, value: value_result, min: min_result, max: max_result, step: step_result, triggerChange: triggerChange_result} as SliderConfiguration) + return value + } public readSliderOptions(): SliderOptions { let valueDeserializer : Deserializer = this const value_buf_runtimeType = (valueDeserializer.readInt8() as int32) @@ -9400,6 +9751,16 @@ export class Deserializer extends DeserializerBase { let value : TimePickerOptions = ({selected: selected_result, format: format_result, start: start_result, end: end_result} as TimePickerOptions) return value } + public readToggleConfiguration(): ToggleConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const isOn_result : boolean = valueDeserializer.readBoolean() + const toggleEnabled_result : boolean = valueDeserializer.readBoolean() + const triggerChange_result : ((value0: boolean) => void) = valueDeserializer.readCallback_Boolean_Void() + let value : ToggleConfiguration = ({enabled: enabled_result, contentModifier: contentModifier_result, isOn: isOn_result, toggleEnabled: toggleEnabled_result, triggerChange: triggerChange_result} as ToggleConfiguration) + return value + } public readToggleOptions(): ToggleOptions { let valueDeserializer : Deserializer = this const type_result : ToggleType = TypeChecker.ToggleType_FromNumeric(valueDeserializer.readInt32()) @@ -12918,6 +13279,51 @@ export class Deserializer extends DeserializerBase { let value : MenuElement = ({value: value_result, icon: icon_result, symbolIcon: symbolIcon_result, enabled: enabled_result, action: action_result} as MenuElement) return value } + public readMenuItemConfiguration(): MenuItemConfiguration { + let valueDeserializer : Deserializer = this + const enabled_result : boolean = valueDeserializer.readBoolean() + const contentModifier_result : ContentModifier = (valueDeserializer.readObject() as ContentModifier) + const value_buf_selector : int32 = valueDeserializer.readInt8() + let value_buf : string | Resource | undefined + if (value_buf_selector == 0) { + value_buf = (valueDeserializer.readString() as string) + } + else if (value_buf_selector == 1) { + value_buf = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for value_buf has to be chosen through deserialisation.") + } + const value_result : ResourceStr = (value_buf as string | Resource) + const icon_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let icon_buf : ResourceStr | undefined + if ((RuntimeType.UNDEFINED) != (icon_buf_runtimeType)) + { + const icon_buf__selector : int32 = valueDeserializer.readInt8() + let icon_buf_ : string | Resource | undefined + if (icon_buf__selector == 0) { + icon_buf_ = (valueDeserializer.readString() as string) + } + else if (icon_buf__selector == 1) { + icon_buf_ = valueDeserializer.readResource() + } + else { + throw new Error("One of the branches for icon_buf_ has to be chosen through deserialisation.") + } + icon_buf = (icon_buf_ as string | Resource) + } + const icon_result : ResourceStr | undefined = icon_buf + const symbolIcon_buf_runtimeType = (valueDeserializer.readInt8() as int32) + let symbolIcon_buf : SymbolGlyphModifier | undefined + if ((RuntimeType.UNDEFINED) != (symbolIcon_buf_runtimeType)) + { + symbolIcon_buf = valueDeserializer.readSymbolGlyphModifier() + } + const symbolIcon_result : SymbolGlyphModifier | undefined = symbolIcon_buf + const selected_result : boolean = valueDeserializer.readBoolean() + const index_result : number = (valueDeserializer.readNumber() as number) + throw new Error("Interface with functions is not supported") + } public readMenuItemGroupOptions(): MenuItemGroupOptions { let valueDeserializer : Deserializer = this const header_buf_runtimeType = (valueDeserializer.readInt8() as int32) diff --git a/arkoala-arkts/arkui/src/ets/generated/peers/Serializer.ets b/arkoala-arkts/arkui/src/ets/generated/peers/Serializer.ets index c1dd1684c3..97951bd690 100644 --- a/arkoala-arkts/arkui/src/ets/generated/peers/Serializer.ets +++ b/arkoala-arkts/arkui/src/ets/generated/peers/Serializer.ets @@ -21,8 +21,8 @@ import { int32, int64, float32, unsafeCast } from "@koalaui/common" import { CallbackKind } from "./CallbackKind" import { TypeChecker } from "#components" import { CallbackTransformer } from "./../../CallbackTransformer" -import { AccessibilityCallback, AccessibilityFocusCallback, CustomStyles, GestureRecognizerJudgeBeginCallback, HoverCallback, ModifierKeyStateGetter, OnDragEventCallback, OnItemDragStartCallback, OnMoveHandler, OnScrollCallback, OnWillScrollCallback, PopupStateChangeCallback, ReuseIdCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, AccessibilityHoverEvent, AccessibilityHoverEventInternal, AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, ChainStyle, ContentClipMode, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, GestureModifier, GestureModifierInternal, UIGestureEvent, HapticFeedbackMode, HoverModeAreaType, ICurve, ICurveInternal, KeyboardAvoidMode, Layoutable, LayoutPolicy, LayoutPolicyInternal, LayoutSafeAreaEdge, LayoutSafeAreaType, RectResult, TranslateOptions, ScaleOptions, RotateOptions, MenuPolicy, MenuPreviewMode, ModalTransition, NestedScrollOptions, OutlineStyle, PixelMapMock, PixelMapMockInternal, PopupStateChangeParam, PreDragStatus, ProgressMask, ProgressMaskInternal, RepeatMode, SafeAreaEdge, SafeAreaType, ScrollResult, ScrollResultInternal, ScrollSizeMode, TextContentControllerBase, TextContentControllerBaseInternal, SelectionOptions, ShadowStyle, ShadowType, SheetKeyboardAvoidMode, SheetMode, SheetSize, SheetType, SizeResult, SourceType, CaretOffset, TextContentControllerOptions, ThemeColorMode, TouchTestInfo, TouchTestStrategy, TransitionEdge, TransitionEffect, TransitionEffectInternal, AsymmetricTransitionOption, AnimateParam, TransitionHierarchyStrategy, UICommonEvent, UICommonEventInternal, ClickEvent, ClickEventInternal, TouchEvent, TouchEventInternal, KeyEvent, KeyEventInternal, HoverEvent, HoverEventInternal, MouseEvent, MouseEventInternal, VisibleAreaEventOptions, SheetOptions, TouchResult, AxisEvent, AxisEventInternal, CrownEvent, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, DragEventInternal, FocusAxisEvent, FocusAxisEventInternal, ItemDragInfo, GeometryInfo, Measurable, MeasurableInternal, SheetDismiss, SpringBackAction, DragItemInfo, AlignRuleOption, BackgroundBrightnessOptions, BackgroundImageOptions, BackgroundOptions, BlurOptions, ChildrenMainSize, ChildrenMainSizeInternal, ClickEffect, DateRange, Rectangle, DragInteractionOptions, DrawModifier, DrawModifierInternal, DropOptions, EdgeEffectOptions, ExpectedFrameRateRange, FocusMovement, ForegroundEffectOptions, GeometryTransitionOptions, InputCounterOptions, InvertOptions, LinearGradient_common, LinearGradientBlurOptions, FractionStop, LinearGradientOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, MeasureResult, MotionBlurAnchor, MotionBlurOptions, MotionPathOptions, OverlayOffset, PixelRoundPolicy, PopupButton, PreviewConfiguration, StateStyles, SystemAdaptiveOptions, ShadowOptions, TouchObject, BackgroundBlurStyleOptions, BlurStyleOptions, BackgroundEffectOptions, ContentCoverOptions, BindOptions, ContextMenuAnimationOptions, AnimationNumberRange, MultiShadowOptions, DragPreviewOptions, FadingEdgeOptions, ForegroundBlurStyleOptions, HistoricalPoint, LightSource, LocalizedAlignRuleOptions, MenuElement, OverlayOptions, PopupMaskType, ReuseOptions, sharedTransitionOptions, SheetTitleOptions, TextDecorationOptions, DividerStyle, PixelStretchEffectOptions, PointLightStyle, RadialGradientOptions, SweepGradientOptions, TipsOptions, BorderImageOption, ContextMenuOptions, BorderRadiusType, CustomPopupOptions, EventTarget, BaseEvent, BaseEventInternal, MenuOptions, PickerDialogButtonStyle, PickerTextStyle, PopupMessageOptions, PopupOptions } from "./../common" -import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, ControlSize, ButtonOptions, ButtonLabelStyle } from "./../button" +import { AccessibilityCallback, AccessibilityFocusCallback, CustomStyles, GestureRecognizerJudgeBeginCallback, HoverCallback, ModifierKeyStateGetter, OnDragEventCallback, OnItemDragStartCallback, OnMoveHandler, OnScrollCallback, OnWillScrollCallback, PopupStateChangeCallback, ReuseIdCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, TransitionFinishCallback, VisibleAreaChangeCallback, AccessibilityHoverEvent, AccessibilityHoverEventInternal, AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, ChainStyle, ContentClipMode, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, GestureModifier, GestureModifierInternal, UIGestureEvent, HapticFeedbackMode, HoverModeAreaType, ICurve, ICurveInternal, KeyboardAvoidMode, Layoutable, LayoutPolicy, LayoutPolicyInternal, LayoutSafeAreaEdge, LayoutSafeAreaType, RectResult, CommonConfiguration, TranslateOptions, ScaleOptions, RotateOptions, MenuPolicy, MenuPreviewMode, ModalTransition, NestedScrollOptions, OutlineStyle, PixelMapMock, PixelMapMockInternal, PopupStateChangeParam, PreDragStatus, ProgressMask, ProgressMaskInternal, RepeatMode, SafeAreaEdge, SafeAreaType, ScrollResult, ScrollResultInternal, ScrollSizeMode, TextContentControllerBase, TextContentControllerBaseInternal, SelectionOptions, ShadowStyle, ShadowType, SheetKeyboardAvoidMode, SheetMode, SheetSize, SheetType, SizeResult, SourceType, CaretOffset, TextContentControllerOptions, ThemeColorMode, TouchTestInfo, TouchTestStrategy, TransitionEdge, TransitionEffect, TransitionEffectInternal, AsymmetricTransitionOption, AnimateParam, TransitionHierarchyStrategy, UICommonEvent, UICommonEventInternal, ClickEvent, ClickEventInternal, TouchEvent, TouchEventInternal, KeyEvent, KeyEventInternal, HoverEvent, HoverEventInternal, MouseEvent, MouseEventInternal, VisibleAreaEventOptions, SheetOptions, TouchResult, AxisEvent, AxisEventInternal, CrownEvent, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, DragEventInternal, FocusAxisEvent, FocusAxisEventInternal, ItemDragInfo, GeometryInfo, Measurable, MeasurableInternal, SheetDismiss, SpringBackAction, DragItemInfo, AlignRuleOption, BackgroundBrightnessOptions, BackgroundImageOptions, BackgroundOptions, BlurOptions, ChildrenMainSize, ChildrenMainSizeInternal, ClickEffect, DateRange, Rectangle, DragInteractionOptions, DrawModifier, DrawModifierInternal, DropOptions, EdgeEffectOptions, ExpectedFrameRateRange, FocusMovement, ForegroundEffectOptions, GeometryTransitionOptions, InputCounterOptions, InvertOptions, LinearGradient_common, LinearGradientBlurOptions, FractionStop, LinearGradientOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, MeasureResult, MotionBlurAnchor, MotionBlurOptions, MotionPathOptions, OverlayOffset, PixelRoundPolicy, PopupButton, PreviewConfiguration, StateStyles, SystemAdaptiveOptions, ShadowOptions, TouchObject, BackgroundBlurStyleOptions, BlurStyleOptions, BackgroundEffectOptions, ContentCoverOptions, BindOptions, ContextMenuAnimationOptions, AnimationNumberRange, MultiShadowOptions, DragPreviewOptions, FadingEdgeOptions, ForegroundBlurStyleOptions, HistoricalPoint, LightSource, LocalizedAlignRuleOptions, MenuElement, OverlayOptions, PopupMaskType, ReuseOptions, sharedTransitionOptions, SheetTitleOptions, TextDecorationOptions, DividerStyle, PixelStretchEffectOptions, PointLightStyle, RadialGradientOptions, SweepGradientOptions, TipsOptions, BorderImageOption, ContextMenuOptions, BorderRadiusType, CustomPopupOptions, EventTarget, BaseEvent, BaseEventInternal, MenuOptions, PickerDialogButtonStyle, PickerTextStyle, PopupMessageOptions, PopupOptions } from "./../common" +import { ButtonTriggerClickCallback, ButtonRole, ButtonStyleMode, ButtonType, ControlSize, ButtonConfiguration, ButtonOptions, ButtonLabelStyle } from "./../button" import { Callback_Extender_OnFinish, Callback_Extender_OnProgress, DoubleAnimationParam } from "./../animation_extender" import { Callback_onMeasureSize_SizeResult, Callback_onPlaceChildren_Void } from "./../static_components" import { Callback_RangeUpdate, Callback_StateStylesChange, RestrictedWorker_onerror_Callback, RestrictedWorker_onexit_Callback, RestrictedWorker_onmessage_Callback, Scene, SceneInternal, WorkerEventListener, Event, ErrorEvent, MessageEvents, PostMessageOptions, WorkerOptions, RestrictedWorker, RestrictedWorkerInternal } from "./../arkui-custom" @@ -39,17 +39,17 @@ import { MenuCallback, MenuOnAppearCallback, OnHoverCallback, PasteEventCallback import { NavDestinationTransitionDelegate, NavDestinationActiveReason, NavDestinationMode, NavigationSystemTransitionType, NavDestinationContext, NavDestinationContextInternal, NavDestinationTransition, NestedScrollInfo, RouteMapConfig, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../navDestination" import { NavExtender_OnUpdateStack } from "./../navigation_extender" import { OnAlphabetIndexerPopupSelectCallback, OnAlphabetIndexerRequestPopupDataCallback, OnAlphabetIndexerSelectCallback, IndexerAlign, AlphabetIndexerOptions } from "./../alphabetIndexer" -import { OnCheckboxChangeCallback, CheckboxOptions } from "./../checkbox" +import { OnCheckboxChangeCallback, CheckBoxConfiguration, CheckboxOptions } from "./../checkbox" import { OnCheckboxGroupChangeCallback, SelectStatus, CheckboxGroupResult, CheckboxGroupOptions } from "./../checkboxgroup" import { OnContentScrollCallback, OnPasteCallback, OnSubmitCallback, OnTextSelectionChangeCallback, ContentType, EnterKeyType, InputType, SubmitEvent, SubmitEventInternal, TextInputController, TextInputControllerInternal, TextInputStyle, PasswordIcon, TextInputOptions, UnderlineColor } from "./../textInput" import { OnFoldStatusChangeCallback, OnHoverStatusChangeCallback, OnFoldStatusChangeInfo, HoverEventParam, FolderStackOptions } from "./../folderStack" import { OnLinearIndicatorChangeCallback, LinearIndicatorController, LinearIndicatorControllerInternal, LinearIndicatorStartOptions, LinearIndicatorStyle } from "./../linearindicator" import { OnNativeLoadCallback, SurfaceRect, SurfaceRotationOptions, XComponentController, XComponentControllerInternal, NativeXComponentParameters, XComponentOptions, XComponentParameter } from "./../xcomponent" -import { OnRadioChangeCallback, RadioIndicatorType, RadioOptions, RadioStyle } from "./../radio" -import { OnRatingChangeCallback, RatingOptions, StarStyleOptions } from "./../rating" +import { OnRadioChangeCallback, RadioIndicatorType, RadioConfiguration, RadioOptions, RadioStyle } from "./../radio" +import { OnRatingChangeCallback, RatingConfiguration, RatingOptions, StarStyleOptions } from "./../rating" import { OnScrollEdgeCallback, OnScrollFrameBeginCallback, ScrollOnScrollCallback, ScrollOnWillScrollCallback, Scroller, ScrollerInternal, ScrollAlign, OffsetResult, OnScrollFrameBeginHandlerResult, ScrollDirection, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions } from "./../scroll" import { OnScrollVisibleContentChangeCallback, ChainEdgeEffect, ListItemAlign, ListItemGroupArea, ListScroller, ListScrollerInternal, CloseSwipeActionOptions, VisibleListContentInfo, ScrollSnapAlign, ScrollState, StickyStyle, ListOptions, ChainAnimationOptions, ListDividerOptions } from "./../list" -import { OnSelectCallback, ArrowPosition, AvoidanceMode, MenuAlignType, SelectOption, MenuOutlineOptions } from "./../select" +import { OnSelectCallback, ArrowPosition, AvoidanceMode, MenuAlignType, MenuItemConfiguration, SelectOption, MenuOutlineOptions } from "./../select" import { OnTabsAnimationEndCallback, OnTabsAnimationStartCallback, OnTabsContentWillChangeCallback, OnTabsGestureSwipeCallback, TabsCustomContentTransitionCallback, AnimationMode, BarMode, BarPosition, LayoutStyle, TabContentTransitionProxy, TabContentTransitionProxyInternal, TabsAnimationEvent, TabsCacheMode, TabsController, TabsControllerInternal, TabContentAnimatedTransition, TabsOptions, BarGridColumnOptions, ScrollableBarModeOptions } from "./../tabs" import { OnTextPickerChangeCallback, TextPickerEnterSelectedAreaCallback, TextPickerScrollStopCallback, TextPickerDialog, TextPickerDialogInternal, TextPickerDialogOptions, TextPickerResult, TextCascadePickerRangeContent, TextPickerOptions, TextPickerRangeContent, DividerOptions, TextPickerTextStyle } from "./../textPicker" import { OnTimePickerChangeCallback, TimePickerDialog, TimePickerDialogInternal, TimePickerFormat, TimePickerResult, TimePickerOptions } from "./../timePicker" @@ -59,7 +59,7 @@ import { PasteButtonCallback, PasteButtonOnClickResult, PasteDescription, PasteI import { PluginErrorCallback, PluginErrorData, PluginComponentTemplate, PluginComponentOptions } from "./../pluginComponent" import { SaveButtonCallback, SaveButtonOnClickResult, SaveDescription, SaveIconStyle, SaveButtonOptions } from "./../saveButton" import { SearchSubmitCallback, CancelButtonStyle, SearchController, SearchControllerInternal, SearchType, CancelButtonSymbolOptions, SearchOptions, IconOptions, SearchButtonOptions, CancelButtonOptions } from "./../search" -import { SliderTriggerChangeCallback, SliderBlockType, SliderChangeMode, SliderInteraction, SliderStyle, SlideRange, SliderOptions, SliderBlockStyle } from "./../slider" +import { SliderTriggerChangeCallback, SliderBlockType, SliderChangeMode, SliderInteraction, SliderStyle, SliderConfiguration, SlideRange, SliderOptions, SliderBlockStyle } from "./../slider" import { StyledStringMarshallCallback, StyledStringUnmarshallCallback, GestureStyle, GestureStyleInternal, GestureStyleInterface, StyledString, StyledStringInternal, ImageAttachment, ImageAttachmentInternal, CustomSpan, CustomSpanInternal, StyleOptions, StyledStringKey, SpanStyle, UserDataSpan, UserDataSpanInternal, MutableStyledString, MutableStyledStringInternal, UrlStyle, UrlStyleInternal, CustomSpanMeasureInfo, CustomSpanMetrics, CustomSpanDrawInfo, BaselineOffsetStyle, BaselineOffsetStyleInternal, LetterSpacingStyle, LetterSpacingStyleInternal, LineHeightStyle, LineHeightStyleInternal, TextShadowStyle, TextShadowStyleInternal, DecorationStyle, DecorationStyleInternal, DecorationStyleInterface, TextStyle, TextStyleInternal, TextStyleInterface, ImageAttachmentLayoutStyle, ParagraphStyle, ParagraphStyleInternal, ParagraphStyleInterface, BackgroundColorStyle, BackgroundColorStyleInternal, ColorFilterType, ImageAttachmentInterface, AttachmentType, ResourceImageAttachmentOptions, StyledStringValue } from "./../styledString" import { TextAreaSubmitCallback, TextAreaController, TextAreaControllerInternal, TextAreaType, TextAreaOptions } from "./../textArea" import { VoidCallback, Length, SizeOptions, Position, ResourceColor, ColorFilter, ColorFilterInternal, ResourceStr, Area, ConstraintSizeOptions, AccessibilityOptions, Bias, ChainWeightOptions, DirectionalEdgesT, EdgeOutlineStyles, EdgeStyles, VP, DividerStyleOptions, EdgeColors, LengthConstrain, Dimension, LocalizedBorderRadiuses, LocalizedEdgeColors, LocalizedEdges, LocalizedEdgeWidths, LocalizedPadding, LocalizedPosition, Offset, BorderRadiuses, EdgeOutlineWidths, Edges, EdgeWidths, Font, PX, LPX, MarkStyle, OutlineRadiuses, Padding, BorderOptions, OutlineOptions } from "./../units" @@ -82,7 +82,7 @@ import { Context, ContextInternal } from "./../application.Context" import { CustomBuild, CustomBuildInternal } from "./../customComponent" import { CustomDialogController, CustomDialogControllerInternal, CustomDialogControllerOptions } from "./../customDialogController" import { DataOperationType } from "./../lazyForEach" -import { DataPanelType, LinearGradient, LinearGradientInternal, ColorStop, DataPanelOptions, DataPanelShadowOptions } from "./../dataPanel" +import { DataPanelType, LinearGradient, LinearGradientInternal, ColorStop, DataPanelConfiguration, DataPanelOptions, DataPanelShadowOptions } from "./../dataPanel" import { DatePickerDialog, DatePickerDialogInternal, DatePickerMode, DatePickerOptions } from "./../datePicker" import { DialogAlignment, DialogButtonDirection, DismissDialogAction } from "./../alertDialog" import { DistributionType, DisturbanceFieldShape, ParticleEmitterShape, ParticleType, ParticleUpdater } from "./../particle" @@ -111,7 +111,7 @@ import { ItemState } from "./../stepperItem" import { LayoutMode, SelectedMode, TabBarSymbol, TabBarSymbolInternal, TabBarIconStyle, TabBarOptions, BoardStyle, SubTabBarIndicatorStyle, TabBarLabelStyle, BottomTabBarStyle, SubTabBarStyle } from "./../tabContent" import { ListItemGroupStyle, ListItemGroupOptions } from "./../listItemGroup" import { ListItemStyle, SwipeActionState, SwipeEdgeEffect, ListItemOptions, SwipeActionItem, SwipeActionOptions } from "./../listItem" -import { LoadingProgressStyle } from "./../loadingProgress" +import { LoadingProgressConfiguration, LoadingProgressStyle } from "./../loadingProgress" import { MarqueeStartPolicy, MarqueeState, TextController, TextControllerInternal, TextOptions, TextOverflowOptions, TextResponseType, TextSpanType, TextMarqueeOptions } from "./../text" import { matrix4 } from "./../ohos.matrix4" import { NavigationType } from "./../arkui.component.navigator.extra" @@ -121,7 +121,7 @@ import { NodeController } from "./../arkui.NodeController" import { Offset_componentutils, RotateResult, ScaleResult, TranslateResult, ComponentInfo } from "./../arkui-componentutils" import { PatternLockChallengeResult, PatternLockController, PatternLockControllerInternal, CircleStyleOptions } from "./../patternLock" import { pointer } from "./../ohos.multimodalInput.pointer" -import { ProgressStatus, ProgressStyle, ProgressType, ProgressOptions, LinearStyleOptions, ScanEffectOptions, CommonProgressStyleOptions, ProgressStyleOptions, RingStyleOptions, CapsuleStyleOptions } from "./../progress" +import { ProgressConfiguration, ProgressStatus, ProgressStyle, ProgressType, ProgressOptions, LinearStyleOptions, ScanEffectOptions, CommonProgressStyleOptions, ProgressStyleOptions, RingStyleOptions, CapsuleStyleOptions } from "./../progress" import { RefreshStatus, RefreshOptions } from "./../refresh" import { RootSceneSession } from "./../rootScene" import { RowOptionsV2, RowOptions } from "./../row" @@ -132,11 +132,11 @@ import { SideBarContainerType, SideBarPosition, ButtonIconOptions, ButtonStyle } import { SubMenuExpandingMode } from "./../menu" import { SymbolGlyphModifier } from "./../arkui.SymbolGlyphModifier" import { text } from "./../ohos.graphics.text" -import { TextClockController, TextClockControllerInternal, TextClockOptions } from "./../textClock" +import { TextClockConfiguration, TextClockController, TextClockControllerInternal, TextClockOptions } from "./../textClock" import { TextModifier } from "./../arkui.TextModifier" -import { TextTimerController, TextTimerControllerInternal, TextTimerOptions } from "./../textTimer" +import { TextTimerConfiguration, TextTimerController, TextTimerControllerInternal, TextTimerOptions } from "./../textTimer" import { ThemeControl, ThemeControlInternal, CustomTheme, Colors } from "./../ohos.arkui.theme" -import { ToggleType, ToggleOptions, SwitchStyle } from "./../toggle" +import { ToggleType, ToggleConfiguration, ToggleOptions, SwitchStyle } from "./../toggle" import { uiEffect } from "./../ohos.graphics.uiEffect" import { unifiedDataChannel } from "./../ohos.data.unifiedDataChannel" import { uniformTypeDescriptor } from "./../ohos.data.uniformTypeDescriptor" @@ -144,13 +144,13 @@ import { WebCookie, WebCookieInternal } from "./../arkui.component.web.extra" import { window } from "./../ohos.window" import { InteropComponent } from "./../interop" import { TerminationInfo } from "./../embeddedComponent" +import { GaugeConfiguration, GaugeOptions, GaugeShadowOptions, GaugeIndicatorOptions } from "./../gauge" import { ASTCResource } from "./../mediaCachedImage" import { BorderRadiuses_graphics, RenderNode, RenderNodeInternal } from "./../arkui.RenderNode" import { CircleOptions } from "./../circle" import { ColumnOptions, ColumnOptionsV2 } from "./../column" import { EllipseOptions } from "./../ellipse" import { FormLinkOptions } from "./../formLink" -import { GaugeOptions, GaugeShadowOptions, GaugeIndicatorOptions } from "./../gauge" import { GridColColumnOption, GridColOptions } from "./../gridCol" import { intl } from "./../ohos.intl" import { LineOptions } from "./../line" @@ -170,6 +170,7 @@ import { MenuItemOptions } from "./../menuItem" import { ColumnSplitDividerStyle } from "./../columnSplit" import { LayoutChild, LayoutChildInternal } from "./../arkui.component.common.extra" import { TextBackgroundStyle } from "./../span" +import { ContentModifier } from "./../../handwritten" export class Serializer extends SerializerBase { private static pool?: Array | undefined = undefined private static poolTop: int32 = -1 @@ -450,6 +451,15 @@ export class Serializer extends SerializerBase { let valueSerializer : Serializer = this valueSerializer.writePointer(toPeerPtr(value)) } + public writeLoadingProgressConfiguration(value: LoadingProgressConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_enableLoading = value.enableLoading + valueSerializer.writeBoolean(value_enableLoading) + } public writeLongPressGestureInterface(value: LongPressGestureInterface): void { let valueSerializer : Serializer = this valueSerializer.writePointer(toPeerPtr(value)) @@ -563,6 +573,17 @@ export class Serializer extends SerializerBase { const value_duration = value.duration valueSerializer.writeNumber(value_duration) } + public writeProgressConfiguration(value: ProgressConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_value = value.value + valueSerializer.writeNumber(value_value) + const value_total = value.total + valueSerializer.writeNumber(value_total) + } public writeProgressMask(value: ProgressMask): void { let valueSerializer : Serializer = this valueSerializer.writePointer(toPeerPtr(value)) @@ -851,6 +872,19 @@ export class Serializer extends SerializerBase { let valueSerializer : Serializer = this valueSerializer.writePointer(toPeerPtr(value)) } + public writeTextClockConfiguration(value: TextClockConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_timeZoneOffset = value.timeZoneOffset + valueSerializer.writeNumber(value_timeZoneOffset) + const value_started = value.started + valueSerializer.writeBoolean(value_started) + const value_timeValue = value.timeValue + valueSerializer.writeNumber(value_timeValue) + } public writeTextClockController(value: TextClockController): void { let valueSerializer : Serializer = this valueSerializer.writePointer(toPeerPtr(value)) @@ -916,6 +950,21 @@ export class Serializer extends SerializerBase { let valueSerializer : Serializer = this valueSerializer.writePointer(toPeerPtr(value)) } + public writeTextTimerConfiguration(value: TextTimerConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_count = value.count + valueSerializer.writeNumber(value_count) + const value_isCountDown = value.isCountDown + valueSerializer.writeBoolean(value_isCountDown) + const value_started = value.started + valueSerializer.writeBoolean(value_started) + const value_elapsedTime = value.elapsedTime + valueSerializer.writeNumber(value_elapsedTime) + } public writeTextTimerController(value: TextTimerController): void { let valueSerializer : Serializer = this valueSerializer.writePointer(toPeerPtr(value)) @@ -1232,6 +1281,19 @@ export class Serializer extends SerializerBase { const value_code = value.code valueSerializer.writeNumber(value_code) } + public writeButtonConfiguration(value: ButtonConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_label = value.label + valueSerializer.writeString(value_label) + const value_pressed = value.pressed + valueSerializer.writeBoolean(value_pressed) + const value_triggerClick = value.triggerClick + valueSerializer.holdAndWriteCallback(value_triggerClick) + } public writeButtonOptions(value: ButtonOptions): void { let valueSerializer : Serializer = this const value_type = value.type @@ -1344,6 +1406,19 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_vertical_value) } } + public writeCheckBoxConfiguration(value: CheckBoxConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_name = value.name + valueSerializer.writeString(value_name) + const value_selected = value.selected + valueSerializer.writeBoolean(value_selected) + const value_triggerChange = value.triggerChange + valueSerializer.holdAndWriteCallback(value_triggerChange) + } public writeCheckboxGroupOptions(value: CheckboxGroupOptions): void { let valueSerializer : Serializer = this const value_group = value.group @@ -1620,6 +1695,21 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(value_preventDefault_value) } } + public writeDataPanelConfiguration(value: DataPanelConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_values = value.values + valueSerializer.writeInt32(value_values.length as int32) + for (let i = 0; i < value_values.length; i++) { + const value_values_element : number = value_values[i] + valueSerializer.writeNumber(value_values_element) + } + const value_maxValue = value.maxValue + valueSerializer.writeNumber(value_maxValue) + } public writeDataPanelOptions(value: DataPanelOptions): void { let valueSerializer : Serializer = this const value_values = value.values @@ -2372,6 +2462,19 @@ export class Serializer extends SerializerBase { const value_height = value.height valueSerializer.writeNumber(value_height) } + public writeGaugeConfiguration(value: GaugeConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_value = value.value + valueSerializer.writeNumber(value_value) + const value_min = value.min + valueSerializer.writeNumber(value_min) + const value_max = value.max + valueSerializer.writeNumber(value_max) + } public writeGaugeOptions(value: GaugeOptions): void { let valueSerializer : Serializer = this const value_value = value.value @@ -4106,6 +4209,19 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt32(TypeChecker.ProgressType_ToNumeric(value_type_value)) } } + public writeRadioConfiguration(value: RadioConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_value = value.value + valueSerializer.writeString(value_value) + const value_checked = value.checked + valueSerializer.writeBoolean(value_checked) + const value_triggerChange = value.triggerChange + valueSerializer.holdAndWriteCallback(value_triggerChange) + } public writeRadioOptions(value: RadioOptions): void { let valueSerializer : Serializer = this const value_group = value.group @@ -4129,6 +4245,23 @@ export class Serializer extends SerializerBase { valueSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_indicatorBuilder_value)) } } + public writeRatingConfiguration(value: RatingConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_rating = value.rating + valueSerializer.writeNumber(value_rating) + const value_indicator = value.indicator + valueSerializer.writeBoolean(value_indicator) + const value_stars = value.stars + valueSerializer.writeNumber(value_stars) + const value_stepSize = value.stepSize + valueSerializer.writeNumber(value_stepSize) + const value_triggerChange = value.triggerChange + valueSerializer.holdAndWriteCallback(value_triggerChange) + } public writeRatingOptions(value: RatingOptions): void { let valueSerializer : Serializer = this const value_rating = value.rating @@ -4922,6 +5055,23 @@ export class Serializer extends SerializerBase { valueSerializer.writeNumber(value_to_value) } } + public writeSliderConfiguration(value: SliderConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_value = value.value + valueSerializer.writeNumber(value_value) + const value_min = value.min + valueSerializer.writeNumber(value_min) + const value_max = value.max + valueSerializer.writeNumber(value_max) + const value_step = value.step + valueSerializer.writeNumber(value_step) + const value_triggerChange = value.triggerChange + valueSerializer.holdAndWriteCallback(value_triggerChange) + } public writeSliderOptions(value: SliderOptions): void { let valueSerializer : Serializer = this const value_value = value.value @@ -5707,6 +5857,19 @@ export class Serializer extends SerializerBase { valueSerializer.writeInt64((value_end_value.getTime() as int64)) } } + public writeToggleConfiguration(value: ToggleConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_isOn = value.isOn + valueSerializer.writeBoolean(value_isOn) + const value_toggleEnabled = value.toggleEnabled + valueSerializer.writeBoolean(value_toggleEnabled) + const value_triggerChange = value.triggerChange + valueSerializer.holdAndWriteCallback(value_triggerChange) + } public writeToggleOptions(value: ToggleOptions): void { let valueSerializer : Serializer = this const value_type = value.type @@ -9729,6 +9892,57 @@ export class Serializer extends SerializerBase { const value_action = value.action valueSerializer.holdAndWriteCallback(value_action) } + public writeMenuItemConfiguration(value: MenuItemConfiguration): void { + let valueSerializer : Serializer = this + const value_enabled = value.enabled + valueSerializer.writeBoolean(value_enabled) + const value_contentModifier = value.contentModifier + valueSerializer.holdAndWriteObject(value_contentModifier) + const value_value = value.value + let value_value_type : int32 = RuntimeType.UNDEFINED + value_value_type = runtimeType(value_value) + if (RuntimeType.STRING == value_value_type) { + valueSerializer.writeInt8(0) + const value_value_0 = value_value as string + valueSerializer.writeString(value_value_0) + } + else if (RuntimeType.OBJECT == value_value_type) { + valueSerializer.writeInt8(1) + const value_value_1 = value_value as Resource + valueSerializer.writeResource(value_value_1) + } + const value_icon = value.icon + let value_icon_type : int32 = RuntimeType.UNDEFINED + value_icon_type = runtimeType(value_icon) + valueSerializer.writeInt8(value_icon_type) + if ((RuntimeType.UNDEFINED) != (value_icon_type)) { + 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) { + valueSerializer.writeInt8(0) + const value_icon_value_0 = value_icon_value as string + valueSerializer.writeString(value_icon_value_0) + } + else if (RuntimeType.OBJECT == value_icon_value_type) { + valueSerializer.writeInt8(1) + const value_icon_value_1 = value_icon_value as Resource + valueSerializer.writeResource(value_icon_value_1) + } + } + const value_symbolIcon = value.symbolIcon + let value_symbolIcon_type : int32 = RuntimeType.UNDEFINED + value_symbolIcon_type = runtimeType(value_symbolIcon) + valueSerializer.writeInt8(value_symbolIcon_type) + if ((RuntimeType.UNDEFINED) != (value_symbolIcon_type)) { + const value_symbolIcon_value = value_symbolIcon! + valueSerializer.writeSymbolGlyphModifier(value_symbolIcon_value) + } + const value_selected = value.selected + valueSerializer.writeBoolean(value_selected) + const value_index = value.index + valueSerializer.writeNumber(value_index) + } public writeMenuItemGroupOptions(value: MenuItemGroupOptions): void { let valueSerializer : Serializer = this const value_header = value.header diff --git a/arkoala-arkts/arkui/src/ets/generated/progress.ets b/arkoala-arkts/arkui/src/ets/generated/progress.ets index fb351f5f63..dd31bc44ed 100644 --- a/arkoala-arkts/arkui/src/ets/generated/progress.ets +++ b/arkoala-arkts/arkui/src/ets/generated/progress.ets @@ -22,10 +22,10 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, Length, PX, VP, LPX, Font } from "./units" import { LinearGradient } from "./dataPanel" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, hookProgressContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Color } from "./enums" import { Resource } from "./resource" import { CallbackKind } from "./peers/CallbackKind" @@ -356,9 +356,7 @@ export class ArkProgressComponent extends ArkCommonMethodComponent implements UI @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookProgressContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/radio.ets b/arkoala-arkts/arkui/src/ets/generated/radio.ets index 24e7f6bfdc..0ba9685953 100644 --- a/arkoala-arkts/arkui/src/ets/generated/radio.ets +++ b/arkoala-arkts/arkui/src/ets/generated/radio.ets @@ -22,8 +22,8 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ContentModifier, AttributeModifier, hookRadioContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" @@ -217,9 +217,7 @@ export class ArkRadioComponent extends ArkCommonMethodComponent implements UIRad @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookRadioContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/rating.ets b/arkoala-arkts/arkui/src/ets/generated/rating.ets index e570ea753d..3bfcca71b1 100644 --- a/arkoala-arkts/arkui/src/ets/generated/rating.ets +++ b/arkoala-arkts/arkui/src/ets/generated/rating.ets @@ -22,8 +22,8 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ContentModifier, AttributeModifier, hookRatingContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" @@ -247,9 +247,7 @@ export class ArkRatingComponent extends ArkCommonMethodComponent implements UIRa @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookRatingContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/select.ets b/arkoala-arkts/arkui/src/ets/generated/select.ets index 476744683a..4ad0c23857 100644 --- a/arkoala-arkts/arkui/src/ets/generated/select.ets +++ b/arkoala-arkts/arkui/src/ets/generated/select.ets @@ -22,15 +22,15 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, BlurStyle, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, BlurStyle, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { Resource } from "./resource" import { ResourceStr, Font, ResourceColor, Length, Dimension, DividerStyleOptions, Offset, EdgeOutlineWidths, EdgeColors } from "./units" import { OptionWidthMode, Color } from "./enums" import { ControlSize } from "./button" +import { ContentModifier, AttributeModifier, hookSelectContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { DividerOptions } from "./textPicker" import { TextModifier } from "./arkui.TextModifier" import { SymbolGlyphModifier } from "./arkui.SymbolGlyphModifier" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" import { memo, memo_stable } from "@koalaui/runtime/annotations" @@ -1084,9 +1084,7 @@ export class ArkSelectComponent extends ArkCommonMethodComponent implements UISe @memo public menuItemContentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("menuItemContentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.menuItemContentModifierAttribute(value_casted) - return this + hookSelectContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/slider.ets b/arkoala-arkts/arkui/src/ets/generated/slider.ets index a334362c5b..86b3bdafe0 100644 --- a/arkoala-arkts/arkui/src/ets/generated/slider.ets +++ b/arkoala-arkts/arkui/src/ets/generated/slider.ets @@ -22,11 +22,11 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, Length, Dimension, SizeOptions, ResourceStr } from "./units" import { LinearGradient } from "./dataPanel" +import { ContentModifier, AttributeModifier, hookSliderContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { CrownSensitivity, Color, Axis } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Resource } from "./resource" import { CallbackKind } from "./peers/CallbackKind" import { CallbackTransformer } from "./../CallbackTransformer" @@ -951,9 +951,7 @@ export class ArkSliderComponent extends ArkCommonMethodComponent implements UISl @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookSliderContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/textClock.ets b/arkoala-arkts/arkui/src/ets/generated/textClock.ets index a37d0ecc2b..d418fe6cd5 100644 --- a/arkoala-arkts/arkui/src/ets/generated/textClock.ets +++ b/arkoala-arkts/arkui/src/ets/generated/textClock.ets @@ -25,11 +25,11 @@ import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./../CallbackTransformer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ShadowOptions, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, Length, ResourceStr } from "./units" import { FontStyle, FontWeight, Color } from "./enums" +import { ContentModifier, AttributeModifier, hookTextClockContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { intl } from "./ohos.intl" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Resource } from "./resource" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" @@ -531,9 +531,7 @@ export class ArkTextClockComponent extends ArkCommonMethodComponent implements U @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookTextClockContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/textTimer.ets b/arkoala-arkts/arkui/src/ets/generated/textTimer.ets index d29d18c69f..7c785d046e 100644 --- a/arkoala-arkts/arkui/src/ets/generated/textTimer.ets +++ b/arkoala-arkts/arkui/src/ets/generated/textTimer.ets @@ -25,10 +25,10 @@ import { Deserializer } from "./peers/Deserializer" import { CallbackTransformer } from "./../CallbackTransformer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" -import { ArkCommonMethodPeer, CommonMethod, ShadowOptions, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, ShadowOptions, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" import { ResourceColor, Length, ResourceStr } from "./units" import { FontStyle, FontWeight, Color } from "./enums" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" +import { ContentModifier, AttributeModifier, hookTextTimerContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Resource } from "./resource" import { memo, memo_stable } from "@koalaui/runtime/annotations" import { BuilderLambda } from "@koalaui/builderLambda" @@ -488,9 +488,7 @@ export class ArkTextTimerComponent extends ArkCommonMethodComponent implements U @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookTextTimerContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/toggle.ets b/arkoala-arkts/arkui/src/ets/generated/toggle.ets index 0f8e16fea9..5f5fc76495 100644 --- a/arkoala-arkts/arkui/src/ets/generated/toggle.ets +++ b/arkoala-arkts/arkui/src/ets/generated/toggle.ets @@ -22,9 +22,9 @@ import { Serializer } from "./peers/Serializer" import { ComponentBase } from "./../ComponentBase" import { PeerNode } from "./../PeerNode" import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" -import { ArkCommonMethodPeer, CommonMethod, ContentModifier, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ArkCommonMethodPeer, CommonMethod, CommonConfiguration, ArkCommonMethodComponent, ArkCommonMethodStyle, UICommonMethod } from "./common" +import { ContentModifier, AttributeModifier, hookToggleContentModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { ResourceColor } from "./units" -import { AttributeModifier, UICommonBase, AttributeUpdater } from "./../handwritten" import { Color } from "./enums" import { Resource } from "./resource" import { CallbackKind } from "./peers/CallbackKind" @@ -168,7 +168,7 @@ export interface SwitchStyle { } export interface ToggleConfiguration extends CommonConfiguration { isOn: boolean; - enabled: boolean; + toggleEnabled: boolean; triggerChange: ((value0: boolean) => void); } export interface ToggleOptions { @@ -264,9 +264,7 @@ export class ArkToggleComponent extends ArkCommonMethodComponent implements UITo @memo public contentModifier(value: ContentModifier | undefined): this { if (this.checkPriority("contentModifier")) { - const value_casted = value as (ContentModifier | undefined) - this.getPeer()?.contentModifierAttribute(value_casted) - return this + hookToggleContentModifier(this, value) } return this } diff --git a/arkoala-arkts/arkui/src/ets/generated/ts/type_check.ets b/arkoala-arkts/arkui/src/ets/generated/ts/type_check.ets index 7c78bd7e18..22144abdab 100644 --- a/arkoala-arkts/arkui/src/ets/generated/ts/type_check.ets +++ b/arkoala-arkts/arkui/src/ets/generated/ts/type_check.ets @@ -19,9 +19,9 @@ import { KBoolean, KStringPtr, NativeBuffer, MaterializedBase } from "@koalaui/interop" import { int32 } from "@koalaui/common" import { AccessibilityHoverType, Alignment, AnimationStatus, AppRotation, ArrowPointPosition, Axis, AxisAction, AxisModel, BarState, BorderStyle, CheckBoxShape, Color, ClickEffectLevel, ColoringStrategy, CopyOptions, CrownAction, CrownSensitivity, Curve, DialogButtonStyle, Direction, DividerMode, Edge, EdgeEffect, EllipsisMode, EmbeddedType, FillMode, FlexAlign, FlexDirection, FlexWrap, FocusDrawLevel, FoldStatus, FontStyle, FontWeight, FunctionKey, GradientDirection, HeightBreakpoint, HitTestMode, HorizontalAlign, HoverEffect, IlluminatedType, ImageFit, ImageRepeat, ImageSize, ImageSpanAlignment, InteractionHand, ItemAlign, KeySource, KeyType, LineBreakStrategy, LineCapStyle, LineJoinStyle, MarqueeUpdateStrategy, ModifierKey, MouseAction, MouseButton, NestedScrollMode, ObscuredReasons, OptionWidthMode, PageFlipMode, PixelRoundCalcPolicy, PixelRoundMode, Placement, PlayMode, RelateType, RenderFit, ResponseType, ScrollSource, SharedTransitionEffectType, TextAlign, TextCase, TextContentStyle, TextDecorationStyle, TextDecorationType, TextHeightAdaptivePolicy, TextOverflow, TextSelectableMode, TitleHeight, TouchType, TransitionType, VerticalAlign, Visibility, Week, WidthBreakpoint, WordBreak, XComponentType } from "./../enums" -import { AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, ChainStyle, ContentClipMode, ContentModifier, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, GestureModifier, UIGestureEvent, HapticFeedbackMode, HoverModeAreaType, ICurve, KeyboardAvoidMode, Layoutable, LayoutPolicy, LayoutSafeAreaEdge, LayoutSafeAreaType, RectResult, TranslateOptions, ScaleOptions, RotateOptions, MenuPolicy, MenuPreviewMode, ModalTransition, NestedScrollOptions, OutlineStyle, PixelMapMock, PopupStateChangeParam, PreDragStatus, ProgressMask, RepeatMode, SafeAreaEdge, SafeAreaType, ScrollResult, ScrollSizeMode, TextContentControllerBase, SelectionOptions, ShadowStyle, ShadowType, SheetKeyboardAvoidMode, SheetMode, SheetSize, SheetType, SizeResult, SourceType, CaretOffset, TextContentControllerOptions, ThemeColorMode, TouchTestInfo, TouchTestStrategy, TransitionEdge, TransitionEffect, AsymmetricTransitionOption, AnimateParam, TransitionHierarchyStrategy, UICommonEvent, ClickEvent, TouchEvent, KeyEvent, HoverCallback, HoverEvent, MouseEvent, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback, SheetOptions, Measurable, AlignRuleOption, BackgroundBrightnessOptions, BackgroundImageOptions, BackgroundOptions, BlurOptions, ChildrenMainSize, ClickEffect, CrownEvent, DateRange, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, ModifierKeyStateGetter, Rectangle, DragInteractionOptions, DragItemInfo, DrawModifier, DropOptions, EdgeEffectOptions, ExpectedFrameRateRange, FocusMovement, ForegroundEffectOptions, GeometryTransitionOptions, InputCounterOptions, InvertOptions, ItemDragInfo, LinearGradient_common, FractionStop, LinearGradientBlurOptions, LinearGradientOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, MeasureResult, MotionBlurAnchor, MotionBlurOptions, MotionPathOptions, OverlayOffset, PixelRoundPolicy, PopupButton, PreviewConfiguration, SheetDismiss, SpringBackAction, StateStyles, CustomStyles, SystemAdaptiveOptions, ShadowOptions, TouchObject, TouchResult, BackgroundBlurStyleOptions, BlurStyleOptions, BackgroundEffectOptions, ContentCoverOptions, BindOptions, ContextMenuAnimationOptions, AnimationNumberRange, MultiShadowOptions, DragPreviewOptions, FadingEdgeOptions, ForegroundBlurStyleOptions, HistoricalPoint, LightSource, LocalizedAlignRuleOptions, MenuElement, OverlayOptions, PopupMaskType, ReuseOptions, ReuseIdCallback, sharedTransitionOptions, SheetTitleOptions, TextDecorationOptions, DividerStyle, PixelStretchEffectOptions, PointLightStyle, RadialGradientOptions, SweepGradientOptions, TipsOptions, BorderImageOption, ContextMenuOptions, BorderRadiusType, CustomPopupOptions, PopupStateChangeCallback, EventTarget, FocusAxisEvent, BaseEvent, GeometryInfo, MenuOptions, PickerDialogButtonStyle, PickerTextStyle, PopupMessageOptions, AccessibilityHoverEvent, AxisEvent, PopupOptions } from "./../common" +import { AccessibilityRoleType, AccessibilitySamePageMode, AdaptiveColor, BlendApplyType, BlendMode, BlurStyle, BlurStyleActivePolicy, ChainStyle, ContentClipMode, DismissReason, DragBehavior, DraggingSizeChangeEffect, DragPreviewMode, DragResult, EffectEdge, EffectType, FinishCallbackType, SourceTool, GestureModifier, UIGestureEvent, HapticFeedbackMode, HoverModeAreaType, ICurve, KeyboardAvoidMode, Layoutable, LayoutPolicy, LayoutSafeAreaEdge, LayoutSafeAreaType, RectResult, CommonConfiguration, TranslateOptions, ScaleOptions, RotateOptions, MenuPolicy, MenuPreviewMode, ModalTransition, NestedScrollOptions, OutlineStyle, PixelMapMock, PopupStateChangeParam, PreDragStatus, ProgressMask, RepeatMode, SafeAreaEdge, SafeAreaType, ScrollResult, ScrollSizeMode, TextContentControllerBase, SelectionOptions, ShadowStyle, ShadowType, SheetKeyboardAvoidMode, SheetMode, SheetSize, SheetType, SizeResult, SourceType, CaretOffset, TextContentControllerOptions, ThemeColorMode, TouchTestInfo, TouchTestStrategy, TransitionEdge, TransitionEffect, AsymmetricTransitionOption, AnimateParam, TransitionHierarchyStrategy, UICommonEvent, ClickEvent, TouchEvent, KeyEvent, HoverCallback, HoverEvent, MouseEvent, SizeChangeCallback, VisibleAreaEventOptions, VisibleAreaChangeCallback, SheetOptions, Measurable, AlignRuleOption, BackgroundBrightnessOptions, BackgroundImageOptions, BackgroundOptions, BlurOptions, ChildrenMainSize, ClickEffect, CrownEvent, DateRange, DismissContentCoverAction, DismissPopupAction, DismissSheetAction, DragEvent, ModifierKeyStateGetter, Rectangle, DragInteractionOptions, DragItemInfo, DrawModifier, DropOptions, EdgeEffectOptions, ExpectedFrameRateRange, FocusMovement, ForegroundEffectOptions, GeometryTransitionOptions, InputCounterOptions, InvertOptions, ItemDragInfo, LinearGradient_common, FractionStop, LinearGradientBlurOptions, LinearGradientOptions, LocalizedHorizontalAlignParam, LocalizedVerticalAlignParam, MeasureResult, MotionBlurAnchor, MotionBlurOptions, MotionPathOptions, OverlayOffset, PixelRoundPolicy, PopupButton, PreviewConfiguration, SheetDismiss, SpringBackAction, StateStyles, CustomStyles, SystemAdaptiveOptions, ShadowOptions, TouchObject, TouchResult, BackgroundBlurStyleOptions, BlurStyleOptions, BackgroundEffectOptions, ContentCoverOptions, BindOptions, ContextMenuAnimationOptions, AnimationNumberRange, MultiShadowOptions, DragPreviewOptions, FadingEdgeOptions, ForegroundBlurStyleOptions, HistoricalPoint, LightSource, LocalizedAlignRuleOptions, MenuElement, OverlayOptions, PopupMaskType, ReuseOptions, ReuseIdCallback, sharedTransitionOptions, SheetTitleOptions, TextDecorationOptions, DividerStyle, PixelStretchEffectOptions, PointLightStyle, RadialGradientOptions, SweepGradientOptions, TipsOptions, BorderImageOption, ContextMenuOptions, BorderRadiusType, CustomPopupOptions, PopupStateChangeCallback, EventTarget, FocusAxisEvent, BaseEvent, GeometryInfo, MenuOptions, PickerDialogButtonStyle, PickerTextStyle, PopupMessageOptions, AccessibilityHoverEvent, AxisEvent, PopupOptions } from "./../common" import { AnimationMode, BarMode, BarPosition, LayoutStyle, TabContentTransitionProxy, TabsAnimationEvent, TabsCacheMode, TabsController, TabContentAnimatedTransition, TabsOptions, BarGridColumnOptions, ScrollableBarModeOptions } from "./../tabs" -import { ArrowPosition, AvoidanceMode, MenuAlignType, SelectOption, MenuOutlineOptions } from "./../select" +import { ArrowPosition, AvoidanceMode, MenuAlignType, MenuItemConfiguration, SelectOption, MenuOutlineOptions } from "./../select" import { AutoCapitalizationMode, KeyboardAppearance, LayoutManager, PositionWithAffinity, MenuType, StyledStringController, TextBaseController, TextRange, TextDataDetectorType, TextDeleteDirection, TextMenuItemId, TextMenuShowMode, TextMenuItem, DeleteValue, EditMenuOptions, FontSettingOptions, InsertValue, PreviewText, TextEditControllerEx, StyledStringChangedListener, StyledStringChangeValue, OnDidChangeCallback, DecorationStyleResult, TextChangeOptions, CaretStyle, EditableTextChangeValue, TextDataDetectorConfig } from "./../textCommon" import { BadgePosition, BadgeStyle, BadgeParamWithNumber, BadgeParam, BadgeParamWithString } from "./../badge" import { BarrierDirection, LocalizedBarrierDirection, BarrierStyle, LocalizedBarrierStyle, GuideLinePosition, GuideLineStyle } from "./../relativeContainer" @@ -31,7 +31,7 @@ import { BaseShape, CommonShape, PerfMonitorActionType, PerfMonitorSourceType, F import { Length, SizeOptions, Position, ResourceColor, ColorFilter, ResourceStr, VoidCallback, AccessibilityOptions, Bias, ChainWeightOptions, DirectionalEdgesT, EdgeOutlineStyles, EdgeStyles, ConstraintSizeOptions, VP, DividerStyleOptions, EdgeColors, LengthConstrain, Dimension, LocalizedBorderRadiuses, LocalizedEdgeColors, LocalizedEdges, LocalizedEdgeWidths, LocalizedPadding, LocalizedPosition, Offset, BorderRadiuses, EdgeOutlineWidths, Edges, EdgeWidths, Font, PX, LPX, MarkStyle, OutlineRadiuses, Padding, Area, BorderOptions, OutlineOptions } from "./../units" import { Resource } from "./../resource" import { BreakpointsReference, GridRowDirection, BreakPoints, GridRowColumnOption, GridRowSizeOption, GutterOption, GridRowOptions } from "./../gridRow" -import { ButtonRole, ButtonStyleMode, ButtonType, ControlSize, ButtonOptions, ButtonLabelStyle } from "./../button" +import { ButtonRole, ButtonStyleMode, ButtonType, ControlSize, ButtonConfiguration, ButtonTriggerClickCallback, ButtonOptions, ButtonLabelStyle } from "./../button" import { CalendarAlign, CalendarPickerDialog, CalendarDialogOptions, CalendarOptions } from "./../calendarPicker" import { CalendarController, CalendarSelectedDate, CalendarRequestedData, CalendarDay } from "./../calendar" import { CancelButtonStyle, SearchController, SearchType, CancelButtonSymbolOptions, SearchOptions, IconOptions, SearchButtonOptions, CancelButtonOptions } from "./../search" @@ -43,12 +43,13 @@ import { ColorContent, DynamicRangeMode, ImageContent, ImageInterpolation, Image import { ColorMetrics, CornerRadius, DrawContext, Size, LengthMetricsUnit, LengthUnit, ShapeClip, RoundRect, Circle, CommandPath, ShapeMask, Vector2, Vector3, LengthMetrics, Frame } from "./../arkui.Graphics" import { ColorMode, LayoutDirection } from "./../stateManagement" import { ComponentContent } from "./../arkui.ComponentContent" +import { ContentModifier } from "./../../handwritten" import { ContentType, EnterKeyType, InputType, SubmitEvent, TextInputController, TextInputStyle, PasswordIcon, TextInputOptions, UnderlineColor } from "./../textInput" import { Context } from "./../application.Context" import { CustomBuild } from "./../customComponent" import { CustomDialogController, CustomDialogControllerOptions } from "./../customDialogController" import { DataOperationType } from "./../lazyForEach" -import { DataPanelType, ColorStop, LinearGradient, DataPanelOptions, DataPanelShadowOptions } from "./../dataPanel" +import { DataPanelType, ColorStop, LinearGradient, DataPanelConfiguration, DataPanelOptions, DataPanelShadowOptions } from "./../dataPanel" import { DatePickerDialog, DatePickerMode, DatePickerOptions } from "./../datePicker" import { DialogAlignment, DialogButtonDirection, DismissDialogAction, AlertDialogButtonOptions } from "./../alertDialog" import { DistributionType, DisturbanceFieldShape, ParticleEmitterShape, ParticleType, ParticleUpdater, ParticlePropertyAnimation } from "./../particle" @@ -81,7 +82,7 @@ import { LinearIndicatorController, LinearIndicatorStartOptions, LinearIndicator import { ListItemGroupStyle, ListItemGroupOptions } from "./../listItemGroup" import { ListItemStyle, SwipeActionState, SwipeEdgeEffect, ListItemOptions, SwipeActionItem, SwipeActionOptions } from "./../listItem" import { Scroller, ScrollAlign, OffsetResult, OnScrollFrameBeginHandlerResult, ScrollDirection, ScrollOptions, ScrollEdgeOptions, ScrollPageOptions, ScrollToIndexOptions, ScrollAnimationOptions, OffsetOptions, ScrollSnapOptions } from "./../scroll" -import { LoadingProgressStyle } from "./../loadingProgress" +import { LoadingProgressConfiguration, LoadingProgressStyle } from "./../loadingProgress" import { MarqueeStartPolicy, MarqueeState, TextController, TextOptions, TextOverflowOptions, TextResponseType, TextSpanType, TextMarqueeOptions } from "./../text" import { matrix4 } from "./../ohos.matrix4" import { NavDestinationActiveReason, NavDestinationMode, NavigationSystemTransitionType, NavDestinationTransition, NavDestinationContext, NestedScrollInfo, RouteMapConfig, NavDestinationCommonTitle, NavDestinationCustomTitle } from "./../navDestination" @@ -94,8 +95,8 @@ import { OnFoldStatusChangeInfo, FolderStackOptions, HoverEventParam } from "./. import { PasteButtonOnClickResult, PasteDescription, PasteIconStyle, PasteButtonOptions } from "./../pasteButton" import { PatternLockChallengeResult, PatternLockController, CircleStyleOptions } from "./../patternLock" import { pointer } from "./../ohos.multimodalInput.pointer" -import { ProgressStatus, ProgressStyle, ProgressType, ProgressOptions, LinearStyleOptions, ScanEffectOptions, CommonProgressStyleOptions, ProgressStyleOptions, RingStyleOptions, CapsuleStyleOptions } from "./../progress" -import { RadioIndicatorType, RadioOptions, RadioStyle } from "./../radio" +import { ProgressConfiguration, ProgressStatus, ProgressStyle, ProgressType, ProgressOptions, LinearStyleOptions, ScanEffectOptions, CommonProgressStyleOptions, ProgressStyleOptions, RingStyleOptions, CapsuleStyleOptions } from "./../progress" +import { RadioIndicatorType, RadioConfiguration, RadioOptions, RadioStyle } from "./../radio" import { RefreshStatus, RefreshOptions } from "./../refresh" import { RichEditorDeleteDirection, RichEditorResponseType, RichEditorSpanType, CopyEvent, CutEvent, KeyboardOptions, PasteEvent, PreviewMenuOptions, RichEditorBaseController, RichEditorTextStyle, RichEditorBuilderSpanOptions, RichEditorParagraphResult, RichEditorSpan, RichEditorController, RichEditorTextSpanOptions, RichEditorImageSpanOptions, RichEditorSymbolSpanOptions, RichEditorUpdateTextSpanStyleOptions, RichEditorUpdateImageSpanStyleOptions, RichEditorUpdateSymbolSpanStyleOptions, RichEditorParagraphStyleOptions, RichEditorRange, RichEditorImageSpanResult, RichEditorTextSpanResult, RichEditorSelection, RichEditorDeleteValue, RichEditorGesture, RichEditorInsertValue, RichEditorOptions, RichEditorSpanPosition, RichEditorStyledStringController, RichEditorStyledStringOptions, RichEditorChangeValue, RichEditorSymbolSpanStyle, RichEditorSpanStyleOptions, RichEditorUrlStyle, SelectionMenuOptions, MenuOnAppearCallback, MenuCallback, LeadingMarginPlaceholder, PlaceholderStyle, RichEditorLayoutStyle, RichEditorParagraphStyle, RichEditorImageSpanStyle, RichEditorImageSpanStyleResult, RichEditorTextStyleResult, OnHoverCallback } from "./../richEditor" import { RootSceneSession } from "./../rootScene" @@ -108,19 +109,19 @@ import { ScrollBarDirection, ScrollBarOptions } from "./../scrollBar" import { SecurityComponentLayoutDirection } from "./../securityComponent" import { SelectStatus, CheckboxGroupOptions, CheckboxGroupResult } from "./../checkboxgroup" import { SideBarContainerType, SideBarPosition, ButtonIconOptions, ButtonStyle } from "./../sidebar" -import { SliderBlockType, SliderChangeMode, SliderInteraction, SliderStyle, SlideRange, SliderOptions, SliderBlockStyle } from "./../slider" +import { SliderBlockType, SliderChangeMode, SliderInteraction, SliderStyle, SlideRange, SliderConfiguration, SliderTriggerChangeCallback, SliderOptions, SliderBlockStyle } from "./../slider" import { SubMenuExpandingMode } from "./../menu" import { SwiperAnimationEvent, SwiperAnimationMode, SwiperContentTransitionProxy, SwiperContentWillScrollResult, SwiperController, SwiperDisplayMode, SwiperNestedScrollMode, AutoPlayOptions, SwiperAutoFill, SwiperContentAnimatedTransition, ArrowStyle, DotIndicator, Indicator, DigitIndicator } from "./../swiper" import { SymbolGlyphModifier } from "./../arkui.SymbolGlyphModifier" import { text } from "./../ohos.graphics.text" import { TextAreaController, TextAreaType, TextAreaOptions } from "./../textArea" -import { TextClockController, TextClockOptions } from "./../textClock" +import { TextClockConfiguration, TextClockController, TextClockOptions } from "./../textClock" import { TextModifier } from "./../arkui.TextModifier" import { TextPickerDialog, TextPickerDialogOptions, TextCascadePickerRangeContent, TextPickerRangeContent, TextPickerOptions, TextPickerResult, DividerOptions, TextPickerTextStyle } from "./../textPicker" -import { TextTimerController, TextTimerOptions } from "./../textTimer" +import { TextTimerConfiguration, TextTimerController, TextTimerOptions } from "./../textTimer" import { ThemeControl, CustomTheme, Colors } from "./../ohos.arkui.theme" import { TimePickerDialog, TimePickerFormat, TimePickerResult, TimePickerOptions } from "./../timePicker" -import { ToggleType, ToggleOptions, SwitchStyle } from "./../toggle" +import { ToggleType, ToggleConfiguration, ToggleOptions, SwitchStyle } from "./../toggle" import { common, Context_getGroupDir_Callback } from "./../ohos.app.ability.common" import { uiEffect } from "./../ohos.graphics.uiEffect" import { unifiedDataChannel } from "./../ohos.data.unifiedDataChannel" @@ -131,14 +132,14 @@ import { window } from "./../ohos.window" import { ASTCResource } from "./../mediaCachedImage" import { BorderRadiuses_graphics, RenderNode } from "./../arkui.RenderNode" import { BusinessError } from "./../ohos.base" -import { CheckboxOptions } from "./../checkbox" +import { CheckBoxConfiguration, CheckboxOptions } from "./../checkbox" import { CustomBuilder } from "./../builder" import { CircleOptions } from "./../circle" import { ColumnOptions, ColumnOptionsV2 } from "./../column" import { DoubleAnimationParam, Callback_Extender_OnProgress, Callback_Extender_OnFinish } from "./../animation_extender" import { EllipseOptions } from "./../ellipse" import { FormLinkOptions } from "./../formLink" -import { GaugeOptions, GaugeShadowOptions, GaugeIndicatorOptions } from "./../gauge" +import { GaugeConfiguration, GaugeOptions, GaugeShadowOptions, GaugeIndicatorOptions } from "./../gauge" import { GridColColumnOption, GridColOptions } from "./../gridCol" import { ImageLoadResult } from "./../imageSpan" import { InteropComponent } from "./../interop" @@ -149,7 +150,7 @@ import { PathOptions } from "./../path" import { PluginComponentTemplate, PluginErrorData, PluginComponentOptions } from "./../pluginComponent" import { PolygonOptions } from "./../polygon" import { PolylineOptions } from "./../polyline" -import { RatingOptions, StarStyleOptions } from "./../rating" +import { RatingConfiguration, RatingOptions, StarStyleOptions } from "./../rating" import { RoundedRectOptions, RadiusItem, RectOptions } from "./../rect" import { StackOptions } from "./../stack" import { StepperOptionalIndex } from "./../stepper" @@ -1630,6 +1631,20 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof BusinessError") } } + static isButtonConfiguration(value: Object | string | number | undefined | boolean, duplicated_label: boolean, duplicated_pressed: boolean, duplicated_triggerClick: boolean): boolean { + if ((!duplicated_label) && (value?.hasOwnProperty("label"))) { + return true + } + else if ((!duplicated_pressed) && (value?.hasOwnProperty("pressed"))) { + return true + } + else if ((!duplicated_triggerClick) && (value?.hasOwnProperty("triggerClick"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ButtonConfiguration") + } + } static isButtonIconOptions(value: Object | string | number | undefined | boolean, duplicated_shown: boolean, duplicated_hidden: boolean, duplicated_switching: boolean): boolean { if ((!duplicated_shown) && (value?.hasOwnProperty("shown"))) { return true @@ -2119,6 +2134,20 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof ChainWeightOptions") } } + static isCheckBoxConfiguration(value: Object | string | number | undefined | boolean, duplicated_name: boolean, duplicated_selected: boolean, duplicated_triggerChange: boolean): boolean { + if ((!duplicated_name) && (value?.hasOwnProperty("name"))) { + return true + } + else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { + return true + } + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof CheckBoxConfiguration") + } + } static isCheckboxGroupOptions(value: Object | string | number | undefined | boolean, duplicated_group: boolean): boolean { if ((!duplicated_group) && (value?.hasOwnProperty("group"))) { return true @@ -3344,6 +3373,17 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof DataOperationType") } } + static isDataPanelConfiguration(value: Object | string | number | undefined | boolean, duplicated_values: boolean, duplicated_maxValue: boolean): boolean { + if ((!duplicated_values) && (value?.hasOwnProperty("values"))) { + return true + } + else if ((!duplicated_maxValue) && (value?.hasOwnProperty("maxValue"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof DataPanelConfiguration") + } + } static isDataPanelOptions(value: Object | string | number | undefined | boolean, duplicated_values: boolean, duplicated_max: boolean, duplicated_type: boolean): boolean { if ((!duplicated_values) && (value?.hasOwnProperty("values"))) { return true @@ -5456,6 +5496,20 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof FunctionKey") } } + static isGaugeConfiguration(value: Object | string | number | undefined | boolean, duplicated_value: boolean, duplicated_min: boolean, duplicated_max: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_min) && (value?.hasOwnProperty("min"))) { + return true + } + else if ((!duplicated_max) && (value?.hasOwnProperty("max"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof GaugeConfiguration") + } + } static isGaugeIndicatorOptions(value: Object | string | number | undefined | boolean, duplicated_icon: boolean, duplicated_space: boolean): boolean { if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { return true @@ -7426,6 +7480,14 @@ export class TypeChecker { static isListScroller(value: Object | string | number | undefined | boolean): boolean { throw new Error("Can not discriminate value typeof ListScroller") } + static isLoadingProgressConfiguration(value: Object | string | number | undefined | boolean, duplicated_enableLoading: boolean): boolean { + if ((!duplicated_enableLoading) && (value?.hasOwnProperty("enableLoading"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof LoadingProgressConfiguration") + } + } static isLoadingProgressStyle(value: Object | string | number | undefined | boolean): boolean { if ((value) === (LoadingProgressStyle.Default)) { return true @@ -7868,6 +7930,26 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof MenuElement") } } + static isMenuItemConfiguration(value: Object | string | number | undefined | boolean, duplicated_value: boolean, duplicated_icon: boolean, duplicated_symbolIcon: boolean, duplicated_selected: boolean, duplicated_index: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_selected) && (value?.hasOwnProperty("selected"))) { + return true + } + else if ((!duplicated_index) && (value?.hasOwnProperty("index"))) { + return true + } + else if ((!duplicated_icon) && (value?.hasOwnProperty("icon"))) { + return true + } + else if ((!duplicated_symbolIcon) && (value?.hasOwnProperty("symbolIcon"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof MenuItemConfiguration") + } + } static isMenuItemGroupOptions(value: Object | string | number | undefined | boolean, duplicated_header: boolean, duplicated_footer: boolean): boolean { if ((!duplicated_header) && (value?.hasOwnProperty("header"))) { return true @@ -9794,6 +9876,17 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof PreviewText") } } + static isProgressConfiguration(value: Object | string | number | undefined | boolean, duplicated_value: boolean, duplicated_total: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_total) && (value?.hasOwnProperty("total"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ProgressConfiguration") + } + } static isProgressMask(value: Object | string | number | undefined | boolean): boolean { throw new Error("Can not discriminate value typeof ProgressMask") } @@ -9896,6 +9989,20 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RadialGradientOptions") } } + static isRadioConfiguration(value: Object | string | number | undefined | boolean, duplicated_value: boolean, duplicated_checked: boolean, duplicated_triggerChange: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_checked) && (value?.hasOwnProperty("checked"))) { + return true + } + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RadioConfiguration") + } + } static isRadioIndicatorType(value: Object | string | number | undefined | boolean): boolean { if ((value) === (RadioIndicatorType.TICK)) { return true @@ -9941,6 +10048,26 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof RadioStyle") } } + static isRatingConfiguration(value: Object | string | number | undefined | boolean, duplicated_rating: boolean, duplicated_indicator: boolean, duplicated_stars: boolean, duplicated_stepSize: boolean, duplicated_triggerChange: boolean): boolean { + if ((!duplicated_rating) && (value?.hasOwnProperty("rating"))) { + return true + } + else if ((!duplicated_indicator) && (value?.hasOwnProperty("indicator"))) { + return true + } + else if ((!duplicated_stars) && (value?.hasOwnProperty("stars"))) { + return true + } + else if ((!duplicated_stepSize) && (value?.hasOwnProperty("stepSize"))) { + return true + } + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof RatingConfiguration") + } + } static isRatingOptions(value: Object | string | number | undefined | boolean, duplicated_rating: boolean, duplicated_indicator: boolean): boolean { if ((!duplicated_rating) && (value?.hasOwnProperty("rating"))) { return true @@ -12025,6 +12152,26 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof SliderChangeMode") } } + static isSliderConfiguration(value: Object | string | number | undefined | boolean, duplicated_value: boolean, duplicated_min: boolean, duplicated_max: boolean, duplicated_step: boolean, duplicated_triggerChange: boolean): boolean { + if ((!duplicated_value) && (value?.hasOwnProperty("value"))) { + return true + } + else if ((!duplicated_min) && (value?.hasOwnProperty("min"))) { + return true + } + else if ((!duplicated_max) && (value?.hasOwnProperty("max"))) { + return true + } + else if ((!duplicated_step) && (value?.hasOwnProperty("step"))) { + return true + } + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof SliderConfiguration") + } + } static isSliderInteraction(value: Object | string | number | undefined | boolean): boolean { if ((value) === (SliderInteraction.SLIDE_AND_CLICK)) { return true @@ -13661,6 +13808,20 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof TextChangeOptions") } } + static isTextClockConfiguration(value: Object | string | number | undefined | boolean, duplicated_timeZoneOffset: boolean, duplicated_started: boolean, duplicated_timeValue: boolean): boolean { + if ((!duplicated_timeZoneOffset) && (value?.hasOwnProperty("timeZoneOffset"))) { + return true + } + else if ((!duplicated_started) && (value?.hasOwnProperty("started"))) { + return true + } + else if ((!duplicated_timeValue) && (value?.hasOwnProperty("timeValue"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextClockConfiguration") + } + } static isTextClockController(value: Object | string | number | undefined | boolean): boolean { throw new Error("Can not discriminate value typeof TextClockController") } @@ -14241,6 +14402,23 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof TextStyleInterface") } } + static isTextTimerConfiguration(value: Object | string | number | undefined | boolean, duplicated_count: boolean, duplicated_isCountDown: boolean, duplicated_started: boolean, duplicated_elapsedTime: boolean): boolean { + if ((!duplicated_count) && (value?.hasOwnProperty("count"))) { + return true + } + else if ((!duplicated_isCountDown) && (value?.hasOwnProperty("isCountDown"))) { + return true + } + else if ((!duplicated_started) && (value?.hasOwnProperty("started"))) { + return true + } + else if ((!duplicated_elapsedTime) && (value?.hasOwnProperty("elapsedTime"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof TextTimerConfiguration") + } + } static isTextTimerController(value: Object | string | number | undefined | boolean): boolean { throw new Error("Can not discriminate value typeof TextTimerController") } @@ -14360,6 +14538,20 @@ export class TypeChecker { throw new Error("Can not discriminate value typeof TitleHeight") } } + static isToggleConfiguration(value: Object | string | number | undefined | boolean, duplicated_isOn: boolean, duplicated_toggleEnabled: boolean, duplicated_triggerChange: boolean): boolean { + if ((!duplicated_isOn) && (value?.hasOwnProperty("isOn"))) { + return true + } + else if ((!duplicated_toggleEnabled) && (value?.hasOwnProperty("toggleEnabled"))) { + return true + } + else if ((!duplicated_triggerChange) && (value?.hasOwnProperty("triggerChange"))) { + return true + } + else { + throw new Error("Can not discriminate value typeof ToggleConfiguration") + } + } static isToggleOptions(value: Object | string | number | undefined | boolean, duplicated_type: boolean, duplicated_isOn: boolean): boolean { if ((!duplicated_type) && (value?.hasOwnProperty("type"))) { return true diff --git a/arkoala-arkts/arkui/types/index-full.d.ts b/arkoala-arkts/arkui/types/index-full.d.ts index 1b1f7d3c16..26e877f2e1 100644 --- a/arkoala-arkts/arkui/types/index-full.d.ts +++ b/arkoala-arkts/arkui/types/index-full.d.ts @@ -9712,7 +9712,7 @@ declare interface SwitchStyle { } declare interface ToggleConfiguration extends CommonConfiguration { isOn: boolean; - enabled: boolean; + toggleEnabled: boolean; triggerChange: ((value0: boolean) => void); } declare interface ToggleOptions { @@ -10190,6 +10190,34 @@ declare interface RotateResult { } declare type Matrix4Result = [ number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number ] declare function getRectangleById(id: string): ComponentInfo; +declare type ButtonModifierBuilder = ((parentNode: number|bigint, config: ButtonConfiguration) => number|bigint); +declare type CheckBoxModifierBuilder = ((parentNode: number|bigint, config: CheckBoxConfiguration) => number|bigint); +declare type DataPanelModifierBuilder = ((parentNode: number|bigint, config: DataPanelConfiguration) => number|bigint); +declare type GaugeModifierBuilder = ((parentNode: number|bigint, config: GaugeConfiguration) => number|bigint); +declare type LoadingProgressModifierBuilder = ((parentNode: number|bigint, config: LoadingProgressConfiguration) => number|bigint); +declare type ProgressModifierBuilder = ((parentNode: number|bigint, config: ProgressConfiguration) => number|bigint); +declare type RadioModifierBuilder = ((parentNode: number|bigint, config: RadioConfiguration) => number|bigint); +declare type RatingModifierBuilder = ((parentNode: number|bigint, config: RatingConfiguration) => number|bigint); +declare type MenuItemModifierBuilder = ((parentNode: number|bigint, config: MenuItemConfiguration) => number|bigint); +declare type SliderModifierBuilder = ((parentNode: number|bigint, config: SliderConfiguration) => number|bigint); +declare type TextClockModifierBuilder = ((parentNode: number|bigint, config: TextClockConfiguration) => number|bigint); +declare type TextTimerModifierBuilder = ((parentNode: number|bigint, config: TextTimerConfiguration) => number|bigint); +declare type ToggleModifierBuilder = ((parentNode: number|bigint, config: ToggleConfiguration) => number|bigint); +declare class ContentModifierHelper { + static contentModifierButton(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: ButtonConfiguration) => number|bigint)): void; + static contentModifierCheckBox(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: CheckBoxConfiguration) => number|bigint)): void; + static contentModifierDataPanel(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: DataPanelConfiguration) => number|bigint)): void; + static contentModifierGauge(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: GaugeConfiguration) => number|bigint)): void; + static contentModifierLoadingProgress(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: LoadingProgressConfiguration) => number|bigint)): void; + static contentModifierProgress(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: ProgressConfiguration) => number|bigint)): void; + static contentModifierRadio(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: RadioConfiguration) => number|bigint)): void; + static contentModifierRating(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: RatingConfiguration) => number|bigint)): void; + static contentModifierMenuItem(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: MenuItemConfiguration) => number|bigint)): void; + static contentModifierSlider(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: SliderConfiguration) => number|bigint)): void; + static contentModifierTextClock(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: TextClockConfiguration) => number|bigint)): void; + static contentModifierTextTimer(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: TextTimerConfiguration) => number|bigint)): void; + static contentModifierToggle(node: number|bigint, contentModifier: ContentModifier, builder: ((parentNode: number|bigint, config: ToggleConfiguration) => number|bigint)): void; +} declare interface CustomDialogBuildOptions { controller?: CustomDialogController; } diff --git a/arkoala-arkts/framework/native/src/generated/Serializers.h b/arkoala-arkts/framework/native/src/generated/Serializers.h index 079bb79379..592c8d44da 100644 --- a/arkoala-arkts/framework/native/src/generated/Serializers.h +++ b/arkoala-arkts/framework/native/src/generated/Serializers.h @@ -6707,6 +6707,45 @@ inline Ark_RuntimeType runtimeType(const Opt_ListScroller& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_LoadingProgressConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_LoadingProgressConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_Boolean enableLoading + result->append(", "); + result->append(".enableLoading="); + WriteToString(result, value->enableLoading); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_LoadingProgressConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_LoadingProgressConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_LoadingProgressStyle& value) { return INTEROP_RUNTIME_NUMBER; @@ -8742,6 +8781,49 @@ inline Ark_RuntimeType runtimeType(const Opt_PreparedInfo& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ProgressConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ProgressConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_Number value + result->append(", "); + result->append(".value="); + WriteToString(result, &value->value); + // Ark_Number total + result->append(", "); + result->append(".total="); + WriteToString(result, &value->total); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ProgressConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ProgressConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ProgressMask& value) { return INTEROP_RUNTIME_OBJECT; @@ -12652,6 +12734,53 @@ inline Ark_RuntimeType runtimeType(const Opt_TextCase& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextClockConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextClockConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_Number timeZoneOffset + result->append(", "); + result->append(".timeZoneOffset="); + WriteToString(result, &value->timeZoneOffset); + // Ark_Boolean started + result->append(", "); + result->append(".started="); + WriteToString(result, value->started); + // Ark_Number timeValue + result->append(", "); + result->append(".timeValue="); + WriteToString(result, &value->timeValue); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextClockConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextClockConfiguration& 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; @@ -13331,6 +13460,57 @@ inline Ark_RuntimeType runtimeType(const Opt_TextSpanType& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_TextTimerConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_TextTimerConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_Number count + result->append(", "); + result->append(".count="); + WriteToString(result, &value->count); + // Ark_Boolean isCountDown + result->append(", "); + result->append(".isCountDown="); + WriteToString(result, value->isCountDown); + // Ark_Boolean started + result->append(", "); + result->append(".started="); + WriteToString(result, value->started); + // Ark_Number elapsedTime + result->append(", "); + result->append(".elapsedTime="); + WriteToString(result, &value->elapsedTime); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextTimerConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextTimerConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_TextTimerController& value) { return INTEROP_RUNTIME_OBJECT; @@ -19013,6 +19193,37 @@ inline Ark_RuntimeType runtimeType(const Opt_AsyncCallback_image_PixelMap_Void& return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const ButtonModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const ButtonModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ButtonModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ButtonModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const ButtonTriggerClickCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -23415,6 +23626,37 @@ inline Ark_RuntimeType runtimeType(const Opt_Callback_Void& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const CheckBoxModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const CheckBoxModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_CheckBoxModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_CheckBoxModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const ContentDidScrollCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -23570,6 +23812,37 @@ inline Ark_RuntimeType runtimeType(const Opt_CustomStyles& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const DataPanelModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const DataPanelModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_DataPanelModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_DataPanelModifierBuilder& 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; @@ -23632,6 +23905,37 @@ inline Ark_RuntimeType runtimeType(const Opt_ErrorCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const GaugeModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const GaugeModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GaugeModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GaugeModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const GestureRecognizerJudgeBeginCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -23880,6 +24184,37 @@ inline Ark_RuntimeType runtimeType(const Opt_InterceptionShowCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const LoadingProgressModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const LoadingProgressModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_LoadingProgressModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_LoadingProgressModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Map_AxisModel_Number& value) { return INTEROP_RUNTIME_OBJECT; @@ -24106,6 +24441,37 @@ inline Ark_RuntimeType runtimeType(const Opt_MenuCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const MenuItemModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const MenuItemModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_MenuItemModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_MenuItemModifierBuilder& 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; @@ -25532,6 +25898,99 @@ inline Ark_RuntimeType runtimeType(const Opt_Profiler_Callback_String_Void& valu return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const ProgressModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const ProgressModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ProgressModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ProgressModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const RadioModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const RadioModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RadioModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RadioModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const RatingModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const RatingModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RatingModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RatingModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const RestrictedWorker_onerror_Callback& value) { return INTEROP_RUNTIME_OBJECT; @@ -25842,6 +26301,37 @@ inline Ark_RuntimeType runtimeType(const Opt_SizeChangeCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const SliderModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const SliderModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SliderModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SliderModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const SliderTriggerChangeCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -26059,6 +26549,37 @@ inline Ark_RuntimeType runtimeType(const Opt_TextAreaSubmitCallback& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const TextClockModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const TextClockModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextClockModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextClockModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const TextPickerEnterSelectedAreaCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -26121,6 +26642,68 @@ inline Ark_RuntimeType runtimeType(const Opt_TextPickerScrollStopCallback& value return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const TextTimerModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const TextTimerModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_TextTimerModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_TextTimerModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> +inline Ark_RuntimeType runtimeType(const ToggleModifierBuilder& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const ToggleModifierBuilder* value) { + result->append("{"); + result->append(".resource="); + WriteToString(result, &value->resource); + result->append(", .call=0"); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ToggleModifierBuilder* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ToggleModifierBuilder& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const TransitionFinishCallback& value) { return INTEROP_RUNTIME_OBJECT; @@ -26948,6 +27531,53 @@ inline Ark_RuntimeType runtimeType(const Opt_BusinessError& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ButtonConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ButtonConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_String label + result->append(", "); + result->append(".label="); + WriteToString(result, &value->label); + // Ark_Boolean pressed + result->append(", "); + result->append(".pressed="); + WriteToString(result, value->pressed); + // ButtonTriggerClickCallback triggerClick + result->append(", "); + result->append(".triggerClick="); + WriteToString(result, &value->triggerClick); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ButtonConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ButtonConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ButtonOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -27190,6 +27820,53 @@ inline Ark_RuntimeType runtimeType(const Opt_ChainWeightOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_CheckBoxConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_CheckBoxConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_String name + result->append(", "); + result->append(".name="); + WriteToString(result, &value->name); + // Ark_Boolean selected + result->append(", "); + result->append(".selected="); + WriteToString(result, value->selected); + // Callback_Boolean_Void triggerChange + result->append(", "); + result->append(".triggerChange="); + WriteToString(result, &value->triggerChange); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_CheckBoxConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_CheckBoxConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_CheckboxGroupOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -28067,6 +28744,49 @@ inline Ark_RuntimeType runtimeType(const Opt_CutEvent& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_DataPanelConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_DataPanelConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Array_Number values + result->append(", "); + result->append(".values="); + WriteToString(result, &value->values); + // Ark_Number maxValue + result->append(", "); + result->append(".maxValue="); + WriteToString(result, &value->maxValue); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_DataPanelConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_DataPanelConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_DataPanelOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -29644,6 +30364,53 @@ inline Ark_RuntimeType runtimeType(const Opt_Frame& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_GaugeConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_GaugeConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_Number value + result->append(", "); + result->append(".value="); + WriteToString(result, &value->value); + // Ark_Number min + result->append(", "); + result->append(".min="); + WriteToString(result, &value->min); + // Ark_Number max + result->append(", "); + result->append(".max="); + WriteToString(result, &value->max); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_GaugeConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_GaugeConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_GaugeOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -32924,6 +33691,53 @@ inline Ark_RuntimeType runtimeType(const Opt_ProgressOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RadioConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RadioConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_String value + result->append(", "); + result->append(".value="); + WriteToString(result, &value->value); + // Ark_Boolean checked + result->append(", "); + result->append(".checked="); + WriteToString(result, value->checked); + // Callback_Boolean_Void triggerChange + result->append(", "); + result->append(".triggerChange="); + WriteToString(result, &value->triggerChange); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RadioConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RadioConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_RadioOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -32967,6 +33781,61 @@ inline Ark_RuntimeType runtimeType(const Opt_RadioOptions& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_RatingConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_RatingConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_Number rating + result->append(", "); + result->append(".rating="); + WriteToString(result, &value->rating); + // Ark_Boolean indicator + result->append(", "); + result->append(".indicator="); + WriteToString(result, value->indicator); + // Ark_Number stars + result->append(", "); + result->append(".stars="); + WriteToString(result, &value->stars); + // Ark_Number stepSize + result->append(", "); + result->append(".stepSize="); + WriteToString(result, &value->stepSize); + // Callback_Number_Void triggerChange + result->append(", "); + result->append(".triggerChange="); + WriteToString(result, &value->triggerChange); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_RatingConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_RatingConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_RatingOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -34291,6 +35160,61 @@ inline Ark_RuntimeType runtimeType(const Opt_SlideRange& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_SliderConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_SliderConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_Number value + result->append(", "); + result->append(".value="); + WriteToString(result, &value->value); + // Ark_Number min + result->append(", "); + result->append(".min="); + WriteToString(result, &value->min); + // Ark_Number max + result->append(", "); + result->append(".max="); + WriteToString(result, &value->max); + // Ark_Number step + result->append(", "); + result->append(".step="); + WriteToString(result, &value->step); + // SliderTriggerChangeCallback triggerChange + result->append(", "); + result->append(".triggerChange="); + WriteToString(result, &value->triggerChange); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_SliderConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_SliderConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_SliderOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -35597,6 +36521,53 @@ inline Ark_RuntimeType runtimeType(const Opt_TipsMessageType& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_ToggleConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_ToggleConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_Boolean isOn + result->append(", "); + result->append(".isOn="); + WriteToString(result, value->isOn); + // Ark_Boolean toggleEnabled + result->append(", "); + result->append(".toggleEnabled="); + WriteToString(result, value->toggleEnabled); + // Callback_Boolean_Void triggerChange + result->append(", "); + result->append(".triggerChange="); + WriteToString(result, &value->triggerChange); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_ToggleConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_ToggleConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_ToggleOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -41484,6 +42455,61 @@ inline Ark_RuntimeType runtimeType(const Opt_MenuElement& value) return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); } template <> +inline Ark_RuntimeType runtimeType(const Ark_MenuItemConfiguration& value) +{ + return INTEROP_RUNTIME_OBJECT; +} +template <> +inline void WriteToString(std::string* result, const Ark_MenuItemConfiguration* value) { + result->append("{"); + // Ark_Boolean enabled + result->append(".enabled="); + WriteToString(result, value->enabled); + // Ark_ContentModifier contentModifier + result->append(", "); + result->append(".contentModifier="); + WriteToString(result, &value->contentModifier); + // Ark_ResourceStr value + result->append(", "); + result->append(".value="); + WriteToString(result, &value->value); + // Ark_ResourceStr icon + result->append(", "); + result->append(".icon="); + WriteToString(result, &value->icon); + // Ark_SymbolGlyphModifier symbolIcon + result->append(", "); + result->append(".symbolIcon="); + WriteToString(result, &value->symbolIcon); + // Ark_Boolean selected + result->append(", "); + result->append(".selected="); + WriteToString(result, value->selected); + // Ark_Number index + result->append(", "); + result->append(".index="); + WriteToString(result, &value->index); + result->append("}"); +} +template <> +inline void WriteToString(std::string* result, const Opt_MenuItemConfiguration* value) { + result->append("{.tag="); + result->append(tagNameExact((Ark_Tag)(value->tag))); + result->append(", .value="); + if (value->tag != INTEROP_TAG_UNDEFINED) { + WriteToString(result, &value->value); + } else { + Ark_Undefined undefined = { 0 }; + WriteToString(result, undefined); + } + result->append("}"); +} +template <> +inline Ark_RuntimeType runtimeType(const Opt_MenuItemConfiguration& value) +{ + return (value.tag != INTEROP_TAG_UNDEFINED) ? (INTEROP_RUNTIME_OBJECT) : (INTEROP_RUNTIME_UNDEFINED); +} +template <> inline Ark_RuntimeType runtimeType(const Ark_MenuItemGroupOptions& value) { return INTEROP_RUNTIME_OBJECT; @@ -54452,6 +55478,16 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeLoadingProgressConfiguration(Ark_LoadingProgressConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_enableLoading = value.enableLoading; + valueSerializer.writeBoolean(value_enableLoading); + } void writeLongPressGestureInterface(Ark_LongPressGestureInterface value) { Serializer& valueSerializer = *this; @@ -54590,6 +55626,18 @@ class Serializer : public SerializerBase { const auto value_duration = value.duration; valueSerializer.writeNumber(value_duration); } + void writeProgressConfiguration(Ark_ProgressConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_value = value.value; + valueSerializer.writeNumber(value_value); + const auto value_total = value.total; + valueSerializer.writeNumber(value_total); + } void writeProgressMask(Ark_ProgressMask value) { Serializer& valueSerializer = *this; @@ -54931,6 +55979,20 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTextClockConfiguration(Ark_TextClockConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_timeZoneOffset = value.timeZoneOffset; + valueSerializer.writeNumber(value_timeZoneOffset); + const auto value_started = value.started; + valueSerializer.writeBoolean(value_started); + const auto value_timeValue = value.timeValue; + valueSerializer.writeNumber(value_timeValue); + } void writeTextClockController(Ark_TextClockController value) { Serializer& valueSerializer = *this; @@ -55006,6 +56068,22 @@ class Serializer : public SerializerBase { Serializer& valueSerializer = *this; valueSerializer.writePointer(value); } + void writeTextTimerConfiguration(Ark_TextTimerConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_count = value.count; + valueSerializer.writeNumber(value_count); + const auto value_isCountDown = value.isCountDown; + valueSerializer.writeBoolean(value_isCountDown); + const auto value_started = value.started; + valueSerializer.writeBoolean(value_started); + const auto value_elapsedTime = value.elapsedTime; + valueSerializer.writeNumber(value_elapsedTime); + } void writeTextTimerController(Ark_TextTimerController value) { Serializer& valueSerializer = *this; @@ -55363,6 +56441,22 @@ class Serializer : public SerializerBase { const auto value_code = value.code; valueSerializer.writeNumber(value_code); } + void writeButtonConfiguration(Ark_ButtonConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_label = value.label; + valueSerializer.writeString(value_label); + const auto value_pressed = value.pressed; + valueSerializer.writeBoolean(value_pressed); + const auto value_triggerClick = value.triggerClick; + valueSerializer.writeCallbackResource(value_triggerClick.resource); + valueSerializer.writePointer(reinterpret_cast(value_triggerClick.call)); + valueSerializer.writePointer(reinterpret_cast(value_triggerClick.callSync)); + } void writeButtonOptions(Ark_ButtonOptions value) { Serializer& valueSerializer = *this; @@ -55481,6 +56575,22 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value_vertical_value); } } + void writeCheckBoxConfiguration(Ark_CheckBoxConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_name = value.name; + valueSerializer.writeString(value_name); + const auto value_selected = value.selected; + valueSerializer.writeBoolean(value_selected); + const auto value_triggerChange = value.triggerChange; + valueSerializer.writeCallbackResource(value_triggerChange.resource); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.call)); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.callSync)); + } void writeCheckboxGroupOptions(Ark_CheckboxGroupOptions value) { Serializer& valueSerializer = *this; @@ -55791,6 +56901,22 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_preventDefault_value.callSync)); } } + void writeDataPanelConfiguration(Ark_DataPanelConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_values = value.values; + valueSerializer.writeInt32(value_values.length); + for (int i = 0; i < value_values.length; i++) { + const Ark_Number value_values_element = value_values.array[i]; + valueSerializer.writeNumber(value_values_element); + } + const auto value_maxValue = value.maxValue; + valueSerializer.writeNumber(value_maxValue); + } void writeDataPanelOptions(Ark_DataPanelOptions value) { Serializer& valueSerializer = *this; @@ -56599,6 +57725,20 @@ class Serializer : public SerializerBase { const auto value_height = value.height; valueSerializer.writeNumber(value_height); } + void writeGaugeConfiguration(Ark_GaugeConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_value = value.value; + valueSerializer.writeNumber(value_value); + const auto value_min = value.min; + valueSerializer.writeNumber(value_min); + const auto value_max = value.max; + valueSerializer.writeNumber(value_max); + } void writeGaugeOptions(Ark_GaugeOptions value) { Serializer& valueSerializer = *this; @@ -58444,6 +59584,22 @@ class Serializer : public SerializerBase { valueSerializer.writeInt32(static_cast(value_type_value)); } } + void writeRadioConfiguration(Ark_RadioConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_value = value.value; + valueSerializer.writeString(value_value); + const auto value_checked = value.checked; + valueSerializer.writeBoolean(value_checked); + const auto value_triggerChange = value.triggerChange; + valueSerializer.writeCallbackResource(value_triggerChange.resource); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.call)); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.callSync)); + } void writeRadioOptions(Ark_RadioOptions value) { Serializer& valueSerializer = *this; @@ -58470,6 +59626,26 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_indicatorBuilder_value.callSync)); } } + void writeRatingConfiguration(Ark_RatingConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_rating = value.rating; + valueSerializer.writeNumber(value_rating); + const auto value_indicator = value.indicator; + valueSerializer.writeBoolean(value_indicator); + const auto value_stars = value.stars; + valueSerializer.writeNumber(value_stars); + const auto value_stepSize = value.stepSize; + valueSerializer.writeNumber(value_stepSize); + const auto value_triggerChange = value.triggerChange; + valueSerializer.writeCallbackResource(value_triggerChange.resource); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.call)); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.callSync)); + } void writeRatingOptions(Ark_RatingOptions value) { Serializer& valueSerializer = *this; @@ -59305,6 +60481,26 @@ class Serializer : public SerializerBase { valueSerializer.writeNumber(value_to_value); } } + void writeSliderConfiguration(Ark_SliderConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_value = value.value; + valueSerializer.writeNumber(value_value); + const auto value_min = value.min; + valueSerializer.writeNumber(value_min); + const auto value_max = value.max; + valueSerializer.writeNumber(value_max); + const auto value_step = value.step; + valueSerializer.writeNumber(value_step); + const auto value_triggerChange = value.triggerChange; + valueSerializer.writeCallbackResource(value_triggerChange.resource); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.call)); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.callSync)); + } void writeSliderOptions(Ark_SliderOptions value) { Serializer& valueSerializer = *this; @@ -60143,6 +61339,22 @@ class Serializer : public SerializerBase { valueSerializer.writeInt64(value_end_value); } } + void writeToggleConfiguration(Ark_ToggleConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + const auto value_isOn = value.isOn; + valueSerializer.writeBoolean(value_isOn); + const auto value_toggleEnabled = value.toggleEnabled; + valueSerializer.writeBoolean(value_toggleEnabled); + const auto value_triggerChange = value.triggerChange; + valueSerializer.writeCallbackResource(value_triggerChange.resource); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.call)); + valueSerializer.writePointer(reinterpret_cast(value_triggerChange.callSync)); + } void writeToggleOptions(Ark_ToggleOptions value) { Serializer& valueSerializer = *this; @@ -64238,6 +65450,58 @@ class Serializer : public SerializerBase { valueSerializer.writePointer(reinterpret_cast(value_action.call)); valueSerializer.writePointer(reinterpret_cast(value_action.callSync)); } + void writeMenuItemConfiguration(Ark_MenuItemConfiguration value) + { + Serializer& valueSerializer = *this; + const auto value_enabled = value.enabled; + valueSerializer.writeBoolean(value_enabled); + const auto value_contentModifier = value.contentModifier; + valueSerializer.writeObject(value_contentModifier); + 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) { + valueSerializer.writeInt8(0); + const auto value_value_0 = value_value.value0; + valueSerializer.writeString(value_value_0); + } + else if (value_value_type == 1) { + valueSerializer.writeInt8(1); + const auto value_value_1 = value_value.value1; + valueSerializer.writeResource(value_value_1); + } + const auto value_icon = value.icon; + Ark_Int32 value_icon_type = INTEROP_RUNTIME_UNDEFINED; + value_icon_type = runtimeType(value_icon); + valueSerializer.writeInt8(value_icon_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_icon_type)) { + 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) { + 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) { + valueSerializer.writeInt8(1); + const auto value_icon_value_1 = value_icon_value.value1; + valueSerializer.writeResource(value_icon_value_1); + } + } + const auto value_symbolIcon = value.symbolIcon; + Ark_Int32 value_symbolIcon_type = INTEROP_RUNTIME_UNDEFINED; + value_symbolIcon_type = runtimeType(value_symbolIcon); + valueSerializer.writeInt8(value_symbolIcon_type); + if ((INTEROP_RUNTIME_UNDEFINED) != (value_symbolIcon_type)) { + const auto value_symbolIcon_value = value_symbolIcon.value; + valueSerializer.writeSymbolGlyphModifier(value_symbolIcon_value); + } + const auto value_selected = value.selected; + valueSerializer.writeBoolean(value_selected); + const auto value_index = value.index; + valueSerializer.writeNumber(value_index); + } void writeMenuItemGroupOptions(Ark_MenuItemGroupOptions value) { Serializer& valueSerializer = *this; @@ -79177,6 +80441,15 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_LoadingProgressConfiguration readLoadingProgressConfiguration() + { + Ark_LoadingProgressConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.enableLoading = valueDeserializer.readBoolean(); + return value; + } Ark_LongPressGestureInterface readLongPressGestureInterface() { Deserializer& valueDeserializer = *this; @@ -79338,6 +80611,16 @@ class Deserializer : public DeserializerBase { value.duration = static_cast(valueDeserializer.readNumber()); return value; } + Ark_ProgressConfiguration readProgressConfiguration() + { + Ark_ProgressConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.value = static_cast(valueDeserializer.readNumber()); + value.total = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_ProgressMask readProgressMask() { Deserializer& valueDeserializer = *this; @@ -79702,6 +80985,17 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TextClockConfiguration readTextClockConfiguration() + { + Ark_TextClockConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.timeZoneOffset = static_cast(valueDeserializer.readNumber()); + value.started = valueDeserializer.readBoolean(); + value.timeValue = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_TextClockController readTextClockController() { Deserializer& valueDeserializer = *this; @@ -79776,6 +81070,18 @@ class Deserializer : public DeserializerBase { Ark_NativePointer ptr = valueDeserializer.readPointer(); return static_cast(ptr); } + Ark_TextTimerConfiguration readTextTimerConfiguration() + { + Ark_TextTimerConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.count = static_cast(valueDeserializer.readNumber()); + value.isCountDown = valueDeserializer.readBoolean(); + value.started = valueDeserializer.readBoolean(); + value.elapsedTime = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_TextTimerController readTextTimerController() { Deserializer& valueDeserializer = *this; @@ -80166,6 +81472,17 @@ class Deserializer : public DeserializerBase { value.code = static_cast(valueDeserializer.readNumber()); return value; } + Ark_ButtonConfiguration readButtonConfiguration() + { + Ark_ButtonConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.label = static_cast(valueDeserializer.readString()); + value.pressed = valueDeserializer.readBoolean(); + value.triggerClick = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_ButtonTriggerClickCallback)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_ButtonTriggerClickCallback))))}; + return value; + } Ark_ButtonOptions readButtonOptions() { Ark_ButtonOptions value = {}; @@ -80285,6 +81602,17 @@ class Deserializer : public DeserializerBase { value.vertical = vertical_buf; return value; } + Ark_CheckBoxConfiguration readCheckBoxConfiguration() + { + Ark_CheckBoxConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.name = static_cast(valueDeserializer.readString()); + value.selected = valueDeserializer.readBoolean(); + value.triggerChange = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))}; + return value; + } Ark_CheckboxGroupOptions readCheckboxGroupOptions() { Ark_CheckboxGroupOptions value = {}; @@ -80608,6 +81936,23 @@ class Deserializer : public DeserializerBase { value.preventDefault = preventDefault_buf; return value; } + Ark_DataPanelConfiguration readDataPanelConfiguration() + { + Ark_DataPanelConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + const Ark_Int32 values_buf_length = valueDeserializer.readInt32(); + Array_Number values_buf = {}; + valueDeserializer.resizeArray::type, + std::decay::type>(&values_buf, values_buf_length); + for (int values_buf_i = 0; values_buf_i < values_buf_length; values_buf_i++) { + values_buf.array[values_buf_i] = static_cast(valueDeserializer.readNumber()); + } + value.values = values_buf; + value.maxValue = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_DataPanelOptions readDataPanelOptions() { Ark_DataPanelOptions value = {}; @@ -81410,6 +82755,17 @@ class Deserializer : public DeserializerBase { value.height = static_cast(valueDeserializer.readNumber()); return value; } + Ark_GaugeConfiguration readGaugeConfiguration() + { + Ark_GaugeConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.value = static_cast(valueDeserializer.readNumber()); + value.min = static_cast(valueDeserializer.readNumber()); + value.max = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_GaugeOptions readGaugeOptions() { Ark_GaugeOptions value = {}; @@ -83361,6 +84717,17 @@ class Deserializer : public DeserializerBase { value.type = type_buf; return value; } + Ark_RadioConfiguration readRadioConfiguration() + { + Ark_RadioConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.value = static_cast(valueDeserializer.readString()); + value.checked = valueDeserializer.readBoolean(); + value.triggerChange = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))}; + return value; + } Ark_RadioOptions readRadioOptions() { Ark_RadioOptions value = {}; @@ -83385,6 +84752,19 @@ class Deserializer : public DeserializerBase { value.indicatorBuilder = indicatorBuilder_buf; return value; } + Ark_RatingConfiguration readRatingConfiguration() + { + Ark_RatingConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.rating = static_cast(valueDeserializer.readNumber()); + value.indicator = valueDeserializer.readBoolean(); + value.stars = static_cast(valueDeserializer.readNumber()); + value.stepSize = static_cast(valueDeserializer.readNumber()); + value.triggerChange = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Number_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Number_Void))))}; + return value; + } Ark_RatingOptions readRatingOptions() { Ark_RatingOptions value = {}; @@ -84315,6 +85695,19 @@ class Deserializer : public DeserializerBase { value.to = to_buf; return value; } + Ark_SliderConfiguration readSliderConfiguration() + { + Ark_SliderConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.value = static_cast(valueDeserializer.readNumber()); + value.min = static_cast(valueDeserializer.readNumber()); + value.max = static_cast(valueDeserializer.readNumber()); + value.step = static_cast(valueDeserializer.readNumber()); + value.triggerChange = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_SliderTriggerChangeCallback)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_SliderTriggerChangeCallback))))}; + return value; + } Ark_SliderOptions readSliderOptions() { Ark_SliderOptions value = {}; @@ -85169,6 +86562,17 @@ class Deserializer : public DeserializerBase { value.end = end_buf; return value; } + Ark_ToggleConfiguration readToggleConfiguration() + { + Ark_ToggleConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + value.isOn = valueDeserializer.readBoolean(); + value.toggleEnabled = valueDeserializer.readBoolean(); + value.triggerChange = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Boolean_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Boolean_Void))))}; + return value; + } Ark_ToggleOptions readToggleOptions() { Ark_ToggleOptions value = {}; @@ -89456,6 +90860,61 @@ class Deserializer : public DeserializerBase { value.action = {valueDeserializer.readCallbackResource(), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Void)))), reinterpret_cast(valueDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Void))))}; return value; } + Ark_MenuItemConfiguration readMenuItemConfiguration() + { + Ark_MenuItemConfiguration value = {}; + Deserializer& valueDeserializer = *this; + value.enabled = valueDeserializer.readBoolean(); + value.contentModifier = static_cast(valueDeserializer.readObject()); + const Ark_Int8 value_buf_selector = valueDeserializer.readInt8(); + Ark_ResourceStr value_buf = {}; + value_buf.selector = value_buf_selector; + if (value_buf_selector == 0) { + value_buf.selector = 0; + value_buf.value0 = static_cast(valueDeserializer.readString()); + } + else if (value_buf_selector == 1) { + value_buf.selector = 1; + value_buf.value1 = valueDeserializer.readResource(); + } + else { + INTEROP_FATAL("One of the branches for value_buf has to be chosen through deserialisation."); + } + value.value = static_cast(value_buf); + const auto icon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_ResourceStr icon_buf = {}; + icon_buf.tag = icon_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (icon_buf_runtimeType)) + { + const Ark_Int8 icon_buf__selector = valueDeserializer.readInt8(); + Ark_ResourceStr icon_buf_ = {}; + icon_buf_.selector = icon_buf__selector; + if (icon_buf__selector == 0) { + icon_buf_.selector = 0; + icon_buf_.value0 = static_cast(valueDeserializer.readString()); + } + else if (icon_buf__selector == 1) { + icon_buf_.selector = 1; + icon_buf_.value1 = valueDeserializer.readResource(); + } + else { + INTEROP_FATAL("One of the branches for icon_buf_ has to be chosen through deserialisation."); + } + icon_buf.value = static_cast(icon_buf_); + } + value.icon = icon_buf; + const auto symbolIcon_buf_runtimeType = static_cast(valueDeserializer.readInt8()); + Opt_SymbolGlyphModifier symbolIcon_buf = {}; + symbolIcon_buf.tag = symbolIcon_buf_runtimeType == INTEROP_RUNTIME_UNDEFINED ? INTEROP_TAG_UNDEFINED : INTEROP_TAG_OBJECT; + if ((INTEROP_RUNTIME_UNDEFINED) != (symbolIcon_buf_runtimeType)) + { + symbolIcon_buf.value = valueDeserializer.readSymbolGlyphModifier(); + } + value.symbolIcon = symbolIcon_buf; + value.selected = valueDeserializer.readBoolean(); + value.index = static_cast(valueDeserializer.readNumber()); + return value; + } Ark_MenuItemGroupOptions readMenuItemGroupOptions() { Ark_MenuItemGroupOptions value = {}; diff --git a/arkoala-arkts/framework/native/src/generated/arkoala_api_generated.h b/arkoala-arkts/framework/native/src/generated/arkoala_api_generated.h index f6b6840aad..33663f6308 100644 --- a/arkoala-arkts/framework/native/src/generated/arkoala_api_generated.h +++ b/arkoala-arkts/framework/native/src/generated/arkoala_api_generated.h @@ -465,6 +465,8 @@ typedef struct Opt_LinearIndicatorController Opt_LinearIndicatorController; typedef struct ListScrollerPeer ListScrollerPeer; typedef struct ListScrollerPeer* Ark_ListScroller; typedef struct Opt_ListScroller Opt_ListScroller; +typedef struct Ark_LoadingProgressConfiguration Ark_LoadingProgressConfiguration; +typedef struct Opt_LoadingProgressConfiguration Opt_LoadingProgressConfiguration; typedef struct LongPressGestureInterfacePeer LongPressGestureInterfacePeer; typedef struct LongPressGestureInterfacePeer* Ark_LongPressGestureInterface; typedef struct Opt_LongPressGestureInterface Opt_LongPressGestureInterface; @@ -533,6 +535,8 @@ typedef struct Ark_PositionWithAffinity Ark_PositionWithAffinity; typedef struct Opt_PositionWithAffinity Opt_PositionWithAffinity; typedef struct Ark_PreparedInfo Ark_PreparedInfo; typedef struct Opt_PreparedInfo Opt_PreparedInfo; +typedef struct Ark_ProgressConfiguration Ark_ProgressConfiguration; +typedef struct Opt_ProgressConfiguration Opt_ProgressConfiguration; typedef struct ProgressMaskPeer ProgressMaskPeer; typedef struct ProgressMaskPeer* Ark_ProgressMask; typedef struct Opt_ProgressMask Opt_ProgressMask; @@ -675,6 +679,8 @@ typedef struct Opt_TextAreaController Opt_TextAreaController; typedef struct TextBaseControllerPeer TextBaseControllerPeer; typedef struct TextBaseControllerPeer* Ark_TextBaseController; typedef struct Opt_TextBaseController Opt_TextBaseController; +typedef struct Ark_TextClockConfiguration Ark_TextClockConfiguration; +typedef struct Opt_TextClockConfiguration Opt_TextClockConfiguration; typedef struct TextClockControllerPeer TextClockControllerPeer; typedef struct TextClockControllerPeer* Ark_TextClockController; typedef struct Opt_TextClockController Opt_TextClockController; @@ -701,6 +707,8 @@ typedef struct Opt_TextOverflowOptions Opt_TextOverflowOptions; typedef struct TextPickerDialogPeer TextPickerDialogPeer; typedef struct TextPickerDialogPeer* Ark_TextPickerDialog; typedef struct Opt_TextPickerDialog Opt_TextPickerDialog; +typedef struct Ark_TextTimerConfiguration Ark_TextTimerConfiguration; +typedef struct Opt_TextTimerConfiguration Opt_TextTimerConfiguration; typedef struct TextTimerControllerPeer TextTimerControllerPeer; typedef struct TextTimerControllerPeer* Ark_TextTimerController; typedef struct Opt_TextTimerController Opt_TextTimerController; @@ -973,6 +981,8 @@ typedef struct Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Ar typedef struct Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult Opt_Array_Union_RichEditorTextSpanResult_RichEditorImageSpanResult; typedef struct AsyncCallback_image_PixelMap_Void AsyncCallback_image_PixelMap_Void; typedef struct Opt_AsyncCallback_image_PixelMap_Void Opt_AsyncCallback_image_PixelMap_Void; +typedef struct ButtonModifierBuilder ButtonModifierBuilder; +typedef struct Opt_ButtonModifierBuilder Opt_ButtonModifierBuilder; typedef struct ButtonTriggerClickCallback ButtonTriggerClickCallback; typedef struct Opt_ButtonTriggerClickCallback Opt_ButtonTriggerClickCallback; typedef struct Callback_Area_Area_Void Callback_Area_Area_Void; @@ -1257,6 +1267,8 @@ typedef struct Callback_Union_Object_Undefined_Void Callback_Union_Object_Undefi typedef struct Opt_Callback_Union_Object_Undefined_Void Opt_Callback_Union_Object_Undefined_Void; typedef struct Callback_Void Callback_Void; typedef struct Opt_Callback_Void Opt_Callback_Void; +typedef struct CheckBoxModifierBuilder CheckBoxModifierBuilder; +typedef struct Opt_CheckBoxModifierBuilder Opt_CheckBoxModifierBuilder; typedef struct ContentDidScrollCallback ContentDidScrollCallback; typedef struct Opt_ContentDidScrollCallback Opt_ContentDidScrollCallback; typedef struct ContentWillScrollCallback ContentWillScrollCallback; @@ -1267,10 +1279,14 @@ typedef struct CustomNodeBuilder CustomNodeBuilder; typedef struct Opt_CustomNodeBuilder Opt_CustomNodeBuilder; typedef struct CustomStyles CustomStyles; typedef struct Opt_CustomStyles Opt_CustomStyles; +typedef struct DataPanelModifierBuilder DataPanelModifierBuilder; +typedef struct Opt_DataPanelModifierBuilder Opt_DataPanelModifierBuilder; typedef struct EditableTextOnChangeCallback EditableTextOnChangeCallback; typedef struct Opt_EditableTextOnChangeCallback Opt_EditableTextOnChangeCallback; typedef struct ErrorCallback ErrorCallback; typedef struct Opt_ErrorCallback Opt_ErrorCallback; +typedef struct GaugeModifierBuilder GaugeModifierBuilder; +typedef struct Opt_GaugeModifierBuilder Opt_GaugeModifierBuilder; typedef struct GestureRecognizerJudgeBeginCallback GestureRecognizerJudgeBeginCallback; typedef struct Opt_GestureRecognizerJudgeBeginCallback Opt_GestureRecognizerJudgeBeginCallback; typedef struct GetItemMainSizeByIndex GetItemMainSizeByIndex; @@ -1287,6 +1303,8 @@ typedef struct InterceptionModeCallback InterceptionModeCallback; typedef struct Opt_InterceptionModeCallback Opt_InterceptionModeCallback; typedef struct InterceptionShowCallback InterceptionShowCallback; typedef struct Opt_InterceptionShowCallback Opt_InterceptionShowCallback; +typedef struct LoadingProgressModifierBuilder LoadingProgressModifierBuilder; +typedef struct Opt_LoadingProgressModifierBuilder Opt_LoadingProgressModifierBuilder; typedef struct Map_AxisModel_Number Map_AxisModel_Number; typedef struct Opt_Map_AxisModel_Number Opt_Map_AxisModel_Number; typedef struct Map_Number_text_RunMetrics Map_Number_text_RunMetrics; @@ -1299,6 +1317,8 @@ typedef struct Map_String_Object Map_String_Object; typedef struct Opt_Map_String_Object Opt_Map_String_Object; typedef struct MenuCallback MenuCallback; typedef struct Opt_MenuCallback Opt_MenuCallback; +typedef struct MenuItemModifierBuilder MenuItemModifierBuilder; +typedef struct Opt_MenuItemModifierBuilder Opt_MenuItemModifierBuilder; typedef struct MenuOnAppearCallback MenuOnAppearCallback; typedef struct Opt_MenuOnAppearCallback Opt_MenuOnAppearCallback; typedef struct ModifierKeyStateGetter ModifierKeyStateGetter; @@ -1391,6 +1411,12 @@ typedef struct PopupStateChangeCallback PopupStateChangeCallback; typedef struct Opt_PopupStateChangeCallback Opt_PopupStateChangeCallback; typedef struct Profiler_Callback_String_Void Profiler_Callback_String_Void; typedef struct Opt_Profiler_Callback_String_Void Opt_Profiler_Callback_String_Void; +typedef struct ProgressModifierBuilder ProgressModifierBuilder; +typedef struct Opt_ProgressModifierBuilder Opt_ProgressModifierBuilder; +typedef struct RadioModifierBuilder RadioModifierBuilder; +typedef struct Opt_RadioModifierBuilder Opt_RadioModifierBuilder; +typedef struct RatingModifierBuilder RatingModifierBuilder; +typedef struct Opt_RatingModifierBuilder Opt_RatingModifierBuilder; typedef struct RestrictedWorker_onerror_Callback RestrictedWorker_onerror_Callback; typedef struct Opt_RestrictedWorker_onerror_Callback Opt_RestrictedWorker_onerror_Callback; typedef struct RestrictedWorker_onexit_Callback RestrictedWorker_onexit_Callback; @@ -1411,6 +1437,8 @@ typedef struct ShouldBuiltInRecognizerParallelWithCallback ShouldBuiltInRecogniz typedef struct Opt_ShouldBuiltInRecognizerParallelWithCallback Opt_ShouldBuiltInRecognizerParallelWithCallback; typedef struct SizeChangeCallback SizeChangeCallback; typedef struct Opt_SizeChangeCallback Opt_SizeChangeCallback; +typedef struct SliderModifierBuilder SliderModifierBuilder; +typedef struct Opt_SliderModifierBuilder Opt_SliderModifierBuilder; typedef struct SliderTriggerChangeCallback SliderTriggerChangeCallback; typedef struct Opt_SliderTriggerChangeCallback Opt_SliderTriggerChangeCallback; typedef struct StyledStringMarshallCallback StyledStringMarshallCallback; @@ -1425,10 +1453,16 @@ typedef struct text_Callback_Number_Number_Boolean_Boolean text_Callback_Number_ typedef struct Opt_text_Callback_Number_Number_Boolean_Boolean Opt_text_Callback_Number_Number_Boolean_Boolean; typedef struct TextAreaSubmitCallback TextAreaSubmitCallback; typedef struct Opt_TextAreaSubmitCallback Opt_TextAreaSubmitCallback; +typedef struct TextClockModifierBuilder TextClockModifierBuilder; +typedef struct Opt_TextClockModifierBuilder Opt_TextClockModifierBuilder; typedef struct TextPickerEnterSelectedAreaCallback TextPickerEnterSelectedAreaCallback; typedef struct Opt_TextPickerEnterSelectedAreaCallback Opt_TextPickerEnterSelectedAreaCallback; typedef struct TextPickerScrollStopCallback TextPickerScrollStopCallback; typedef struct Opt_TextPickerScrollStopCallback Opt_TextPickerScrollStopCallback; +typedef struct TextTimerModifierBuilder TextTimerModifierBuilder; +typedef struct Opt_TextTimerModifierBuilder Opt_TextTimerModifierBuilder; +typedef struct ToggleModifierBuilder ToggleModifierBuilder; +typedef struct Opt_ToggleModifierBuilder Opt_ToggleModifierBuilder; typedef struct TransitionFinishCallback TransitionFinishCallback; typedef struct Opt_TransitionFinishCallback Opt_TransitionFinishCallback; typedef struct Type_CommonMethod_onDragStart Type_CommonMethod_onDragStart; @@ -1482,6 +1516,8 @@ typedef struct Ark_BreakPoints Ark_BreakPoints; typedef struct Opt_BreakPoints Opt_BreakPoints; typedef struct Ark_BusinessError Ark_BusinessError; typedef struct Opt_BusinessError Opt_BusinessError; +typedef struct Ark_ButtonConfiguration Ark_ButtonConfiguration; +typedef struct Opt_ButtonConfiguration Opt_ButtonConfiguration; typedef struct Ark_ButtonOptions Ark_ButtonOptions; typedef struct Opt_ButtonOptions Opt_ButtonOptions; typedef struct Ark_CalendarRequestedData Ark_CalendarRequestedData; @@ -1494,6 +1530,8 @@ typedef struct Ark_CaretOffset Ark_CaretOffset; typedef struct Opt_CaretOffset Opt_CaretOffset; typedef struct Ark_ChainWeightOptions Ark_ChainWeightOptions; typedef struct Opt_ChainWeightOptions Opt_ChainWeightOptions; +typedef struct Ark_CheckBoxConfiguration Ark_CheckBoxConfiguration; +typedef struct Opt_CheckBoxConfiguration Opt_CheckBoxConfiguration; typedef struct Ark_CheckboxGroupOptions Ark_CheckboxGroupOptions; typedef struct Opt_CheckboxGroupOptions Opt_CheckboxGroupOptions; typedef struct Ark_CheckboxGroupResult Ark_CheckboxGroupResult; @@ -1547,6 +1585,8 @@ typedef struct Ark_CustomSpanMetrics Ark_CustomSpanMetrics; typedef struct Opt_CustomSpanMetrics Opt_CustomSpanMetrics; typedef struct Ark_CutEvent Ark_CutEvent; typedef struct Opt_CutEvent Opt_CutEvent; +typedef struct Ark_DataPanelConfiguration Ark_DataPanelConfiguration; +typedef struct Opt_DataPanelConfiguration Opt_DataPanelConfiguration; typedef struct Ark_DataPanelOptions Ark_DataPanelOptions; typedef struct Opt_DataPanelOptions Opt_DataPanelOptions; typedef struct Ark_DatePickerOptions Ark_DatePickerOptions; @@ -1629,6 +1669,8 @@ typedef struct Ark_FractionStop Ark_FractionStop; typedef struct Opt_FractionStop Opt_FractionStop; typedef struct Ark_Frame Ark_Frame; typedef struct Opt_Frame Opt_Frame; +typedef struct Ark_GaugeConfiguration Ark_GaugeConfiguration; +typedef struct Opt_GaugeConfiguration Opt_GaugeConfiguration; typedef struct Ark_GaugeOptions Ark_GaugeOptions; typedef struct Opt_GaugeOptions Opt_GaugeOptions; typedef struct Ark_GeometryTransitionOptions Ark_GeometryTransitionOptions; @@ -1808,8 +1850,12 @@ typedef struct Ark_PreviewText Ark_PreviewText; typedef struct Opt_PreviewText Opt_PreviewText; typedef struct Ark_ProgressOptions Ark_ProgressOptions; typedef struct Opt_ProgressOptions Opt_ProgressOptions; +typedef struct Ark_RadioConfiguration Ark_RadioConfiguration; +typedef struct Opt_RadioConfiguration Opt_RadioConfiguration; typedef struct Ark_RadioOptions Ark_RadioOptions; typedef struct Opt_RadioOptions Opt_RadioOptions; +typedef struct Ark_RatingConfiguration Ark_RatingConfiguration; +typedef struct Opt_RatingConfiguration Opt_RatingConfiguration; typedef struct Ark_RatingOptions Ark_RatingOptions; typedef struct Opt_RatingOptions Opt_RatingOptions; typedef struct RenderingContextSettingsPeer RenderingContextSettingsPeer; @@ -1888,6 +1934,8 @@ typedef struct Ark_SheetDismiss Ark_SheetDismiss; typedef struct Opt_SheetDismiss Opt_SheetDismiss; typedef struct Ark_SlideRange Ark_SlideRange; typedef struct Opt_SlideRange Opt_SlideRange; +typedef struct Ark_SliderConfiguration Ark_SliderConfiguration; +typedef struct Opt_SliderConfiguration Opt_SliderConfiguration; typedef struct Ark_SliderOptions Ark_SliderOptions; typedef struct Opt_SliderOptions Opt_SliderOptions; typedef struct Ark_SnapshotOptions Ark_SnapshotOptions; @@ -1955,6 +2003,8 @@ typedef struct Ark_TimePickerOptions Ark_TimePickerOptions; typedef struct Opt_TimePickerOptions Opt_TimePickerOptions; typedef struct Ark_TipsMessageType Ark_TipsMessageType; typedef struct Opt_TipsMessageType Opt_TipsMessageType; +typedef struct Ark_ToggleConfiguration Ark_ToggleConfiguration; +typedef struct Opt_ToggleConfiguration Opt_ToggleConfiguration; typedef struct Ark_ToggleOptions Ark_ToggleOptions; typedef struct Opt_ToggleOptions Opt_ToggleOptions; typedef struct Ark_TouchObject Ark_TouchObject; @@ -2205,6 +2255,8 @@ typedef struct Ark_MeasureOptions Ark_MeasureOptions; typedef struct Opt_MeasureOptions Opt_MeasureOptions; typedef struct Ark_MenuElement Ark_MenuElement; typedef struct Opt_MenuElement Opt_MenuElement; +typedef struct Ark_MenuItemConfiguration Ark_MenuItemConfiguration; +typedef struct Opt_MenuItemConfiguration Opt_MenuItemConfiguration; typedef struct Ark_MenuItemGroupOptions Ark_MenuItemGroupOptions; typedef struct Opt_MenuItemGroupOptions Opt_MenuItemGroupOptions; typedef struct Ark_MenuItemOptions Ark_MenuItemOptions; @@ -6610,6 +6662,16 @@ typedef struct Opt_ListScroller { Ark_Tag tag; Ark_ListScroller value; } Opt_ListScroller; +typedef struct Ark_LoadingProgressConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_Boolean enableLoading; +} Ark_LoadingProgressConfiguration; +typedef struct Opt_LoadingProgressConfiguration { + Ark_Tag tag; + Ark_LoadingProgressConfiguration value; +} Opt_LoadingProgressConfiguration; typedef struct Opt_LongPressGestureInterface { Ark_Tag tag; Ark_LongPressGestureInterface value; @@ -6765,6 +6827,17 @@ typedef struct Opt_PreparedInfo { Ark_Tag tag; Ark_PreparedInfo value; } Opt_PreparedInfo; +typedef struct Ark_ProgressConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_Number value; + Ark_Number total; +} Ark_ProgressConfiguration; +typedef struct Opt_ProgressConfiguration { + Ark_Tag tag; + Ark_ProgressConfiguration value; +} Opt_ProgressConfiguration; typedef struct Opt_ProgressMask { Ark_Tag tag; Ark_ProgressMask value; @@ -7085,6 +7158,18 @@ typedef struct Opt_TextBaseController { Ark_Tag tag; Ark_TextBaseController value; } Opt_TextBaseController; +typedef struct Ark_TextClockConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_Number timeZoneOffset; + Ark_Boolean started; + Ark_Number timeValue; +} Ark_TextClockConfiguration; +typedef struct Opt_TextClockConfiguration { + Ark_Tag tag; + Ark_TextClockConfiguration value; +} Opt_TextClockConfiguration; typedef struct Opt_TextClockController { Ark_Tag tag; Ark_TextClockController value; @@ -7153,6 +7238,19 @@ typedef struct Opt_TextPickerDialog { Ark_Tag tag; Ark_TextPickerDialog value; } Opt_TextPickerDialog; +typedef struct Ark_TextTimerConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_Number count; + Ark_Boolean isCountDown; + Ark_Boolean started; + Ark_Number elapsedTime; +} Ark_TextTimerConfiguration; +typedef struct Opt_TextTimerConfiguration { + Ark_Tag tag; + Ark_TextTimerConfiguration value; +} Opt_TextTimerConfiguration; typedef struct Opt_TextTimerController { Ark_Tag tag; Ark_TextTimerController value; @@ -8337,6 +8435,16 @@ typedef struct Opt_AsyncCallback_image_PixelMap_Void { Ark_Tag tag; AsyncCallback_image_PixelMap_Void value; } Opt_AsyncCallback_image_PixelMap_Void; +typedef struct ButtonModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_ButtonConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_ButtonConfiguration config, const Callback_Pointer_Void continuation); +} ButtonModifierBuilder; +typedef struct Opt_ButtonModifierBuilder { + Ark_Tag tag; + ButtonModifierBuilder value; +} Opt_ButtonModifierBuilder; typedef struct ButtonTriggerClickCallback { /* kind: Callback */ Ark_CallbackResource resource; @@ -9757,6 +9865,16 @@ typedef struct Opt_Callback_Void { Ark_Tag tag; Callback_Void value; } Opt_Callback_Void; +typedef struct CheckBoxModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_CheckBoxConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_CheckBoxConfiguration config, const Callback_Pointer_Void continuation); +} CheckBoxModifierBuilder; +typedef struct Opt_CheckBoxModifierBuilder { + Ark_Tag tag; + CheckBoxModifierBuilder value; +} Opt_CheckBoxModifierBuilder; typedef struct ContentDidScrollCallback { /* kind: Callback */ Ark_CallbackResource resource; @@ -9807,6 +9925,16 @@ typedef struct Opt_CustomStyles { Ark_Tag tag; CustomStyles value; } Opt_CustomStyles; +typedef struct DataPanelModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_DataPanelConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_DataPanelConfiguration config, const Callback_Pointer_Void continuation); +} DataPanelModifierBuilder; +typedef struct Opt_DataPanelModifierBuilder { + Ark_Tag tag; + DataPanelModifierBuilder value; +} Opt_DataPanelModifierBuilder; typedef struct EditableTextOnChangeCallback { /* kind: Callback */ Ark_CallbackResource resource; @@ -9827,6 +9955,16 @@ typedef struct Opt_ErrorCallback { Ark_Tag tag; ErrorCallback value; } Opt_ErrorCallback; +typedef struct GaugeModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_GaugeConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_GaugeConfiguration config, const Callback_Pointer_Void continuation); +} GaugeModifierBuilder; +typedef struct Opt_GaugeModifierBuilder { + Ark_Tag tag; + GaugeModifierBuilder value; +} Opt_GaugeModifierBuilder; typedef struct GestureRecognizerJudgeBeginCallback { /* kind: Callback */ Ark_CallbackResource resource; @@ -9907,6 +10045,16 @@ typedef struct Opt_InterceptionShowCallback { Ark_Tag tag; InterceptionShowCallback value; } Opt_InterceptionShowCallback; +typedef struct LoadingProgressModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_LoadingProgressConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_LoadingProgressConfiguration config, const Callback_Pointer_Void continuation); +} LoadingProgressModifierBuilder; +typedef struct Opt_LoadingProgressModifierBuilder { + Ark_Tag tag; + LoadingProgressModifierBuilder value; +} Opt_LoadingProgressModifierBuilder; typedef struct Map_AxisModel_Number { /* kind: ContainerType */ Ark_Int32 size; @@ -9967,6 +10115,16 @@ typedef struct Opt_MenuCallback { Ark_Tag tag; MenuCallback value; } Opt_MenuCallback; +typedef struct MenuItemModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_MenuItemConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_MenuItemConfiguration config, const Callback_Pointer_Void continuation); +} MenuItemModifierBuilder; +typedef struct Opt_MenuItemModifierBuilder { + Ark_Tag tag; + MenuItemModifierBuilder value; +} Opt_MenuItemModifierBuilder; typedef struct MenuOnAppearCallback { /* kind: Callback */ Ark_CallbackResource resource; @@ -10427,6 +10585,36 @@ typedef struct Opt_Profiler_Callback_String_Void { Ark_Tag tag; Profiler_Callback_String_Void value; } Opt_Profiler_Callback_String_Void; +typedef struct ProgressModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_ProgressConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_ProgressConfiguration config, const Callback_Pointer_Void continuation); +} ProgressModifierBuilder; +typedef struct Opt_ProgressModifierBuilder { + Ark_Tag tag; + ProgressModifierBuilder value; +} Opt_ProgressModifierBuilder; +typedef struct RadioModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_RadioConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_RadioConfiguration config, const Callback_Pointer_Void continuation); +} RadioModifierBuilder; +typedef struct Opt_RadioModifierBuilder { + Ark_Tag tag; + RadioModifierBuilder value; +} Opt_RadioModifierBuilder; +typedef struct RatingModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_RatingConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_RatingConfiguration config, const Callback_Pointer_Void continuation); +} RatingModifierBuilder; +typedef struct Opt_RatingModifierBuilder { + Ark_Tag tag; + RatingModifierBuilder value; +} Opt_RatingModifierBuilder; typedef struct RestrictedWorker_onerror_Callback { /* kind: Callback */ Ark_CallbackResource resource; @@ -10527,6 +10715,16 @@ typedef struct Opt_SizeChangeCallback { Ark_Tag tag; SizeChangeCallback value; } Opt_SizeChangeCallback; +typedef struct SliderModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_SliderConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_SliderConfiguration config, const Callback_Pointer_Void continuation); +} SliderModifierBuilder; +typedef struct Opt_SliderModifierBuilder { + Ark_Tag tag; + SliderModifierBuilder value; +} Opt_SliderModifierBuilder; typedef struct SliderTriggerChangeCallback { /* kind: Callback */ Ark_CallbackResource resource; @@ -10597,6 +10795,16 @@ typedef struct Opt_TextAreaSubmitCallback { Ark_Tag tag; TextAreaSubmitCallback value; } Opt_TextAreaSubmitCallback; +typedef struct TextClockModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_TextClockConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_TextClockConfiguration config, const Callback_Pointer_Void continuation); +} TextClockModifierBuilder; +typedef struct Opt_TextClockModifierBuilder { + Ark_Tag tag; + TextClockModifierBuilder value; +} Opt_TextClockModifierBuilder; typedef struct TextPickerEnterSelectedAreaCallback { /* kind: Callback */ Ark_CallbackResource resource; @@ -10617,6 +10825,26 @@ typedef struct Opt_TextPickerScrollStopCallback { Ark_Tag tag; TextPickerScrollStopCallback value; } Opt_TextPickerScrollStopCallback; +typedef struct TextTimerModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_TextTimerConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_TextTimerConfiguration config, const Callback_Pointer_Void continuation); +} TextTimerModifierBuilder; +typedef struct Opt_TextTimerModifierBuilder { + Ark_Tag tag; + TextTimerModifierBuilder value; +} Opt_TextTimerModifierBuilder; +typedef struct ToggleModifierBuilder { + /* kind: Callback */ + Ark_CallbackResource resource; + void (*call)(const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_ToggleConfiguration config, const Callback_Pointer_Void continuation); + void (*callSync)(Ark_VMContext vmContext, const Ark_Int32 resourceId, const Ark_NativePointer parentNode, const Ark_ToggleConfiguration config, const Callback_Pointer_Void continuation); +} ToggleModifierBuilder; +typedef struct Opt_ToggleModifierBuilder { + Ark_Tag tag; + ToggleModifierBuilder value; +} Opt_ToggleModifierBuilder; typedef struct TransitionFinishCallback { /* kind: Callback */ Ark_CallbackResource resource; @@ -10833,6 +11061,18 @@ typedef struct Opt_BusinessError { Ark_Tag tag; Ark_BusinessError value; } Opt_BusinessError; +typedef struct Ark_ButtonConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_String label; + Ark_Boolean pressed; + ButtonTriggerClickCallback triggerClick; +} Ark_ButtonConfiguration; +typedef struct Opt_ButtonConfiguration { + Ark_Tag tag; + Ark_ButtonConfiguration value; +} Opt_ButtonConfiguration; typedef struct Ark_ButtonOptions { /* kind: Interface */ Opt_ButtonType type; @@ -10895,6 +11135,18 @@ typedef struct Opt_ChainWeightOptions { Ark_Tag tag; Ark_ChainWeightOptions value; } Opt_ChainWeightOptions; +typedef struct Ark_CheckBoxConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_String name; + Ark_Boolean selected; + Callback_Boolean_Void triggerChange; +} Ark_CheckBoxConfiguration; +typedef struct Opt_CheckBoxConfiguration { + Ark_Tag tag; + Ark_CheckBoxConfiguration value; +} Opt_CheckBoxConfiguration; typedef struct Ark_CheckboxGroupOptions { /* kind: Interface */ Opt_String group; @@ -11112,6 +11364,17 @@ typedef struct Opt_CutEvent { Ark_Tag tag; Ark_CutEvent value; } Opt_CutEvent; +typedef struct Ark_DataPanelConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Array_Number values; + Ark_Number maxValue; +} Ark_DataPanelConfiguration; +typedef struct Opt_DataPanelConfiguration { + Ark_Tag tag; + Ark_DataPanelConfiguration value; +} Opt_DataPanelConfiguration; typedef struct Ark_DataPanelOptions { /* kind: Interface */ Array_Number values; @@ -11504,6 +11767,18 @@ typedef struct Opt_Frame { Ark_Tag tag; Ark_Frame value; } Opt_Frame; +typedef struct Ark_GaugeConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_Number value; + Ark_Number min; + Ark_Number max; +} Ark_GaugeConfiguration; +typedef struct Opt_GaugeConfiguration { + Ark_Tag tag; + Ark_GaugeConfiguration value; +} Opt_GaugeConfiguration; typedef struct Ark_GaugeOptions { /* kind: Interface */ Ark_Number value; @@ -12312,6 +12587,18 @@ typedef struct Opt_ProgressOptions { Ark_Tag tag; Ark_ProgressOptions value; } Opt_ProgressOptions; +typedef struct Ark_RadioConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_String value; + Ark_Boolean checked; + Callback_Boolean_Void triggerChange; +} Ark_RadioConfiguration; +typedef struct Opt_RadioConfiguration { + Ark_Tag tag; + Ark_RadioConfiguration value; +} Opt_RadioConfiguration; typedef struct Ark_RadioOptions { /* kind: Interface */ Ark_String group; @@ -12323,6 +12610,20 @@ typedef struct Opt_RadioOptions { Ark_Tag tag; Ark_RadioOptions value; } Opt_RadioOptions; +typedef struct Ark_RatingConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_Number rating; + Ark_Boolean indicator; + Ark_Number stars; + Ark_Number stepSize; + Callback_Number_Void triggerChange; +} Ark_RatingConfiguration; +typedef struct Opt_RatingConfiguration { + Ark_Tag tag; + Ark_RatingConfiguration value; +} Opt_RatingConfiguration; typedef struct Ark_RatingOptions { /* kind: Interface */ Ark_Number rating; @@ -12645,6 +12946,20 @@ typedef struct Opt_SlideRange { Ark_Tag tag; Ark_SlideRange value; } Opt_SlideRange; +typedef struct Ark_SliderConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_Number value; + Ark_Number min; + Ark_Number max; + Ark_Number step; + SliderTriggerChangeCallback triggerChange; +} Ark_SliderConfiguration; +typedef struct Opt_SliderConfiguration { + Ark_Tag tag; + Ark_SliderConfiguration value; +} Opt_SliderConfiguration; typedef struct Ark_SliderOptions { /* kind: Interface */ Opt_Number value; @@ -12971,6 +13286,18 @@ typedef struct Opt_TipsMessageType { Ark_Tag tag; Ark_TipsMessageType value; } Opt_TipsMessageType; +typedef struct Ark_ToggleConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_Boolean isOn; + Ark_Boolean toggleEnabled; + Callback_Boolean_Void triggerChange; +} Ark_ToggleConfiguration; +typedef struct Opt_ToggleConfiguration { + Ark_Tag tag; + Ark_ToggleConfiguration value; +} Opt_ToggleConfiguration; typedef struct Ark_ToggleOptions { /* kind: Interface */ Ark_ToggleType type; @@ -14477,6 +14804,20 @@ typedef struct Opt_MenuElement { Ark_Tag tag; Ark_MenuElement value; } Opt_MenuElement; +typedef struct Ark_MenuItemConfiguration { + /* kind: Interface */ + Ark_Boolean enabled; + Ark_ContentModifier contentModifier; + Ark_ResourceStr value; + Opt_ResourceStr icon; + Opt_SymbolGlyphModifier symbolIcon; + Ark_Boolean selected; + Ark_Number index; +} Ark_MenuItemConfiguration; +typedef struct Opt_MenuItemConfiguration { + Ark_Tag tag; + Ark_MenuItemConfiguration value; +} Opt_MenuItemConfiguration; typedef struct Ark_MenuItemGroupOptions { /* kind: Interface */ Opt_Union_ResourceStr_CustomBuilder header; @@ -21613,6 +21954,48 @@ typedef struct GENERATED_ArkUIComponentContentAccessor { void (*updateConfiguration)(Ark_ComponentContent peer); } GENERATED_ArkUIComponentContentAccessor; +typedef struct GENERATED_ArkUIContentModifierHelperAccessor { + void (*contentModifierButton)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const ButtonModifierBuilder* builder); + void (*contentModifierCheckBox)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const CheckBoxModifierBuilder* builder); + void (*contentModifierDataPanel)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const DataPanelModifierBuilder* builder); + void (*contentModifierGauge)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const GaugeModifierBuilder* builder); + void (*contentModifierLoadingProgress)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const LoadingProgressModifierBuilder* builder); + void (*contentModifierProgress)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const ProgressModifierBuilder* builder); + void (*contentModifierRadio)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const RadioModifierBuilder* builder); + void (*contentModifierRating)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const RatingModifierBuilder* builder); + void (*contentModifierMenuItem)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const MenuItemModifierBuilder* builder); + void (*contentModifierSlider)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const SliderModifierBuilder* builder); + void (*contentModifierTextClock)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const TextClockModifierBuilder* builder); + void (*contentModifierTextTimer)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const TextTimerModifierBuilder* builder); + void (*contentModifierToggle)(Ark_NativePointer node, + const Ark_Object* contentModifier, + const ToggleModifierBuilder* builder); +} GENERATED_ArkUIContentModifierHelperAccessor; + typedef struct GENERATED_ArkUIContextAccessor { void (*destroyPeer)(Ark_Context peer); Ark_Context (*ctor)(); @@ -25043,6 +25426,7 @@ typedef struct GENERATED_ArkUIAccessors { const GENERATED_ArkUICommon_ContextAccessor* (*getCommon_ContextAccessor)(); const GENERATED_ArkUICommonShapeAccessor* (*getCommonShapeAccessor)(); const GENERATED_ArkUIComponentContentAccessor* (*getComponentContentAccessor)(); + const GENERATED_ArkUIContentModifierHelperAccessor* (*getContentModifierHelperAccessor)(); const GENERATED_ArkUIContextAccessor* (*getContextAccessor)(); const GENERATED_ArkUICustomBuildAccessor* (*getCustomBuildAccessor)(); const GENERATED_ArkUICustomDialogControllerAccessor* (*getCustomDialogControllerAccessor)(); diff --git a/arkoala-arkts/framework/native/src/generated/bridge_generated.cc b/arkoala-arkts/framework/native/src/generated/bridge_generated.cc index 97b97d7453..ac1448387c 100644 --- a/arkoala-arkts/framework/native/src/generated/bridge_generated.cc +++ b/arkoala-arkts/framework/native/src/generated/bridge_generated.cc @@ -28837,6 +28837,97 @@ void impl_ComponentContent_updateConfiguration(Ark_NativePointer thisPtr) { GetAccessors()->getComponentContentAccessor()->updateConfiguration(self); } KOALA_INTEROP_DIRECT_V1(ComponentContent_updateConfiguration, Ark_NativePointer) +void impl_ContentModifierHelper_contentModifierButton(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + ButtonModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_ButtonModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_ButtonModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierButton(node, (const Ark_Object*)&contentModifier_value, (const ButtonModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierButton, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierCheckBox(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + CheckBoxModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_CheckBoxModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_CheckBoxModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierCheckBox(node, (const Ark_Object*)&contentModifier_value, (const CheckBoxModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierCheckBox, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierDataPanel(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + DataPanelModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_DataPanelModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_DataPanelModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierDataPanel(node, (const Ark_Object*)&contentModifier_value, (const DataPanelModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierDataPanel, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierGauge(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + GaugeModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_GaugeModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_GaugeModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierGauge(node, (const Ark_Object*)&contentModifier_value, (const GaugeModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierGauge, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierLoadingProgress(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + LoadingProgressModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_LoadingProgressModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_LoadingProgressModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierLoadingProgress(node, (const Ark_Object*)&contentModifier_value, (const LoadingProgressModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierLoadingProgress, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierProgress(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + ProgressModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_ProgressModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_ProgressModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierProgress(node, (const Ark_Object*)&contentModifier_value, (const ProgressModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierProgress, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierRadio(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + RadioModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_RadioModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_RadioModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierRadio(node, (const Ark_Object*)&contentModifier_value, (const RadioModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierRadio, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierRating(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + RatingModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_RatingModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_RatingModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierRating(node, (const Ark_Object*)&contentModifier_value, (const RatingModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierRating, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierMenuItem(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + MenuItemModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_MenuItemModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_MenuItemModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierMenuItem(node, (const Ark_Object*)&contentModifier_value, (const MenuItemModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierMenuItem, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierSlider(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + SliderModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_SliderModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_SliderModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierSlider(node, (const Ark_Object*)&contentModifier_value, (const SliderModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierSlider, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierTextClock(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + TextClockModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_TextClockModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_TextClockModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierTextClock(node, (const Ark_Object*)&contentModifier_value, (const TextClockModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierTextClock, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierTextTimer(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + TextTimerModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_TextTimerModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_TextTimerModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierTextTimer(node, (const Ark_Object*)&contentModifier_value, (const TextTimerModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierTextTimer, Ark_NativePointer, KSerializerBuffer, int32_t) +void impl_ContentModifierHelper_contentModifierToggle(Ark_NativePointer node, KSerializerBuffer thisArray, int32_t thisLength) { + Deserializer thisDeserializer(thisArray, thisLength); + Ark_Object contentModifier_value = static_cast(thisDeserializer.readObject());; + ToggleModifierBuilder builder_value = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_ToggleModifierBuilder)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_ToggleModifierBuilder))))};; + GetAccessors()->getContentModifierHelperAccessor()->contentModifierToggle(node, (const Ark_Object*)&contentModifier_value, (const ToggleModifierBuilder*)&builder_value); +} +KOALA_INTEROP_DIRECT_V3(ContentModifierHelper_contentModifierToggle, Ark_NativePointer, KSerializerBuffer, int32_t) Ark_NativePointer impl_Context_ctor() { return GetAccessors()->getContextAccessor()->ctor(); } diff --git a/arkoala-arkts/framework/native/src/generated/callback_deserialize_call.cc b/arkoala-arkts/framework/native/src/generated/callback_deserialize_call.cc index 83ee73dc5f..b4aab6ffba 100644 --- a/arkoala-arkts/framework/native/src/generated/callback_deserialize_call.cc +++ b/arkoala-arkts/framework/native/src/generated/callback_deserialize_call.cc @@ -76,6 +76,28 @@ void deserializeAndCallSyncAsyncCallback_image_PixelMap_Void(Ark_VMContext vmCon Ark_image_PixelMap result = static_cast(thisDeserializer.readimage_PixelMap()); _callSync(vmContext, _resourceId, result); } +void deserializeAndCallButtonModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_ButtonConfiguration config = thisDeserializer.readButtonConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncButtonModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_ButtonConfiguration config = thisDeserializer.readButtonConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallButtonTriggerClickCallback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -3192,6 +3214,28 @@ void deserializeAndCallSyncCallback_Void(Ark_VMContext vmContext, KSerializerBuf const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); _callSync(vmContext, _resourceId); } +void deserializeAndCallCheckBoxModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_CheckBoxConfiguration config = thisDeserializer.readCheckBoxConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncCheckBoxModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_CheckBoxConfiguration config = thisDeserializer.readCheckBoxConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallContentDidScrollCallback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -3292,6 +3336,28 @@ void deserializeAndCallSyncCustomStyles(Ark_VMContext vmContext, KSerializerBuff Ark_String instance = static_cast(thisDeserializer.readString()); _callSync(vmContext, _resourceId, instance); } +void deserializeAndCallDataPanelModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_DataPanelConfiguration config = thisDeserializer.readDataPanelConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncDataPanelModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_DataPanelConfiguration config = thisDeserializer.readDataPanelConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallEditableTextOnChangeCallback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -3360,6 +3426,28 @@ void deserializeAndCallSyncErrorCallback(Ark_VMContext vmContext, KSerializerBuf Ark_BusinessError error = thisDeserializer.readBusinessError(); _callSync(vmContext, _resourceId, error); } +void deserializeAndCallGaugeModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_GaugeConfiguration config = thisDeserializer.readGaugeConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncGaugeModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_GaugeConfiguration config = thisDeserializer.readGaugeConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallGestureRecognizerJudgeBeginCallback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -3604,6 +3692,28 @@ void deserializeAndCallSyncInterceptionShowCallback(Ark_VMContext vmContext, KSe Ark_Boolean isAnimated = thisDeserializer.readBoolean(); _callSync(vmContext, _resourceId, from, to, operation, isAnimated); } +void deserializeAndCallLoadingProgressModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_LoadingProgressConfiguration config = thisDeserializer.readLoadingProgressConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncLoadingProgressModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_LoadingProgressConfiguration config = thisDeserializer.readLoadingProgressConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallMenuCallback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -3624,6 +3734,28 @@ void deserializeAndCallSyncMenuCallback(Ark_VMContext vmContext, KSerializerBuff Ark_Number end = static_cast(thisDeserializer.readNumber()); _callSync(vmContext, _resourceId, start, end); } +void deserializeAndCallMenuItemModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_MenuItemConfiguration config = thisDeserializer.readMenuItemConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncMenuItemModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_MenuItemConfiguration config = thisDeserializer.readMenuItemConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallMenuOnAppearCallback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -4678,6 +4810,72 @@ void deserializeAndCallSyncPopupStateChangeCallback(Ark_VMContext vmContext, KSe Ark_PopupStateChangeParam event = thisDeserializer.readPopupStateChangeParam(); _callSync(vmContext, _resourceId, event); } +void deserializeAndCallProgressModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_ProgressConfiguration config = thisDeserializer.readProgressConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncProgressModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_ProgressConfiguration config = thisDeserializer.readProgressConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} +void deserializeAndCallRadioModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_RadioConfiguration config = thisDeserializer.readRadioConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncRadioModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_RadioConfiguration config = thisDeserializer.readRadioConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} +void deserializeAndCallRatingModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_RatingConfiguration config = thisDeserializer.readRatingConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncRatingModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_RatingConfiguration config = thisDeserializer.readRatingConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallRestrictedWorker_onerror_Callback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -4924,6 +5122,28 @@ void deserializeAndCallSyncSizeChangeCallback(Ark_VMContext vmContext, KSerializ Ark_SizeOptions newValue = thisDeserializer.readSizeOptions(); _callSync(vmContext, _resourceId, oldValue, newValue); } +void deserializeAndCallSliderModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_SliderConfiguration config = thisDeserializer.readSliderConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncSliderModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_SliderConfiguration config = thisDeserializer.readSliderConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallSliderTriggerChangeCallback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -5060,6 +5280,28 @@ void deserializeAndCallSyncTextAreaSubmitCallback(Ark_VMContext vmContext, KSeri Opt_SubmitEvent event = event_buf; _callSync(vmContext, _resourceId, enterKeyType, event); } +void deserializeAndCallTextClockModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_TextClockConfiguration config = thisDeserializer.readTextClockConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncTextClockModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_TextClockConfiguration config = thisDeserializer.readTextClockConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallTextPickerEnterSelectedAreaCallback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -5268,6 +5510,50 @@ void deserializeAndCallSyncTextPickerScrollStopCallback(Ark_VMContext vmContext, Ark_Union_Number_Array_Number index = static_cast(index_buf); _callSync(vmContext, _resourceId, value, index); } +void deserializeAndCallTextTimerModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_TextTimerConfiguration config = thisDeserializer.readTextTimerConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncTextTimerModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_TextTimerConfiguration config = thisDeserializer.readTextTimerConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} +void deserializeAndCallToggleModifierBuilder(KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + const auto _call = reinterpret_cast(thisDeserializer.readPointer()); + thisDeserializer.readPointer(); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_ToggleConfiguration config = thisDeserializer.readToggleConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _call(_resourceId, parentNode, config, _continuation); +} +void deserializeAndCallSyncToggleModifierBuilder(Ark_VMContext vmContext, KSerializerBuffer thisArray, Ark_Int32 thisLength) +{ + Deserializer thisDeserializer = Deserializer(thisArray, thisLength); + const Ark_Int32 _resourceId = thisDeserializer.readInt32(); + thisDeserializer.readPointer(); + const auto _callSync = reinterpret_cast(thisDeserializer.readPointer()); + Ark_NativePointer parentNode = thisDeserializer.readPointer(); + Ark_ToggleConfiguration config = thisDeserializer.readToggleConfiguration(); + Callback_Pointer_Void _continuation = {thisDeserializer.readCallbackResource(), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCaller(Kind_Callback_Pointer_Void)))), reinterpret_cast(thisDeserializer.readPointerOrDefault(reinterpret_cast(getManagedCallbackCallerSync(Kind_Callback_Pointer_Void))))}; + _callSync(vmContext, _resourceId, parentNode, config, _continuation); +} void deserializeAndCallTransitionFinishCallback(KSerializerBuffer thisArray, Ark_Int32 thisLength) { Deserializer thisDeserializer = Deserializer(thisArray, thisLength); @@ -5406,6 +5692,7 @@ void deserializeAndCallCallback(Ark_Int32 kind, KSerializerBuffer thisArray, Ark case 589030517/*Kind_AccessibilityCallback*/: return deserializeAndCallAccessibilityCallback(thisArray, thisLength); case 1715445305/*Kind_AccessibilityFocusCallback*/: return deserializeAndCallAccessibilityFocusCallback(thisArray, thisLength); case 1289587365/*Kind_AsyncCallback_image_PixelMap_Void*/: return deserializeAndCallAsyncCallback_image_PixelMap_Void(thisArray, thisLength); + case -2004118094/*Kind_ButtonModifierBuilder*/: return deserializeAndCallButtonModifierBuilder(thisArray, thisLength); case -1964292933/*Kind_ButtonTriggerClickCallback*/: return deserializeAndCallButtonTriggerClickCallback(thisArray, thisLength); case -2024393616/*Kind_Callback_Area_Area_Void*/: return deserializeAndCallCallback_Area_Area_Void(thisArray, thisLength); case 582384234/*Kind_Callback_Array_Number_Void*/: return deserializeAndCallCallback_Array_Number_Void(thisArray, thisLength); @@ -5544,13 +5831,16 @@ void deserializeAndCallCallback(Ark_Int32 kind, KSerializerBuffer thisArray, Ark case -620935067/*Kind_Callback_Union_CustomBuilder_DragItemInfo_Void*/: return deserializeAndCallCallback_Union_CustomBuilder_DragItemInfo_Void(thisArray, thisLength); case 411311059/*Kind_Callback_Union_Object_Undefined_Void*/: return deserializeAndCallCallback_Union_Object_Undefined_Void(thisArray, thisLength); case -1867723152/*Kind_Callback_Void*/: return deserializeAndCallCallback_Void(thisArray, thisLength); + case 1317697111/*Kind_CheckBoxModifierBuilder*/: return deserializeAndCallCheckBoxModifierBuilder(thisArray, thisLength); case 1532328438/*Kind_ContentDidScrollCallback*/: return deserializeAndCallContentDidScrollCallback(thisArray, thisLength); case -2146044511/*Kind_ContentWillScrollCallback*/: return deserializeAndCallContentWillScrollCallback(thisArray, thisLength); case 260483890/*Kind_Context_getGroupDir_Callback*/: return deserializeAndCallContext_getGroupDir_Callback(thisArray, thisLength); case 1766817632/*Kind_CustomNodeBuilder*/: return deserializeAndCallCustomNodeBuilder(thisArray, thisLength); case -1565709723/*Kind_CustomStyles*/: return deserializeAndCallCustomStyles(thisArray, thisLength); + case -238036926/*Kind_DataPanelModifierBuilder*/: return deserializeAndCallDataPanelModifierBuilder(thisArray, thisLength); case -1729563209/*Kind_EditableTextOnChangeCallback*/: return deserializeAndCallEditableTextOnChangeCallback(thisArray, thisLength); case -1936519453/*Kind_ErrorCallback*/: return deserializeAndCallErrorCallback(thisArray, thisLength); + case 255469205/*Kind_GaugeModifierBuilder*/: return deserializeAndCallGaugeModifierBuilder(thisArray, thisLength); case -2119548940/*Kind_GestureRecognizerJudgeBeginCallback*/: return deserializeAndCallGestureRecognizerJudgeBeginCallback(thisArray, thisLength); case -2076995110/*Kind_GetItemMainSizeByIndex*/: return deserializeAndCallGetItemMainSizeByIndex(thisArray, thisLength); case 68560477/*Kind_HoverCallback*/: return deserializeAndCallHoverCallback(thisArray, thisLength); @@ -5559,7 +5849,9 @@ void deserializeAndCallCallback(Ark_Int32 kind, KSerializerBuffer thisArray, Ark case 541056756/*Kind_ImageOnCompleteCallback*/: return deserializeAndCallImageOnCompleteCallback(thisArray, thisLength); case 1502213270/*Kind_InterceptionModeCallback*/: return deserializeAndCallInterceptionModeCallback(thisArray, thisLength); case 1852781814/*Kind_InterceptionShowCallback*/: return deserializeAndCallInterceptionShowCallback(thisArray, thisLength); + case 56854815/*Kind_LoadingProgressModifierBuilder*/: return deserializeAndCallLoadingProgressModifierBuilder(thisArray, thisLength); case 810927048/*Kind_MenuCallback*/: return deserializeAndCallMenuCallback(thisArray, thisLength); + case -1928323454/*Kind_MenuItemModifierBuilder*/: return deserializeAndCallMenuItemModifierBuilder(thisArray, thisLength); case -614475458/*Kind_MenuOnAppearCallback*/: return deserializeAndCallMenuOnAppearCallback(thisArray, thisLength); case -1026503952/*Kind_ModifierKeyStateGetter*/: return deserializeAndCallModifierKeyStateGetter(thisArray, thisLength); case -1066063065/*Kind_NavDestinationTransitionDelegate*/: return deserializeAndCallNavDestinationTransitionDelegate(thisArray, thisLength); @@ -5605,6 +5897,9 @@ void deserializeAndCallCallback(Ark_Int32 kind, KSerializerBuffer thisArray, Ark case 919057028/*Kind_PasteEventCallback*/: return deserializeAndCallPasteEventCallback(thisArray, thisLength); case -1992671958/*Kind_PluginErrorCallback*/: return deserializeAndCallPluginErrorCallback(thisArray, thisLength); case -1444325632/*Kind_PopupStateChangeCallback*/: return deserializeAndCallPopupStateChangeCallback(thisArray, thisLength); + case -2049749383/*Kind_ProgressModifierBuilder*/: return deserializeAndCallProgressModifierBuilder(thisArray, thisLength); + case -327322091/*Kind_RadioModifierBuilder*/: return deserializeAndCallRadioModifierBuilder(thisArray, thisLength); + case 1013330403/*Kind_RatingModifierBuilder*/: return deserializeAndCallRatingModifierBuilder(thisArray, thisLength); case -1213708823/*Kind_RestrictedWorker_onerror_Callback*/: return deserializeAndCallRestrictedWorker_onerror_Callback(thisArray, thisLength); case -2095497263/*Kind_RestrictedWorker_onexit_Callback*/: return deserializeAndCallRestrictedWorker_onexit_Callback(thisArray, thisLength); case 1614214490/*Kind_RestrictedWorker_onmessage_Callback*/: return deserializeAndCallRestrictedWorker_onmessage_Callback(thisArray, thisLength); @@ -5615,14 +5910,18 @@ void deserializeAndCallCallback(Ark_Int32 kind, KSerializerBuffer thisArray, Ark case 1717691617/*Kind_SearchSubmitCallback*/: return deserializeAndCallSearchSubmitCallback(thisArray, thisLength); case -250780276/*Kind_ShouldBuiltInRecognizerParallelWithCallback*/: return deserializeAndCallShouldBuiltInRecognizerParallelWithCallback(thisArray, thisLength); case -1716637992/*Kind_SizeChangeCallback*/: return deserializeAndCallSizeChangeCallback(thisArray, thisLength); + case 553138561/*Kind_SliderModifierBuilder*/: return deserializeAndCallSliderModifierBuilder(thisArray, thisLength); case 711649376/*Kind_SliderTriggerChangeCallback*/: return deserializeAndCallSliderTriggerChangeCallback(thisArray, thisLength); case 1095217433/*Kind_StyledStringMarshallCallback*/: return deserializeAndCallStyledStringMarshallCallback(thisArray, thisLength); case 1359717794/*Kind_StyledStringUnmarshallCallback*/: return deserializeAndCallStyledStringUnmarshallCallback(thisArray, thisLength); case -712186065/*Kind_SubmitCallback*/: return deserializeAndCallSubmitCallback(thisArray, thisLength); case 221706282/*Kind_TabsCustomContentTransitionCallback*/: return deserializeAndCallTabsCustomContentTransitionCallback(thisArray, thisLength); case -401980571/*Kind_TextAreaSubmitCallback*/: return deserializeAndCallTextAreaSubmitCallback(thisArray, thisLength); + case -987272911/*Kind_TextClockModifierBuilder*/: return deserializeAndCallTextClockModifierBuilder(thisArray, thisLength); case -202014218/*Kind_TextPickerEnterSelectedAreaCallback*/: return deserializeAndCallTextPickerEnterSelectedAreaCallback(thisArray, thisLength); case -1928298699/*Kind_TextPickerScrollStopCallback*/: return deserializeAndCallTextPickerScrollStopCallback(thisArray, thisLength); + case 505330174/*Kind_TextTimerModifierBuilder*/: return deserializeAndCallTextTimerModifierBuilder(thisArray, thisLength); + case -879751946/*Kind_ToggleModifierBuilder*/: return deserializeAndCallToggleModifierBuilder(thisArray, thisLength); case -1878458553/*Kind_TransitionFinishCallback*/: return deserializeAndCallTransitionFinishCallback(thisArray, thisLength); case -201932855/*Kind_Type_CommonMethod_onDragStart*/: return deserializeAndCallType_CommonMethod_onDragStart(thisArray, thisLength); case -1209910992/*Kind_Type_NavigationAttribute_customNavContentTransition*/: return deserializeAndCallType_NavigationAttribute_customNavContentTransition(thisArray, thisLength); @@ -5639,6 +5938,7 @@ void deserializeAndCallCallbackSync(Ark_VMContext vmContext, Ark_Int32 kind, KSe case 589030517/*Kind_AccessibilityCallback*/: return deserializeAndCallSyncAccessibilityCallback(vmContext, thisArray, thisLength); case 1715445305/*Kind_AccessibilityFocusCallback*/: return deserializeAndCallSyncAccessibilityFocusCallback(vmContext, thisArray, thisLength); case 1289587365/*Kind_AsyncCallback_image_PixelMap_Void*/: return deserializeAndCallSyncAsyncCallback_image_PixelMap_Void(vmContext, thisArray, thisLength); + case -2004118094/*Kind_ButtonModifierBuilder*/: return deserializeAndCallSyncButtonModifierBuilder(vmContext, thisArray, thisLength); case -1964292933/*Kind_ButtonTriggerClickCallback*/: return deserializeAndCallSyncButtonTriggerClickCallback(vmContext, thisArray, thisLength); case -2024393616/*Kind_Callback_Area_Area_Void*/: return deserializeAndCallSyncCallback_Area_Area_Void(vmContext, thisArray, thisLength); case 582384234/*Kind_Callback_Array_Number_Void*/: return deserializeAndCallSyncCallback_Array_Number_Void(vmContext, thisArray, thisLength); @@ -5777,13 +6077,16 @@ void deserializeAndCallCallbackSync(Ark_VMContext vmContext, Ark_Int32 kind, KSe case -620935067/*Kind_Callback_Union_CustomBuilder_DragItemInfo_Void*/: return deserializeAndCallSyncCallback_Union_CustomBuilder_DragItemInfo_Void(vmContext, thisArray, thisLength); case 411311059/*Kind_Callback_Union_Object_Undefined_Void*/: return deserializeAndCallSyncCallback_Union_Object_Undefined_Void(vmContext, thisArray, thisLength); case -1867723152/*Kind_Callback_Void*/: return deserializeAndCallSyncCallback_Void(vmContext, thisArray, thisLength); + case 1317697111/*Kind_CheckBoxModifierBuilder*/: return deserializeAndCallSyncCheckBoxModifierBuilder(vmContext, thisArray, thisLength); case 1532328438/*Kind_ContentDidScrollCallback*/: return deserializeAndCallSyncContentDidScrollCallback(vmContext, thisArray, thisLength); case -2146044511/*Kind_ContentWillScrollCallback*/: return deserializeAndCallSyncContentWillScrollCallback(vmContext, thisArray, thisLength); case 260483890/*Kind_Context_getGroupDir_Callback*/: return deserializeAndCallSyncContext_getGroupDir_Callback(vmContext, thisArray, thisLength); case 1766817632/*Kind_CustomNodeBuilder*/: return deserializeAndCallSyncCustomNodeBuilder(vmContext, thisArray, thisLength); case -1565709723/*Kind_CustomStyles*/: return deserializeAndCallSyncCustomStyles(vmContext, thisArray, thisLength); + case -238036926/*Kind_DataPanelModifierBuilder*/: return deserializeAndCallSyncDataPanelModifierBuilder(vmContext, thisArray, thisLength); case -1729563209/*Kind_EditableTextOnChangeCallback*/: return deserializeAndCallSyncEditableTextOnChangeCallback(vmContext, thisArray, thisLength); case -1936519453/*Kind_ErrorCallback*/: return deserializeAndCallSyncErrorCallback(vmContext, thisArray, thisLength); + case 255469205/*Kind_GaugeModifierBuilder*/: return deserializeAndCallSyncGaugeModifierBuilder(vmContext, thisArray, thisLength); case -2119548940/*Kind_GestureRecognizerJudgeBeginCallback*/: return deserializeAndCallSyncGestureRecognizerJudgeBeginCallback(vmContext, thisArray, thisLength); case -2076995110/*Kind_GetItemMainSizeByIndex*/: return deserializeAndCallSyncGetItemMainSizeByIndex(vmContext, thisArray, thisLength); case 68560477/*Kind_HoverCallback*/: return deserializeAndCallSyncHoverCallback(vmContext, thisArray, thisLength); @@ -5792,7 +6095,9 @@ void deserializeAndCallCallbackSync(Ark_VMContext vmContext, Ark_Int32 kind, KSe case 541056756/*Kind_ImageOnCompleteCallback*/: return deserializeAndCallSyncImageOnCompleteCallback(vmContext, thisArray, thisLength); case 1502213270/*Kind_InterceptionModeCallback*/: return deserializeAndCallSyncInterceptionModeCallback(vmContext, thisArray, thisLength); case 1852781814/*Kind_InterceptionShowCallback*/: return deserializeAndCallSyncInterceptionShowCallback(vmContext, thisArray, thisLength); + case 56854815/*Kind_LoadingProgressModifierBuilder*/: return deserializeAndCallSyncLoadingProgressModifierBuilder(vmContext, thisArray, thisLength); case 810927048/*Kind_MenuCallback*/: return deserializeAndCallSyncMenuCallback(vmContext, thisArray, thisLength); + case -1928323454/*Kind_MenuItemModifierBuilder*/: return deserializeAndCallSyncMenuItemModifierBuilder(vmContext, thisArray, thisLength); case -614475458/*Kind_MenuOnAppearCallback*/: return deserializeAndCallSyncMenuOnAppearCallback(vmContext, thisArray, thisLength); case -1026503952/*Kind_ModifierKeyStateGetter*/: return deserializeAndCallSyncModifierKeyStateGetter(vmContext, thisArray, thisLength); case -1066063065/*Kind_NavDestinationTransitionDelegate*/: return deserializeAndCallSyncNavDestinationTransitionDelegate(vmContext, thisArray, thisLength); @@ -5838,6 +6143,9 @@ void deserializeAndCallCallbackSync(Ark_VMContext vmContext, Ark_Int32 kind, KSe case 919057028/*Kind_PasteEventCallback*/: return deserializeAndCallSyncPasteEventCallback(vmContext, thisArray, thisLength); case -1992671958/*Kind_PluginErrorCallback*/: return deserializeAndCallSyncPluginErrorCallback(vmContext, thisArray, thisLength); case -1444325632/*Kind_PopupStateChangeCallback*/: return deserializeAndCallSyncPopupStateChangeCallback(vmContext, thisArray, thisLength); + case -2049749383/*Kind_ProgressModifierBuilder*/: return deserializeAndCallSyncProgressModifierBuilder(vmContext, thisArray, thisLength); + case -327322091/*Kind_RadioModifierBuilder*/: return deserializeAndCallSyncRadioModifierBuilder(vmContext, thisArray, thisLength); + case 1013330403/*Kind_RatingModifierBuilder*/: return deserializeAndCallSyncRatingModifierBuilder(vmContext, thisArray, thisLength); case -1213708823/*Kind_RestrictedWorker_onerror_Callback*/: return deserializeAndCallSyncRestrictedWorker_onerror_Callback(vmContext, thisArray, thisLength); case -2095497263/*Kind_RestrictedWorker_onexit_Callback*/: return deserializeAndCallSyncRestrictedWorker_onexit_Callback(vmContext, thisArray, thisLength); case 1614214490/*Kind_RestrictedWorker_onmessage_Callback*/: return deserializeAndCallSyncRestrictedWorker_onmessage_Callback(vmContext, thisArray, thisLength); @@ -5848,14 +6156,18 @@ void deserializeAndCallCallbackSync(Ark_VMContext vmContext, Ark_Int32 kind, KSe case 1717691617/*Kind_SearchSubmitCallback*/: return deserializeAndCallSyncSearchSubmitCallback(vmContext, thisArray, thisLength); case -250780276/*Kind_ShouldBuiltInRecognizerParallelWithCallback*/: return deserializeAndCallSyncShouldBuiltInRecognizerParallelWithCallback(vmContext, thisArray, thisLength); case -1716637992/*Kind_SizeChangeCallback*/: return deserializeAndCallSyncSizeChangeCallback(vmContext, thisArray, thisLength); + case 553138561/*Kind_SliderModifierBuilder*/: return deserializeAndCallSyncSliderModifierBuilder(vmContext, thisArray, thisLength); case 711649376/*Kind_SliderTriggerChangeCallback*/: return deserializeAndCallSyncSliderTriggerChangeCallback(vmContext, thisArray, thisLength); case 1095217433/*Kind_StyledStringMarshallCallback*/: return deserializeAndCallSyncStyledStringMarshallCallback(vmContext, thisArray, thisLength); case 1359717794/*Kind_StyledStringUnmarshallCallback*/: return deserializeAndCallSyncStyledStringUnmarshallCallback(vmContext, thisArray, thisLength); case -712186065/*Kind_SubmitCallback*/: return deserializeAndCallSyncSubmitCallback(vmContext, thisArray, thisLength); case 221706282/*Kind_TabsCustomContentTransitionCallback*/: return deserializeAndCallSyncTabsCustomContentTransitionCallback(vmContext, thisArray, thisLength); case -401980571/*Kind_TextAreaSubmitCallback*/: return deserializeAndCallSyncTextAreaSubmitCallback(vmContext, thisArray, thisLength); + case -987272911/*Kind_TextClockModifierBuilder*/: return deserializeAndCallSyncTextClockModifierBuilder(vmContext, thisArray, thisLength); case -202014218/*Kind_TextPickerEnterSelectedAreaCallback*/: return deserializeAndCallSyncTextPickerEnterSelectedAreaCallback(vmContext, thisArray, thisLength); case -1928298699/*Kind_TextPickerScrollStopCallback*/: return deserializeAndCallSyncTextPickerScrollStopCallback(vmContext, thisArray, thisLength); + case 505330174/*Kind_TextTimerModifierBuilder*/: return deserializeAndCallSyncTextTimerModifierBuilder(vmContext, thisArray, thisLength); + case -879751946/*Kind_ToggleModifierBuilder*/: return deserializeAndCallSyncToggleModifierBuilder(vmContext, thisArray, thisLength); case -1878458553/*Kind_TransitionFinishCallback*/: return deserializeAndCallSyncTransitionFinishCallback(vmContext, thisArray, thisLength); case -201932855/*Kind_Type_CommonMethod_onDragStart*/: return deserializeAndCallSyncType_CommonMethod_onDragStart(vmContext, thisArray, thisLength); case -1209910992/*Kind_Type_NavigationAttribute_customNavContentTransition*/: return deserializeAndCallSyncType_NavigationAttribute_customNavContentTransition(vmContext, thisArray, thisLength); diff --git a/arkoala-arkts/framework/native/src/generated/callback_kind.h b/arkoala-arkts/framework/native/src/generated/callback_kind.h index ba8595a45f..a250660e64 100644 --- a/arkoala-arkts/framework/native/src/generated/callback_kind.h +++ b/arkoala-arkts/framework/native/src/generated/callback_kind.h @@ -6,6 +6,7 @@ typedef enum CallbackKind { Kind_AccessibilityCallback = 589030517, Kind_AccessibilityFocusCallback = 1715445305, Kind_AsyncCallback_image_PixelMap_Void = 1289587365, + Kind_ButtonModifierBuilder = -2004118094, Kind_ButtonTriggerClickCallback = -1964292933, Kind_Callback_Area_Area_Void = -2024393616, Kind_Callback_Array_Number_Void = 582384234, @@ -149,13 +150,16 @@ typedef enum CallbackKind { Kind_Callback_Union_CustomBuilder_DragItemInfo_Void = -620935067, Kind_Callback_Union_Object_Undefined_Void = 411311059, Kind_Callback_Void = -1867723152, + Kind_CheckBoxModifierBuilder = 1317697111, Kind_ContentDidScrollCallback = 1532328438, Kind_ContentWillScrollCallback = -2146044511, Kind_Context_getGroupDir_Callback = 260483890, Kind_CustomNodeBuilder = 1766817632, Kind_CustomStyles = -1565709723, + Kind_DataPanelModifierBuilder = -238036926, Kind_EditableTextOnChangeCallback = -1729563209, Kind_ErrorCallback = -1936519453, + Kind_GaugeModifierBuilder = 255469205, Kind_GestureRecognizerJudgeBeginCallback = -2119548940, Kind_GetItemMainSizeByIndex = -2076995110, Kind_HoverCallback = 68560477, @@ -164,7 +168,9 @@ typedef enum CallbackKind { Kind_ImageOnCompleteCallback = 541056756, Kind_InterceptionModeCallback = 1502213270, Kind_InterceptionShowCallback = 1852781814, + Kind_LoadingProgressModifierBuilder = 56854815, Kind_MenuCallback = 810927048, + Kind_MenuItemModifierBuilder = -1928323454, Kind_MenuOnAppearCallback = -614475458, Kind_ModifierKeyStateGetter = -1026503952, Kind_NavDestinationTransitionDelegate = -1066063065, @@ -210,6 +216,9 @@ typedef enum CallbackKind { Kind_PasteEventCallback = 919057028, Kind_PluginErrorCallback = -1992671958, Kind_PopupStateChangeCallback = -1444325632, + Kind_ProgressModifierBuilder = -2049749383, + Kind_RadioModifierBuilder = -327322091, + Kind_RatingModifierBuilder = 1013330403, Kind_RestrictedWorker_onerror_Callback = -1213708823, Kind_RestrictedWorker_onexit_Callback = -2095497263, Kind_RestrictedWorker_onmessage_Callback = 1614214490, @@ -220,14 +229,18 @@ typedef enum CallbackKind { Kind_SearchSubmitCallback = 1717691617, Kind_ShouldBuiltInRecognizerParallelWithCallback = -250780276, Kind_SizeChangeCallback = -1716637992, + Kind_SliderModifierBuilder = 553138561, Kind_SliderTriggerChangeCallback = 711649376, Kind_StyledStringMarshallCallback = 1095217433, Kind_StyledStringUnmarshallCallback = 1359717794, Kind_SubmitCallback = -712186065, Kind_TabsCustomContentTransitionCallback = 221706282, Kind_TextAreaSubmitCallback = -401980571, + Kind_TextClockModifierBuilder = -987272911, Kind_TextPickerEnterSelectedAreaCallback = -202014218, Kind_TextPickerScrollStopCallback = -1928298699, + Kind_TextTimerModifierBuilder = 505330174, + Kind_ToggleModifierBuilder = -879751946, Kind_TransitionFinishCallback = -1878458553, Kind_Type_CommonMethod_onDragStart = -201932855, Kind_Type_NavigationAttribute_customNavContentTransition = -1209910992, diff --git a/arkoala-arkts/framework/native/src/generated/callback_managed_caller.cc b/arkoala-arkts/framework/native/src/generated/callback_managed_caller.cc index 23f8069a6f..0022221369 100644 --- a/arkoala-arkts/framework/native/src/generated/callback_managed_caller.cc +++ b/arkoala-arkts/framework/native/src/generated/callback_managed_caller.cc @@ -82,6 +82,34 @@ void callManagedAsyncCallback_image_PixelMap_VoidSync(Ark_VMContext vmContext, A argsSerializer.writeimage_PixelMap(result); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedButtonModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_ButtonConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_ButtonModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeButtonConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedButtonModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_ButtonConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_ButtonModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeButtonConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedButtonTriggerClickCallback(Ark_Int32 resourceId, Ark_Number xPos, Ark_Number yPos) { CallbackBuffer _buffer = {{}, {}}; @@ -3580,6 +3608,34 @@ void callManagedCallback_VoidSync(Ark_VMContext vmContext, Ark_Int32 resourceId) argsSerializer.writeInt32(resourceId); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedCheckBoxModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_CheckBoxConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_CheckBoxModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeCheckBoxConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedCheckBoxModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_CheckBoxConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_CheckBoxModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeCheckBoxConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedContentDidScrollCallback(Ark_Int32 resourceId, Ark_Number selectedIndex, Ark_Number index, Ark_Number position, Ark_Number mainAxisLength) { CallbackBuffer _buffer = {{}, {}}; @@ -3698,6 +3754,34 @@ void callManagedCustomStylesSync(Ark_VMContext vmContext, Ark_Int32 resourceId, argsSerializer.writeString(instance); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedDataPanelModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_DataPanelConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_DataPanelModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeDataPanelConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedDataPanelModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_DataPanelConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_DataPanelModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeDataPanelConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedEditableTextOnChangeCallback(Ark_Int32 resourceId, Ark_String value, Opt_PreviewText previewText, Opt_TextChangeOptions options) { CallbackBuffer _buffer = {{}, {}}; @@ -3766,6 +3850,34 @@ void callManagedErrorCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, argsSerializer.writeBusinessError(error); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedGaugeModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_GaugeConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_GaugeModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeGaugeConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedGaugeModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_GaugeConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_GaugeModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeGaugeConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedGestureRecognizerJudgeBeginCallback(Ark_Int32 resourceId, Ark_BaseGestureEvent event, Ark_GestureRecognizer current, Array_GestureRecognizer recognizers, Callback_GestureJudgeResult_Void continuation) { CallbackBuffer _buffer = {{}, {}}; @@ -4014,6 +4126,34 @@ void callManagedInterceptionShowCallbackSync(Ark_VMContext vmContext, Ark_Int32 argsSerializer.writeBoolean(isAnimated); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedLoadingProgressModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_LoadingProgressConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_LoadingProgressModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeLoadingProgressConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedLoadingProgressModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_LoadingProgressConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_LoadingProgressModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeLoadingProgressConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedMenuCallback(Ark_Int32 resourceId, Ark_Number start, Ark_Number end) { CallbackBuffer _buffer = {{}, {}}; @@ -4036,6 +4176,34 @@ void callManagedMenuCallbackSync(Ark_VMContext vmContext, Ark_Int32 resourceId, argsSerializer.writeNumber(end); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedMenuItemModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_MenuItemConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_MenuItemModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeMenuItemConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedMenuItemModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_MenuItemConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_MenuItemModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeMenuItemConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedMenuOnAppearCallback(Ark_Int32 resourceId, Ark_Number start, Ark_Number end) { CallbackBuffer _buffer = {{}, {}}; @@ -5168,6 +5336,90 @@ void callManagedPopupStateChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 argsSerializer.writePopupStateChangeParam(event); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedProgressModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_ProgressConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_ProgressModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeProgressConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedProgressModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_ProgressConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_ProgressModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeProgressConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} +void callManagedRadioModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_RadioConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_RadioModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeRadioConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedRadioModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_RadioConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_RadioModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeRadioConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} +void callManagedRatingModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_RatingConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_RatingModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeRatingConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedRatingModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_RatingConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_RatingModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeRatingConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedRestrictedWorker_onerror_Callback(Ark_Int32 resourceId, Ark_ErrorEvent ev) { CallbackBuffer _buffer = {{}, {}}; @@ -5436,6 +5688,34 @@ void callManagedSizeChangeCallbackSync(Ark_VMContext vmContext, Ark_Int32 resour argsSerializer.writeSizeOptions(newValue); KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedSliderModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_SliderConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_SliderModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeSliderConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedSliderModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_SliderConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_SliderModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeSliderConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedSliderTriggerChangeCallback(Ark_Int32 resourceId, Ark_Number value, Ark_SliderChangeMode mode) { CallbackBuffer _buffer = {{}, {}}; @@ -5594,6 +5874,34 @@ void callManagedTextAreaSubmitCallbackSync(Ark_VMContext vmContext, Ark_Int32 re } KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedTextClockModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_TextClockConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_TextClockModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeTextClockConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedTextClockModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_TextClockConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_TextClockModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeTextClockConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedTextPickerEnterSelectedAreaCallback(Ark_Int32 resourceId, Ark_Union_String_Array_String value, Ark_Union_Number_Array_Number index) { CallbackBuffer _buffer = {{}, {}}; @@ -5758,6 +6066,62 @@ void callManagedTextPickerScrollStopCallbackSync(Ark_VMContext vmContext, Ark_In } KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); } +void callManagedTextTimerModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_TextTimerConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_TextTimerModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeTextTimerConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedTextTimerModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_TextTimerConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_TextTimerModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeTextTimerConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} +void callManagedToggleModifierBuilder(Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_ToggleConfiguration config, Callback_Pointer_Void continuation) +{ + CallbackBuffer _buffer = {{}, {}}; + const Ark_CallbackResource _callbackResourceSelf = {resourceId, holdManagedCallbackResource, releaseManagedCallbackResource}; + _buffer.resourceHolder.holdCallbackResource(&_callbackResourceSelf); + Serializer argsSerializer = Serializer((KSerializerBuffer)&(_buffer.buffer), sizeof(_buffer.buffer), &(_buffer.resourceHolder)); + argsSerializer.writeInt32(Kind_ToggleModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeToggleConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + enqueueCallback(&_buffer); +} +void callManagedToggleModifierBuilderSync(Ark_VMContext vmContext, Ark_Int32 resourceId, Ark_NativePointer parentNode, Ark_ToggleConfiguration config, Callback_Pointer_Void continuation) +{ + uint8_t _buffer[4096]; + Serializer argsSerializer = Serializer((KSerializerBuffer)&_buffer, sizeof(_buffer), nullptr); + argsSerializer.writeInt32(Kind_ToggleModifierBuilder); + argsSerializer.writeInt32(resourceId); + argsSerializer.writePointer(parentNode); + argsSerializer.writeToggleConfiguration(config); + argsSerializer.writeCallbackResource(continuation.resource); + argsSerializer.writePointer(reinterpret_cast(continuation.call)); + argsSerializer.writePointer(reinterpret_cast(continuation.callSync)); + KOALA_INTEROP_CALL_VOID(vmContext, 1, sizeof(_buffer), _buffer); +} void callManagedTransitionFinishCallback(Ark_Int32 resourceId, Ark_Boolean transitionIn) { CallbackBuffer _buffer = {{}, {}}; @@ -5914,6 +6278,7 @@ Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) case Kind_AccessibilityCallback: return reinterpret_cast(callManagedAccessibilityCallback); case Kind_AccessibilityFocusCallback: return reinterpret_cast(callManagedAccessibilityFocusCallback); case Kind_AsyncCallback_image_PixelMap_Void: return reinterpret_cast(callManagedAsyncCallback_image_PixelMap_Void); + case Kind_ButtonModifierBuilder: return reinterpret_cast(callManagedButtonModifierBuilder); case Kind_ButtonTriggerClickCallback: return reinterpret_cast(callManagedButtonTriggerClickCallback); case Kind_Callback_Area_Area_Void: return reinterpret_cast(callManagedCallback_Area_Area_Void); case Kind_Callback_Array_Number_Void: return reinterpret_cast(callManagedCallback_Array_Number_Void); @@ -6057,13 +6422,16 @@ Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) case Kind_Callback_Union_CustomBuilder_DragItemInfo_Void: return reinterpret_cast(callManagedCallback_Union_CustomBuilder_DragItemInfo_Void); case Kind_Callback_Union_Object_Undefined_Void: return reinterpret_cast(callManagedCallback_Union_Object_Undefined_Void); case Kind_Callback_Void: return reinterpret_cast(callManagedCallback_Void); + case Kind_CheckBoxModifierBuilder: return reinterpret_cast(callManagedCheckBoxModifierBuilder); case Kind_ContentDidScrollCallback: return reinterpret_cast(callManagedContentDidScrollCallback); case Kind_ContentWillScrollCallback: return reinterpret_cast(callManagedContentWillScrollCallback); case Kind_Context_getGroupDir_Callback: return reinterpret_cast(callManagedContext_getGroupDir_Callback); case Kind_CustomNodeBuilder: return reinterpret_cast(callManagedCustomNodeBuilder); case Kind_CustomStyles: return reinterpret_cast(callManagedCustomStyles); + case Kind_DataPanelModifierBuilder: return reinterpret_cast(callManagedDataPanelModifierBuilder); case Kind_EditableTextOnChangeCallback: return reinterpret_cast(callManagedEditableTextOnChangeCallback); case Kind_ErrorCallback: return reinterpret_cast(callManagedErrorCallback); + case Kind_GaugeModifierBuilder: return reinterpret_cast(callManagedGaugeModifierBuilder); case Kind_GestureRecognizerJudgeBeginCallback: return reinterpret_cast(callManagedGestureRecognizerJudgeBeginCallback); case Kind_GetItemMainSizeByIndex: return reinterpret_cast(callManagedGetItemMainSizeByIndex); case Kind_HoverCallback: return reinterpret_cast(callManagedHoverCallback); @@ -6072,7 +6440,9 @@ Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) case Kind_ImageOnCompleteCallback: return reinterpret_cast(callManagedImageOnCompleteCallback); case Kind_InterceptionModeCallback: return reinterpret_cast(callManagedInterceptionModeCallback); case Kind_InterceptionShowCallback: return reinterpret_cast(callManagedInterceptionShowCallback); + case Kind_LoadingProgressModifierBuilder: return reinterpret_cast(callManagedLoadingProgressModifierBuilder); case Kind_MenuCallback: return reinterpret_cast(callManagedMenuCallback); + case Kind_MenuItemModifierBuilder: return reinterpret_cast(callManagedMenuItemModifierBuilder); case Kind_MenuOnAppearCallback: return reinterpret_cast(callManagedMenuOnAppearCallback); case Kind_ModifierKeyStateGetter: return reinterpret_cast(callManagedModifierKeyStateGetter); case Kind_NavDestinationTransitionDelegate: return reinterpret_cast(callManagedNavDestinationTransitionDelegate); @@ -6118,6 +6488,9 @@ Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) case Kind_PasteEventCallback: return reinterpret_cast(callManagedPasteEventCallback); case Kind_PluginErrorCallback: return reinterpret_cast(callManagedPluginErrorCallback); case Kind_PopupStateChangeCallback: return reinterpret_cast(callManagedPopupStateChangeCallback); + case Kind_ProgressModifierBuilder: return reinterpret_cast(callManagedProgressModifierBuilder); + case Kind_RadioModifierBuilder: return reinterpret_cast(callManagedRadioModifierBuilder); + case Kind_RatingModifierBuilder: return reinterpret_cast(callManagedRatingModifierBuilder); case Kind_RestrictedWorker_onerror_Callback: return reinterpret_cast(callManagedRestrictedWorker_onerror_Callback); case Kind_RestrictedWorker_onexit_Callback: return reinterpret_cast(callManagedRestrictedWorker_onexit_Callback); case Kind_RestrictedWorker_onmessage_Callback: return reinterpret_cast(callManagedRestrictedWorker_onmessage_Callback); @@ -6128,14 +6501,18 @@ Ark_NativePointer getManagedCallbackCaller(CallbackKind kind) case Kind_SearchSubmitCallback: return reinterpret_cast(callManagedSearchSubmitCallback); case Kind_ShouldBuiltInRecognizerParallelWithCallback: return reinterpret_cast(callManagedShouldBuiltInRecognizerParallelWithCallback); case Kind_SizeChangeCallback: return reinterpret_cast(callManagedSizeChangeCallback); + case Kind_SliderModifierBuilder: return reinterpret_cast(callManagedSliderModifierBuilder); case Kind_SliderTriggerChangeCallback: return reinterpret_cast(callManagedSliderTriggerChangeCallback); case Kind_StyledStringMarshallCallback: return reinterpret_cast(callManagedStyledStringMarshallCallback); case Kind_StyledStringUnmarshallCallback: return reinterpret_cast(callManagedStyledStringUnmarshallCallback); case Kind_SubmitCallback: return reinterpret_cast(callManagedSubmitCallback); case Kind_TabsCustomContentTransitionCallback: return reinterpret_cast(callManagedTabsCustomContentTransitionCallback); case Kind_TextAreaSubmitCallback: return reinterpret_cast(callManagedTextAreaSubmitCallback); + case Kind_TextClockModifierBuilder: return reinterpret_cast(callManagedTextClockModifierBuilder); case Kind_TextPickerEnterSelectedAreaCallback: return reinterpret_cast(callManagedTextPickerEnterSelectedAreaCallback); case Kind_TextPickerScrollStopCallback: return reinterpret_cast(callManagedTextPickerScrollStopCallback); + case Kind_TextTimerModifierBuilder: return reinterpret_cast(callManagedTextTimerModifierBuilder); + case Kind_ToggleModifierBuilder: return reinterpret_cast(callManagedToggleModifierBuilder); case Kind_TransitionFinishCallback: return reinterpret_cast(callManagedTransitionFinishCallback); case Kind_Type_CommonMethod_onDragStart: return reinterpret_cast(callManagedType_CommonMethod_onDragStart); case Kind_Type_NavigationAttribute_customNavContentTransition: return reinterpret_cast(callManagedType_NavigationAttribute_customNavContentTransition); @@ -6151,6 +6528,7 @@ Ark_NativePointer getManagedCallbackCallerSync(CallbackKind kind) case Kind_AccessibilityCallback: return reinterpret_cast(callManagedAccessibilityCallbackSync); case Kind_AccessibilityFocusCallback: return reinterpret_cast(callManagedAccessibilityFocusCallbackSync); case Kind_AsyncCallback_image_PixelMap_Void: return reinterpret_cast(callManagedAsyncCallback_image_PixelMap_VoidSync); + case Kind_ButtonModifierBuilder: return reinterpret_cast(callManagedButtonModifierBuilderSync); case Kind_ButtonTriggerClickCallback: return reinterpret_cast(callManagedButtonTriggerClickCallbackSync); case Kind_Callback_Area_Area_Void: return reinterpret_cast(callManagedCallback_Area_Area_VoidSync); case Kind_Callback_Array_Number_Void: return reinterpret_cast(callManagedCallback_Array_Number_VoidSync); @@ -6294,13 +6672,16 @@ Ark_NativePointer getManagedCallbackCallerSync(CallbackKind kind) case Kind_Callback_Union_CustomBuilder_DragItemInfo_Void: return reinterpret_cast(callManagedCallback_Union_CustomBuilder_DragItemInfo_VoidSync); case Kind_Callback_Union_Object_Undefined_Void: return reinterpret_cast(callManagedCallback_Union_Object_Undefined_VoidSync); case Kind_Callback_Void: return reinterpret_cast(callManagedCallback_VoidSync); + case Kind_CheckBoxModifierBuilder: return reinterpret_cast(callManagedCheckBoxModifierBuilderSync); case Kind_ContentDidScrollCallback: return reinterpret_cast(callManagedContentDidScrollCallbackSync); case Kind_ContentWillScrollCallback: return reinterpret_cast(callManagedContentWillScrollCallbackSync); case Kind_Context_getGroupDir_Callback: return reinterpret_cast(callManagedContext_getGroupDir_CallbackSync); case Kind_CustomNodeBuilder: return reinterpret_cast(callManagedCustomNodeBuilderSync); case Kind_CustomStyles: return reinterpret_cast(callManagedCustomStylesSync); + case Kind_DataPanelModifierBuilder: return reinterpret_cast(callManagedDataPanelModifierBuilderSync); case Kind_EditableTextOnChangeCallback: return reinterpret_cast(callManagedEditableTextOnChangeCallbackSync); case Kind_ErrorCallback: return reinterpret_cast(callManagedErrorCallbackSync); + case Kind_GaugeModifierBuilder: return reinterpret_cast(callManagedGaugeModifierBuilderSync); case Kind_GestureRecognizerJudgeBeginCallback: return reinterpret_cast(callManagedGestureRecognizerJudgeBeginCallbackSync); case Kind_GetItemMainSizeByIndex: return reinterpret_cast(callManagedGetItemMainSizeByIndexSync); case Kind_HoverCallback: return reinterpret_cast(callManagedHoverCallbackSync); @@ -6309,7 +6690,9 @@ Ark_NativePointer getManagedCallbackCallerSync(CallbackKind kind) case Kind_ImageOnCompleteCallback: return reinterpret_cast(callManagedImageOnCompleteCallbackSync); case Kind_InterceptionModeCallback: return reinterpret_cast(callManagedInterceptionModeCallbackSync); case Kind_InterceptionShowCallback: return reinterpret_cast(callManagedInterceptionShowCallbackSync); + case Kind_LoadingProgressModifierBuilder: return reinterpret_cast(callManagedLoadingProgressModifierBuilderSync); case Kind_MenuCallback: return reinterpret_cast(callManagedMenuCallbackSync); + case Kind_MenuItemModifierBuilder: return reinterpret_cast(callManagedMenuItemModifierBuilderSync); case Kind_MenuOnAppearCallback: return reinterpret_cast(callManagedMenuOnAppearCallbackSync); case Kind_ModifierKeyStateGetter: return reinterpret_cast(callManagedModifierKeyStateGetterSync); case Kind_NavDestinationTransitionDelegate: return reinterpret_cast(callManagedNavDestinationTransitionDelegateSync); @@ -6355,6 +6738,9 @@ Ark_NativePointer getManagedCallbackCallerSync(CallbackKind kind) case Kind_PasteEventCallback: return reinterpret_cast(callManagedPasteEventCallbackSync); case Kind_PluginErrorCallback: return reinterpret_cast(callManagedPluginErrorCallbackSync); case Kind_PopupStateChangeCallback: return reinterpret_cast(callManagedPopupStateChangeCallbackSync); + case Kind_ProgressModifierBuilder: return reinterpret_cast(callManagedProgressModifierBuilderSync); + case Kind_RadioModifierBuilder: return reinterpret_cast(callManagedRadioModifierBuilderSync); + case Kind_RatingModifierBuilder: return reinterpret_cast(callManagedRatingModifierBuilderSync); case Kind_RestrictedWorker_onerror_Callback: return reinterpret_cast(callManagedRestrictedWorker_onerror_CallbackSync); case Kind_RestrictedWorker_onexit_Callback: return reinterpret_cast(callManagedRestrictedWorker_onexit_CallbackSync); case Kind_RestrictedWorker_onmessage_Callback: return reinterpret_cast(callManagedRestrictedWorker_onmessage_CallbackSync); @@ -6365,14 +6751,18 @@ Ark_NativePointer getManagedCallbackCallerSync(CallbackKind kind) case Kind_SearchSubmitCallback: return reinterpret_cast(callManagedSearchSubmitCallbackSync); case Kind_ShouldBuiltInRecognizerParallelWithCallback: return reinterpret_cast(callManagedShouldBuiltInRecognizerParallelWithCallbackSync); case Kind_SizeChangeCallback: return reinterpret_cast(callManagedSizeChangeCallbackSync); + case Kind_SliderModifierBuilder: return reinterpret_cast(callManagedSliderModifierBuilderSync); case Kind_SliderTriggerChangeCallback: return reinterpret_cast(callManagedSliderTriggerChangeCallbackSync); case Kind_StyledStringMarshallCallback: return reinterpret_cast(callManagedStyledStringMarshallCallbackSync); case Kind_StyledStringUnmarshallCallback: return reinterpret_cast(callManagedStyledStringUnmarshallCallbackSync); case Kind_SubmitCallback: return reinterpret_cast(callManagedSubmitCallbackSync); case Kind_TabsCustomContentTransitionCallback: return reinterpret_cast(callManagedTabsCustomContentTransitionCallbackSync); case Kind_TextAreaSubmitCallback: return reinterpret_cast(callManagedTextAreaSubmitCallbackSync); + case Kind_TextClockModifierBuilder: return reinterpret_cast(callManagedTextClockModifierBuilderSync); case Kind_TextPickerEnterSelectedAreaCallback: return reinterpret_cast(callManagedTextPickerEnterSelectedAreaCallbackSync); case Kind_TextPickerScrollStopCallback: return reinterpret_cast(callManagedTextPickerScrollStopCallbackSync); + case Kind_TextTimerModifierBuilder: return reinterpret_cast(callManagedTextTimerModifierBuilderSync); + case Kind_ToggleModifierBuilder: return reinterpret_cast(callManagedToggleModifierBuilderSync); case Kind_TransitionFinishCallback: return reinterpret_cast(callManagedTransitionFinishCallbackSync); case Kind_Type_CommonMethod_onDragStart: return reinterpret_cast(callManagedType_CommonMethod_onDragStartSync); case Kind_Type_NavigationAttribute_customNavContentTransition: return reinterpret_cast(callManagedType_NavigationAttribute_customNavContentTransitionSync); diff --git a/arkoala-arkts/framework/native/src/generated/dummy_impl.cc b/arkoala-arkts/framework/native/src/generated/dummy_impl.cc index f0f6bbce3c..7d9d862435 100644 --- a/arkoala-arkts/framework/native/src/generated/dummy_impl.cc +++ b/arkoala-arkts/framework/native/src/generated/dummy_impl.cc @@ -22529,6 +22529,203 @@ namespace OHOS::Ace::NG::GeneratedModifier { appendGroupedLog(1, out); } } // ComponentContentAccessor + namespace ContentModifierHelperAccessor { + void ContentModifierButtonImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const ButtonModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierButton("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierCheckBoxImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const CheckBoxModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierCheckBox("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierDataPanelImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const DataPanelModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierDataPanel("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierGaugeImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const GaugeModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierGauge("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierLoadingProgressImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const LoadingProgressModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierLoadingProgress("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierProgressImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const ProgressModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierProgress("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierRadioImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const RadioModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierRadio("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierRatingImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const RatingModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierRating("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierMenuItemImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const MenuItemModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierMenuItem("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierSliderImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const SliderModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierSlider("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierTextClockImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const TextClockModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierTextClock("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierTextTimerImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const TextTimerModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierTextTimer("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + void ContentModifierToggleImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const ToggleModifierBuilder* builder) + { + if (!needGroupedLog(1)) + return; + string out("contentModifierToggle("); + WriteToString(&out, node); + out.append(", "); + WriteToString(&out, contentModifier); + out.append(", "); + WriteToString(&out, builder); + out.append(") \n"); + appendGroupedLog(1, out); + } + } // ContentModifierHelperAccessor namespace ContextAccessor { void DestroyPeerImpl(Ark_Context peer) { @@ -41288,6 +41485,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct ComponentContentPeer { virtual ~ComponentContentPeer() = default; }; + const GENERATED_ArkUIContentModifierHelperAccessor* GetContentModifierHelperAccessor() + { + static const GENERATED_ArkUIContentModifierHelperAccessor ContentModifierHelperAccessorImpl { + ContentModifierHelperAccessor::ContentModifierButtonImpl, + ContentModifierHelperAccessor::ContentModifierCheckBoxImpl, + ContentModifierHelperAccessor::ContentModifierDataPanelImpl, + ContentModifierHelperAccessor::ContentModifierGaugeImpl, + ContentModifierHelperAccessor::ContentModifierLoadingProgressImpl, + ContentModifierHelperAccessor::ContentModifierProgressImpl, + ContentModifierHelperAccessor::ContentModifierRadioImpl, + ContentModifierHelperAccessor::ContentModifierRatingImpl, + ContentModifierHelperAccessor::ContentModifierMenuItemImpl, + ContentModifierHelperAccessor::ContentModifierSliderImpl, + ContentModifierHelperAccessor::ContentModifierTextClockImpl, + ContentModifierHelperAccessor::ContentModifierTextTimerImpl, + ContentModifierHelperAccessor::ContentModifierToggleImpl, + }; + return &ContentModifierHelperAccessorImpl; + } + const GENERATED_ArkUIContextAccessor* GetContextAccessor() { static const GENERATED_ArkUIContextAccessor ContextAccessorImpl { @@ -44681,6 +44898,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetCommon_ContextAccessor, GetCommonShapeAccessor, GetComponentContentAccessor, + GetContentModifierHelperAccessor, GetContextAccessor, GetCustomBuildAccessor, GetCustomDialogControllerAccessor, diff --git a/arkoala-arkts/framework/native/src/generated/real_impl.cc b/arkoala-arkts/framework/native/src/generated/real_impl.cc index 7992c34b37..50503ccc11 100644 --- a/arkoala-arkts/framework/native/src/generated/real_impl.cc +++ b/arkoala-arkts/framework/native/src/generated/real_impl.cc @@ -11335,6 +11335,138 @@ namespace OHOS::Ace::NG::GeneratedModifier { { } } // ComponentContentAccessor + namespace ContentModifierHelperAccessor { + void ContentModifierButtonImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const ButtonModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierButton(frameNode, convValue); + } + void ContentModifierCheckBoxImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const CheckBoxModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierCheckBox(frameNode, convValue); + } + void ContentModifierDataPanelImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const DataPanelModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierDataPanel(frameNode, convValue); + } + void ContentModifierGaugeImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const GaugeModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierGauge(frameNode, convValue); + } + void ContentModifierLoadingProgressImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const LoadingProgressModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierLoadingProgress(frameNode, convValue); + } + void ContentModifierProgressImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const ProgressModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierProgress(frameNode, convValue); + } + void ContentModifierRadioImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const RadioModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierRadio(frameNode, convValue); + } + void ContentModifierRatingImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const RatingModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierRating(frameNode, convValue); + } + void ContentModifierMenuItemImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const MenuItemModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierMenuItem(frameNode, convValue); + } + void ContentModifierSliderImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const SliderModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierSlider(frameNode, convValue); + } + void ContentModifierTextClockImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const TextClockModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierTextClock(frameNode, convValue); + } + void ContentModifierTextTimerImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const TextTimerModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierTextTimer(frameNode, convValue); + } + void ContentModifierToggleImpl(Ark_NativePointer node, + const Ark_Object* contentModifier, + const ToggleModifierBuilder* builder) + { + auto frameNode = reinterpret_cast(node); + CHECK_NULL_VOID(frameNode); + //auto convValue = Converter::Convert(node); + //auto convValue = Converter::OptConvert(node); // for enums + //undefinedModelNG::SetContentModifierToggle(frameNode, convValue); + } + } // ContentModifierHelperAccessor namespace ContextAccessor { void DestroyPeerImpl(Ark_Context peer) { @@ -19931,6 +20063,26 @@ namespace OHOS::Ace::NG::GeneratedModifier { struct ComponentContentPeer { virtual ~ComponentContentPeer() = default; }; + const GENERATED_ArkUIContentModifierHelperAccessor* GetContentModifierHelperAccessor() + { + static const GENERATED_ArkUIContentModifierHelperAccessor ContentModifierHelperAccessorImpl { + ContentModifierHelperAccessor::ContentModifierButtonImpl, + ContentModifierHelperAccessor::ContentModifierCheckBoxImpl, + ContentModifierHelperAccessor::ContentModifierDataPanelImpl, + ContentModifierHelperAccessor::ContentModifierGaugeImpl, + ContentModifierHelperAccessor::ContentModifierLoadingProgressImpl, + ContentModifierHelperAccessor::ContentModifierProgressImpl, + ContentModifierHelperAccessor::ContentModifierRadioImpl, + ContentModifierHelperAccessor::ContentModifierRatingImpl, + ContentModifierHelperAccessor::ContentModifierMenuItemImpl, + ContentModifierHelperAccessor::ContentModifierSliderImpl, + ContentModifierHelperAccessor::ContentModifierTextClockImpl, + ContentModifierHelperAccessor::ContentModifierTextTimerImpl, + ContentModifierHelperAccessor::ContentModifierToggleImpl, + }; + return &ContentModifierHelperAccessorImpl; + } + const GENERATED_ArkUIContextAccessor* GetContextAccessor() { static const GENERATED_ArkUIContextAccessor ContextAccessorImpl { @@ -23324,6 +23476,7 @@ namespace OHOS::Ace::NG::GeneratedModifier { GetCommon_ContextAccessor, GetCommonShapeAccessor, GetComponentContentAccessor, + GetContentModifierHelperAccessor, GetContextAccessor, GetCustomBuildAccessor, GetCustomDialogControllerAccessor, -- Gitee From 1edfb4c85629db5ceda927ca79539cf062b07d6c Mon Sep 17 00:00:00 2001 From: Ilya Erokhin Date: Fri, 6 Jun 2025 16:12:37 +0300 Subject: [PATCH 2/2] ContentModifier implementation Signed-off-by: Ilya Erokhin --- .../sdk/handwritten/ContentModifierHooks.ets | 37 +++ arkoala-arkts/arkui/sdk/handwritten/index.ets | 1 + .../arkui/src/ets/CallbackTransformer.ets | 4 + .../ets/handwritten/ContentModifierHooks.ets | 271 ++++++++++++++++++ .../arkui/src/ets/handwritten/index.ets | 1 + 5 files changed, 314 insertions(+) create mode 100644 arkoala-arkts/arkui/sdk/handwritten/ContentModifierHooks.ets create mode 100644 arkoala-arkts/arkui/src/ets/handwritten/ContentModifierHooks.ets diff --git a/arkoala-arkts/arkui/sdk/handwritten/ContentModifierHooks.ets b/arkoala-arkts/arkui/sdk/handwritten/ContentModifierHooks.ets new file mode 100644 index 0000000000..b3ae314555 --- /dev/null +++ b/arkoala-arkts/arkui/sdk/handwritten/ContentModifierHooks.ets @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { memo } from "@koalaui/runtime/annotations" + +export class WrappedBuilder { + constructor( + @memo + builder: (args: Args) => void) { + this.builder = builder; + } + @memo + builder: ((args: Args) => void); +} + +export function wrapBuilder( + @memo + builder: (args: Args) => void +): WrappedBuilder { + return new WrappedBuilder(builder); +} + +export interface ContentModifier { + applyContent(): WrappedBuilder> +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/sdk/handwritten/index.ets b/arkoala-arkts/arkui/sdk/handwritten/index.ets index 33e7515fdb..113b7fa32c 100644 --- a/arkoala-arkts/arkui/sdk/handwritten/index.ets +++ b/arkoala-arkts/arkui/sdk/handwritten/index.ets @@ -18,6 +18,7 @@ export * from "./ArkPageTransitionData" export * from "./AttributeUpdater" export * from "./TestComponent" export * from "./Router" +export * from "./ContentModifierHooks" export * from "./ForeignFunctions" export * from "./resources" export * from "./base" diff --git a/arkoala-arkts/arkui/src/ets/CallbackTransformer.ets b/arkoala-arkts/arkui/src/ets/CallbackTransformer.ets index 152e60b355..362c7c38e3 100644 --- a/arkoala-arkts/arkui/src/ets/CallbackTransformer.ets +++ b/arkoala-arkts/arkui/src/ets/CallbackTransformer.ets @@ -54,4 +54,8 @@ export class CallbackTransformer { static transformToCustomBuilder(value: CustomNodeBuilder): CustomBuilder { throw new Error("Not implemented") } + static transformToPeerFromCustomBuilder(value: CustomBuilder): KPointer { + const peer = createUiDetachedRoot(componentRootPeerFactory, value) + return peer.peer.ptr + } } \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/ets/handwritten/ContentModifierHooks.ets b/arkoala-arkts/arkui/src/ets/handwritten/ContentModifierHooks.ets new file mode 100644 index 0000000000..259a06984b --- /dev/null +++ b/arkoala-arkts/arkui/src/ets/handwritten/ContentModifierHooks.ets @@ -0,0 +1,271 @@ +/* + * Copyright (c) 2025 Huawei Device Co., Ltd. + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import { memo } from "@koalaui/runtime/annotations" +import { ContentModifierHelper } from "../generated" +import { ArkButtonComponent, ButtonConfiguration} from "../generated" +import { ArkCheckboxComponent, CheckBoxConfiguration } from "../generated" +import { ArkDataPanelComponent, DataPanelConfiguration } from "../generated" +import { ArkGaugeComponent, GaugeConfiguration } from "../generated" +import { ArkLoadingProgressComponent, LoadingProgressConfiguration } from "../generated" +import { ArkProgressComponent, ProgressConfiguration } from "../generated" +import { ArkRadioComponent, RadioConfiguration } from "../generated" +import { ArkRatingComponent, RatingConfiguration } from "../generated" +import { ArkSelectComponent, MenuItemConfiguration } from "../generated" +import { ArkSliderComponent, SliderConfiguration } from "../generated" +import { ArkTextClockComponent, TextClockConfiguration } from "../generated" +import { ArkTextTimerComponent, TextTimerConfiguration } from "../generated" +import { ArkToggleComponent, ToggleConfiguration } from "../generated" +import { CustomBuilder } from "../generated" +import { CallbackTransformer } from "./../CallbackTransformer" +import { KPointer } from "@koalaui/interop" + +export class WrappedBuilder { + constructor( + @memo + builder: (args: Args) => void) { + this.builder = builder; + } + @memo + builder: ((args: Args) => void); +} + +export function wrapBuilder( + @memo + builder: (args: Args) => void +): WrappedBuilder { + return new WrappedBuilder(builder); +} + +export interface ContentModifier { + applyContent(): WrappedBuilder> +} + +function memoWrapper( + @memo + builder: ((args: Args) => void), args: Args +): CustomBuilder { + @memo + const wrapper = () => { builder(args) } + return wrapper +} + +@memo +export function hookButtonContentModifier( + receiver: ArkButtonComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let buttonBuilder = (parentNode: KPointer, config: ButtonConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierButton(receiver.getPeer().peer.ptr, value!, buttonBuilder) + } +} + +@memo +export function hookCheckBoxContentModifier( + receiver: ArkCheckboxComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let checkboxBuilder = (parentNode: KPointer, config: CheckBoxConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierCheckBox(receiver.getPeer().peer.ptr, value!, checkboxBuilder) + } +} + +@memo +export function hookDataPanelContentModifier( + receiver: ArkDataPanelComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let dataPanelBuilder = (parentNode: KPointer, config: DataPanelConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierDataPanel(receiver.getPeer().peer.ptr, value!, dataPanelBuilder) + } +} + +@memo +export function hookGaugeContentModifier( + receiver: ArkGaugeComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let gaugeBuilder = (parentNode: KPointer, config: GaugeConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierGauge(receiver.getPeer().peer.ptr, value!, gaugeBuilder) + } +} + +@memo +export function hookLoadingProgressContentModifier( + receiver: ArkLoadingProgressComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let loadingProgressBuilder = (parentNode: KPointer, config: LoadingProgressConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierLoadingProgress(receiver.getPeer().peer.ptr, value!, loadingProgressBuilder) + } +} + +@memo +export function hookProgressContentModifier( + receiver: ArkProgressComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let progressBuilder = (parentNode: KPointer, config: ProgressConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierProgress(receiver.getPeer().peer.ptr, value!, progressBuilder) + } +} + +@memo +export function hookRadioContentModifier( + receiver: ArkRadioComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let radioBuilder = (parentNode: KPointer, config: RadioConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierRadio(receiver.getPeer().peer.ptr, value!, radioBuilder) + } +} + +@memo +export function hookRatingContentModifier( + receiver: ArkRatingComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let ratingBuilder = (parentNode: KPointer, config: RatingConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierRating(receiver.getPeer().peer.ptr, value!, ratingBuilder) + } +} + +@memo +export function hookSelectContentModifier( + receiver: ArkSelectComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let menuItemBuilder = (parentNode: KPointer, config: MenuItemConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierMenuItem(receiver.getPeer().peer.ptr, value!, menuItemBuilder) + } +} + +@memo +export function hookSliderContentModifier( + receiver: ArkSliderComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let sliderBuilder = (parentNode: KPointer, config: SliderConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierSlider(receiver.getPeer().peer.ptr, value!, sliderBuilder) + } +} + +@memo +export function hookTextClockContentModifier( + receiver: ArkTextClockComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let textClockBuilder = (parentNode: KPointer, config: TextClockConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierTextClock(receiver.getPeer().peer.ptr, value!, textClockBuilder) + } +} + +@memo +export function hookTextTimerContentModifier( + receiver: ArkTextTimerComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let textTimerBuilder = (parentNode: KPointer, config: TextTimerConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierTextTimer(receiver.getPeer().peer.ptr, value!, textTimerBuilder) + } +} + +@memo +export function hookToggleContentModifier( + receiver: ArkToggleComponent, value?: ContentModifier) { + let wrappedBuilder = value?.applyContent() + if (!wrappedBuilder) { + return + } + let toggleBuilder = (parentNode: KPointer, config: ToggleConfiguration): KPointer => { + return CallbackTransformer.transformToPeerFromCustomBuilder( + memoWrapper(wrappedBuilder!.builder, [config])) + } + if (value) { + ContentModifierHelper.contentModifierToggle(receiver.getPeer().peer.ptr, value!, toggleBuilder) + } +} \ No newline at end of file diff --git a/arkoala-arkts/arkui/src/ets/handwritten/index.ets b/arkoala-arkts/arkui/src/ets/handwritten/index.ets index 545571687e..2290ec74cc 100644 --- a/arkoala-arkts/arkui/src/ets/handwritten/index.ets +++ b/arkoala-arkts/arkui/src/ets/handwritten/index.ets @@ -20,6 +20,7 @@ export * from "./AttributeUpdater" export * from "./TestComponent" export * from "./TestComponentPeer" export * from "./Router" +export * from "./ContentModifierHooks" export * from "./ForeignFunctions" export * from "./resources" export * from "./base" -- Gitee