1/* 2 * Copyright (c) 2024-2025 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 17// WARNING! THIS FILE IS AUTO-GENERATED, DO NOT MAKE CHANGES, THEY WILL BE LOST ON NEXT GENERATION! 18 19import { int32, float32 } from "@koalaui/common" 20import { nullptr, KPointer, KInt, KBoolean, KStringPtr, runtimeType, RuntimeType, MaterializedBase, toPeerPtr, wrapCallback } from "@koalaui/interop" 21import { Serializer } from "./Serializer" 22import { ComponentBase } from "./../../ComponentBase" 23import { PeerNode } from "./../../PeerNode" 24import { ArkUIGeneratedNativeModule, TypeChecker } from "#components" 25import { Length, SizeOptions, ConstraintSizeOptions, ChainWeightOptions, Padding, LocalizedPadding, Margin, LocalizedMargin, ResourceColor, Position, BorderOptions, EdgeStyles, EdgeWidths, LocalizedEdgeWidths, EdgeColors, LocalizedEdgeColors, BorderRadiuses, LocalizedBorderRadiuses, OutlineOptions, EdgeOutlineStyles, Dimension, EdgeOutlineWidths, OutlineRadiuses, Area, Edges, LocalizedEdges, LocalizedPosition, ResourceStr, AccessibilityOptions, PX, VP, FP, LPX, Percentage } from "./../ArkUnitsInterfaces" 26import { DrawModifier } from "./../ArkDrawModifierMaterialized" 27import { Rectangle, TouchTestInfo, TouchResult, PixelRoundPolicy, BackgroundEffectOptions, ForegroundEffectOptions, VisualEffect, Filter, BorderImageOption, OutlineStyle, AccessibilityCallback, AnimateParam, TransitionOptions, MotionBlurOptions, InvertOptions, TranslateOptions, ScaleOptions, RotateOptions, AlignRuleOption, LocalizedAlignRuleOptions, ClickEffect, CustomBuilder, DragItemInfo, UniformDataType, PreDragStatus, MotionPathOptions, ShadowOptions, ShadowStyle, StateStyles, PixelStretchEffectOptions, BackgroundBrightnessOptions, GestureRecognizerJudgeBeginCallback, ShouldBuiltInRecognizerParallelWithCallback, SizeChangeCallback, SafeAreaType, SafeAreaEdge, BlurStyle, BackgroundBlurStyleOptions, ForegroundBlurStyleOptions, TransitionFinishCallback, BlurOptions, LinearGradientBlurOptions, EffectType, sharedTransitionOptions, ChainStyle, DragPreviewOptions, DragInteractionOptions, ComponentContent, OverlayOptions, BlendMode, BlendApplyType, Blender, GeometryTransitionOptions, PopupOptions, CustomPopupOptions, MenuElement, MenuOptions, ContextMenuOptions, ModalTransition, ContentCoverOptions, SheetOptions, VisibleAreaChangeCallback, CommonMethod, CommonAttribute, NestedScrollOptions, ContentClipMode, EdgeEffectOptions, FadingEdgeOptions } from "./../ArkCommonInterfaces" 28import { HitTestMode, ImageSize, Alignment, BorderStyle, ColoringStrategy, HoverEffect, Color, Visibility, ItemAlign, Direction, GradientDirection, ObscuredReasons, RenderFit, ImageRepeat, Axis, ResponseType, FunctionKey, ModifierKey, LineCapStyle, LineJoinStyle, BarState, EdgeEffect } from "./../ArkEnumsInterfaces" 29import { Callback_Array_TouchTestInfo_TouchResult, Callback_ClickEvent_Void, Callback_Boolean_HoverEvent_Void, Callback_MouseEvent_Void, Callback_TouchEvent_Void, Callback_KeyEvent_Void, Callback_KeyEvent_Boolean, Callback_Void, Callback_Area_Area_Void, Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs, Literal_Number_offset_span, Callback_DragEvent_String_Union_CustomBuilder_DragItemInfo, Callback_DragEvent_String_Void, Callback_PreDragStatus_Void, Type_CommonMethod_linearGradient_value, Tuple_ResourceColor_Number, Type_CommonMethod_sweepGradient_value, Tuple_Length_Length, Type_CommonMethod_radialGradient_value, Callback_GestureInfo_BaseGestureEvent_GestureJudgeResult, Callback_TouchEvent_HitTestMode, Literal_Alignment_align, Callback_Number_Number_Void } from "./../SyntheticDeclarations" 30import { LengthMetrics } from "./../ArkLengthMetricsMaterialized" 31import { ResizableOptions } from "./../ArkImageInterfaces" 32import { Resource } from "./../ArkResourceInterfaces" 33import { ClickEvent } from "./../ArkClickEventMaterialized" 34import { HoverEvent } from "./../ArkHoverEventMaterialized" 35import { MouseEvent } from "./../ArkMouseEventMaterialized" 36import { TouchEvent } from "./../ArkTouchEventMaterialized" 37import { KeyEvent } from "./../ArkKeyEventMaterialized" 38import { FocusBoxStyle, FocusPriority } from "./../ArkFocusInterfaces" 39import { TransitionEffect } from "./../ArkTransitionEffectMaterialized" 40import { DragEvent } from "./../ArkDragEventMaterialized" 41import { CircleShape } from "./../ArkCircleShapeMaterialized" 42import { EllipseShape } from "./../ArkEllipseShapeMaterialized" 43import { PathShape } from "./../ArkPathShapeMaterialized" 44import { RectShape } from "./../ArkRectShapeMaterialized" 45import { ProgressMask } from "./../ArkProgressMaskMaterialized" 46import { AttributeModifier } from "./../../handwritten" 47import { GestureModifier } from "./../ArkGestureModifierMaterialized" 48import { GestureInfo, GestureJudgeResult, GestureType, GestureMask } from "./../ArkGestureInterfaces" 49import { BaseGestureEvent } from "./../ArkBaseGestureEventMaterialized" 50import { PixelMap } from "./../ArkPixelMapMaterialized" 51import { TapGestureInterface } from "./../ArkTapGestureInterfaceMaterialized" 52import { LongPressGestureInterface } from "./../ArkLongPressGestureInterfaceMaterialized" 53import { PanGestureInterface } from "./../ArkPanGestureInterfaceMaterialized" 54import { PinchGestureInterface } from "./../ArkPinchGestureInterfaceMaterialized" 55import { SwipeGestureInterface } from "./../ArkSwipeGestureInterfaceMaterialized" 56import { RotationGestureInterface } from "./../ArkRotationGestureInterfaceMaterialized" 57import { GestureGroupInterface } from "./../ArkGestureGroupInterfaceMaterialized" 58import { CallbackKind } from "./CallbackKind" 59import { CallbackTransformer } from "./CallbackTransformer" 60import { DotIndicator } from "./../ArkDotIndicatorBuilder" 61import { DigitIndicator } from "./../ArkDigitIndicatorBuilder" 62import { SubTabBarStyle } from "./../ArkSubTabBarStyleBuilder" 63import { BottomTabBarStyle } from "./../ArkBottomTabBarStyleBuilder" 64import { ArkCommonAttributeSet } from '../../handwritten/modifiers/ArkCommonModifier' 65 66export class ArkCommonMethodPeer extends PeerNode { 67 _attributeSet?: ArkCommonAttributeSet 68 private supportedUIState: number = 0; 69 protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { 70 super(peerPtr, id, name, flags) 71 } 72 public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonMethodPeer { 73 const peerId = PeerNode.nextId() 74 const _peerPtr = ArkUIGeneratedNativeModule._CommonMethod_construct(peerId, flags) 75 const _peer = new ArkCommonMethodPeer(_peerPtr, peerId, "CommonMethod", flags) 76 component?.setPeer(_peer) 77 return _peer 78 } 79 widthAttribute(value: Length): void { 80 ArkUIGeneratedNativeModule._CommonMethod_width(this.peer.ptr, value) 81 } 82 heightAttribute(value: Length): void { 83 ArkUIGeneratedNativeModule._CommonMethod_height(this.peer.ptr, value) 84 } 85 drawModifierAttribute(value?: DrawModifier): void { 86 const thisSerializer : Serializer = Serializer.hold() 87 let value_type : int32 = RuntimeType.UNDEFINED 88 value_type = runtimeType(value) 89 thisSerializer.writeInt8(value_type as int32) 90 if ((RuntimeType.UNDEFINED) != (value_type)) { 91 const value_value = value! 92 thisSerializer.writeDrawModifier(value_value) 93 } 94 ArkUIGeneratedNativeModule._CommonMethod_drawModifier(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 95 thisSerializer.release() 96 } 97 responseRegionAttribute(value: Array<Rectangle> | Rectangle): void { 98 const thisSerializer : Serializer = Serializer.hold() 99 let value_type : int32 = RuntimeType.UNDEFINED 100 value_type = runtimeType(value) 101 if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_Rectangle(value))) { 102 thisSerializer.writeInt8(0 as int32) 103 const value_0 = value as Array<Rectangle> 104 thisSerializer.writeInt32(value_0.length as int32) 105 for (let i = 0; i < value_0.length; i++) { 106 const value_0_element : Rectangle = value_0[i] 107 thisSerializer.writeRectangle(value_0_element) 108 } 109 } 110 else if (TypeChecker.isRectangle(value, false, false, false, false)) { 111 thisSerializer.writeInt8(1 as int32) 112 const value_1 = value as Rectangle 113 thisSerializer.writeRectangle(value_1) 114 } 115 ArkUIGeneratedNativeModule._CommonMethod_responseRegion(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 116 thisSerializer.release() 117 } 118 mouseResponseRegionAttribute(value: Array<Rectangle> | Rectangle): void { 119 const thisSerializer : Serializer = Serializer.hold() 120 let value_type : int32 = RuntimeType.UNDEFINED 121 value_type = runtimeType(value) 122 if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isArray_Rectangle(value))) { 123 thisSerializer.writeInt8(0 as int32) 124 const value_0 = value as Array<Rectangle> 125 thisSerializer.writeInt32(value_0.length as int32) 126 for (let i = 0; i < value_0.length; i++) { 127 const value_0_element : Rectangle = value_0[i] 128 thisSerializer.writeRectangle(value_0_element) 129 } 130 } 131 else if (TypeChecker.isRectangle(value, false, false, false, false)) { 132 thisSerializer.writeInt8(1 as int32) 133 const value_1 = value as Rectangle 134 thisSerializer.writeRectangle(value_1) 135 } 136 ArkUIGeneratedNativeModule._CommonMethod_mouseResponseRegion(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 137 thisSerializer.release() 138 } 139 sizeAttribute(value: SizeOptions): void { 140 const thisSerializer : Serializer = Serializer.hold() 141 thisSerializer.writeSizeOptions(value) 142 ArkUIGeneratedNativeModule._CommonMethod_size(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 143 thisSerializer.release() 144 } 145 constraintSizeAttribute(value: ConstraintSizeOptions): void { 146 const thisSerializer : Serializer = Serializer.hold() 147 thisSerializer.writeConstraintSizeOptions(value) 148 ArkUIGeneratedNativeModule._CommonMethod_constraintSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 149 thisSerializer.release() 150 } 151 touchableAttribute(value: boolean): void { 152 ArkUIGeneratedNativeModule._CommonMethod_touchable(this.peer.ptr, value ? 1 : 0) 153 } 154 hitTestBehaviorAttribute(value: HitTestMode): void { 155 ArkUIGeneratedNativeModule._CommonMethod_hitTestBehavior(this.peer.ptr, value.valueOf()) 156 } 157 onChildTouchTestAttribute(value: ((value: Array<TouchTestInfo>) => TouchResult)): void { 158 const thisSerializer : Serializer = Serializer.hold() 159 thisSerializer.holdAndWriteCallback(value) 160 ArkUIGeneratedNativeModule._CommonMethod_onChildTouchTest(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 161 thisSerializer.release() 162 } 163 layoutWeightAttribute(value: number | string): void { 164 const thisSerializer : Serializer = Serializer.hold() 165 let value_type : int32 = RuntimeType.UNDEFINED 166 value_type = runtimeType(value) 167 if (RuntimeType.NUMBER == value_type) { 168 thisSerializer.writeInt8(0 as int32) 169 const value_0 = value as number 170 thisSerializer.writeNumber(value_0) 171 } 172 else if (RuntimeType.STRING == value_type) { 173 thisSerializer.writeInt8(1 as int32) 174 const value_1 = value as string 175 thisSerializer.writeString(value_1) 176 } 177 ArkUIGeneratedNativeModule._CommonMethod_layoutWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 178 thisSerializer.release() 179 } 180 chainWeightAttribute(value: ChainWeightOptions): void { 181 const thisSerializer : Serializer = Serializer.hold() 182 thisSerializer.writeChainWeightOptions(value) 183 ArkUIGeneratedNativeModule._CommonMethod_chainWeight(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 184 thisSerializer.release() 185 } 186 paddingAttribute(value: Padding | Length | LocalizedPadding): void { 187 const thisSerializer : Serializer = Serializer.hold() 188 let value_type : int32 = RuntimeType.UNDEFINED 189 value_type = runtimeType(value) 190 if (TypeChecker.isPadding(value, false, false, false, false)) { 191 thisSerializer.writeInt8(0 as int32) 192 const value_0 = value as Padding 193 const value_0_top = value_0.top 194 let value_0_top_type : int32 = RuntimeType.UNDEFINED 195 value_0_top_type = runtimeType(value_0_top) 196 thisSerializer.writeInt8(value_0_top_type as int32) 197 if ((RuntimeType.UNDEFINED) != (value_0_top_type)) { 198 const value_0_top_value = value_0_top! 199 thisSerializer.writeLength(value_0_top_value) 200 } 201 const value_0_right = value_0.right 202 let value_0_right_type : int32 = RuntimeType.UNDEFINED 203 value_0_right_type = runtimeType(value_0_right) 204 thisSerializer.writeInt8(value_0_right_type as int32) 205 if ((RuntimeType.UNDEFINED) != (value_0_right_type)) { 206 const value_0_right_value = value_0_right! 207 thisSerializer.writeLength(value_0_right_value) 208 } 209 const value_0_bottom = value_0.bottom 210 let value_0_bottom_type : int32 = RuntimeType.UNDEFINED 211 value_0_bottom_type = runtimeType(value_0_bottom) 212 thisSerializer.writeInt8(value_0_bottom_type as int32) 213 if ((RuntimeType.UNDEFINED) != (value_0_bottom_type)) { 214 const value_0_bottom_value = value_0_bottom! 215 thisSerializer.writeLength(value_0_bottom_value) 216 } 217 const value_0_left = value_0.left 218 let value_0_left_type : int32 = RuntimeType.UNDEFINED 219 value_0_left_type = runtimeType(value_0_left) 220 thisSerializer.writeInt8(value_0_left_type as int32) 221 if ((RuntimeType.UNDEFINED) != (value_0_left_type)) { 222 const value_0_left_value = value_0_left! 223 thisSerializer.writeLength(value_0_left_value) 224 } 225 } 226 else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { 227 thisSerializer.writeInt8(1 as int32) 228 const value_1 = value as Length 229 thisSerializer.writeLength(value_1) 230 } 231 else if (TypeChecker.isLocalizedPadding(value, true, false, true, false)) { 232 thisSerializer.writeInt8(2 as int32) 233 const value_2 = value as LocalizedPadding 234 thisSerializer.writeLocalizedPadding(value_2) 235 } 236 ArkUIGeneratedNativeModule._CommonMethod_padding(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 237 thisSerializer.release() 238 } 239 safeAreaPaddingAttribute(value: Padding | LengthMetrics | LocalizedPadding): void { 240 const thisSerializer : Serializer = Serializer.hold() 241 let value_type : int32 = RuntimeType.UNDEFINED 242 value_type = runtimeType(value) 243 if (TypeChecker.isPadding(value, false, false, false, false)) { 244 thisSerializer.writeInt8(0 as int32) 245 const value_0 = value as Padding 246 const value_0_top = value_0.top 247 let value_0_top_type : int32 = RuntimeType.UNDEFINED 248 value_0_top_type = runtimeType(value_0_top) 249 thisSerializer.writeInt8(value_0_top_type as int32) 250 if ((RuntimeType.UNDEFINED) != (value_0_top_type)) { 251 const value_0_top_value = value_0_top! 252 thisSerializer.writeLength(value_0_top_value) 253 } 254 const value_0_right = value_0.right 255 let value_0_right_type : int32 = RuntimeType.UNDEFINED 256 value_0_right_type = runtimeType(value_0_right) 257 thisSerializer.writeInt8(value_0_right_type as int32) 258 if ((RuntimeType.UNDEFINED) != (value_0_right_type)) { 259 const value_0_right_value = value_0_right! 260 thisSerializer.writeLength(value_0_right_value) 261 } 262 const value_0_bottom = value_0.bottom 263 let value_0_bottom_type : int32 = RuntimeType.UNDEFINED 264 value_0_bottom_type = runtimeType(value_0_bottom) 265 thisSerializer.writeInt8(value_0_bottom_type as int32) 266 if ((RuntimeType.UNDEFINED) != (value_0_bottom_type)) { 267 const value_0_bottom_value = value_0_bottom! 268 thisSerializer.writeLength(value_0_bottom_value) 269 } 270 const value_0_left = value_0.left 271 let value_0_left_type : int32 = RuntimeType.UNDEFINED 272 value_0_left_type = runtimeType(value_0_left) 273 thisSerializer.writeInt8(value_0_left_type as int32) 274 if ((RuntimeType.UNDEFINED) != (value_0_left_type)) { 275 const value_0_left_value = value_0_left! 276 thisSerializer.writeLength(value_0_left_value) 277 } 278 } 279 else if (TypeChecker.isLengthMetrics(value, false, false)) { 280 thisSerializer.writeInt8(1 as int32) 281 const value_1 = value as LengthMetrics 282 thisSerializer.writeLengthMetrics(value_1) 283 } 284 else if (TypeChecker.isLocalizedPadding(value, true, false, true, false)) { 285 thisSerializer.writeInt8(2 as int32) 286 const value_2 = value as LocalizedPadding 287 thisSerializer.writeLocalizedPadding(value_2) 288 } 289 ArkUIGeneratedNativeModule._CommonMethod_safeAreaPadding(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 290 thisSerializer.release() 291 } 292 marginAttribute(value: Margin | Length | LocalizedMargin): void { 293 const thisSerializer : Serializer = Serializer.hold() 294 let value_type : int32 = RuntimeType.UNDEFINED 295 value_type = runtimeType(value) 296 if (TypeChecker.isPadding(value, false, false, false, false)) { 297 thisSerializer.writeInt8(0 as int32) 298 const value_0 = value as Margin 299 const value_0_top = value_0.top 300 let value_0_top_type : int32 = RuntimeType.UNDEFINED 301 value_0_top_type = runtimeType(value_0_top) 302 thisSerializer.writeInt8(value_0_top_type as int32) 303 if ((RuntimeType.UNDEFINED) != (value_0_top_type)) { 304 const value_0_top_value = value_0_top! 305 thisSerializer.writeLength(value_0_top_value) 306 } 307 const value_0_right = value_0.right 308 let value_0_right_type : int32 = RuntimeType.UNDEFINED 309 value_0_right_type = runtimeType(value_0_right) 310 thisSerializer.writeInt8(value_0_right_type as int32) 311 if ((RuntimeType.UNDEFINED) != (value_0_right_type)) { 312 const value_0_right_value = value_0_right! 313 thisSerializer.writeLength(value_0_right_value) 314 } 315 const value_0_bottom = value_0.bottom 316 let value_0_bottom_type : int32 = RuntimeType.UNDEFINED 317 value_0_bottom_type = runtimeType(value_0_bottom) 318 thisSerializer.writeInt8(value_0_bottom_type as int32) 319 if ((RuntimeType.UNDEFINED) != (value_0_bottom_type)) { 320 const value_0_bottom_value = value_0_bottom! 321 thisSerializer.writeLength(value_0_bottom_value) 322 } 323 const value_0_left = value_0.left 324 let value_0_left_type : int32 = RuntimeType.UNDEFINED 325 value_0_left_type = runtimeType(value_0_left) 326 thisSerializer.writeInt8(value_0_left_type as int32) 327 if ((RuntimeType.UNDEFINED) != (value_0_left_type)) { 328 const value_0_left_value = value_0_left! 329 thisSerializer.writeLength(value_0_left_value) 330 } 331 } 332 else if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { 333 thisSerializer.writeInt8(1 as int32) 334 const value_1 = value as Length 335 thisSerializer.writeLength(value_1) 336 } 337 else if (TypeChecker.isLocalizedPadding(value, true, false, true, false)) { 338 thisSerializer.writeInt8(2 as int32) 339 const value_2 = value as LocalizedMargin 340 thisSerializer.writeLocalizedPadding(value_2) 341 } 342 ArkUIGeneratedNativeModule._CommonMethod_margin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 343 thisSerializer.release() 344 } 345 backgroundColorAttribute(value: ResourceColor): void { 346 const thisSerializer : Serializer = Serializer.hold() 347 let value_type : int32 = RuntimeType.UNDEFINED 348 value_type = runtimeType(value) 349 if (TypeChecker.isColor(value)) { 350 thisSerializer.writeInt8(0 as int32) 351 const value_0 = value as Color 352 thisSerializer.writeInt32(value_0.valueOf()) 353 } 354 else if (RuntimeType.NUMBER == value_type) { 355 thisSerializer.writeInt8(1 as int32) 356 const value_1 = value as number 357 thisSerializer.writeNumber(value_1) 358 } 359 else if (RuntimeType.STRING == value_type) { 360 thisSerializer.writeInt8(2 as int32) 361 const value_2 = value as string 362 thisSerializer.writeString(value_2) 363 } 364 else if (RuntimeType.OBJECT == value_type) { 365 thisSerializer.writeInt8(3 as int32) 366 const value_3 = value as Resource 367 thisSerializer.writeResource(value_3) 368 } 369 ArkUIGeneratedNativeModule._CommonMethod_backgroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 370 thisSerializer.release() 371 } 372 pixelRoundAttribute(value: PixelRoundPolicy): void { 373 const thisSerializer : Serializer = Serializer.hold() 374 thisSerializer.writePixelRoundPolicy(value) 375 ArkUIGeneratedNativeModule._CommonMethod_pixelRound(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 376 thisSerializer.release() 377 } 378 backgroundImageSizeAttribute(value: SizeOptions | ImageSize): void { 379 const thisSerializer : Serializer = Serializer.hold() 380 let value_type : int32 = RuntimeType.UNDEFINED 381 value_type = runtimeType(value) 382 if (RuntimeType.OBJECT == value_type) { 383 thisSerializer.writeInt8(0 as int32) 384 const value_0 = value as SizeOptions 385 thisSerializer.writeSizeOptions(value_0) 386 } 387 else if (TypeChecker.isImageSize(value)) { 388 thisSerializer.writeInt8(1 as int32) 389 const value_1 = value as ImageSize 390 thisSerializer.writeInt32(value_1.valueOf()) 391 } 392 ArkUIGeneratedNativeModule._CommonMethod_backgroundImageSize(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 393 thisSerializer.release() 394 } 395 backgroundImagePositionAttribute(value: Position | Alignment): void { 396 const thisSerializer : Serializer = Serializer.hold() 397 let value_type : int32 = RuntimeType.UNDEFINED 398 value_type = runtimeType(value) 399 if (RuntimeType.OBJECT == value_type) { 400 thisSerializer.writeInt8(0 as int32) 401 const value_0 = value as Position 402 thisSerializer.writePosition(value_0) 403 } 404 else if (TypeChecker.isAlignment(value)) { 405 thisSerializer.writeInt8(1 as int32) 406 const value_1 = value as Alignment 407 thisSerializer.writeInt32(value_1.valueOf()) 408 } 409 ArkUIGeneratedNativeModule._CommonMethod_backgroundImagePosition(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 410 thisSerializer.release() 411 } 412 backgroundEffectAttribute(value: BackgroundEffectOptions): void { 413 const thisSerializer : Serializer = Serializer.hold() 414 thisSerializer.writeBackgroundEffectOptions(value) 415 ArkUIGeneratedNativeModule._CommonMethod_backgroundEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 416 thisSerializer.release() 417 } 418 backgroundImageResizableAttribute(value: ResizableOptions): void { 419 const thisSerializer : Serializer = Serializer.hold() 420 thisSerializer.writeResizableOptions(value) 421 ArkUIGeneratedNativeModule._CommonMethod_backgroundImageResizable(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 422 thisSerializer.release() 423 } 424 foregroundEffectAttribute(value: ForegroundEffectOptions): void { 425 const thisSerializer : Serializer = Serializer.hold() 426 thisSerializer.writeForegroundEffectOptions(value) 427 ArkUIGeneratedNativeModule._CommonMethod_foregroundEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 428 thisSerializer.release() 429 } 430 visualEffectAttribute(value: VisualEffect): void { 431 const thisSerializer : Serializer = Serializer.hold() 432 thisSerializer.writeVisualEffect(value) 433 ArkUIGeneratedNativeModule._CommonMethod_visualEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 434 thisSerializer.release() 435 } 436 backgroundFilterAttribute(value: Filter): void { 437 const thisSerializer : Serializer = Serializer.hold() 438 thisSerializer.writeFilter(value) 439 ArkUIGeneratedNativeModule._CommonMethod_backgroundFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 440 thisSerializer.release() 441 } 442 foregroundFilterAttribute(value: Filter): void { 443 const thisSerializer : Serializer = Serializer.hold() 444 thisSerializer.writeFilter(value) 445 ArkUIGeneratedNativeModule._CommonMethod_foregroundFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 446 thisSerializer.release() 447 } 448 compositingFilterAttribute(value: Filter): void { 449 const thisSerializer : Serializer = Serializer.hold() 450 thisSerializer.writeFilter(value) 451 ArkUIGeneratedNativeModule._CommonMethod_compositingFilter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 452 thisSerializer.release() 453 } 454 opacityAttribute(value: number | Resource): void { 455 const thisSerializer : Serializer = Serializer.hold() 456 let value_type : int32 = RuntimeType.UNDEFINED 457 value_type = runtimeType(value) 458 if (RuntimeType.NUMBER == value_type) { 459 thisSerializer.writeInt8(0 as int32) 460 const value_0 = value as number 461 thisSerializer.writeNumber(value_0) 462 } 463 else if (RuntimeType.OBJECT == value_type) { 464 thisSerializer.writeInt8(1 as int32) 465 const value_1 = value as Resource 466 thisSerializer.writeResource(value_1) 467 } 468 ArkUIGeneratedNativeModule._CommonMethod_opacity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 469 thisSerializer.release() 470 } 471 borderAttribute(value: BorderOptions): void { 472 const thisSerializer : Serializer = Serializer.hold() 473 thisSerializer.writeBorderOptions(value) 474 ArkUIGeneratedNativeModule._CommonMethod_border(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 475 thisSerializer.release() 476 } 477 borderStyleAttribute(value: BorderStyle | EdgeStyles): void { 478 const thisSerializer : Serializer = Serializer.hold() 479 let value_type : int32 = RuntimeType.UNDEFINED 480 value_type = runtimeType(value) 481 if (TypeChecker.isBorderStyle(value)) { 482 thisSerializer.writeInt8(0 as int32) 483 const value_0 = value as BorderStyle 484 thisSerializer.writeInt32(value_0.valueOf()) 485 } 486 else if (RuntimeType.OBJECT == value_type) { 487 thisSerializer.writeInt8(1 as int32) 488 const value_1 = value as EdgeStyles 489 const value_1_top = value_1.top 490 let value_1_top_type : int32 = RuntimeType.UNDEFINED 491 value_1_top_type = runtimeType(value_1_top) 492 thisSerializer.writeInt8(value_1_top_type as int32) 493 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 494 const value_1_top_value = (value_1_top as BorderStyle) 495 thisSerializer.writeInt32(value_1_top_value.valueOf()) 496 } 497 const value_1_right = value_1.right 498 let value_1_right_type : int32 = RuntimeType.UNDEFINED 499 value_1_right_type = runtimeType(value_1_right) 500 thisSerializer.writeInt8(value_1_right_type as int32) 501 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 502 const value_1_right_value = (value_1_right as BorderStyle) 503 thisSerializer.writeInt32(value_1_right_value.valueOf()) 504 } 505 const value_1_bottom = value_1.bottom 506 let value_1_bottom_type : int32 = RuntimeType.UNDEFINED 507 value_1_bottom_type = runtimeType(value_1_bottom) 508 thisSerializer.writeInt8(value_1_bottom_type as int32) 509 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 510 const value_1_bottom_value = (value_1_bottom as BorderStyle) 511 thisSerializer.writeInt32(value_1_bottom_value.valueOf()) 512 } 513 const value_1_left = value_1.left 514 let value_1_left_type : int32 = RuntimeType.UNDEFINED 515 value_1_left_type = runtimeType(value_1_left) 516 thisSerializer.writeInt8(value_1_left_type as int32) 517 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 518 const value_1_left_value = (value_1_left as BorderStyle) 519 thisSerializer.writeInt32(value_1_left_value.valueOf()) 520 } 521 } 522 ArkUIGeneratedNativeModule._CommonMethod_borderStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 523 thisSerializer.release() 524 } 525 borderWidthAttribute(value: Length | EdgeWidths | LocalizedEdgeWidths): void { 526 const thisSerializer : Serializer = Serializer.hold() 527 let value_type : int32 = RuntimeType.UNDEFINED 528 value_type = runtimeType(value) 529 if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { 530 thisSerializer.writeInt8(0 as int32) 531 const value_0 = value as Length 532 thisSerializer.writeLength(value_0) 533 } 534 else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isEdgeWidths(value, true, false, true, false))) { 535 thisSerializer.writeInt8(1 as int32) 536 const value_1 = value as EdgeWidths 537 const value_1_top = value_1.top 538 let value_1_top_type : int32 = RuntimeType.UNDEFINED 539 value_1_top_type = runtimeType(value_1_top) 540 thisSerializer.writeInt8(value_1_top_type as int32) 541 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 542 const value_1_top_value = value_1_top! 543 thisSerializer.writeLength(value_1_top_value) 544 } 545 const value_1_right = value_1.right 546 let value_1_right_type : int32 = RuntimeType.UNDEFINED 547 value_1_right_type = runtimeType(value_1_right) 548 thisSerializer.writeInt8(value_1_right_type as int32) 549 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 550 const value_1_right_value = value_1_right! 551 thisSerializer.writeLength(value_1_right_value) 552 } 553 const value_1_bottom = value_1.bottom 554 let value_1_bottom_type : int32 = RuntimeType.UNDEFINED 555 value_1_bottom_type = runtimeType(value_1_bottom) 556 thisSerializer.writeInt8(value_1_bottom_type as int32) 557 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 558 const value_1_bottom_value = value_1_bottom! 559 thisSerializer.writeLength(value_1_bottom_value) 560 } 561 const value_1_left = value_1.left 562 let value_1_left_type : int32 = RuntimeType.UNDEFINED 563 value_1_left_type = runtimeType(value_1_left) 564 thisSerializer.writeInt8(value_1_left_type as int32) 565 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 566 const value_1_left_value = value_1_left! 567 thisSerializer.writeLength(value_1_left_value) 568 } 569 } 570 else if (TypeChecker.isLocalizedEdgeWidths(value, true, false, true, false)) { 571 thisSerializer.writeInt8(2 as int32) 572 const value_2 = value as LocalizedEdgeWidths 573 thisSerializer.writeLocalizedEdgeWidths(value_2) 574 } 575 ArkUIGeneratedNativeModule._CommonMethod_borderWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 576 thisSerializer.release() 577 } 578 borderColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors): void { 579 const thisSerializer : Serializer = Serializer.hold() 580 let value_type : int32 = RuntimeType.UNDEFINED 581 value_type = runtimeType(value) 582 if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { 583 thisSerializer.writeInt8(0 as int32) 584 const value_0 = value as ResourceColor 585 let value_0_type : int32 = RuntimeType.UNDEFINED 586 value_0_type = runtimeType(value_0) 587 if (TypeChecker.isColor(value_0)) { 588 thisSerializer.writeInt8(0 as int32) 589 const value_0_0 = value_0 as Color 590 thisSerializer.writeInt32(value_0_0.valueOf()) 591 } 592 else if (RuntimeType.NUMBER == value_0_type) { 593 thisSerializer.writeInt8(1 as int32) 594 const value_0_1 = value_0 as number 595 thisSerializer.writeNumber(value_0_1) 596 } 597 else if (RuntimeType.STRING == value_0_type) { 598 thisSerializer.writeInt8(2 as int32) 599 const value_0_2 = value_0 as string 600 thisSerializer.writeString(value_0_2) 601 } 602 else if (RuntimeType.OBJECT == value_0_type) { 603 thisSerializer.writeInt8(3 as int32) 604 const value_0_3 = value_0 as Resource 605 thisSerializer.writeResource(value_0_3) 606 } 607 } 608 else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isEdgeColors(value, true, false, true, false))) { 609 thisSerializer.writeInt8(1 as int32) 610 const value_1 = value as EdgeColors 611 const value_1_top = value_1.top 612 let value_1_top_type : int32 = RuntimeType.UNDEFINED 613 value_1_top_type = runtimeType(value_1_top) 614 thisSerializer.writeInt8(value_1_top_type as int32) 615 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 616 const value_1_top_value = value_1_top! 617 let value_1_top_value_type : int32 = RuntimeType.UNDEFINED 618 value_1_top_value_type = runtimeType(value_1_top_value) 619 if (TypeChecker.isColor(value_1_top_value)) { 620 thisSerializer.writeInt8(0 as int32) 621 const value_1_top_value_0 = value_1_top_value as Color 622 thisSerializer.writeInt32(value_1_top_value_0.valueOf()) 623 } 624 else if (RuntimeType.NUMBER == value_1_top_value_type) { 625 thisSerializer.writeInt8(1 as int32) 626 const value_1_top_value_1 = value_1_top_value as number 627 thisSerializer.writeNumber(value_1_top_value_1) 628 } 629 else if (RuntimeType.STRING == value_1_top_value_type) { 630 thisSerializer.writeInt8(2 as int32) 631 const value_1_top_value_2 = value_1_top_value as string 632 thisSerializer.writeString(value_1_top_value_2) 633 } 634 else if (RuntimeType.OBJECT == value_1_top_value_type) { 635 thisSerializer.writeInt8(3 as int32) 636 const value_1_top_value_3 = value_1_top_value as Resource 637 thisSerializer.writeResource(value_1_top_value_3) 638 } 639 } 640 const value_1_right = value_1.right 641 let value_1_right_type : int32 = RuntimeType.UNDEFINED 642 value_1_right_type = runtimeType(value_1_right) 643 thisSerializer.writeInt8(value_1_right_type as int32) 644 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 645 const value_1_right_value = value_1_right! 646 let value_1_right_value_type : int32 = RuntimeType.UNDEFINED 647 value_1_right_value_type = runtimeType(value_1_right_value) 648 if (TypeChecker.isColor(value_1_right_value)) { 649 thisSerializer.writeInt8(0 as int32) 650 const value_1_right_value_0 = value_1_right_value as Color 651 thisSerializer.writeInt32(value_1_right_value_0.valueOf()) 652 } 653 else if (RuntimeType.NUMBER == value_1_right_value_type) { 654 thisSerializer.writeInt8(1 as int32) 655 const value_1_right_value_1 = value_1_right_value as number 656 thisSerializer.writeNumber(value_1_right_value_1) 657 } 658 else if (RuntimeType.STRING == value_1_right_value_type) { 659 thisSerializer.writeInt8(2 as int32) 660 const value_1_right_value_2 = value_1_right_value as string 661 thisSerializer.writeString(value_1_right_value_2) 662 } 663 else if (RuntimeType.OBJECT == value_1_right_value_type) { 664 thisSerializer.writeInt8(3 as int32) 665 const value_1_right_value_3 = value_1_right_value as Resource 666 thisSerializer.writeResource(value_1_right_value_3) 667 } 668 } 669 const value_1_bottom = value_1.bottom 670 let value_1_bottom_type : int32 = RuntimeType.UNDEFINED 671 value_1_bottom_type = runtimeType(value_1_bottom) 672 thisSerializer.writeInt8(value_1_bottom_type as int32) 673 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 674 const value_1_bottom_value = value_1_bottom! 675 let value_1_bottom_value_type : int32 = RuntimeType.UNDEFINED 676 value_1_bottom_value_type = runtimeType(value_1_bottom_value) 677 if (TypeChecker.isColor(value_1_bottom_value)) { 678 thisSerializer.writeInt8(0 as int32) 679 const value_1_bottom_value_0 = value_1_bottom_value as Color 680 thisSerializer.writeInt32(value_1_bottom_value_0.valueOf()) 681 } 682 else if (RuntimeType.NUMBER == value_1_bottom_value_type) { 683 thisSerializer.writeInt8(1 as int32) 684 const value_1_bottom_value_1 = value_1_bottom_value as number 685 thisSerializer.writeNumber(value_1_bottom_value_1) 686 } 687 else if (RuntimeType.STRING == value_1_bottom_value_type) { 688 thisSerializer.writeInt8(2 as int32) 689 const value_1_bottom_value_2 = value_1_bottom_value as string 690 thisSerializer.writeString(value_1_bottom_value_2) 691 } 692 else if (RuntimeType.OBJECT == value_1_bottom_value_type) { 693 thisSerializer.writeInt8(3 as int32) 694 const value_1_bottom_value_3 = value_1_bottom_value as Resource 695 thisSerializer.writeResource(value_1_bottom_value_3) 696 } 697 } 698 const value_1_left = value_1.left 699 let value_1_left_type : int32 = RuntimeType.UNDEFINED 700 value_1_left_type = runtimeType(value_1_left) 701 thisSerializer.writeInt8(value_1_left_type as int32) 702 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 703 const value_1_left_value = value_1_left! 704 let value_1_left_value_type : int32 = RuntimeType.UNDEFINED 705 value_1_left_value_type = runtimeType(value_1_left_value) 706 if (TypeChecker.isColor(value_1_left_value)) { 707 thisSerializer.writeInt8(0 as int32) 708 const value_1_left_value_0 = value_1_left_value as Color 709 thisSerializer.writeInt32(value_1_left_value_0.valueOf()) 710 } 711 else if (RuntimeType.NUMBER == value_1_left_value_type) { 712 thisSerializer.writeInt8(1 as int32) 713 const value_1_left_value_1 = value_1_left_value as number 714 thisSerializer.writeNumber(value_1_left_value_1) 715 } 716 else if (RuntimeType.STRING == value_1_left_value_type) { 717 thisSerializer.writeInt8(2 as int32) 718 const value_1_left_value_2 = value_1_left_value as string 719 thisSerializer.writeString(value_1_left_value_2) 720 } 721 else if (RuntimeType.OBJECT == value_1_left_value_type) { 722 thisSerializer.writeInt8(3 as int32) 723 const value_1_left_value_3 = value_1_left_value as Resource 724 thisSerializer.writeResource(value_1_left_value_3) 725 } 726 } 727 } 728 else if (TypeChecker.isLocalizedEdgeColors(value, true, false, true, false)) { 729 thisSerializer.writeInt8(2 as int32) 730 const value_2 = value as LocalizedEdgeColors 731 thisSerializer.writeLocalizedEdgeColors(value_2) 732 } 733 ArkUIGeneratedNativeModule._CommonMethod_borderColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 734 thisSerializer.release() 735 } 736 borderRadiusAttribute(value: Length | BorderRadiuses | LocalizedBorderRadiuses): void { 737 const thisSerializer : Serializer = Serializer.hold() 738 let value_type : int32 = RuntimeType.UNDEFINED 739 value_type = runtimeType(value) 740 if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { 741 thisSerializer.writeInt8(0 as int32) 742 const value_0 = value as Length 743 thisSerializer.writeLength(value_0) 744 } 745 else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isBorderRadiuses(value, false, false, false, false))) { 746 thisSerializer.writeInt8(1 as int32) 747 const value_1 = value as BorderRadiuses 748 const value_1_topLeft = value_1.topLeft 749 let value_1_topLeft_type : int32 = RuntimeType.UNDEFINED 750 value_1_topLeft_type = runtimeType(value_1_topLeft) 751 thisSerializer.writeInt8(value_1_topLeft_type as int32) 752 if ((RuntimeType.UNDEFINED) != (value_1_topLeft_type)) { 753 const value_1_topLeft_value = value_1_topLeft! 754 thisSerializer.writeLength(value_1_topLeft_value) 755 } 756 const value_1_topRight = value_1.topRight 757 let value_1_topRight_type : int32 = RuntimeType.UNDEFINED 758 value_1_topRight_type = runtimeType(value_1_topRight) 759 thisSerializer.writeInt8(value_1_topRight_type as int32) 760 if ((RuntimeType.UNDEFINED) != (value_1_topRight_type)) { 761 const value_1_topRight_value = value_1_topRight! 762 thisSerializer.writeLength(value_1_topRight_value) 763 } 764 const value_1_bottomLeft = value_1.bottomLeft 765 let value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED 766 value_1_bottomLeft_type = runtimeType(value_1_bottomLeft) 767 thisSerializer.writeInt8(value_1_bottomLeft_type as int32) 768 if ((RuntimeType.UNDEFINED) != (value_1_bottomLeft_type)) { 769 const value_1_bottomLeft_value = value_1_bottomLeft! 770 thisSerializer.writeLength(value_1_bottomLeft_value) 771 } 772 const value_1_bottomRight = value_1.bottomRight 773 let value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED 774 value_1_bottomRight_type = runtimeType(value_1_bottomRight) 775 thisSerializer.writeInt8(value_1_bottomRight_type as int32) 776 if ((RuntimeType.UNDEFINED) != (value_1_bottomRight_type)) { 777 const value_1_bottomRight_value = value_1_bottomRight! 778 thisSerializer.writeLength(value_1_bottomRight_value) 779 } 780 } 781 else if (TypeChecker.isLocalizedBorderRadiuses(value, false, false, false, false)) { 782 thisSerializer.writeInt8(2 as int32) 783 const value_2 = value as LocalizedBorderRadiuses 784 thisSerializer.writeLocalizedBorderRadiuses(value_2) 785 } 786 ArkUIGeneratedNativeModule._CommonMethod_borderRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 787 thisSerializer.release() 788 } 789 borderImageAttribute(value: BorderImageOption): void { 790 const thisSerializer : Serializer = Serializer.hold() 791 thisSerializer.writeBorderImageOption(value) 792 ArkUIGeneratedNativeModule._CommonMethod_borderImage(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 793 thisSerializer.release() 794 } 795 outlineAttribute(value: OutlineOptions): void { 796 const thisSerializer : Serializer = Serializer.hold() 797 thisSerializer.writeOutlineOptions(value) 798 ArkUIGeneratedNativeModule._CommonMethod_outline(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 799 thisSerializer.release() 800 } 801 outlineStyleAttribute(value: OutlineStyle | EdgeOutlineStyles): void { 802 const thisSerializer : Serializer = Serializer.hold() 803 let value_type : int32 = RuntimeType.UNDEFINED 804 value_type = runtimeType(value) 805 if (TypeChecker.isOutlineStyle(value)) { 806 thisSerializer.writeInt8(0 as int32) 807 const value_0 = value as OutlineStyle 808 thisSerializer.writeInt32(value_0.valueOf()) 809 } 810 else if (RuntimeType.OBJECT == value_type) { 811 thisSerializer.writeInt8(1 as int32) 812 const value_1 = value as EdgeOutlineStyles 813 const value_1_top = value_1.top 814 let value_1_top_type : int32 = RuntimeType.UNDEFINED 815 value_1_top_type = runtimeType(value_1_top) 816 thisSerializer.writeInt8(value_1_top_type as int32) 817 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 818 const value_1_top_value = (value_1_top as OutlineStyle) 819 thisSerializer.writeInt32(value_1_top_value.valueOf()) 820 } 821 const value_1_right = value_1.right 822 let value_1_right_type : int32 = RuntimeType.UNDEFINED 823 value_1_right_type = runtimeType(value_1_right) 824 thisSerializer.writeInt8(value_1_right_type as int32) 825 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 826 const value_1_right_value = (value_1_right as OutlineStyle) 827 thisSerializer.writeInt32(value_1_right_value.valueOf()) 828 } 829 const value_1_bottom = value_1.bottom 830 let value_1_bottom_type : int32 = RuntimeType.UNDEFINED 831 value_1_bottom_type = runtimeType(value_1_bottom) 832 thisSerializer.writeInt8(value_1_bottom_type as int32) 833 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 834 const value_1_bottom_value = (value_1_bottom as OutlineStyle) 835 thisSerializer.writeInt32(value_1_bottom_value.valueOf()) 836 } 837 const value_1_left = value_1.left 838 let value_1_left_type : int32 = RuntimeType.UNDEFINED 839 value_1_left_type = runtimeType(value_1_left) 840 thisSerializer.writeInt8(value_1_left_type as int32) 841 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 842 const value_1_left_value = (value_1_left as OutlineStyle) 843 thisSerializer.writeInt32(value_1_left_value.valueOf()) 844 } 845 } 846 ArkUIGeneratedNativeModule._CommonMethod_outlineStyle(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 847 thisSerializer.release() 848 } 849 outlineWidthAttribute(value: Dimension | EdgeOutlineWidths): void { 850 const thisSerializer : Serializer = Serializer.hold() 851 let value_type : int32 = RuntimeType.UNDEFINED 852 value_type = runtimeType(value) 853 if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { 854 thisSerializer.writeInt8(0 as int32) 855 const value_0 = value as Dimension 856 thisSerializer.writeLength(value_0) 857 } 858 else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isEdgeOutlineWidths(value, false, false, false, false))) { 859 thisSerializer.writeInt8(1 as int32) 860 const value_1 = value as EdgeOutlineWidths 861 const value_1_top = value_1.top 862 let value_1_top_type : int32 = RuntimeType.UNDEFINED 863 value_1_top_type = runtimeType(value_1_top) 864 thisSerializer.writeInt8(value_1_top_type as int32) 865 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 866 const value_1_top_value = value_1_top! 867 thisSerializer.writeLength(value_1_top_value) 868 } 869 const value_1_right = value_1.right 870 let value_1_right_type : int32 = RuntimeType.UNDEFINED 871 value_1_right_type = runtimeType(value_1_right) 872 thisSerializer.writeInt8(value_1_right_type as int32) 873 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 874 const value_1_right_value = value_1_right! 875 thisSerializer.writeLength(value_1_right_value) 876 } 877 const value_1_bottom = value_1.bottom 878 let value_1_bottom_type : int32 = RuntimeType.UNDEFINED 879 value_1_bottom_type = runtimeType(value_1_bottom) 880 thisSerializer.writeInt8(value_1_bottom_type as int32) 881 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 882 const value_1_bottom_value = value_1_bottom! 883 thisSerializer.writeLength(value_1_bottom_value) 884 } 885 const value_1_left = value_1.left 886 let value_1_left_type : int32 = RuntimeType.UNDEFINED 887 value_1_left_type = runtimeType(value_1_left) 888 thisSerializer.writeInt8(value_1_left_type as int32) 889 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 890 const value_1_left_value = value_1_left! 891 thisSerializer.writeLength(value_1_left_value) 892 } 893 } 894 ArkUIGeneratedNativeModule._CommonMethod_outlineWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 895 thisSerializer.release() 896 } 897 outlineColorAttribute(value: ResourceColor | EdgeColors | LocalizedEdgeColors): void { 898 const thisSerializer : Serializer = Serializer.hold() 899 let value_type : int32 = RuntimeType.UNDEFINED 900 value_type = runtimeType(value) 901 if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { 902 thisSerializer.writeInt8(0 as int32) 903 const value_0 = value as ResourceColor 904 let value_0_type : int32 = RuntimeType.UNDEFINED 905 value_0_type = runtimeType(value_0) 906 if (TypeChecker.isColor(value_0)) { 907 thisSerializer.writeInt8(0 as int32) 908 const value_0_0 = value_0 as Color 909 thisSerializer.writeInt32(value_0_0.valueOf()) 910 } 911 else if (RuntimeType.NUMBER == value_0_type) { 912 thisSerializer.writeInt8(1 as int32) 913 const value_0_1 = value_0 as number 914 thisSerializer.writeNumber(value_0_1) 915 } 916 else if (RuntimeType.STRING == value_0_type) { 917 thisSerializer.writeInt8(2 as int32) 918 const value_0_2 = value_0 as string 919 thisSerializer.writeString(value_0_2) 920 } 921 else if (RuntimeType.OBJECT == value_0_type) { 922 thisSerializer.writeInt8(3 as int32) 923 const value_0_3 = value_0 as Resource 924 thisSerializer.writeResource(value_0_3) 925 } 926 } 927 else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isEdgeColors(value, true, false, true, false))) { 928 thisSerializer.writeInt8(1 as int32) 929 const value_1 = value as EdgeColors 930 const value_1_top = value_1.top 931 let value_1_top_type : int32 = RuntimeType.UNDEFINED 932 value_1_top_type = runtimeType(value_1_top) 933 thisSerializer.writeInt8(value_1_top_type as int32) 934 if ((RuntimeType.UNDEFINED) != (value_1_top_type)) { 935 const value_1_top_value = value_1_top! 936 let value_1_top_value_type : int32 = RuntimeType.UNDEFINED 937 value_1_top_value_type = runtimeType(value_1_top_value) 938 if (TypeChecker.isColor(value_1_top_value)) { 939 thisSerializer.writeInt8(0 as int32) 940 const value_1_top_value_0 = value_1_top_value as Color 941 thisSerializer.writeInt32(value_1_top_value_0.valueOf()) 942 } 943 else if (RuntimeType.NUMBER == value_1_top_value_type) { 944 thisSerializer.writeInt8(1 as int32) 945 const value_1_top_value_1 = value_1_top_value as number 946 thisSerializer.writeNumber(value_1_top_value_1) 947 } 948 else if (RuntimeType.STRING == value_1_top_value_type) { 949 thisSerializer.writeInt8(2 as int32) 950 const value_1_top_value_2 = value_1_top_value as string 951 thisSerializer.writeString(value_1_top_value_2) 952 } 953 else if (RuntimeType.OBJECT == value_1_top_value_type) { 954 thisSerializer.writeInt8(3 as int32) 955 const value_1_top_value_3 = value_1_top_value as Resource 956 thisSerializer.writeResource(value_1_top_value_3) 957 } 958 } 959 const value_1_right = value_1.right 960 let value_1_right_type : int32 = RuntimeType.UNDEFINED 961 value_1_right_type = runtimeType(value_1_right) 962 thisSerializer.writeInt8(value_1_right_type as int32) 963 if ((RuntimeType.UNDEFINED) != (value_1_right_type)) { 964 const value_1_right_value = value_1_right! 965 let value_1_right_value_type : int32 = RuntimeType.UNDEFINED 966 value_1_right_value_type = runtimeType(value_1_right_value) 967 if (TypeChecker.isColor(value_1_right_value)) { 968 thisSerializer.writeInt8(0 as int32) 969 const value_1_right_value_0 = value_1_right_value as Color 970 thisSerializer.writeInt32(value_1_right_value_0.valueOf()) 971 } 972 else if (RuntimeType.NUMBER == value_1_right_value_type) { 973 thisSerializer.writeInt8(1 as int32) 974 const value_1_right_value_1 = value_1_right_value as number 975 thisSerializer.writeNumber(value_1_right_value_1) 976 } 977 else if (RuntimeType.STRING == value_1_right_value_type) { 978 thisSerializer.writeInt8(2 as int32) 979 const value_1_right_value_2 = value_1_right_value as string 980 thisSerializer.writeString(value_1_right_value_2) 981 } 982 else if (RuntimeType.OBJECT == value_1_right_value_type) { 983 thisSerializer.writeInt8(3 as int32) 984 const value_1_right_value_3 = value_1_right_value as Resource 985 thisSerializer.writeResource(value_1_right_value_3) 986 } 987 } 988 const value_1_bottom = value_1.bottom 989 let value_1_bottom_type : int32 = RuntimeType.UNDEFINED 990 value_1_bottom_type = runtimeType(value_1_bottom) 991 thisSerializer.writeInt8(value_1_bottom_type as int32) 992 if ((RuntimeType.UNDEFINED) != (value_1_bottom_type)) { 993 const value_1_bottom_value = value_1_bottom! 994 let value_1_bottom_value_type : int32 = RuntimeType.UNDEFINED 995 value_1_bottom_value_type = runtimeType(value_1_bottom_value) 996 if (TypeChecker.isColor(value_1_bottom_value)) { 997 thisSerializer.writeInt8(0 as int32) 998 const value_1_bottom_value_0 = value_1_bottom_value as Color 999 thisSerializer.writeInt32(value_1_bottom_value_0.valueOf()) 1000 } 1001 else if (RuntimeType.NUMBER == value_1_bottom_value_type) { 1002 thisSerializer.writeInt8(1 as int32) 1003 const value_1_bottom_value_1 = value_1_bottom_value as number 1004 thisSerializer.writeNumber(value_1_bottom_value_1) 1005 } 1006 else if (RuntimeType.STRING == value_1_bottom_value_type) { 1007 thisSerializer.writeInt8(2 as int32) 1008 const value_1_bottom_value_2 = value_1_bottom_value as string 1009 thisSerializer.writeString(value_1_bottom_value_2) 1010 } 1011 else if (RuntimeType.OBJECT == value_1_bottom_value_type) { 1012 thisSerializer.writeInt8(3 as int32) 1013 const value_1_bottom_value_3 = value_1_bottom_value as Resource 1014 thisSerializer.writeResource(value_1_bottom_value_3) 1015 } 1016 } 1017 const value_1_left = value_1.left 1018 let value_1_left_type : int32 = RuntimeType.UNDEFINED 1019 value_1_left_type = runtimeType(value_1_left) 1020 thisSerializer.writeInt8(value_1_left_type as int32) 1021 if ((RuntimeType.UNDEFINED) != (value_1_left_type)) { 1022 const value_1_left_value = value_1_left! 1023 let value_1_left_value_type : int32 = RuntimeType.UNDEFINED 1024 value_1_left_value_type = runtimeType(value_1_left_value) 1025 if (TypeChecker.isColor(value_1_left_value)) { 1026 thisSerializer.writeInt8(0 as int32) 1027 const value_1_left_value_0 = value_1_left_value as Color 1028 thisSerializer.writeInt32(value_1_left_value_0.valueOf()) 1029 } 1030 else if (RuntimeType.NUMBER == value_1_left_value_type) { 1031 thisSerializer.writeInt8(1 as int32) 1032 const value_1_left_value_1 = value_1_left_value as number 1033 thisSerializer.writeNumber(value_1_left_value_1) 1034 } 1035 else if (RuntimeType.STRING == value_1_left_value_type) { 1036 thisSerializer.writeInt8(2 as int32) 1037 const value_1_left_value_2 = value_1_left_value as string 1038 thisSerializer.writeString(value_1_left_value_2) 1039 } 1040 else if (RuntimeType.OBJECT == value_1_left_value_type) { 1041 thisSerializer.writeInt8(3 as int32) 1042 const value_1_left_value_3 = value_1_left_value as Resource 1043 thisSerializer.writeResource(value_1_left_value_3) 1044 } 1045 } 1046 } 1047 else if (TypeChecker.isLocalizedEdgeColors(value, true, false, true, false)) { 1048 thisSerializer.writeInt8(2 as int32) 1049 const value_2 = value as LocalizedEdgeColors 1050 thisSerializer.writeLocalizedEdgeColors(value_2) 1051 } 1052 ArkUIGeneratedNativeModule._CommonMethod_outlineColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1053 thisSerializer.release() 1054 } 1055 outlineRadiusAttribute(value: Dimension | OutlineRadiuses): void { 1056 const thisSerializer : Serializer = Serializer.hold() 1057 let value_type : int32 = RuntimeType.UNDEFINED 1058 value_type = runtimeType(value) 1059 if (((RuntimeType.NUMBER) == (value_type)) || ((RuntimeType.STRING) == (value_type)) || (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isResource(value, false, false, false, false, false)))) { 1060 thisSerializer.writeInt8(0 as int32) 1061 const value_0 = value as Dimension 1062 thisSerializer.writeLength(value_0) 1063 } 1064 else if (((RuntimeType.OBJECT) == (value_type)) && (TypeChecker.isOutlineRadiuses(value, false, false, false, false))) { 1065 thisSerializer.writeInt8(1 as int32) 1066 const value_1 = value as OutlineRadiuses 1067 const value_1_topLeft = value_1.topLeft 1068 let value_1_topLeft_type : int32 = RuntimeType.UNDEFINED 1069 value_1_topLeft_type = runtimeType(value_1_topLeft) 1070 thisSerializer.writeInt8(value_1_topLeft_type as int32) 1071 if ((RuntimeType.UNDEFINED) != (value_1_topLeft_type)) { 1072 const value_1_topLeft_value = value_1_topLeft! 1073 thisSerializer.writeLength(value_1_topLeft_value) 1074 } 1075 const value_1_topRight = value_1.topRight 1076 let value_1_topRight_type : int32 = RuntimeType.UNDEFINED 1077 value_1_topRight_type = runtimeType(value_1_topRight) 1078 thisSerializer.writeInt8(value_1_topRight_type as int32) 1079 if ((RuntimeType.UNDEFINED) != (value_1_topRight_type)) { 1080 const value_1_topRight_value = value_1_topRight! 1081 thisSerializer.writeLength(value_1_topRight_value) 1082 } 1083 const value_1_bottomLeft = value_1.bottomLeft 1084 let value_1_bottomLeft_type : int32 = RuntimeType.UNDEFINED 1085 value_1_bottomLeft_type = runtimeType(value_1_bottomLeft) 1086 thisSerializer.writeInt8(value_1_bottomLeft_type as int32) 1087 if ((RuntimeType.UNDEFINED) != (value_1_bottomLeft_type)) { 1088 const value_1_bottomLeft_value = value_1_bottomLeft! 1089 thisSerializer.writeLength(value_1_bottomLeft_value) 1090 } 1091 const value_1_bottomRight = value_1.bottomRight 1092 let value_1_bottomRight_type : int32 = RuntimeType.UNDEFINED 1093 value_1_bottomRight_type = runtimeType(value_1_bottomRight) 1094 thisSerializer.writeInt8(value_1_bottomRight_type as int32) 1095 if ((RuntimeType.UNDEFINED) != (value_1_bottomRight_type)) { 1096 const value_1_bottomRight_value = value_1_bottomRight! 1097 thisSerializer.writeLength(value_1_bottomRight_value) 1098 } 1099 } 1100 ArkUIGeneratedNativeModule._CommonMethod_outlineRadius(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1101 thisSerializer.release() 1102 } 1103 foregroundColorAttribute(value: ResourceColor | ColoringStrategy): void { 1104 const thisSerializer : Serializer = Serializer.hold() 1105 let value_type : int32 = RuntimeType.UNDEFINED 1106 value_type = runtimeType(value) 1107 if ((TypeChecker.isColor(value)) || (RuntimeType.NUMBER == value_type) || (RuntimeType.STRING == value_type) || (RuntimeType.OBJECT == value_type)) { 1108 thisSerializer.writeInt8(0 as int32) 1109 const value_0 = value as ResourceColor 1110 let value_0_type : int32 = RuntimeType.UNDEFINED 1111 value_0_type = runtimeType(value_0) 1112 if (TypeChecker.isColor(value_0)) { 1113 thisSerializer.writeInt8(0 as int32) 1114 const value_0_0 = value_0 as Color 1115 thisSerializer.writeInt32(value_0_0.valueOf()) 1116 } 1117 else if (RuntimeType.NUMBER == value_0_type) { 1118 thisSerializer.writeInt8(1 as int32) 1119 const value_0_1 = value_0 as number 1120 thisSerializer.writeNumber(value_0_1) 1121 } 1122 else if (RuntimeType.STRING == value_0_type) { 1123 thisSerializer.writeInt8(2 as int32) 1124 const value_0_2 = value_0 as string 1125 thisSerializer.writeString(value_0_2) 1126 } 1127 else if (RuntimeType.OBJECT == value_0_type) { 1128 thisSerializer.writeInt8(3 as int32) 1129 const value_0_3 = value_0 as Resource 1130 thisSerializer.writeResource(value_0_3) 1131 } 1132 } 1133 else if (TypeChecker.isColoringStrategy(value)) { 1134 thisSerializer.writeInt8(1 as int32) 1135 const value_1 = value as ColoringStrategy 1136 thisSerializer.writeInt32(TypeChecker.ColoringStrategy_ToOrdinal(value_1)) 1137 } 1138 ArkUIGeneratedNativeModule._CommonMethod_foregroundColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1139 thisSerializer.release() 1140 } 1141 onClick0Attribute(value: ((event: ClickEvent) => void)): void { 1142 const thisSerializer : Serializer = Serializer.hold() 1143 thisSerializer.holdAndWriteCallback(value) 1144 ArkUIGeneratedNativeModule._CommonMethod_onClick0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1145 thisSerializer.release() 1146 } 1147 onClick1Attribute(event: ((event: ClickEvent) => void), distanceThreshold: number): void { 1148 const thisSerializer : Serializer = Serializer.hold() 1149 thisSerializer.holdAndWriteCallback(event) 1150 ArkUIGeneratedNativeModule._CommonMethod_onClick1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length(), distanceThreshold) 1151 thisSerializer.release() 1152 } 1153 onHoverAttribute(value: ((isHover: boolean,event: HoverEvent) => void)): void { 1154 const thisSerializer : Serializer = Serializer.hold() 1155 thisSerializer.holdAndWriteCallback(value) 1156 ArkUIGeneratedNativeModule._CommonMethod_onHover(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1157 thisSerializer.release() 1158 } 1159 onAccessibilityHoverAttribute(value: AccessibilityCallback): void { 1160 const thisSerializer : Serializer = Serializer.hold() 1161 thisSerializer.holdAndWriteCallback(value) 1162 ArkUIGeneratedNativeModule._CommonMethod_onAccessibilityHover(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1163 thisSerializer.release() 1164 } 1165 hoverEffectAttribute(value: HoverEffect): void { 1166 ArkUIGeneratedNativeModule._CommonMethod_hoverEffect(this.peer.ptr, value.valueOf()) 1167 } 1168 onMouseAttribute(value: ((event: MouseEvent) => void)): void { 1169 const thisSerializer : Serializer = Serializer.hold() 1170 thisSerializer.holdAndWriteCallback(value) 1171 ArkUIGeneratedNativeModule._CommonMethod_onMouse(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1172 thisSerializer.release() 1173 } 1174 onTouchAttribute(value: ((event: TouchEvent) => void)): void { 1175 const thisSerializer : Serializer = Serializer.hold() 1176 thisSerializer.holdAndWriteCallback(value) 1177 ArkUIGeneratedNativeModule._CommonMethod_onTouch(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1178 thisSerializer.release() 1179 } 1180 onKeyEventAttribute(value: ((event: KeyEvent) => void)): void { 1181 const thisSerializer : Serializer = Serializer.hold() 1182 thisSerializer.holdAndWriteCallback(value) 1183 ArkUIGeneratedNativeModule._CommonMethod_onKeyEvent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1184 thisSerializer.release() 1185 } 1186 onKeyPreImeAttribute(value: ((parameter: KeyEvent) => boolean)): void { 1187 const thisSerializer : Serializer = Serializer.hold() 1188 thisSerializer.holdAndWriteCallback(value) 1189 ArkUIGeneratedNativeModule._CommonMethod_onKeyPreIme(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1190 thisSerializer.release() 1191 } 1192 focusableAttribute(value: boolean): void { 1193 ArkUIGeneratedNativeModule._CommonMethod_focusable(this.peer.ptr, value ? 1 : 0) 1194 } 1195 onFocusAttribute(value: (() => void)): void { 1196 const thisSerializer : Serializer = Serializer.hold() 1197 thisSerializer.holdAndWriteCallback(value) 1198 ArkUIGeneratedNativeModule._CommonMethod_onFocus(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1199 thisSerializer.release() 1200 } 1201 onBlurAttribute(value: (() => void)): void { 1202 const thisSerializer : Serializer = Serializer.hold() 1203 thisSerializer.holdAndWriteCallback(value) 1204 ArkUIGeneratedNativeModule._CommonMethod_onBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1205 thisSerializer.release() 1206 } 1207 tabIndexAttribute(value: number): void { 1208 ArkUIGeneratedNativeModule._CommonMethod_tabIndex(this.peer.ptr, value) 1209 } 1210 defaultFocusAttribute(value: boolean): void { 1211 ArkUIGeneratedNativeModule._CommonMethod_defaultFocus(this.peer.ptr, value ? 1 : 0) 1212 } 1213 groupDefaultFocusAttribute(value: boolean): void { 1214 ArkUIGeneratedNativeModule._CommonMethod_groupDefaultFocus(this.peer.ptr, value ? 1 : 0) 1215 } 1216 focusOnTouchAttribute(value: boolean): void { 1217 ArkUIGeneratedNativeModule._CommonMethod_focusOnTouch(this.peer.ptr, value ? 1 : 0) 1218 } 1219 focusBoxAttribute(value: FocusBoxStyle): void { 1220 const thisSerializer : Serializer = Serializer.hold() 1221 thisSerializer.writeFocusBoxStyle(value) 1222 ArkUIGeneratedNativeModule._CommonMethod_focusBox(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1223 thisSerializer.release() 1224 } 1225 animationAttribute(value: AnimateParam): void { 1226 const thisSerializer : Serializer = Serializer.hold() 1227 thisSerializer.writeAnimateParam(value) 1228 ArkUIGeneratedNativeModule._CommonMethod_animation(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1229 thisSerializer.release() 1230 } 1231 transition0Attribute(value: TransitionOptions | TransitionEffect): void { 1232 const thisSerializer : Serializer = Serializer.hold() 1233 let value_type : int32 = RuntimeType.UNDEFINED 1234 value_type = runtimeType(value) 1235 if (TypeChecker.isTransitionOptions(value, false, false, false, false, false)) { 1236 thisSerializer.writeInt8(0 as int32) 1237 const value_0 = value as TransitionOptions 1238 thisSerializer.writeTransitionOptions(value_0) 1239 } 1240 else if (TypeChecker.isTransitionEffect(value)) { 1241 thisSerializer.writeInt8(1 as int32) 1242 const value_1 = value as TransitionEffect 1243 thisSerializer.writeTransitionEffect(value_1) 1244 } 1245 ArkUIGeneratedNativeModule._CommonMethod_transition0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1246 thisSerializer.release() 1247 } 1248 transition1Attribute(effect: TransitionEffect, onFinish?: TransitionFinishCallback): void { 1249 const thisSerializer : Serializer = Serializer.hold() 1250 let onFinish_type : int32 = RuntimeType.UNDEFINED 1251 onFinish_type = runtimeType(onFinish) 1252 thisSerializer.writeInt8(onFinish_type as int32) 1253 if ((RuntimeType.UNDEFINED) != (onFinish_type)) { 1254 const onFinish_value = onFinish! 1255 thisSerializer.holdAndWriteCallback(onFinish_value) 1256 } 1257 ArkUIGeneratedNativeModule._CommonMethod_transition1(this.peer.ptr, toPeerPtr(effect), thisSerializer.asBuffer(), thisSerializer.length()) 1258 thisSerializer.release() 1259 } 1260 motionBlurAttribute(value: MotionBlurOptions): void { 1261 const thisSerializer : Serializer = Serializer.hold() 1262 thisSerializer.writeMotionBlurOptions(value) 1263 ArkUIGeneratedNativeModule._CommonMethod_motionBlur(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1264 thisSerializer.release() 1265 } 1266 brightnessAttribute(value: number): void { 1267 ArkUIGeneratedNativeModule._CommonMethod_brightness(this.peer.ptr, value) 1268 } 1269 contrastAttribute(value: number): void { 1270 ArkUIGeneratedNativeModule._CommonMethod_contrast(this.peer.ptr, value) 1271 } 1272 grayscaleAttribute(value: number): void { 1273 ArkUIGeneratedNativeModule._CommonMethod_grayscale(this.peer.ptr, value) 1274 } 1275 colorBlendAttribute(value: Color | string | Resource): void { 1276 const thisSerializer : Serializer = Serializer.hold() 1277 let value_type : int32 = RuntimeType.UNDEFINED 1278 value_type = runtimeType(value) 1279 if (TypeChecker.isColor(value)) { 1280 thisSerializer.writeInt8(0 as int32) 1281 const value_0 = value as Color 1282 thisSerializer.writeInt32(value_0.valueOf()) 1283 } 1284 else if (RuntimeType.STRING == value_type) { 1285 thisSerializer.writeInt8(1 as int32) 1286 const value_1 = value as string 1287 thisSerializer.writeString(value_1) 1288 } 1289 else if (RuntimeType.OBJECT == value_type) { 1290 thisSerializer.writeInt8(2 as int32) 1291 const value_2 = value as Resource 1292 thisSerializer.writeResource(value_2) 1293 } 1294 ArkUIGeneratedNativeModule._CommonMethod_colorBlend(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1295 thisSerializer.release() 1296 } 1297 saturateAttribute(value: number): void { 1298 ArkUIGeneratedNativeModule._CommonMethod_saturate(this.peer.ptr, value) 1299 } 1300 sepiaAttribute(value: number): void { 1301 ArkUIGeneratedNativeModule._CommonMethod_sepia(this.peer.ptr, value) 1302 } 1303 invertAttribute(value: number | InvertOptions): void { 1304 const thisSerializer : Serializer = Serializer.hold() 1305 let value_type : int32 = RuntimeType.UNDEFINED 1306 value_type = runtimeType(value) 1307 if (RuntimeType.NUMBER == value_type) { 1308 thisSerializer.writeInt8(0 as int32) 1309 const value_0 = value as number 1310 thisSerializer.writeNumber(value_0) 1311 } 1312 else if (RuntimeType.OBJECT == value_type) { 1313 thisSerializer.writeInt8(1 as int32) 1314 const value_1 = value as InvertOptions 1315 thisSerializer.writeInvertOptions(value_1) 1316 } 1317 ArkUIGeneratedNativeModule._CommonMethod_invert(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1318 thisSerializer.release() 1319 } 1320 hueRotateAttribute(value: number | string): void { 1321 const thisSerializer : Serializer = Serializer.hold() 1322 let value_type : int32 = RuntimeType.UNDEFINED 1323 value_type = runtimeType(value) 1324 if (RuntimeType.NUMBER == value_type) { 1325 thisSerializer.writeInt8(0 as int32) 1326 const value_0 = value as number 1327 thisSerializer.writeNumber(value_0) 1328 } 1329 else if (RuntimeType.STRING == value_type) { 1330 thisSerializer.writeInt8(1 as int32) 1331 const value_1 = value as string 1332 thisSerializer.writeString(value_1) 1333 } 1334 ArkUIGeneratedNativeModule._CommonMethod_hueRotate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1335 thisSerializer.release() 1336 } 1337 useShadowBatchingAttribute(value: boolean): void { 1338 ArkUIGeneratedNativeModule._CommonMethod_useShadowBatching(this.peer.ptr, value ? 1 : 0) 1339 } 1340 useEffect0Attribute(value: boolean): void { 1341 ArkUIGeneratedNativeModule._CommonMethod_useEffect0(this.peer.ptr, value ? 1 : 0) 1342 } 1343 useEffect1Attribute(useEffect: boolean, effectType: EffectType): void { 1344 ArkUIGeneratedNativeModule._CommonMethod_useEffect1(this.peer.ptr, useEffect ? 1 : 0, effectType.valueOf()) 1345 } 1346 renderGroupAttribute(value: boolean): void { 1347 ArkUIGeneratedNativeModule._CommonMethod_renderGroup(this.peer.ptr, value ? 1 : 0) 1348 } 1349 freezeAttribute(value: boolean): void { 1350 ArkUIGeneratedNativeModule._CommonMethod_freeze(this.peer.ptr, value ? 1 : 0) 1351 } 1352 translateAttribute(value: TranslateOptions): void { 1353 const thisSerializer : Serializer = Serializer.hold() 1354 thisSerializer.writeTranslateOptions(value) 1355 ArkUIGeneratedNativeModule._CommonMethod_translate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1356 thisSerializer.release() 1357 } 1358 scaleAttribute(value: ScaleOptions): void { 1359 const thisSerializer : Serializer = Serializer.hold() 1360 thisSerializer.writeScaleOptions(value) 1361 ArkUIGeneratedNativeModule._CommonMethod_scale(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1362 thisSerializer.release() 1363 } 1364 gridSpanAttribute(value: number): void { 1365 ArkUIGeneratedNativeModule._CommonMethod_gridSpan(this.peer.ptr, value) 1366 } 1367 gridOffsetAttribute(value: number): void { 1368 ArkUIGeneratedNativeModule._CommonMethod_gridOffset(this.peer.ptr, value) 1369 } 1370 rotateAttribute(value: RotateOptions): void { 1371 const thisSerializer : Serializer = Serializer.hold() 1372 thisSerializer.writeRotateOptions(value) 1373 ArkUIGeneratedNativeModule._CommonMethod_rotate(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1374 thisSerializer.release() 1375 } 1376 transformAttribute(value: Object): void { 1377 const thisSerializer : Serializer = Serializer.hold() 1378 thisSerializer.writeCustomObject("Object", value) 1379 ArkUIGeneratedNativeModule._CommonMethod_transform(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1380 thisSerializer.release() 1381 } 1382 onAppearAttribute(value: (() => void)): void { 1383 const thisSerializer : Serializer = Serializer.hold() 1384 thisSerializer.holdAndWriteCallback(value) 1385 ArkUIGeneratedNativeModule._CommonMethod_onAppear(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1386 thisSerializer.release() 1387 } 1388 onDisAppearAttribute(value: (() => void)): void { 1389 const thisSerializer : Serializer = Serializer.hold() 1390 thisSerializer.holdAndWriteCallback(value) 1391 ArkUIGeneratedNativeModule._CommonMethod_onDisAppear(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1392 thisSerializer.release() 1393 } 1394 onAttachAttribute(value: (() => void)): void { 1395 const thisSerializer : Serializer = Serializer.hold() 1396 thisSerializer.holdAndWriteCallback(value) 1397 ArkUIGeneratedNativeModule._CommonMethod_onAttach(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1398 thisSerializer.release() 1399 } 1400 onDetachAttribute(value: (() => void)): void { 1401 const thisSerializer : Serializer = Serializer.hold() 1402 thisSerializer.holdAndWriteCallback(value) 1403 ArkUIGeneratedNativeModule._CommonMethod_onDetach(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1404 thisSerializer.release() 1405 } 1406 onAreaChangeAttribute(value: ((oldValue: Area,newValue: Area) => void)): void { 1407 const thisSerializer : Serializer = Serializer.hold() 1408 thisSerializer.holdAndWriteCallback(value) 1409 ArkUIGeneratedNativeModule._CommonMethod_onAreaChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1410 thisSerializer.release() 1411 } 1412 visibilityAttribute(value: Visibility): void { 1413 ArkUIGeneratedNativeModule._CommonMethod_visibility(this.peer.ptr, value.valueOf()) 1414 } 1415 flexGrowAttribute(value: number): void { 1416 ArkUIGeneratedNativeModule._CommonMethod_flexGrow(this.peer.ptr, value) 1417 } 1418 flexShrinkAttribute(value: number): void { 1419 ArkUIGeneratedNativeModule._CommonMethod_flexShrink(this.peer.ptr, value) 1420 } 1421 flexBasisAttribute(value: number | string): void { 1422 const thisSerializer : Serializer = Serializer.hold() 1423 let value_type : int32 = RuntimeType.UNDEFINED 1424 value_type = runtimeType(value) 1425 if (RuntimeType.NUMBER == value_type) { 1426 thisSerializer.writeInt8(0 as int32) 1427 const value_0 = value as number 1428 thisSerializer.writeNumber(value_0) 1429 } 1430 else if (RuntimeType.STRING == value_type) { 1431 thisSerializer.writeInt8(1 as int32) 1432 const value_1 = value as string 1433 thisSerializer.writeString(value_1) 1434 } 1435 ArkUIGeneratedNativeModule._CommonMethod_flexBasis(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1436 thisSerializer.release() 1437 } 1438 alignSelfAttribute(value: ItemAlign): void { 1439 ArkUIGeneratedNativeModule._CommonMethod_alignSelf(this.peer.ptr, value.valueOf()) 1440 } 1441 displayPriorityAttribute(value: number): void { 1442 ArkUIGeneratedNativeModule._CommonMethod_displayPriority(this.peer.ptr, value) 1443 } 1444 zIndexAttribute(value: number): void { 1445 ArkUIGeneratedNativeModule._CommonMethod_zIndex(this.peer.ptr, value) 1446 } 1447 directionAttribute(value: Direction): void { 1448 ArkUIGeneratedNativeModule._CommonMethod_direction(this.peer.ptr, value.valueOf()) 1449 } 1450 alignAttribute(value: Alignment): void { 1451 ArkUIGeneratedNativeModule._CommonMethod_align(this.peer.ptr, value.valueOf()) 1452 } 1453 positionAttribute(value: Position | Edges | LocalizedEdges): void { 1454 const thisSerializer : Serializer = Serializer.hold() 1455 let value_type : int32 = RuntimeType.UNDEFINED 1456 value_type = runtimeType(value) 1457 if (TypeChecker.isPosition(value, false, false)) { 1458 thisSerializer.writeInt8(0 as int32) 1459 const value_0 = value as Position 1460 thisSerializer.writePosition(value_0) 1461 } 1462 else if (TypeChecker.isEdges(value, true, false, true, false)) { 1463 thisSerializer.writeInt8(1 as int32) 1464 const value_1 = value as Edges 1465 thisSerializer.writeEdges(value_1) 1466 } 1467 else if (TypeChecker.isLocalizedEdges(value, true, false, true, false)) { 1468 thisSerializer.writeInt8(2 as int32) 1469 const value_2 = value as LocalizedEdges 1470 thisSerializer.writeLocalizedEdges(value_2) 1471 } 1472 ArkUIGeneratedNativeModule._CommonMethod_position(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1473 thisSerializer.release() 1474 } 1475 markAnchorAttribute(value: Position | LocalizedPosition): void { 1476 const thisSerializer : Serializer = Serializer.hold() 1477 let value_type : int32 = RuntimeType.UNDEFINED 1478 value_type = runtimeType(value) 1479 if (TypeChecker.isPosition(value, false, false)) { 1480 thisSerializer.writeInt8(0 as int32) 1481 const value_0 = value as Position 1482 thisSerializer.writePosition(value_0) 1483 } 1484 else if (TypeChecker.isLocalizedPosition(value, false, false)) { 1485 thisSerializer.writeInt8(1 as int32) 1486 const value_1 = value as LocalizedPosition 1487 thisSerializer.writeLocalizedPosition(value_1) 1488 } 1489 ArkUIGeneratedNativeModule._CommonMethod_markAnchor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1490 thisSerializer.release() 1491 } 1492 offsetAttribute(value: Position | Edges | LocalizedEdges): void { 1493 const thisSerializer : Serializer = Serializer.hold() 1494 let value_type : int32 = RuntimeType.UNDEFINED 1495 value_type = runtimeType(value) 1496 if (TypeChecker.isPosition(value, false, false)) { 1497 thisSerializer.writeInt8(0 as int32) 1498 const value_0 = value as Position 1499 thisSerializer.writePosition(value_0) 1500 } 1501 else if (TypeChecker.isEdges(value, true, false, true, false)) { 1502 thisSerializer.writeInt8(1 as int32) 1503 const value_1 = value as Edges 1504 thisSerializer.writeEdges(value_1) 1505 } 1506 else if (TypeChecker.isLocalizedEdges(value, true, false, true, false)) { 1507 thisSerializer.writeInt8(2 as int32) 1508 const value_2 = value as LocalizedEdges 1509 thisSerializer.writeLocalizedEdges(value_2) 1510 } 1511 ArkUIGeneratedNativeModule._CommonMethod_offset(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1512 thisSerializer.release() 1513 } 1514 enabledAttribute(value: boolean): void { 1515 ArkUIGeneratedNativeModule._CommonMethod_enabled(this.peer.ptr, value ? 1 : 0) 1516 } 1517 useSizeTypeAttribute(value: Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs): void { 1518 const thisSerializer : Serializer = Serializer.hold() 1519 const value_xs = value.xs 1520 let value_xs_type : int32 = RuntimeType.UNDEFINED 1521 value_xs_type = runtimeType(value_xs) 1522 thisSerializer.writeInt8(value_xs_type as int32) 1523 if ((RuntimeType.UNDEFINED) != (value_xs_type)) { 1524 const value_xs_value = value_xs! 1525 let value_xs_value_type : int32 = RuntimeType.UNDEFINED 1526 value_xs_value_type = runtimeType(value_xs_value) 1527 if (RuntimeType.NUMBER == value_xs_value_type) { 1528 thisSerializer.writeInt8(0 as int32) 1529 const value_xs_value_0 = value_xs_value as number 1530 thisSerializer.writeNumber(value_xs_value_0) 1531 } 1532 else if (RuntimeType.OBJECT == value_xs_value_type) { 1533 thisSerializer.writeInt8(1 as int32) 1534 const value_xs_value_1 = value_xs_value as Literal_Number_offset_span 1535 const value_xs_value_1_span = value_xs_value_1.span 1536 thisSerializer.writeNumber(value_xs_value_1_span) 1537 const value_xs_value_1_offset = value_xs_value_1.offset 1538 thisSerializer.writeNumber(value_xs_value_1_offset) 1539 } 1540 } 1541 const value_sm = value.sm 1542 let value_sm_type : int32 = RuntimeType.UNDEFINED 1543 value_sm_type = runtimeType(value_sm) 1544 thisSerializer.writeInt8(value_sm_type as int32) 1545 if ((RuntimeType.UNDEFINED) != (value_sm_type)) { 1546 const value_sm_value = value_sm! 1547 let value_sm_value_type : int32 = RuntimeType.UNDEFINED 1548 value_sm_value_type = runtimeType(value_sm_value) 1549 if (RuntimeType.NUMBER == value_sm_value_type) { 1550 thisSerializer.writeInt8(0 as int32) 1551 const value_sm_value_0 = value_sm_value as number 1552 thisSerializer.writeNumber(value_sm_value_0) 1553 } 1554 else if (RuntimeType.OBJECT == value_sm_value_type) { 1555 thisSerializer.writeInt8(1 as int32) 1556 const value_sm_value_1 = value_sm_value as Literal_Number_offset_span 1557 const value_sm_value_1_span = value_sm_value_1.span 1558 thisSerializer.writeNumber(value_sm_value_1_span) 1559 const value_sm_value_1_offset = value_sm_value_1.offset 1560 thisSerializer.writeNumber(value_sm_value_1_offset) 1561 } 1562 } 1563 const value_md = value.md 1564 let value_md_type : int32 = RuntimeType.UNDEFINED 1565 value_md_type = runtimeType(value_md) 1566 thisSerializer.writeInt8(value_md_type as int32) 1567 if ((RuntimeType.UNDEFINED) != (value_md_type)) { 1568 const value_md_value = value_md! 1569 let value_md_value_type : int32 = RuntimeType.UNDEFINED 1570 value_md_value_type = runtimeType(value_md_value) 1571 if (RuntimeType.NUMBER == value_md_value_type) { 1572 thisSerializer.writeInt8(0 as int32) 1573 const value_md_value_0 = value_md_value as number 1574 thisSerializer.writeNumber(value_md_value_0) 1575 } 1576 else if (RuntimeType.OBJECT == value_md_value_type) { 1577 thisSerializer.writeInt8(1 as int32) 1578 const value_md_value_1 = value_md_value as Literal_Number_offset_span 1579 const value_md_value_1_span = value_md_value_1.span 1580 thisSerializer.writeNumber(value_md_value_1_span) 1581 const value_md_value_1_offset = value_md_value_1.offset 1582 thisSerializer.writeNumber(value_md_value_1_offset) 1583 } 1584 } 1585 const value_lg = value.lg 1586 let value_lg_type : int32 = RuntimeType.UNDEFINED 1587 value_lg_type = runtimeType(value_lg) 1588 thisSerializer.writeInt8(value_lg_type as int32) 1589 if ((RuntimeType.UNDEFINED) != (value_lg_type)) { 1590 const value_lg_value = value_lg! 1591 let value_lg_value_type : int32 = RuntimeType.UNDEFINED 1592 value_lg_value_type = runtimeType(value_lg_value) 1593 if (RuntimeType.NUMBER == value_lg_value_type) { 1594 thisSerializer.writeInt8(0 as int32) 1595 const value_lg_value_0 = value_lg_value as number 1596 thisSerializer.writeNumber(value_lg_value_0) 1597 } 1598 else if (RuntimeType.OBJECT == value_lg_value_type) { 1599 thisSerializer.writeInt8(1 as int32) 1600 const value_lg_value_1 = value_lg_value as Literal_Number_offset_span 1601 const value_lg_value_1_span = value_lg_value_1.span 1602 thisSerializer.writeNumber(value_lg_value_1_span) 1603 const value_lg_value_1_offset = value_lg_value_1.offset 1604 thisSerializer.writeNumber(value_lg_value_1_offset) 1605 } 1606 } 1607 ArkUIGeneratedNativeModule._CommonMethod_useSizeType(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1608 thisSerializer.release() 1609 } 1610 alignRules0Attribute(value: AlignRuleOption): void { 1611 const thisSerializer : Serializer = Serializer.hold() 1612 thisSerializer.writeAlignRuleOption(value) 1613 ArkUIGeneratedNativeModule._CommonMethod_alignRules0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1614 thisSerializer.release() 1615 } 1616 alignRules1Attribute(value: LocalizedAlignRuleOptions): void { 1617 const thisSerializer : Serializer = Serializer.hold() 1618 thisSerializer.writeLocalizedAlignRuleOptions(value) 1619 ArkUIGeneratedNativeModule._CommonMethod_alignRules1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1620 thisSerializer.release() 1621 } 1622 aspectRatioAttribute(value: number): void { 1623 ArkUIGeneratedNativeModule._CommonMethod_aspectRatio(this.peer.ptr, value) 1624 } 1625 clickEffectAttribute(value?: ClickEffect): void { 1626 const thisSerializer : Serializer = Serializer.hold() 1627 let value_type : int32 = RuntimeType.UNDEFINED 1628 value_type = runtimeType(value) 1629 thisSerializer.writeInt8(value_type as int32) 1630 if ((RuntimeType.UNDEFINED) != (value_type)) { 1631 const value_value = value! 1632 thisSerializer.writeClickEffect(value_value) 1633 } 1634 ArkUIGeneratedNativeModule._CommonMethod_clickEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1635 thisSerializer.release() 1636 } 1637 onDragStartAttribute(value: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo)): void { 1638 const thisSerializer : Serializer = Serializer.hold() 1639 thisSerializer.holdAndWriteCallback(value) 1640 ArkUIGeneratedNativeModule._CommonMethod_onDragStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1641 thisSerializer.release() 1642 } 1643 onDragEnterAttribute(value: ((event: DragEvent,extraParams?: string) => void)): void { 1644 const thisSerializer : Serializer = Serializer.hold() 1645 thisSerializer.holdAndWriteCallback(value) 1646 ArkUIGeneratedNativeModule._CommonMethod_onDragEnter(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1647 thisSerializer.release() 1648 } 1649 onDragMoveAttribute(value: ((event: DragEvent,extraParams?: string) => void)): void { 1650 const thisSerializer : Serializer = Serializer.hold() 1651 thisSerializer.holdAndWriteCallback(value) 1652 ArkUIGeneratedNativeModule._CommonMethod_onDragMove(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1653 thisSerializer.release() 1654 } 1655 onDragLeaveAttribute(value: ((event: DragEvent,extraParams?: string) => void)): void { 1656 const thisSerializer : Serializer = Serializer.hold() 1657 thisSerializer.holdAndWriteCallback(value) 1658 ArkUIGeneratedNativeModule._CommonMethod_onDragLeave(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1659 thisSerializer.release() 1660 } 1661 onDropAttribute(value: ((event: DragEvent,extraParams?: string) => void)): void { 1662 const thisSerializer : Serializer = Serializer.hold() 1663 thisSerializer.holdAndWriteCallback(value) 1664 ArkUIGeneratedNativeModule._CommonMethod_onDrop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1665 thisSerializer.release() 1666 } 1667 onDragEndAttribute(value: ((event: DragEvent,extraParams?: string) => void)): void { 1668 const thisSerializer : Serializer = Serializer.hold() 1669 thisSerializer.holdAndWriteCallback(value) 1670 ArkUIGeneratedNativeModule._CommonMethod_onDragEnd(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1671 thisSerializer.release() 1672 } 1673 allowDropAttribute(value?: Array<UniformDataType>): void { 1674 const thisSerializer : Serializer = Serializer.hold() 1675 let value_type : int32 = RuntimeType.UNDEFINED 1676 value_type = runtimeType(value) 1677 thisSerializer.writeInt8(value_type as int32) 1678 if ((RuntimeType.UNDEFINED) != (value_type)) { 1679 const value_value = value! 1680 thisSerializer.writeInt32(value_value.length as int32) 1681 for (let i = 0; i < value_value.length; i++) { 1682 const value_value_element : UniformDataType = value_value[i] 1683 thisSerializer.writeUniformDataType(value_value_element) 1684 } 1685 } 1686 ArkUIGeneratedNativeModule._CommonMethod_allowDrop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1687 thisSerializer.release() 1688 } 1689 draggableAttribute(value: boolean): void { 1690 ArkUIGeneratedNativeModule._CommonMethod_draggable(this.peer.ptr, value ? 1 : 0) 1691 } 1692 dragPreviewAttribute(value: CustomBuilder | DragItemInfo | string): void { 1693 const thisSerializer : Serializer = Serializer.hold() 1694 let value_type : int32 = RuntimeType.UNDEFINED 1695 value_type = runtimeType(value) 1696 if (RuntimeType.FUNCTION == value_type) { 1697 thisSerializer.writeInt8(0 as int32) 1698 const value_0 = value as CustomBuilder 1699 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_0)) 1700 } 1701 else if (RuntimeType.OBJECT == value_type) { 1702 thisSerializer.writeInt8(1 as int32) 1703 const value_1 = value as DragItemInfo 1704 thisSerializer.writeDragItemInfo(value_1) 1705 } 1706 else if (RuntimeType.STRING == value_type) { 1707 thisSerializer.writeInt8(2 as int32) 1708 const value_2 = value as string 1709 thisSerializer.writeString(value_2) 1710 } 1711 ArkUIGeneratedNativeModule._CommonMethod_dragPreview(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1712 thisSerializer.release() 1713 } 1714 onPreDragAttribute(value: ((parameter: PreDragStatus) => void)): void { 1715 const thisSerializer : Serializer = Serializer.hold() 1716 thisSerializer.holdAndWriteCallback(value) 1717 ArkUIGeneratedNativeModule._CommonMethod_onPreDrag(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1718 thisSerializer.release() 1719 } 1720 linearGradientAttribute(value: Type_CommonMethod_linearGradient_value): void { 1721 const thisSerializer : Serializer = Serializer.hold() 1722 const value_angle = value.angle 1723 let value_angle_type : int32 = RuntimeType.UNDEFINED 1724 value_angle_type = runtimeType(value_angle) 1725 thisSerializer.writeInt8(value_angle_type as int32) 1726 if ((RuntimeType.UNDEFINED) != (value_angle_type)) { 1727 const value_angle_value = value_angle! 1728 let value_angle_value_type : int32 = RuntimeType.UNDEFINED 1729 value_angle_value_type = runtimeType(value_angle_value) 1730 if (RuntimeType.NUMBER == value_angle_value_type) { 1731 thisSerializer.writeInt8(0 as int32) 1732 const value_angle_value_0 = value_angle_value as number 1733 thisSerializer.writeNumber(value_angle_value_0) 1734 } 1735 else if (RuntimeType.STRING == value_angle_value_type) { 1736 thisSerializer.writeInt8(1 as int32) 1737 const value_angle_value_1 = value_angle_value as string 1738 thisSerializer.writeString(value_angle_value_1) 1739 } 1740 } 1741 const value_direction = value.direction 1742 let value_direction_type : int32 = RuntimeType.UNDEFINED 1743 value_direction_type = runtimeType(value_direction) 1744 thisSerializer.writeInt8(value_direction_type as int32) 1745 if ((RuntimeType.UNDEFINED) != (value_direction_type)) { 1746 const value_direction_value = (value_direction as GradientDirection) 1747 thisSerializer.writeInt32(value_direction_value.valueOf()) 1748 } 1749 const value_colors = value.colors 1750 thisSerializer.writeInt32(value_colors.length as int32) 1751 for (let i = 0; i < value_colors.length; i++) { 1752 const value_colors_element : [ ResourceColor, number ] = value_colors[i] 1753 const value_colors_element_0 = value_colors_element[0] 1754 let value_colors_element_0_type : int32 = RuntimeType.UNDEFINED 1755 value_colors_element_0_type = runtimeType(value_colors_element_0) 1756 if (TypeChecker.isColor(value_colors_element_0)) { 1757 thisSerializer.writeInt8(0 as int32) 1758 const value_colors_element_0_0 = value_colors_element_0 as Color 1759 thisSerializer.writeInt32(value_colors_element_0_0.valueOf()) 1760 } 1761 else if (RuntimeType.NUMBER == value_colors_element_0_type) { 1762 thisSerializer.writeInt8(1 as int32) 1763 const value_colors_element_0_1 = value_colors_element_0 as number 1764 thisSerializer.writeNumber(value_colors_element_0_1) 1765 } 1766 else if (RuntimeType.STRING == value_colors_element_0_type) { 1767 thisSerializer.writeInt8(2 as int32) 1768 const value_colors_element_0_2 = value_colors_element_0 as string 1769 thisSerializer.writeString(value_colors_element_0_2) 1770 } 1771 else if (RuntimeType.OBJECT == value_colors_element_0_type) { 1772 thisSerializer.writeInt8(3 as int32) 1773 const value_colors_element_0_3 = value_colors_element_0 as Resource 1774 thisSerializer.writeResource(value_colors_element_0_3) 1775 } 1776 const value_colors_element_1 = value_colors_element[1] 1777 thisSerializer.writeNumber(value_colors_element_1) 1778 } 1779 const value_repeating = value.repeating 1780 let value_repeating_type : int32 = RuntimeType.UNDEFINED 1781 value_repeating_type = runtimeType(value_repeating) 1782 thisSerializer.writeInt8(value_repeating_type as int32) 1783 if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { 1784 const value_repeating_value = value_repeating! 1785 thisSerializer.writeBoolean(value_repeating_value) 1786 } 1787 ArkUIGeneratedNativeModule._CommonMethod_linearGradient(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1788 thisSerializer.release() 1789 } 1790 sweepGradientAttribute(value: Type_CommonMethod_sweepGradient_value): void { 1791 const thisSerializer : Serializer = Serializer.hold() 1792 const value_center = value.center 1793 const value_center_0 = value_center[0] 1794 thisSerializer.writeLength(value_center_0) 1795 const value_center_1 = value_center[1] 1796 thisSerializer.writeLength(value_center_1) 1797 const value_start = value.start 1798 let value_start_type : int32 = RuntimeType.UNDEFINED 1799 value_start_type = runtimeType(value_start) 1800 thisSerializer.writeInt8(value_start_type as int32) 1801 if ((RuntimeType.UNDEFINED) != (value_start_type)) { 1802 const value_start_value = value_start! 1803 let value_start_value_type : int32 = RuntimeType.UNDEFINED 1804 value_start_value_type = runtimeType(value_start_value) 1805 if (RuntimeType.NUMBER == value_start_value_type) { 1806 thisSerializer.writeInt8(0 as int32) 1807 const value_start_value_0 = value_start_value as number 1808 thisSerializer.writeNumber(value_start_value_0) 1809 } 1810 else if (RuntimeType.STRING == value_start_value_type) { 1811 thisSerializer.writeInt8(1 as int32) 1812 const value_start_value_1 = value_start_value as string 1813 thisSerializer.writeString(value_start_value_1) 1814 } 1815 } 1816 const value_end = value.end 1817 let value_end_type : int32 = RuntimeType.UNDEFINED 1818 value_end_type = runtimeType(value_end) 1819 thisSerializer.writeInt8(value_end_type as int32) 1820 if ((RuntimeType.UNDEFINED) != (value_end_type)) { 1821 const value_end_value = value_end! 1822 let value_end_value_type : int32 = RuntimeType.UNDEFINED 1823 value_end_value_type = runtimeType(value_end_value) 1824 if (RuntimeType.NUMBER == value_end_value_type) { 1825 thisSerializer.writeInt8(0 as int32) 1826 const value_end_value_0 = value_end_value as number 1827 thisSerializer.writeNumber(value_end_value_0) 1828 } 1829 else if (RuntimeType.STRING == value_end_value_type) { 1830 thisSerializer.writeInt8(1 as int32) 1831 const value_end_value_1 = value_end_value as string 1832 thisSerializer.writeString(value_end_value_1) 1833 } 1834 } 1835 const value_rotation = value.rotation 1836 let value_rotation_type : int32 = RuntimeType.UNDEFINED 1837 value_rotation_type = runtimeType(value_rotation) 1838 thisSerializer.writeInt8(value_rotation_type as int32) 1839 if ((RuntimeType.UNDEFINED) != (value_rotation_type)) { 1840 const value_rotation_value = value_rotation! 1841 let value_rotation_value_type : int32 = RuntimeType.UNDEFINED 1842 value_rotation_value_type = runtimeType(value_rotation_value) 1843 if (RuntimeType.NUMBER == value_rotation_value_type) { 1844 thisSerializer.writeInt8(0 as int32) 1845 const value_rotation_value_0 = value_rotation_value as number 1846 thisSerializer.writeNumber(value_rotation_value_0) 1847 } 1848 else if (RuntimeType.STRING == value_rotation_value_type) { 1849 thisSerializer.writeInt8(1 as int32) 1850 const value_rotation_value_1 = value_rotation_value as string 1851 thisSerializer.writeString(value_rotation_value_1) 1852 } 1853 } 1854 const value_colors = value.colors 1855 thisSerializer.writeInt32(value_colors.length as int32) 1856 for (let i = 0; i < value_colors.length; i++) { 1857 const value_colors_element : [ ResourceColor, number ] = value_colors[i] 1858 const value_colors_element_0 = value_colors_element[0] 1859 let value_colors_element_0_type : int32 = RuntimeType.UNDEFINED 1860 value_colors_element_0_type = runtimeType(value_colors_element_0) 1861 if (TypeChecker.isColor(value_colors_element_0)) { 1862 thisSerializer.writeInt8(0 as int32) 1863 const value_colors_element_0_0 = value_colors_element_0 as Color 1864 thisSerializer.writeInt32(value_colors_element_0_0.valueOf()) 1865 } 1866 else if (RuntimeType.NUMBER == value_colors_element_0_type) { 1867 thisSerializer.writeInt8(1 as int32) 1868 const value_colors_element_0_1 = value_colors_element_0 as number 1869 thisSerializer.writeNumber(value_colors_element_0_1) 1870 } 1871 else if (RuntimeType.STRING == value_colors_element_0_type) { 1872 thisSerializer.writeInt8(2 as int32) 1873 const value_colors_element_0_2 = value_colors_element_0 as string 1874 thisSerializer.writeString(value_colors_element_0_2) 1875 } 1876 else if (RuntimeType.OBJECT == value_colors_element_0_type) { 1877 thisSerializer.writeInt8(3 as int32) 1878 const value_colors_element_0_3 = value_colors_element_0 as Resource 1879 thisSerializer.writeResource(value_colors_element_0_3) 1880 } 1881 const value_colors_element_1 = value_colors_element[1] 1882 thisSerializer.writeNumber(value_colors_element_1) 1883 } 1884 const value_repeating = value.repeating 1885 let value_repeating_type : int32 = RuntimeType.UNDEFINED 1886 value_repeating_type = runtimeType(value_repeating) 1887 thisSerializer.writeInt8(value_repeating_type as int32) 1888 if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { 1889 const value_repeating_value = value_repeating! 1890 thisSerializer.writeBoolean(value_repeating_value) 1891 } 1892 ArkUIGeneratedNativeModule._CommonMethod_sweepGradient(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1893 thisSerializer.release() 1894 } 1895 radialGradientAttribute(value: Type_CommonMethod_radialGradient_value): void { 1896 const thisSerializer : Serializer = Serializer.hold() 1897 const value_center = value.center 1898 const value_center_0 = value_center[0] 1899 thisSerializer.writeLength(value_center_0) 1900 const value_center_1 = value_center[1] 1901 thisSerializer.writeLength(value_center_1) 1902 const value_radius = value.radius 1903 let value_radius_type : int32 = RuntimeType.UNDEFINED 1904 value_radius_type = runtimeType(value_radius) 1905 if (RuntimeType.NUMBER == value_radius_type) { 1906 thisSerializer.writeInt8(0 as int32) 1907 const value_radius_0 = value_radius as number 1908 thisSerializer.writeNumber(value_radius_0) 1909 } 1910 else if (RuntimeType.STRING == value_radius_type) { 1911 thisSerializer.writeInt8(1 as int32) 1912 const value_radius_1 = value_radius as string 1913 thisSerializer.writeString(value_radius_1) 1914 } 1915 const value_colors = value.colors 1916 thisSerializer.writeInt32(value_colors.length as int32) 1917 for (let i = 0; i < value_colors.length; i++) { 1918 const value_colors_element : [ ResourceColor, number ] = value_colors[i] 1919 const value_colors_element_0 = value_colors_element[0] 1920 let value_colors_element_0_type : int32 = RuntimeType.UNDEFINED 1921 value_colors_element_0_type = runtimeType(value_colors_element_0) 1922 if (TypeChecker.isColor(value_colors_element_0)) { 1923 thisSerializer.writeInt8(0 as int32) 1924 const value_colors_element_0_0 = value_colors_element_0 as Color 1925 thisSerializer.writeInt32(value_colors_element_0_0.valueOf()) 1926 } 1927 else if (RuntimeType.NUMBER == value_colors_element_0_type) { 1928 thisSerializer.writeInt8(1 as int32) 1929 const value_colors_element_0_1 = value_colors_element_0 as number 1930 thisSerializer.writeNumber(value_colors_element_0_1) 1931 } 1932 else if (RuntimeType.STRING == value_colors_element_0_type) { 1933 thisSerializer.writeInt8(2 as int32) 1934 const value_colors_element_0_2 = value_colors_element_0 as string 1935 thisSerializer.writeString(value_colors_element_0_2) 1936 } 1937 else if (RuntimeType.OBJECT == value_colors_element_0_type) { 1938 thisSerializer.writeInt8(3 as int32) 1939 const value_colors_element_0_3 = value_colors_element_0 as Resource 1940 thisSerializer.writeResource(value_colors_element_0_3) 1941 } 1942 const value_colors_element_1 = value_colors_element[1] 1943 thisSerializer.writeNumber(value_colors_element_1) 1944 } 1945 const value_repeating = value.repeating 1946 let value_repeating_type : int32 = RuntimeType.UNDEFINED 1947 value_repeating_type = runtimeType(value_repeating) 1948 thisSerializer.writeInt8(value_repeating_type as int32) 1949 if ((RuntimeType.UNDEFINED) != (value_repeating_type)) { 1950 const value_repeating_value = value_repeating! 1951 thisSerializer.writeBoolean(value_repeating_value) 1952 } 1953 ArkUIGeneratedNativeModule._CommonMethod_radialGradient(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1954 thisSerializer.release() 1955 } 1956 motionPathAttribute(value: MotionPathOptions): void { 1957 const thisSerializer : Serializer = Serializer.hold() 1958 thisSerializer.writeMotionPathOptions(value) 1959 ArkUIGeneratedNativeModule._CommonMethod_motionPath(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1960 thisSerializer.release() 1961 } 1962 shadowAttribute(value: ShadowOptions | ShadowStyle): void { 1963 const thisSerializer : Serializer = Serializer.hold() 1964 let value_type : int32 = RuntimeType.UNDEFINED 1965 value_type = runtimeType(value) 1966 if (RuntimeType.OBJECT == value_type) { 1967 thisSerializer.writeInt8(0 as int32) 1968 const value_0 = value as ShadowOptions 1969 thisSerializer.writeShadowOptions(value_0) 1970 } 1971 else if (TypeChecker.isShadowStyle(value)) { 1972 thisSerializer.writeInt8(1 as int32) 1973 const value_1 = value as ShadowStyle 1974 thisSerializer.writeInt32(value_1.valueOf()) 1975 } 1976 ArkUIGeneratedNativeModule._CommonMethod_shadow(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1977 thisSerializer.release() 1978 } 1979 clip0Attribute(value?: boolean): void { 1980 const thisSerializer : Serializer = Serializer.hold() 1981 let value_type : int32 = RuntimeType.UNDEFINED 1982 value_type = runtimeType(value) 1983 thisSerializer.writeInt8(value_type as int32) 1984 if ((RuntimeType.UNDEFINED) != (value_type)) { 1985 const value_value = value! 1986 thisSerializer.writeBoolean(value_value) 1987 } 1988 ArkUIGeneratedNativeModule._CommonMethod_clip0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 1989 thisSerializer.release() 1990 } 1991 clip1Attribute(value?: boolean): void { 1992 const thisSerializer : Serializer = Serializer.hold() 1993 let value_type : int32 = RuntimeType.UNDEFINED 1994 value_type = runtimeType(value) 1995 thisSerializer.writeInt8(value_type as int32) 1996 if ((RuntimeType.UNDEFINED) != (value_type)) { 1997 const value_value = value! 1998 thisSerializer.writeBoolean(value_value) 1999 } 2000 ArkUIGeneratedNativeModule._CommonMethod_clip1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2001 thisSerializer.release() 2002 } 2003 clipShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape): void { 2004 const thisSerializer : Serializer = Serializer.hold() 2005 let value_type : int32 = RuntimeType.UNDEFINED 2006 value_type = runtimeType(value) 2007 if (TypeChecker.isCircleShape(value)) { 2008 thisSerializer.writeInt8(0 as int32) 2009 const value_0 = value as CircleShape 2010 thisSerializer.writeCircleShape(value_0) 2011 } 2012 else if (TypeChecker.isEllipseShape(value)) { 2013 thisSerializer.writeInt8(1 as int32) 2014 const value_1 = value as EllipseShape 2015 thisSerializer.writeEllipseShape(value_1) 2016 } 2017 else if (TypeChecker.isPathShape(value)) { 2018 thisSerializer.writeInt8(2 as int32) 2019 const value_2 = value as PathShape 2020 thisSerializer.writePathShape(value_2) 2021 } 2022 else if (TypeChecker.isRectShape(value)) { 2023 thisSerializer.writeInt8(3 as int32) 2024 const value_3 = value as RectShape 2025 thisSerializer.writeRectShape(value_3) 2026 } 2027 ArkUIGeneratedNativeModule._CommonMethod_clipShape(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2028 thisSerializer.release() 2029 } 2030 mask0Attribute(value?: ProgressMask): void { 2031 const thisSerializer : Serializer = Serializer.hold() 2032 let value_type : int32 = RuntimeType.UNDEFINED 2033 value_type = runtimeType(value) 2034 thisSerializer.writeInt8(value_type as int32) 2035 if ((RuntimeType.UNDEFINED) != (value_type)) { 2036 const value_value = value! 2037 thisSerializer.writeProgressMask(value_value) 2038 } 2039 ArkUIGeneratedNativeModule._CommonMethod_mask0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2040 thisSerializer.release() 2041 } 2042 mask1Attribute(value?: ProgressMask): void { 2043 const thisSerializer : Serializer = Serializer.hold() 2044 let value_type : int32 = RuntimeType.UNDEFINED 2045 value_type = runtimeType(value) 2046 thisSerializer.writeInt8(value_type as int32) 2047 if ((RuntimeType.UNDEFINED) != (value_type)) { 2048 const value_value = value! 2049 thisSerializer.writeProgressMask(value_value) 2050 } 2051 ArkUIGeneratedNativeModule._CommonMethod_mask1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2052 thisSerializer.release() 2053 } 2054 maskShapeAttribute(value: CircleShape | EllipseShape | PathShape | RectShape): void { 2055 const thisSerializer : Serializer = Serializer.hold() 2056 let value_type : int32 = RuntimeType.UNDEFINED 2057 value_type = runtimeType(value) 2058 if (TypeChecker.isCircleShape(value)) { 2059 thisSerializer.writeInt8(0 as int32) 2060 const value_0 = value as CircleShape 2061 thisSerializer.writeCircleShape(value_0) 2062 } 2063 else if (TypeChecker.isEllipseShape(value)) { 2064 thisSerializer.writeInt8(1 as int32) 2065 const value_1 = value as EllipseShape 2066 thisSerializer.writeEllipseShape(value_1) 2067 } 2068 else if (TypeChecker.isPathShape(value)) { 2069 thisSerializer.writeInt8(2 as int32) 2070 const value_2 = value as PathShape 2071 thisSerializer.writePathShape(value_2) 2072 } 2073 else if (TypeChecker.isRectShape(value)) { 2074 thisSerializer.writeInt8(3 as int32) 2075 const value_3 = value as RectShape 2076 thisSerializer.writeRectShape(value_3) 2077 } 2078 ArkUIGeneratedNativeModule._CommonMethod_maskShape(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2079 thisSerializer.release() 2080 } 2081 keyAttribute(value: string): void { 2082 ArkUIGeneratedNativeModule._CommonMethod_key(this.peer.ptr, value) 2083 } 2084 idAttribute(value: string): void { 2085 ArkUIGeneratedNativeModule._CommonMethod_id(this.peer.ptr, value) 2086 } 2087 geometryTransition0Attribute(value: string): void { 2088 ArkUIGeneratedNativeModule._CommonMethod_geometryTransition0(this.peer.ptr, value) 2089 } 2090 geometryTransition1Attribute(id: string, options?: GeometryTransitionOptions): void { 2091 const thisSerializer : Serializer = Serializer.hold() 2092 let options_type : int32 = RuntimeType.UNDEFINED 2093 options_type = runtimeType(options) 2094 thisSerializer.writeInt8(options_type as int32) 2095 if ((RuntimeType.UNDEFINED) != (options_type)) { 2096 const options_value = options! 2097 thisSerializer.writeGeometryTransitionOptions(options_value) 2098 } 2099 ArkUIGeneratedNativeModule._CommonMethod_geometryTransition1(this.peer.ptr, id, thisSerializer.asBuffer(), thisSerializer.length()) 2100 thisSerializer.release() 2101 } 2102 stateStylesAttribute(value: StateStyles): void { 2103 const thisSerializer : Serializer = Serializer.hold() 2104 thisSerializer.writeStateStyles(value) 2105 ArkUIGeneratedNativeModule._CommonMethod_stateStyles(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2106 thisSerializer.release() 2107 } 2108 restoreIdAttribute(value: number): void { 2109 ArkUIGeneratedNativeModule._CommonMethod_restoreId(this.peer.ptr, value) 2110 } 2111 sphericalEffectAttribute(value: number): void { 2112 ArkUIGeneratedNativeModule._CommonMethod_sphericalEffect(this.peer.ptr, value) 2113 } 2114 lightUpEffectAttribute(value: number): void { 2115 ArkUIGeneratedNativeModule._CommonMethod_lightUpEffect(this.peer.ptr, value) 2116 } 2117 pixelStretchEffectAttribute(value: PixelStretchEffectOptions): void { 2118 const thisSerializer : Serializer = Serializer.hold() 2119 thisSerializer.writePixelStretchEffectOptions(value) 2120 ArkUIGeneratedNativeModule._CommonMethod_pixelStretchEffect(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2121 thisSerializer.release() 2122 } 2123 accessibilityGroup0Attribute(value: boolean): void { 2124 ArkUIGeneratedNativeModule._CommonMethod_accessibilityGroup0(this.peer.ptr, value ? 1 : 0) 2125 } 2126 accessibilityGroup1Attribute(isGroup: boolean, accessibilityOptions: AccessibilityOptions): void { 2127 const thisSerializer : Serializer = Serializer.hold() 2128 thisSerializer.writeAccessibilityOptions(accessibilityOptions) 2129 ArkUIGeneratedNativeModule._CommonMethod_accessibilityGroup1(this.peer.ptr, isGroup ? 1 : 0, thisSerializer.asBuffer(), thisSerializer.length()) 2130 thisSerializer.release() 2131 } 2132 accessibilityText0Attribute(value: string): void { 2133 ArkUIGeneratedNativeModule._CommonMethod_accessibilityText0(this.peer.ptr, value) 2134 } 2135 accessibilityText1Attribute(value: Resource): void { 2136 const thisSerializer : Serializer = Serializer.hold() 2137 thisSerializer.writeResource(value) 2138 ArkUIGeneratedNativeModule._CommonMethod_accessibilityText1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2139 thisSerializer.release() 2140 } 2141 accessibilityTextHintAttribute(value: string): void { 2142 ArkUIGeneratedNativeModule._CommonMethod_accessibilityTextHint(this.peer.ptr, value) 2143 } 2144 accessibilityDescription0Attribute(value: string): void { 2145 ArkUIGeneratedNativeModule._CommonMethod_accessibilityDescription0(this.peer.ptr, value) 2146 } 2147 accessibilityDescription1Attribute(value: Resource): void { 2148 const thisSerializer : Serializer = Serializer.hold() 2149 thisSerializer.writeResource(value) 2150 ArkUIGeneratedNativeModule._CommonMethod_accessibilityDescription1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2151 thisSerializer.release() 2152 } 2153 accessibilityLevelAttribute(value: string): void { 2154 ArkUIGeneratedNativeModule._CommonMethod_accessibilityLevel(this.peer.ptr, value) 2155 } 2156 accessibilityVirtualNodeAttribute(value: CustomBuilder): void { 2157 const thisSerializer : Serializer = Serializer.hold() 2158 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value)) 2159 ArkUIGeneratedNativeModule._CommonMethod_accessibilityVirtualNode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2160 thisSerializer.release() 2161 } 2162 accessibilityCheckedAttribute(value: boolean): void { 2163 ArkUIGeneratedNativeModule._CommonMethod_accessibilityChecked(this.peer.ptr, value ? 1 : 0) 2164 } 2165 accessibilitySelectedAttribute(value: boolean): void { 2166 ArkUIGeneratedNativeModule._CommonMethod_accessibilitySelected(this.peer.ptr, value ? 1 : 0) 2167 } 2168 obscuredAttribute(value: Array<ObscuredReasons>): void { 2169 const thisSerializer : Serializer = Serializer.hold() 2170 thisSerializer.writeInt32(value.length as int32) 2171 for (let i = 0; i < value.length; i++) { 2172 const value_element : ObscuredReasons = value[i] 2173 thisSerializer.writeInt32(value_element.valueOf()) 2174 } 2175 ArkUIGeneratedNativeModule._CommonMethod_obscured(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2176 thisSerializer.release() 2177 } 2178 reuseIdAttribute(value: string): void { 2179 ArkUIGeneratedNativeModule._CommonMethod_reuseId(this.peer.ptr, value) 2180 } 2181 renderFitAttribute(value: RenderFit): void { 2182 ArkUIGeneratedNativeModule._CommonMethod_renderFit(this.peer.ptr, value.valueOf()) 2183 } 2184 gestureModifierAttribute(value: GestureModifier): void { 2185 ArkUIGeneratedNativeModule._CommonMethod_gestureModifier(this.peer.ptr, toPeerPtr(value)) 2186 } 2187 backgroundBrightnessAttribute(value: BackgroundBrightnessOptions): void { 2188 const thisSerializer : Serializer = Serializer.hold() 2189 thisSerializer.writeBackgroundBrightnessOptions(value) 2190 ArkUIGeneratedNativeModule._CommonMethod_backgroundBrightness(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2191 thisSerializer.release() 2192 } 2193 onGestureJudgeBeginAttribute(value: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult)): void { 2194 const thisSerializer : Serializer = Serializer.hold() 2195 thisSerializer.holdAndWriteCallback(value) 2196 ArkUIGeneratedNativeModule._CommonMethod_onGestureJudgeBegin(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2197 thisSerializer.release() 2198 } 2199 onGestureRecognizerJudgeBegin0Attribute(value: GestureRecognizerJudgeBeginCallback): void { 2200 const thisSerializer : Serializer = Serializer.hold() 2201 thisSerializer.holdAndWriteCallback(value) 2202 ArkUIGeneratedNativeModule._CommonMethod_onGestureRecognizerJudgeBegin0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2203 thisSerializer.release() 2204 } 2205 onGestureRecognizerJudgeBegin1Attribute(callback_: GestureRecognizerJudgeBeginCallback, exposeInnerGesture: boolean): void { 2206 const thisSerializer : Serializer = Serializer.hold() 2207 thisSerializer.holdAndWriteCallback(callback_) 2208 ArkUIGeneratedNativeModule._CommonMethod_onGestureRecognizerJudgeBegin1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length(), exposeInnerGesture ? 1 : 0) 2209 thisSerializer.release() 2210 } 2211 shouldBuiltInRecognizerParallelWithAttribute(value: ShouldBuiltInRecognizerParallelWithCallback): void { 2212 const thisSerializer : Serializer = Serializer.hold() 2213 thisSerializer.holdAndWriteCallback(value) 2214 ArkUIGeneratedNativeModule._CommonMethod_shouldBuiltInRecognizerParallelWith(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2215 thisSerializer.release() 2216 } 2217 monopolizeEventsAttribute(value: boolean): void { 2218 ArkUIGeneratedNativeModule._CommonMethod_monopolizeEvents(this.peer.ptr, value ? 1 : 0) 2219 } 2220 onTouchInterceptAttribute(value: ((parameter: TouchEvent) => HitTestMode)): void { 2221 const thisSerializer : Serializer = Serializer.hold() 2222 thisSerializer.holdAndWriteCallback(value) 2223 ArkUIGeneratedNativeModule._CommonMethod_onTouchIntercept(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2224 thisSerializer.release() 2225 } 2226 onSizeChangeAttribute(value: SizeChangeCallback): void { 2227 const thisSerializer : Serializer = Serializer.hold() 2228 thisSerializer.holdAndWriteCallback(value) 2229 ArkUIGeneratedNativeModule._CommonMethod_onSizeChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2230 thisSerializer.release() 2231 } 2232 customPropertyAttribute(name: string, value?: Object): void { 2233 const thisSerializer : Serializer = Serializer.hold() 2234 let value_type : int32 = RuntimeType.UNDEFINED 2235 value_type = runtimeType(value) 2236 thisSerializer.writeInt8(value_type as int32) 2237 if ((RuntimeType.UNDEFINED) != (value_type)) { 2238 const value_value = value! 2239 thisSerializer.writeCustomObject("Object", value_value) 2240 } 2241 ArkUIGeneratedNativeModule._CommonMethod_customProperty(this.peer.ptr, name, thisSerializer.asBuffer(), thisSerializer.length()) 2242 thisSerializer.release() 2243 } 2244 expandSafeAreaAttribute(types?: Array<SafeAreaType>, edges?: Array<SafeAreaEdge>): void { 2245 const thisSerializer : Serializer = Serializer.hold() 2246 let types_type : int32 = RuntimeType.UNDEFINED 2247 types_type = runtimeType(types) 2248 thisSerializer.writeInt8(types_type as int32) 2249 if ((RuntimeType.UNDEFINED) != (types_type)) { 2250 const types_value = types! 2251 thisSerializer.writeInt32(types_value.length as int32) 2252 for (let i = 0; i < types_value.length; i++) { 2253 const types_value_element : SafeAreaType = types_value[i] 2254 thisSerializer.writeInt32(types_value_element.valueOf()) 2255 } 2256 } 2257 let edges_type : int32 = RuntimeType.UNDEFINED 2258 edges_type = runtimeType(edges) 2259 thisSerializer.writeInt8(edges_type as int32) 2260 if ((RuntimeType.UNDEFINED) != (edges_type)) { 2261 const edges_value = edges! 2262 thisSerializer.writeInt32(edges_value.length as int32) 2263 for (let i = 0; i < edges_value.length; i++) { 2264 const edges_value_element : SafeAreaEdge = edges_value[i] 2265 thisSerializer.writeInt32(edges_value_element.valueOf()) 2266 } 2267 } 2268 ArkUIGeneratedNativeModule._CommonMethod_expandSafeArea(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2269 thisSerializer.release() 2270 } 2271 backgroundAttribute(builder: CustomBuilder, options?: Literal_Alignment_align): void { 2272 const thisSerializer : Serializer = Serializer.hold() 2273 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builder)) 2274 let options_type : int32 = RuntimeType.UNDEFINED 2275 options_type = runtimeType(options) 2276 thisSerializer.writeInt8(options_type as int32) 2277 if ((RuntimeType.UNDEFINED) != (options_type)) { 2278 const options_value = options! 2279 const options_value_align = options_value.align 2280 let options_value_align_type : int32 = RuntimeType.UNDEFINED 2281 options_value_align_type = runtimeType(options_value_align) 2282 thisSerializer.writeInt8(options_value_align_type as int32) 2283 if ((RuntimeType.UNDEFINED) != (options_value_align_type)) { 2284 const options_value_align_value = (options_value_align as Alignment) 2285 thisSerializer.writeInt32(options_value_align_value.valueOf()) 2286 } 2287 } 2288 ArkUIGeneratedNativeModule._CommonMethod_background(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2289 thisSerializer.release() 2290 } 2291 backgroundImageAttribute(src: ResourceStr | PixelMap, repeat?: ImageRepeat): void { 2292 const thisSerializer : Serializer = Serializer.hold() 2293 let src_type : int32 = RuntimeType.UNDEFINED 2294 src_type = runtimeType(src) 2295 if ((RuntimeType.STRING == src_type) || (RuntimeType.OBJECT == src_type)) { 2296 thisSerializer.writeInt8(0 as int32) 2297 const src_0 = src as ResourceStr 2298 let src_0_type : int32 = RuntimeType.UNDEFINED 2299 src_0_type = runtimeType(src_0) 2300 if (RuntimeType.STRING == src_0_type) { 2301 thisSerializer.writeInt8(0 as int32) 2302 const src_0_0 = src_0 as string 2303 thisSerializer.writeString(src_0_0) 2304 } 2305 else if (RuntimeType.OBJECT == src_0_type) { 2306 thisSerializer.writeInt8(1 as int32) 2307 const src_0_1 = src_0 as Resource 2308 thisSerializer.writeResource(src_0_1) 2309 } 2310 } 2311 else if (TypeChecker.isPixelMap(src, false, false)) { 2312 thisSerializer.writeInt8(1 as int32) 2313 const src_1 = src as PixelMap 2314 thisSerializer.writePixelMap(src_1) 2315 } 2316 let repeat_type : int32 = RuntimeType.UNDEFINED 2317 repeat_type = runtimeType(repeat) 2318 thisSerializer.writeInt8(repeat_type as int32) 2319 if ((RuntimeType.UNDEFINED) != (repeat_type)) { 2320 const repeat_value = (repeat as ImageRepeat) 2321 thisSerializer.writeInt32(repeat_value.valueOf()) 2322 } 2323 ArkUIGeneratedNativeModule._CommonMethod_backgroundImage(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2324 thisSerializer.release() 2325 } 2326 backgroundBlurStyleAttribute(value: BlurStyle, options?: BackgroundBlurStyleOptions): void { 2327 const thisSerializer : Serializer = Serializer.hold() 2328 let options_type : int32 = RuntimeType.UNDEFINED 2329 options_type = runtimeType(options) 2330 thisSerializer.writeInt8(options_type as int32) 2331 if ((RuntimeType.UNDEFINED) != (options_type)) { 2332 const options_value = options! 2333 thisSerializer.writeBackgroundBlurStyleOptions(options_value) 2334 } 2335 ArkUIGeneratedNativeModule._CommonMethod_backgroundBlurStyle(this.peer.ptr, value.valueOf(), thisSerializer.asBuffer(), thisSerializer.length()) 2336 thisSerializer.release() 2337 } 2338 foregroundBlurStyleAttribute(value: BlurStyle, options?: ForegroundBlurStyleOptions): void { 2339 const thisSerializer : Serializer = Serializer.hold() 2340 let options_type : int32 = RuntimeType.UNDEFINED 2341 options_type = runtimeType(options) 2342 thisSerializer.writeInt8(options_type as int32) 2343 if ((RuntimeType.UNDEFINED) != (options_type)) { 2344 const options_value = options! 2345 thisSerializer.writeForegroundBlurStyleOptions(options_value) 2346 } 2347 ArkUIGeneratedNativeModule._CommonMethod_foregroundBlurStyle(this.peer.ptr, value.valueOf(), thisSerializer.asBuffer(), thisSerializer.length()) 2348 thisSerializer.release() 2349 } 2350 focusScopeId0Attribute(id: string, isGroup?: boolean): void { 2351 const thisSerializer : Serializer = Serializer.hold() 2352 let isGroup_type : int32 = RuntimeType.UNDEFINED 2353 isGroup_type = runtimeType(isGroup) 2354 thisSerializer.writeInt8(isGroup_type as int32) 2355 if ((RuntimeType.UNDEFINED) != (isGroup_type)) { 2356 const isGroup_value = isGroup! 2357 thisSerializer.writeBoolean(isGroup_value) 2358 } 2359 ArkUIGeneratedNativeModule._CommonMethod_focusScopeId0(this.peer.ptr, id, thisSerializer.asBuffer(), thisSerializer.length()) 2360 thisSerializer.release() 2361 } 2362 focusScopeId1Attribute(id: string, isGroup?: boolean, arrowStepOut?: boolean): void { 2363 const thisSerializer : Serializer = Serializer.hold() 2364 let isGroup_type : int32 = RuntimeType.UNDEFINED 2365 isGroup_type = runtimeType(isGroup) 2366 thisSerializer.writeInt8(isGroup_type as int32) 2367 if ((RuntimeType.UNDEFINED) != (isGroup_type)) { 2368 const isGroup_value = isGroup! 2369 thisSerializer.writeBoolean(isGroup_value) 2370 } 2371 let arrowStepOut_type : int32 = RuntimeType.UNDEFINED 2372 arrowStepOut_type = runtimeType(arrowStepOut) 2373 thisSerializer.writeInt8(arrowStepOut_type as int32) 2374 if ((RuntimeType.UNDEFINED) != (arrowStepOut_type)) { 2375 const arrowStepOut_value = arrowStepOut! 2376 thisSerializer.writeBoolean(arrowStepOut_value) 2377 } 2378 ArkUIGeneratedNativeModule._CommonMethod_focusScopeId1(this.peer.ptr, id, thisSerializer.asBuffer(), thisSerializer.length()) 2379 thisSerializer.release() 2380 } 2381 focusScopePriorityAttribute(scopeId: string, priority?: FocusPriority): void { 2382 const thisSerializer : Serializer = Serializer.hold() 2383 let priority_type : int32 = RuntimeType.UNDEFINED 2384 priority_type = runtimeType(priority) 2385 thisSerializer.writeInt8(priority_type as int32) 2386 if ((RuntimeType.UNDEFINED) != (priority_type)) { 2387 const priority_value = (priority as FocusPriority) 2388 thisSerializer.writeInt32(priority_value.valueOf()) 2389 } 2390 ArkUIGeneratedNativeModule._CommonMethod_focusScopePriority(this.peer.ptr, scopeId, thisSerializer.asBuffer(), thisSerializer.length()) 2391 thisSerializer.release() 2392 } 2393 gestureAttribute(gesture: GestureType, mask?: GestureMask): void { 2394 const thisSerializer : Serializer = Serializer.hold() 2395 let gesture_type : int32 = RuntimeType.UNDEFINED 2396 gesture_type = runtimeType(gesture) 2397 if (TypeChecker.isTapGestureInterface(gesture)) { 2398 thisSerializer.writeInt8(0 as int32) 2399 const gesture_0 = gesture as TapGestureInterface 2400 thisSerializer.writeTapGestureInterface(gesture_0) 2401 } 2402 else if (TypeChecker.isLongPressGestureInterface(gesture)) { 2403 thisSerializer.writeInt8(1 as int32) 2404 const gesture_1 = gesture as LongPressGestureInterface 2405 thisSerializer.writeLongPressGestureInterface(gesture_1) 2406 } 2407 else if (TypeChecker.isPanGestureInterface(gesture)) { 2408 thisSerializer.writeInt8(2 as int32) 2409 const gesture_2 = gesture as PanGestureInterface 2410 thisSerializer.writePanGestureInterface(gesture_2) 2411 } 2412 else if (TypeChecker.isPinchGestureInterface(gesture)) { 2413 thisSerializer.writeInt8(3 as int32) 2414 const gesture_3 = gesture as PinchGestureInterface 2415 thisSerializer.writePinchGestureInterface(gesture_3) 2416 } 2417 else if (TypeChecker.isSwipeGestureInterface(gesture)) { 2418 thisSerializer.writeInt8(4 as int32) 2419 const gesture_4 = gesture as SwipeGestureInterface 2420 thisSerializer.writeSwipeGestureInterface(gesture_4) 2421 } 2422 else if (TypeChecker.isRotationGestureInterface(gesture)) { 2423 thisSerializer.writeInt8(5 as int32) 2424 const gesture_5 = gesture as RotationGestureInterface 2425 thisSerializer.writeRotationGestureInterface(gesture_5) 2426 } 2427 else if (TypeChecker.isGestureGroupInterface(gesture)) { 2428 thisSerializer.writeInt8(6 as int32) 2429 const gesture_6 = gesture as GestureGroupInterface 2430 thisSerializer.writeGestureGroupInterface(gesture_6) 2431 } 2432 let mask_type : int32 = RuntimeType.UNDEFINED 2433 mask_type = runtimeType(mask) 2434 thisSerializer.writeInt8(mask_type as int32) 2435 if ((RuntimeType.UNDEFINED) != (mask_type)) { 2436 const mask_value = (mask as GestureMask) 2437 thisSerializer.writeInt32(mask_value.valueOf()) 2438 } 2439 ArkUIGeneratedNativeModule._CommonMethod_gesture(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2440 thisSerializer.release() 2441 } 2442 priorityGestureAttribute(gesture: GestureType, mask?: GestureMask): void { 2443 const thisSerializer : Serializer = Serializer.hold() 2444 let gesture_type : int32 = RuntimeType.UNDEFINED 2445 gesture_type = runtimeType(gesture) 2446 if (TypeChecker.isTapGestureInterface(gesture)) { 2447 thisSerializer.writeInt8(0 as int32) 2448 const gesture_0 = gesture as TapGestureInterface 2449 thisSerializer.writeTapGestureInterface(gesture_0) 2450 } 2451 else if (TypeChecker.isLongPressGestureInterface(gesture)) { 2452 thisSerializer.writeInt8(1 as int32) 2453 const gesture_1 = gesture as LongPressGestureInterface 2454 thisSerializer.writeLongPressGestureInterface(gesture_1) 2455 } 2456 else if (TypeChecker.isPanGestureInterface(gesture)) { 2457 thisSerializer.writeInt8(2 as int32) 2458 const gesture_2 = gesture as PanGestureInterface 2459 thisSerializer.writePanGestureInterface(gesture_2) 2460 } 2461 else if (TypeChecker.isPinchGestureInterface(gesture)) { 2462 thisSerializer.writeInt8(3 as int32) 2463 const gesture_3 = gesture as PinchGestureInterface 2464 thisSerializer.writePinchGestureInterface(gesture_3) 2465 } 2466 else if (TypeChecker.isSwipeGestureInterface(gesture)) { 2467 thisSerializer.writeInt8(4 as int32) 2468 const gesture_4 = gesture as SwipeGestureInterface 2469 thisSerializer.writeSwipeGestureInterface(gesture_4) 2470 } 2471 else if (TypeChecker.isRotationGestureInterface(gesture)) { 2472 thisSerializer.writeInt8(5 as int32) 2473 const gesture_5 = gesture as RotationGestureInterface 2474 thisSerializer.writeRotationGestureInterface(gesture_5) 2475 } 2476 else if (TypeChecker.isGestureGroupInterface(gesture)) { 2477 thisSerializer.writeInt8(6 as int32) 2478 const gesture_6 = gesture as GestureGroupInterface 2479 thisSerializer.writeGestureGroupInterface(gesture_6) 2480 } 2481 let mask_type : int32 = RuntimeType.UNDEFINED 2482 mask_type = runtimeType(mask) 2483 thisSerializer.writeInt8(mask_type as int32) 2484 if ((RuntimeType.UNDEFINED) != (mask_type)) { 2485 const mask_value = (mask as GestureMask) 2486 thisSerializer.writeInt32(mask_value.valueOf()) 2487 } 2488 ArkUIGeneratedNativeModule._CommonMethod_priorityGesture(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2489 thisSerializer.release() 2490 } 2491 parallelGestureAttribute(gesture: GestureType, mask?: GestureMask): void { 2492 const thisSerializer : Serializer = Serializer.hold() 2493 let gesture_type : int32 = RuntimeType.UNDEFINED 2494 gesture_type = runtimeType(gesture) 2495 if (TypeChecker.isTapGestureInterface(gesture)) { 2496 thisSerializer.writeInt8(0 as int32) 2497 const gesture_0 = gesture as TapGestureInterface 2498 thisSerializer.writeTapGestureInterface(gesture_0) 2499 } 2500 else if (TypeChecker.isLongPressGestureInterface(gesture)) { 2501 thisSerializer.writeInt8(1 as int32) 2502 const gesture_1 = gesture as LongPressGestureInterface 2503 thisSerializer.writeLongPressGestureInterface(gesture_1) 2504 } 2505 else if (TypeChecker.isPanGestureInterface(gesture)) { 2506 thisSerializer.writeInt8(2 as int32) 2507 const gesture_2 = gesture as PanGestureInterface 2508 thisSerializer.writePanGestureInterface(gesture_2) 2509 } 2510 else if (TypeChecker.isPinchGestureInterface(gesture)) { 2511 thisSerializer.writeInt8(3 as int32) 2512 const gesture_3 = gesture as PinchGestureInterface 2513 thisSerializer.writePinchGestureInterface(gesture_3) 2514 } 2515 else if (TypeChecker.isSwipeGestureInterface(gesture)) { 2516 thisSerializer.writeInt8(4 as int32) 2517 const gesture_4 = gesture as SwipeGestureInterface 2518 thisSerializer.writeSwipeGestureInterface(gesture_4) 2519 } 2520 else if (TypeChecker.isRotationGestureInterface(gesture)) { 2521 thisSerializer.writeInt8(5 as int32) 2522 const gesture_5 = gesture as RotationGestureInterface 2523 thisSerializer.writeRotationGestureInterface(gesture_5) 2524 } 2525 else if (TypeChecker.isGestureGroupInterface(gesture)) { 2526 thisSerializer.writeInt8(6 as int32) 2527 const gesture_6 = gesture as GestureGroupInterface 2528 thisSerializer.writeGestureGroupInterface(gesture_6) 2529 } 2530 let mask_type : int32 = RuntimeType.UNDEFINED 2531 mask_type = runtimeType(mask) 2532 thisSerializer.writeInt8(mask_type as int32) 2533 if ((RuntimeType.UNDEFINED) != (mask_type)) { 2534 const mask_value = (mask as GestureMask) 2535 thisSerializer.writeInt32(mask_value.valueOf()) 2536 } 2537 ArkUIGeneratedNativeModule._CommonMethod_parallelGesture(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2538 thisSerializer.release() 2539 } 2540 blurAttribute(value: number, options?: BlurOptions): void { 2541 const thisSerializer : Serializer = Serializer.hold() 2542 let options_type : int32 = RuntimeType.UNDEFINED 2543 options_type = runtimeType(options) 2544 thisSerializer.writeInt8(options_type as int32) 2545 if ((RuntimeType.UNDEFINED) != (options_type)) { 2546 const options_value = options! 2547 thisSerializer.writeBlurOptions(options_value) 2548 } 2549 ArkUIGeneratedNativeModule._CommonMethod_blur(this.peer.ptr, value, thisSerializer.asBuffer(), thisSerializer.length()) 2550 thisSerializer.release() 2551 } 2552 linearGradientBlurAttribute(value: number, options: LinearGradientBlurOptions): void { 2553 const thisSerializer : Serializer = Serializer.hold() 2554 thisSerializer.writeLinearGradientBlurOptions(options) 2555 ArkUIGeneratedNativeModule._CommonMethod_linearGradientBlur(this.peer.ptr, value, thisSerializer.asBuffer(), thisSerializer.length()) 2556 thisSerializer.release() 2557 } 2558 systemBarEffectAttribute(): void { 2559 ArkUIGeneratedNativeModule._CommonMethod_systemBarEffect(this.peer.ptr) 2560 } 2561 backdropBlurAttribute(value: number, options?: BlurOptions): void { 2562 const thisSerializer : Serializer = Serializer.hold() 2563 let options_type : int32 = RuntimeType.UNDEFINED 2564 options_type = runtimeType(options) 2565 thisSerializer.writeInt8(options_type as int32) 2566 if ((RuntimeType.UNDEFINED) != (options_type)) { 2567 const options_value = options! 2568 thisSerializer.writeBlurOptions(options_value) 2569 } 2570 ArkUIGeneratedNativeModule._CommonMethod_backdropBlur(this.peer.ptr, value, thisSerializer.asBuffer(), thisSerializer.length()) 2571 thisSerializer.release() 2572 } 2573 sharedTransitionAttribute(id: string, options?: sharedTransitionOptions): void { 2574 const thisSerializer : Serializer = Serializer.hold() 2575 let options_type : int32 = RuntimeType.UNDEFINED 2576 options_type = runtimeType(options) 2577 thisSerializer.writeInt8(options_type as int32) 2578 if ((RuntimeType.UNDEFINED) != (options_type)) { 2579 const options_value = options! 2580 thisSerializer.writesharedTransitionOptions(options_value) 2581 } 2582 ArkUIGeneratedNativeModule._CommonMethod_sharedTransition(this.peer.ptr, id, thisSerializer.asBuffer(), thisSerializer.length()) 2583 thisSerializer.release() 2584 } 2585 chainModeAttribute(direction: Axis, style: ChainStyle): void { 2586 ArkUIGeneratedNativeModule._CommonMethod_chainMode(this.peer.ptr, direction.valueOf(), style.valueOf()) 2587 } 2588 dragPreviewOptionsAttribute(value: DragPreviewOptions, options?: DragInteractionOptions): void { 2589 const thisSerializer : Serializer = Serializer.hold() 2590 thisSerializer.writeDragPreviewOptions(value) 2591 let options_type : int32 = RuntimeType.UNDEFINED 2592 options_type = runtimeType(options) 2593 thisSerializer.writeInt8(options_type as int32) 2594 if ((RuntimeType.UNDEFINED) != (options_type)) { 2595 const options_value = options! 2596 thisSerializer.writeDragInteractionOptions(options_value) 2597 } 2598 ArkUIGeneratedNativeModule._CommonMethod_dragPreviewOptions(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2599 thisSerializer.release() 2600 } 2601 overlayAttribute(value: string | CustomBuilder | ComponentContent, options?: OverlayOptions): void { 2602 const thisSerializer : Serializer = Serializer.hold() 2603 let value_type : int32 = RuntimeType.UNDEFINED 2604 value_type = runtimeType(value) 2605 if (RuntimeType.STRING == value_type) { 2606 thisSerializer.writeInt8(0 as int32) 2607 const value_0 = value as string 2608 thisSerializer.writeString(value_0) 2609 } 2610 else if (RuntimeType.FUNCTION == value_type) { 2611 thisSerializer.writeInt8(1 as int32) 2612 const value_1 = value as CustomBuilder 2613 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(value_1)) 2614 } 2615 else if (RuntimeType.OBJECT == value_type) { 2616 thisSerializer.writeInt8(2 as int32) 2617 const value_2 = value as ComponentContent 2618 thisSerializer.writeComponentContent(value_2) 2619 } 2620 let options_type : int32 = RuntimeType.UNDEFINED 2621 options_type = runtimeType(options) 2622 thisSerializer.writeInt8(options_type as int32) 2623 if ((RuntimeType.UNDEFINED) != (options_type)) { 2624 const options_value = options! 2625 thisSerializer.writeOverlayOptions(options_value) 2626 } 2627 ArkUIGeneratedNativeModule._CommonMethod_overlay(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2628 thisSerializer.release() 2629 } 2630 blendModeAttribute(value: BlendMode, type?: BlendApplyType): void { 2631 const thisSerializer : Serializer = Serializer.hold() 2632 let type_type : int32 = RuntimeType.UNDEFINED 2633 type_type = runtimeType(type) 2634 thisSerializer.writeInt8(type_type as int32) 2635 if ((RuntimeType.UNDEFINED) != (type_type)) { 2636 const type_value = (type as BlendApplyType) 2637 thisSerializer.writeInt32(type_value.valueOf()) 2638 } 2639 ArkUIGeneratedNativeModule._CommonMethod_blendMode(this.peer.ptr, value.valueOf(), thisSerializer.asBuffer(), thisSerializer.length()) 2640 thisSerializer.release() 2641 } 2642 advancedBlendModeAttribute(effect: BlendMode | Blender, type?: BlendApplyType): void { 2643 const thisSerializer : Serializer = Serializer.hold() 2644 let effect_type : int32 = RuntimeType.UNDEFINED 2645 effect_type = runtimeType(effect) 2646 if (TypeChecker.isBlendMode(effect)) { 2647 thisSerializer.writeInt8(0 as int32) 2648 const effect_0 = effect as BlendMode 2649 thisSerializer.writeInt32(effect_0.valueOf()) 2650 } 2651 else if (RuntimeType.OBJECT == effect_type) { 2652 thisSerializer.writeInt8(1 as int32) 2653 const effect_1 = effect as Blender 2654 thisSerializer.writeBlender(effect_1) 2655 } 2656 let type_type : int32 = RuntimeType.UNDEFINED 2657 type_type = runtimeType(type) 2658 thisSerializer.writeInt8(type_type as int32) 2659 if ((RuntimeType.UNDEFINED) != (type_type)) { 2660 const type_value = (type as BlendApplyType) 2661 thisSerializer.writeInt32(type_value.valueOf()) 2662 } 2663 ArkUIGeneratedNativeModule._CommonMethod_advancedBlendMode(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2664 thisSerializer.release() 2665 } 2666 bindPopupAttribute(show: boolean, popup: PopupOptions | CustomPopupOptions): void { 2667 const thisSerializer : Serializer = Serializer.hold() 2668 let popup_type : int32 = RuntimeType.UNDEFINED 2669 popup_type = runtimeType(popup) 2670 if (TypeChecker.isPopupOptions(popup, false, false, true, false, false, true, true, true, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)) { 2671 thisSerializer.writeInt8(0 as int32) 2672 const popup_0 = popup as PopupOptions 2673 thisSerializer.writePopupOptions(popup_0) 2674 } 2675 else if (TypeChecker.isCustomPopupOptions(popup, false, true, false, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, false, true, true, true, true)) { 2676 thisSerializer.writeInt8(1 as int32) 2677 const popup_1 = popup as CustomPopupOptions 2678 thisSerializer.writeCustomPopupOptions(popup_1) 2679 } 2680 ArkUIGeneratedNativeModule._CommonMethod_bindPopup(this.peer.ptr, show ? 1 : 0, thisSerializer.asBuffer(), thisSerializer.length()) 2681 thisSerializer.release() 2682 } 2683 bindMenu0Attribute(content: Array<MenuElement> | CustomBuilder, options?: MenuOptions): void { 2684 const thisSerializer : Serializer = Serializer.hold() 2685 let content_type : int32 = RuntimeType.UNDEFINED 2686 content_type = runtimeType(content) 2687 if (RuntimeType.OBJECT == content_type) { 2688 thisSerializer.writeInt8(0 as int32) 2689 const content_0 = content as Array<MenuElement> 2690 thisSerializer.writeInt32(content_0.length as int32) 2691 for (let i = 0; i < content_0.length; i++) { 2692 const content_0_element : MenuElement = content_0[i] 2693 thisSerializer.writeMenuElement(content_0_element) 2694 } 2695 } 2696 else if (RuntimeType.FUNCTION == content_type) { 2697 thisSerializer.writeInt8(1 as int32) 2698 const content_1 = content as CustomBuilder 2699 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) 2700 } 2701 let options_type : int32 = RuntimeType.UNDEFINED 2702 options_type = runtimeType(options) 2703 thisSerializer.writeInt8(options_type as int32) 2704 if ((RuntimeType.UNDEFINED) != (options_type)) { 2705 const options_value = options! 2706 thisSerializer.writeMenuOptions(options_value) 2707 } 2708 ArkUIGeneratedNativeModule._CommonMethod_bindMenu0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2709 thisSerializer.release() 2710 } 2711 bindMenu1Attribute(isShow: boolean, content: Array<MenuElement> | CustomBuilder, options?: MenuOptions): void { 2712 const thisSerializer : Serializer = Serializer.hold() 2713 let content_type : int32 = RuntimeType.UNDEFINED 2714 content_type = runtimeType(content) 2715 if (RuntimeType.OBJECT == content_type) { 2716 thisSerializer.writeInt8(0 as int32) 2717 const content_0 = content as Array<MenuElement> 2718 thisSerializer.writeInt32(content_0.length as int32) 2719 for (let i = 0; i < content_0.length; i++) { 2720 const content_0_element : MenuElement = content_0[i] 2721 thisSerializer.writeMenuElement(content_0_element) 2722 } 2723 } 2724 else if (RuntimeType.FUNCTION == content_type) { 2725 thisSerializer.writeInt8(1 as int32) 2726 const content_1 = content as CustomBuilder 2727 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content_1)) 2728 } 2729 let options_type : int32 = RuntimeType.UNDEFINED 2730 options_type = runtimeType(options) 2731 thisSerializer.writeInt8(options_type as int32) 2732 if ((RuntimeType.UNDEFINED) != (options_type)) { 2733 const options_value = options! 2734 thisSerializer.writeMenuOptions(options_value) 2735 } 2736 ArkUIGeneratedNativeModule._CommonMethod_bindMenu1(this.peer.ptr, isShow ? 1 : 0, thisSerializer.asBuffer(), thisSerializer.length()) 2737 thisSerializer.release() 2738 } 2739 bindContextMenu0Attribute(content: CustomBuilder, responseType: ResponseType, options?: ContextMenuOptions): void { 2740 const thisSerializer : Serializer = Serializer.hold() 2741 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content)) 2742 let options_type : int32 = RuntimeType.UNDEFINED 2743 options_type = runtimeType(options) 2744 thisSerializer.writeInt8(options_type as int32) 2745 if ((RuntimeType.UNDEFINED) != (options_type)) { 2746 const options_value = options! 2747 thisSerializer.writeContextMenuOptions(options_value) 2748 } 2749 ArkUIGeneratedNativeModule._CommonMethod_bindContextMenu0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length(), responseType.valueOf()) 2750 thisSerializer.release() 2751 } 2752 bindContextMenu1Attribute(isShown: boolean, content: CustomBuilder, options?: ContextMenuOptions): void { 2753 const thisSerializer : Serializer = Serializer.hold() 2754 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(content)) 2755 let options_type : int32 = RuntimeType.UNDEFINED 2756 options_type = runtimeType(options) 2757 thisSerializer.writeInt8(options_type as int32) 2758 if ((RuntimeType.UNDEFINED) != (options_type)) { 2759 const options_value = options! 2760 thisSerializer.writeContextMenuOptions(options_value) 2761 } 2762 ArkUIGeneratedNativeModule._CommonMethod_bindContextMenu1(this.peer.ptr, isShown ? 1 : 0, thisSerializer.asBuffer(), thisSerializer.length()) 2763 thisSerializer.release() 2764 } 2765 bindContentCover0Attribute(isShow: boolean | undefined, builder: CustomBuilder, type?: ModalTransition): void { 2766 const thisSerializer : Serializer = Serializer.hold() 2767 let isShow_type : int32 = RuntimeType.UNDEFINED 2768 isShow_type = runtimeType(isShow) 2769 thisSerializer.writeInt8(isShow_type as int32) 2770 if ((RuntimeType.UNDEFINED) != (isShow_type)) { 2771 const isShow_value = isShow! 2772 thisSerializer.writeBoolean(isShow_value) 2773 } 2774 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builder)) 2775 let type_type : int32 = RuntimeType.UNDEFINED 2776 type_type = runtimeType(type) 2777 thisSerializer.writeInt8(type_type as int32) 2778 if ((RuntimeType.UNDEFINED) != (type_type)) { 2779 const type_value = (type as ModalTransition) 2780 thisSerializer.writeInt32(type_value.valueOf()) 2781 } 2782 ArkUIGeneratedNativeModule._CommonMethod_bindContentCover0(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2783 thisSerializer.release() 2784 } 2785 bindContentCover1Attribute(isShow: boolean | undefined, builder: CustomBuilder, options?: ContentCoverOptions): void { 2786 const thisSerializer : Serializer = Serializer.hold() 2787 let isShow_type : int32 = RuntimeType.UNDEFINED 2788 isShow_type = runtimeType(isShow) 2789 thisSerializer.writeInt8(isShow_type as int32) 2790 if ((RuntimeType.UNDEFINED) != (isShow_type)) { 2791 const isShow_value = isShow! 2792 thisSerializer.writeBoolean(isShow_value) 2793 } 2794 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builder)) 2795 let options_type : int32 = RuntimeType.UNDEFINED 2796 options_type = runtimeType(options) 2797 thisSerializer.writeInt8(options_type as int32) 2798 if ((RuntimeType.UNDEFINED) != (options_type)) { 2799 const options_value = options! 2800 thisSerializer.writeContentCoverOptions(options_value) 2801 } 2802 ArkUIGeneratedNativeModule._CommonMethod_bindContentCover1(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2803 thisSerializer.release() 2804 } 2805 bindSheetAttribute(isShow: boolean | undefined, builder: CustomBuilder, options?: SheetOptions): void { 2806 const thisSerializer : Serializer = Serializer.hold() 2807 let isShow_type : int32 = RuntimeType.UNDEFINED 2808 isShow_type = runtimeType(isShow) 2809 thisSerializer.writeInt8(isShow_type as int32) 2810 if ((RuntimeType.UNDEFINED) != (isShow_type)) { 2811 const isShow_value = isShow! 2812 thisSerializer.writeBoolean(isShow_value) 2813 } 2814 thisSerializer.holdAndWriteCallback(CallbackTransformer.transformFromCustomBuilder(builder)) 2815 let options_type : int32 = RuntimeType.UNDEFINED 2816 options_type = runtimeType(options) 2817 thisSerializer.writeInt8(options_type as int32) 2818 if ((RuntimeType.UNDEFINED) != (options_type)) { 2819 const options_value = options! 2820 thisSerializer.writeSheetOptions(options_value) 2821 } 2822 ArkUIGeneratedNativeModule._CommonMethod_bindSheet(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2823 thisSerializer.release() 2824 } 2825 onVisibleAreaChangeAttribute(ratios: Array<number>, event: VisibleAreaChangeCallback): void { 2826 const thisSerializer : Serializer = Serializer.hold() 2827 thisSerializer.writeInt32(ratios.length as int32) 2828 for (let i = 0; i < ratios.length; i++) { 2829 const ratios_element : number = ratios[i] 2830 thisSerializer.writeNumber(ratios_element) 2831 } 2832 thisSerializer.holdAndWriteCallback(event) 2833 ArkUIGeneratedNativeModule._CommonMethod_onVisibleAreaChange(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2834 thisSerializer.release() 2835 } 2836 keyboardShortcutAttribute(value: string | FunctionKey, keys: Array<ModifierKey>, action?: (() => void)): void { 2837 const thisSerializer : Serializer = Serializer.hold() 2838 let value_type : int32 = RuntimeType.UNDEFINED 2839 value_type = runtimeType(value) 2840 if (RuntimeType.STRING == value_type) { 2841 thisSerializer.writeInt8(0 as int32) 2842 const value_0 = value as string 2843 thisSerializer.writeString(value_0) 2844 } 2845 else if (TypeChecker.isFunctionKey(value)) { 2846 thisSerializer.writeInt8(1 as int32) 2847 const value_1 = value as FunctionKey 2848 thisSerializer.writeInt32(value_1.valueOf()) 2849 } 2850 thisSerializer.writeInt32(keys.length as int32) 2851 for (let i = 0; i < keys.length; i++) { 2852 const keys_element : ModifierKey = keys[i] 2853 thisSerializer.writeInt32(keys_element.valueOf()) 2854 } 2855 let action_type : int32 = RuntimeType.UNDEFINED 2856 action_type = runtimeType(action) 2857 thisSerializer.writeInt8(action_type as int32) 2858 if ((RuntimeType.UNDEFINED) != (action_type)) { 2859 const action_value = action! 2860 thisSerializer.holdAndWriteCallback(action_value) 2861 } 2862 ArkUIGeneratedNativeModule._CommonMethod_keyboardShortcut(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 2863 thisSerializer.release() 2864 } 2865 getCurrentState():number { 2866 return this.supportedUIState; 2867 } 2868 setSupportedUIState(sate: number):void { 2869 this.supportedUIState = sate; 2870 } 2871} 2872export interface ArkCommonMethodAttributes { 2873 width?: Length 2874 height?: Length 2875 drawModifier?: DrawModifier | undefined 2876 responseRegion?: Array<Rectangle> | Rectangle 2877 mouseResponseRegion?: Array<Rectangle> | Rectangle 2878 size?: SizeOptions 2879 constraintSize?: ConstraintSizeOptions 2880 touchable?: boolean 2881 hitTestBehavior?: HitTestMode 2882 onChildTouchTest?: ((value: Array<TouchTestInfo>) => TouchResult) 2883 layoutWeight?: number | string 2884 chainWeight?: ChainWeightOptions 2885 padding?: Padding | Length | LocalizedPadding 2886 safeAreaPadding?: Padding | LengthMetrics | LocalizedPadding 2887 margin?: Margin | Length | LocalizedMargin 2888 backgroundColor?: ResourceColor 2889 pixelRound?: PixelRoundPolicy 2890 backgroundImageSize?: SizeOptions | ImageSize 2891 backgroundImagePosition?: Position | Alignment 2892 backgroundEffect?: BackgroundEffectOptions 2893 backgroundImageResizable?: ResizableOptions 2894 foregroundEffect?: ForegroundEffectOptions 2895 visualEffect?: VisualEffect 2896 backgroundFilter?: Filter 2897 foregroundFilter?: Filter 2898 compositingFilter?: Filter 2899 opacity?: number | Resource 2900 border?: BorderOptions 2901 borderStyle?: BorderStyle | EdgeStyles 2902 borderWidth?: Length | EdgeWidths | LocalizedEdgeWidths 2903 borderColor?: ResourceColor | EdgeColors | LocalizedEdgeColors 2904 borderRadius?: Length | BorderRadiuses | LocalizedBorderRadiuses 2905 borderImage?: BorderImageOption 2906 outline?: OutlineOptions 2907 outlineStyle?: OutlineStyle | EdgeOutlineStyles 2908 outlineWidth?: Dimension | EdgeOutlineWidths 2909 outlineColor?: ResourceColor | EdgeColors | LocalizedEdgeColors 2910 outlineRadius?: Dimension | OutlineRadiuses 2911 foregroundColor?: ResourceColor | ColoringStrategy 2912 onClick?: ((event: ClickEvent) => void) 2913 onHover?: ((isHover: boolean,event: HoverEvent) => void) 2914 onAccessibilityHover?: AccessibilityCallback 2915 hoverEffect?: HoverEffect 2916 onMouse?: ((event: MouseEvent) => void) 2917 onTouch?: ((event: TouchEvent) => void) 2918 onKeyEvent?: ((event: KeyEvent) => void) 2919 onKeyPreIme?: ((parameter: KeyEvent) => boolean) 2920 focusable?: boolean 2921 onFocus?: (() => void) 2922 onBlur?: (() => void) 2923 tabIndex?: number 2924 defaultFocus?: boolean 2925 groupDefaultFocus?: boolean 2926 focusOnTouch?: boolean 2927 focusBox?: FocusBoxStyle 2928 animation?: AnimateParam 2929 transition?: TransitionOptions | TransitionEffect 2930 motionBlur?: MotionBlurOptions 2931 brightness?: number 2932 contrast?: number 2933 grayscale?: number 2934 colorBlend?: Color | string | Resource 2935 saturate?: number 2936 sepia?: number 2937 invert?: number | InvertOptions 2938 hueRotate?: number | string 2939 useShadowBatching?: boolean 2940 useEffect?: boolean 2941 renderGroup?: boolean 2942 freeze?: boolean 2943 translate?: TranslateOptions 2944 scale?: ScaleOptions 2945 gridSpan?: number 2946 gridOffset?: number 2947 rotate?: RotateOptions 2948 transform?: Object 2949 onAppear?: (() => void) 2950 onDisAppear?: (() => void) 2951 onAttach?: (() => void) 2952 onDetach?: (() => void) 2953 onAreaChange?: ((oldValue: Area,newValue: Area) => void) 2954 visibility?: Visibility 2955 flexGrow?: number 2956 flexShrink?: number 2957 flexBasis?: number | string 2958 alignSelf?: ItemAlign 2959 displayPriority?: number 2960 zIndex?: number 2961 direction?: Direction 2962 align?: Alignment 2963 position?: Position | Edges | LocalizedEdges 2964 markAnchor?: Position | LocalizedPosition 2965 offset?: Position | Edges | LocalizedEdges 2966 enabled?: boolean 2967 useSizeType?: Literal_Union_Number_Literal_Number_offset_span_lg_md_sm_xs 2968 alignRules?: AlignRuleOption 2969 aspectRatio?: number 2970 clickEffect?: ClickEffect | undefined 2971 onDragStart?: ((event: DragEvent,extraParams?: string) => CustomBuilder | DragItemInfo) 2972 onDragEnter?: ((event: DragEvent,extraParams?: string) => void) 2973 onDragMove?: ((event: DragEvent,extraParams?: string) => void) 2974 onDragLeave?: ((event: DragEvent,extraParams?: string) => void) 2975 onDrop?: ((event: DragEvent,extraParams?: string) => void) 2976 onDragEnd?: ((event: DragEvent,extraParams?: string) => void) 2977 allowDrop?: Array<UniformDataType> | undefined 2978 draggable?: boolean 2979 dragPreview?: CustomBuilder | DragItemInfo | string 2980 onPreDrag?: ((parameter: PreDragStatus) => void) 2981 linearGradient?: Type_CommonMethod_linearGradient_value 2982 sweepGradient?: Type_CommonMethod_sweepGradient_value 2983 radialGradient?: Type_CommonMethod_radialGradient_value 2984 motionPath?: MotionPathOptions 2985 shadow?: ShadowOptions | ShadowStyle 2986 clip?: boolean | undefined 2987 clipShape?: CircleShape | EllipseShape | PathShape | RectShape 2988 mask?: ProgressMask | undefined 2989 maskShape?: CircleShape | EllipseShape | PathShape | RectShape 2990 key?: string 2991 id?: string 2992 geometryTransition?: string 2993 stateStyles?: StateStyles 2994 restoreId?: number 2995 sphericalEffect?: number 2996 lightUpEffect?: number 2997 pixelStretchEffect?: PixelStretchEffectOptions 2998 accessibilityGroup?: boolean 2999 accessibilityText?: string 3000 accessibilityTextHint?: string 3001 accessibilityDescription?: string 3002 accessibilityLevel?: string 3003 accessibilityVirtualNode?: CustomBuilder 3004 accessibilityChecked?: boolean 3005 accessibilitySelected?: boolean 3006 obscured?: Array<ObscuredReasons> 3007 reuseId?: string 3008 renderFit?: RenderFit 3009 attributeModifier?: AttributeModifier<object> 3010 gestureModifier?: GestureModifier 3011 backgroundBrightness?: BackgroundBrightnessOptions 3012 onGestureJudgeBegin?: ((gestureInfo: GestureInfo,event: BaseGestureEvent) => GestureJudgeResult) 3013 onGestureRecognizerJudgeBegin?: GestureRecognizerJudgeBeginCallback 3014 shouldBuiltInRecognizerParallelWith?: ShouldBuiltInRecognizerParallelWithCallback 3015 monopolizeEvents?: boolean 3016 onTouchIntercept?: ((parameter: TouchEvent) => HitTestMode) 3017 onSizeChange?: SizeChangeCallback 3018} 3019export class ArkCommonShapeMethodPeer extends ArkCommonMethodPeer { 3020 protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { 3021 super(peerPtr, id, name, flags) 3022 } 3023 public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonShapeMethodPeer { 3024 const peerId = PeerNode.nextId() 3025 const _peerPtr = ArkUIGeneratedNativeModule._CommonShapeMethod_construct(peerId, flags) 3026 const _peer = new ArkCommonShapeMethodPeer(_peerPtr, peerId, "CommonShapeMethod", flags) 3027 component?.setPeer(_peer) 3028 return _peer 3029 } 3030 strokeAttribute(value: ResourceColor): void { 3031 const thisSerializer : Serializer = Serializer.hold() 3032 let value_type : int32 = RuntimeType.UNDEFINED 3033 value_type = runtimeType(value) 3034 if (TypeChecker.isColor(value)) { 3035 thisSerializer.writeInt8(0 as int32) 3036 const value_0 = value as Color 3037 thisSerializer.writeInt32(value_0.valueOf()) 3038 } 3039 else if (RuntimeType.NUMBER == value_type) { 3040 thisSerializer.writeInt8(1 as int32) 3041 const value_1 = value as number 3042 thisSerializer.writeNumber(value_1) 3043 } 3044 else if (RuntimeType.STRING == value_type) { 3045 thisSerializer.writeInt8(2 as int32) 3046 const value_2 = value as string 3047 thisSerializer.writeString(value_2) 3048 } 3049 else if (RuntimeType.OBJECT == value_type) { 3050 thisSerializer.writeInt8(3 as int32) 3051 const value_3 = value as Resource 3052 thisSerializer.writeResource(value_3) 3053 } 3054 ArkUIGeneratedNativeModule._CommonShapeMethod_stroke(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3055 thisSerializer.release() 3056 } 3057 fillAttribute(value: ResourceColor): void { 3058 const thisSerializer : Serializer = Serializer.hold() 3059 let value_type : int32 = RuntimeType.UNDEFINED 3060 value_type = runtimeType(value) 3061 if (TypeChecker.isColor(value)) { 3062 thisSerializer.writeInt8(0 as int32) 3063 const value_0 = value as Color 3064 thisSerializer.writeInt32(value_0.valueOf()) 3065 } 3066 else if (RuntimeType.NUMBER == value_type) { 3067 thisSerializer.writeInt8(1 as int32) 3068 const value_1 = value as number 3069 thisSerializer.writeNumber(value_1) 3070 } 3071 else if (RuntimeType.STRING == value_type) { 3072 thisSerializer.writeInt8(2 as int32) 3073 const value_2 = value as string 3074 thisSerializer.writeString(value_2) 3075 } 3076 else if (RuntimeType.OBJECT == value_type) { 3077 thisSerializer.writeInt8(3 as int32) 3078 const value_3 = value as Resource 3079 thisSerializer.writeResource(value_3) 3080 } 3081 ArkUIGeneratedNativeModule._CommonShapeMethod_fill(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3082 thisSerializer.release() 3083 } 3084 strokeDashOffsetAttribute(value: number | string): void { 3085 const thisSerializer : Serializer = Serializer.hold() 3086 let value_type : int32 = RuntimeType.UNDEFINED 3087 value_type = runtimeType(value) 3088 if (RuntimeType.NUMBER == value_type) { 3089 thisSerializer.writeInt8(0 as int32) 3090 const value_0 = value as number 3091 thisSerializer.writeNumber(value_0) 3092 } 3093 else if (RuntimeType.STRING == value_type) { 3094 thisSerializer.writeInt8(1 as int32) 3095 const value_1 = value as string 3096 thisSerializer.writeString(value_1) 3097 } 3098 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeDashOffset(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3099 thisSerializer.release() 3100 } 3101 strokeLineCapAttribute(value: LineCapStyle): void { 3102 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeLineCap(this.peer.ptr, value.valueOf()) 3103 } 3104 strokeLineJoinAttribute(value: LineJoinStyle): void { 3105 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeLineJoin(this.peer.ptr, value.valueOf()) 3106 } 3107 strokeMiterLimitAttribute(value: number | string): void { 3108 const thisSerializer : Serializer = Serializer.hold() 3109 let value_type : int32 = RuntimeType.UNDEFINED 3110 value_type = runtimeType(value) 3111 if (RuntimeType.NUMBER == value_type) { 3112 thisSerializer.writeInt8(0 as int32) 3113 const value_0 = value as number 3114 thisSerializer.writeNumber(value_0) 3115 } 3116 else if (RuntimeType.STRING == value_type) { 3117 thisSerializer.writeInt8(1 as int32) 3118 const value_1 = value as string 3119 thisSerializer.writeString(value_1) 3120 } 3121 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeMiterLimit(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3122 thisSerializer.release() 3123 } 3124 strokeOpacityAttribute(value: number | string | Resource): void { 3125 const thisSerializer : Serializer = Serializer.hold() 3126 let value_type : int32 = RuntimeType.UNDEFINED 3127 value_type = runtimeType(value) 3128 if (RuntimeType.NUMBER == value_type) { 3129 thisSerializer.writeInt8(0 as int32) 3130 const value_0 = value as number 3131 thisSerializer.writeNumber(value_0) 3132 } 3133 else if (RuntimeType.STRING == value_type) { 3134 thisSerializer.writeInt8(1 as int32) 3135 const value_1 = value as string 3136 thisSerializer.writeString(value_1) 3137 } 3138 else if (RuntimeType.OBJECT == value_type) { 3139 thisSerializer.writeInt8(2 as int32) 3140 const value_2 = value as Resource 3141 thisSerializer.writeResource(value_2) 3142 } 3143 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeOpacity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3144 thisSerializer.release() 3145 } 3146 fillOpacityAttribute(value: number | string | Resource): void { 3147 const thisSerializer : Serializer = Serializer.hold() 3148 let value_type : int32 = RuntimeType.UNDEFINED 3149 value_type = runtimeType(value) 3150 if (RuntimeType.NUMBER == value_type) { 3151 thisSerializer.writeInt8(0 as int32) 3152 const value_0 = value as number 3153 thisSerializer.writeNumber(value_0) 3154 } 3155 else if (RuntimeType.STRING == value_type) { 3156 thisSerializer.writeInt8(1 as int32) 3157 const value_1 = value as string 3158 thisSerializer.writeString(value_1) 3159 } 3160 else if (RuntimeType.OBJECT == value_type) { 3161 thisSerializer.writeInt8(2 as int32) 3162 const value_2 = value as Resource 3163 thisSerializer.writeResource(value_2) 3164 } 3165 ArkUIGeneratedNativeModule._CommonShapeMethod_fillOpacity(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3166 thisSerializer.release() 3167 } 3168 strokeWidthAttribute(value: Length): void { 3169 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeWidth(this.peer.ptr, value) 3170 } 3171 antiAliasAttribute(value: boolean): void { 3172 ArkUIGeneratedNativeModule._CommonShapeMethod_antiAlias(this.peer.ptr, value ? 1 : 0) 3173 } 3174 strokeDashArrayAttribute(value: Array<Length>): void { 3175 const thisSerializer : Serializer = Serializer.hold() 3176 thisSerializer.writeInt32(value.length as int32) 3177 for (let i = 0; i < value.length; i++) { 3178 const value_element : Length = value[i] 3179 thisSerializer.writeLength(value_element) 3180 } 3181 ArkUIGeneratedNativeModule._CommonShapeMethod_strokeDashArray(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3182 thisSerializer.release() 3183 } 3184} 3185export interface ArkCommonShapeMethodAttributes extends ArkCommonMethodAttributes { 3186 stroke?: ResourceColor 3187 fill?: ResourceColor 3188 strokeDashOffset?: number | string 3189 strokeLineCap?: LineCapStyle 3190 strokeLineJoin?: LineJoinStyle 3191 strokeMiterLimit?: number | string 3192 strokeOpacity?: number | string | Resource 3193 fillOpacity?: number | string | Resource 3194 strokeWidth?: Length 3195 antiAlias?: boolean 3196 strokeDashArray?: Array<Length> 3197} 3198export class ArkCommonPeer extends ArkCommonMethodPeer { 3199 protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { 3200 super(peerPtr, id, name, flags) 3201 } 3202 public static create(component?: ComponentBase, flags: int32 = 0): ArkCommonPeer { 3203 const peerId = PeerNode.nextId() 3204 const _peerPtr = ArkUIGeneratedNativeModule._Common_construct(peerId, flags) 3205 const _peer = new ArkCommonPeer(_peerPtr, peerId, "Common", flags) 3206 component?.setPeer(_peer) 3207 return _peer 3208 } 3209 setCommonOptionsAttribute(): void { 3210 ArkUIGeneratedNativeModule._CommonInterface_setCommonOptions(this.peer.ptr) 3211 } 3212} 3213export interface ArkCommonAttributes extends ArkCommonMethodAttributes { 3214} 3215export class ArkScrollableCommonMethodPeer extends ArkCommonMethodPeer { 3216 protected constructor(peerPtr: KPointer, id: int32, name: string = "", flags: int32 = 0) { 3217 super(peerPtr, id, name, flags) 3218 } 3219 public static create(component?: ComponentBase, flags: int32 = 0): ArkScrollableCommonMethodPeer { 3220 const peerId = PeerNode.nextId() 3221 const _peerPtr = ArkUIGeneratedNativeModule._ScrollableCommonMethod_construct(peerId, flags) 3222 const _peer = new ArkScrollableCommonMethodPeer(_peerPtr, peerId, "ScrollableCommonMethod", flags) 3223 component?.setPeer(_peer) 3224 return _peer 3225 } 3226 scrollBarAttribute(value: BarState): void { 3227 ArkUIGeneratedNativeModule._ScrollableCommonMethod_scrollBar(this.peer.ptr, value.valueOf()) 3228 } 3229 scrollBarColorAttribute(value: Color | number | string): void { 3230 const thisSerializer : Serializer = Serializer.hold() 3231 let value_type : int32 = RuntimeType.UNDEFINED 3232 value_type = runtimeType(value) 3233 if (TypeChecker.isColor(value)) { 3234 thisSerializer.writeInt8(0 as int32) 3235 const value_0 = value as Color 3236 thisSerializer.writeInt32(value_0.valueOf()) 3237 } 3238 else if (RuntimeType.NUMBER == value_type) { 3239 thisSerializer.writeInt8(1 as int32) 3240 const value_1 = value as number 3241 thisSerializer.writeNumber(value_1) 3242 } 3243 else if (RuntimeType.STRING == value_type) { 3244 thisSerializer.writeInt8(2 as int32) 3245 const value_2 = value as string 3246 thisSerializer.writeString(value_2) 3247 } 3248 ArkUIGeneratedNativeModule._ScrollableCommonMethod_scrollBarColor(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3249 thisSerializer.release() 3250 } 3251 scrollBarWidthAttribute(value: number | string): void { 3252 const thisSerializer : Serializer = Serializer.hold() 3253 let value_type : int32 = RuntimeType.UNDEFINED 3254 value_type = runtimeType(value) 3255 if (RuntimeType.NUMBER == value_type) { 3256 thisSerializer.writeInt8(0 as int32) 3257 const value_0 = value as number 3258 thisSerializer.writeNumber(value_0) 3259 } 3260 else if (RuntimeType.STRING == value_type) { 3261 thisSerializer.writeInt8(1 as int32) 3262 const value_1 = value as string 3263 thisSerializer.writeString(value_1) 3264 } 3265 ArkUIGeneratedNativeModule._ScrollableCommonMethod_scrollBarWidth(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3266 thisSerializer.release() 3267 } 3268 nestedScrollAttribute(value: NestedScrollOptions): void { 3269 const thisSerializer : Serializer = Serializer.hold() 3270 thisSerializer.writeNestedScrollOptions(value) 3271 ArkUIGeneratedNativeModule._ScrollableCommonMethod_nestedScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3272 thisSerializer.release() 3273 } 3274 enableScrollInteractionAttribute(value: boolean): void { 3275 ArkUIGeneratedNativeModule._ScrollableCommonMethod_enableScrollInteraction(this.peer.ptr, value ? 1 : 0) 3276 } 3277 frictionAttribute(value: number | Resource): void { 3278 const thisSerializer : Serializer = Serializer.hold() 3279 let value_type : int32 = RuntimeType.UNDEFINED 3280 value_type = runtimeType(value) 3281 if (RuntimeType.NUMBER == value_type) { 3282 thisSerializer.writeInt8(0 as int32) 3283 const value_0 = value as number 3284 thisSerializer.writeNumber(value_0) 3285 } 3286 else if (RuntimeType.OBJECT == value_type) { 3287 thisSerializer.writeInt8(1 as int32) 3288 const value_1 = value as Resource 3289 thisSerializer.writeResource(value_1) 3290 } 3291 ArkUIGeneratedNativeModule._ScrollableCommonMethod_friction(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3292 thisSerializer.release() 3293 } 3294 onScrollAttribute(value: ((first: number,last: number) => void)): void { 3295 const thisSerializer : Serializer = Serializer.hold() 3296 thisSerializer.holdAndWriteCallback(value) 3297 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onScroll(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3298 thisSerializer.release() 3299 } 3300 onReachStartAttribute(value: (() => void)): void { 3301 const thisSerializer : Serializer = Serializer.hold() 3302 thisSerializer.holdAndWriteCallback(value) 3303 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onReachStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3304 thisSerializer.release() 3305 } 3306 onReachEndAttribute(value: (() => void)): void { 3307 const thisSerializer : Serializer = Serializer.hold() 3308 thisSerializer.holdAndWriteCallback(value) 3309 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onReachEnd(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3310 thisSerializer.release() 3311 } 3312 onScrollStartAttribute(value: (() => void)): void { 3313 const thisSerializer : Serializer = Serializer.hold() 3314 thisSerializer.holdAndWriteCallback(value) 3315 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onScrollStart(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3316 thisSerializer.release() 3317 } 3318 onScrollStopAttribute(value: (() => void)): void { 3319 const thisSerializer : Serializer = Serializer.hold() 3320 thisSerializer.holdAndWriteCallback(value) 3321 ArkUIGeneratedNativeModule._ScrollableCommonMethod_onScrollStop(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3322 thisSerializer.release() 3323 } 3324 flingSpeedLimitAttribute(value: number): void { 3325 ArkUIGeneratedNativeModule._ScrollableCommonMethod_flingSpeedLimit(this.peer.ptr, value) 3326 } 3327 clipContentAttribute(value: ContentClipMode | RectShape): void { 3328 const thisSerializer : Serializer = Serializer.hold() 3329 let value_type : int32 = RuntimeType.UNDEFINED 3330 value_type = runtimeType(value) 3331 if (TypeChecker.isContentClipMode(value)) { 3332 thisSerializer.writeInt8(0 as int32) 3333 const value_0 = value as ContentClipMode 3334 thisSerializer.writeInt32(value_0.valueOf()) 3335 } 3336 else if (RuntimeType.OBJECT == value_type) { 3337 thisSerializer.writeInt8(1 as int32) 3338 const value_1 = value as RectShape 3339 thisSerializer.writeRectShape(value_1) 3340 } 3341 ArkUIGeneratedNativeModule._ScrollableCommonMethod_clipContent(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3342 thisSerializer.release() 3343 } 3344 edgeEffectAttribute(edgeEffect: EdgeEffect, options?: EdgeEffectOptions): void { 3345 const thisSerializer : Serializer = Serializer.hold() 3346 let options_type : int32 = RuntimeType.UNDEFINED 3347 options_type = runtimeType(options) 3348 thisSerializer.writeInt8(options_type as int32) 3349 if ((RuntimeType.UNDEFINED) != (options_type)) { 3350 const options_value = options! 3351 thisSerializer.writeEdgeEffectOptions(options_value) 3352 } 3353 ArkUIGeneratedNativeModule._ScrollableCommonMethod_edgeEffect(this.peer.ptr, edgeEffect.valueOf(), thisSerializer.asBuffer(), thisSerializer.length()) 3354 thisSerializer.release() 3355 } 3356 fadingEdgeAttribute(enabled?: boolean, options?: FadingEdgeOptions): void { 3357 const thisSerializer : Serializer = Serializer.hold() 3358 let enabled_type : int32 = RuntimeType.UNDEFINED 3359 enabled_type = runtimeType(enabled) 3360 thisSerializer.writeInt8(enabled_type as int32) 3361 if ((RuntimeType.UNDEFINED) != (enabled_type)) { 3362 const enabled_value = enabled! 3363 thisSerializer.writeBoolean(enabled_value) 3364 } 3365 let options_type : int32 = RuntimeType.UNDEFINED 3366 options_type = runtimeType(options) 3367 thisSerializer.writeInt8(options_type as int32) 3368 if ((RuntimeType.UNDEFINED) != (options_type)) { 3369 const options_value = options! 3370 thisSerializer.writeFadingEdgeOptions(options_value) 3371 } 3372 ArkUIGeneratedNativeModule._ScrollableCommonMethod_fadingEdge(this.peer.ptr, thisSerializer.asBuffer(), thisSerializer.length()) 3373 thisSerializer.release() 3374 } 3375} 3376export interface ArkScrollableCommonMethodAttributes extends ArkCommonMethodAttributes { 3377} 3378